[midPoint] Importing objects remotely

Samu Viitanen zamppa90 at hotmail.com
Wed Oct 21 16:49:02 CEST 2015


Thank you Katarina for the information. Using the REST API seems simple enough. I will try different solutions and choose the best one for my needs.

BR
Samu

Date: Wed, 21 Oct 2015 15:03:16 +0200
From: katkav at evolveum.com
To: midpoint at lists.evolveum.com
Subject: Re: [midPoint] Importing objects remotely

Hi Samu,
there is also possibility to create objects without accessing midPoint GUI using REST API. For example, if you want to import resource definition, you can use following curl command:
 curl --user administrator:5ecr3t -H "Content-Type: application/xml" -X POST http://localhost:8080/midpoint/ws/rest/resources -d @pathToYourXmls\resource.xml -v
 
 for other types of objects, you will need to update url with the appropriate type, e.g:
 create connector host: http://localhost:8080/midpoint/ws/rest/connectorHostscreate object template: http://localhost:8080/midpoint/ws/rest/objectTemplates
 More documentation for REST API can be found in wiki.
 
 Best regards,
 Katarina Valalikova
 
 
 Dňa 21. 10. 2015 o 13:32 Samu Viitanen napísal(a):
Thank you for your quick response Pavol. I will use the executeChanges method for now.
 
 - Samu
 
To: midpoint at lists.evolveum.com
 From: mederly at evolveum.com
 Date: Wed, 21 Oct 2015 12:10:05 +0200
 Subject: Re: [midPoint] Importing objects remotely
 
Samu,
 
 you're right: the model WS interface doesn't contain such a method. (I consider implementing it, but it's a low priority for me, mainly because of 3.3 release that is quickly coming.)
 
 In the meanwhile, you can safely use executeChanges method. But you need to call it one-object-at-a-time. And perhaps don't forget to set "overwrite" option. Also, set "isImport" option, if you want to evaluate search filters in the imported objects.
 
 Best regards,
 Pavol
 
Hello,
 
 I want to import certain objects (Connector hosts, resource references, user templates, etc.) without accessing the midPoint GUI. Is it possible to import objects through the Model WS Interface, or do I have to write a program with the Model interface to import such objects? I did not find any references or guides on how to import objects like this into midPoint.
 
 Best Regards
 Samu Viitanen


_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
http://lists.evolveum.com/mailman/listinfo/midpoint

 
 _______________________________________________ midPoint mailing list midPoint at lists.evolveum.com http://lists.evolveum.com/mailman/listinfo/midpoint

_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
http://lists.evolveum.com/mailman/listinfo/midpoint


_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
http://lists.evolveum.com/mailman/listinfo/midpoint 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20151021/ac037284/attachment.htm>


More information about the midPoint mailing list