[CONF] Apache Syncope > Call REST services from CLI
Title: Message Title Andrea Patricelli edited a page Call REST services from CLI ... Code Block language js { "id": 0, "password": "password123", "username": "myusername@cazmyusername@apache.itorg", "securityQuestion": null, "securityAnswer": null, "attributes": [ { "schema": "fullname", "readonly": false, "values": [ "myusername@cazmyusername@apache.itorg" ] }, { "schema": "loginDate", "readonly": false, "values": [ "2015-11-12" ] } ] } ... View page • Add comment • Like Stop watching space • Manage notifications This message was sent by Atlassian Confluence 5.8.4
[CONF] Apache Syncope > Call REST services from CLI
Title: Message Title Francesco Chicchiricco edited a page Call REST services from CLI ... to avoid Syncope core populating the HTTP response with the created user entry. Update user Code Block curl -X POST -u admin:password -H "Accept: application/json" -H "Content-Type: application/json" --data @/tmp/updateuser.json http://localhost:9080/syncope/rest/users/100 where 100 is the id of the user to be deleted and /tmp/updateuser.json looks like: Code Block language js { "id": 100, "username": "newUsername", "password": "updatedPassword", "attributesToRemove": [ "surname" ], "attributesToUpdate": [ { "schema": "surname", "valuesToBeAdded": [ "New surname" ], "valuesToBeRemoved": [] } ] } You might want to add Panel -H "Prefer: return-no-content" ... View page • Add comment • Like Stop watching space • Manage notifications This message was sent by Atlassian Confluence 5.8.4
[CONF] Apache Syncope > Call REST services from CLI
Title: Message Title Francesco Chicchiricco edited a page Call REST services from CLI ... Note Apache Syncope 2.0.0 is yet to be released and only available as SNAPSHOT. Info With Apache Syncope 2.0.0, besides using curl as with earlier versions, a brand new CLI tool is available. Tip For more details please refer to the REST API reference, which is also available in your own deployment at http://localhost:9080/syncope/. Tip If selected for deployment, the Swagger extension is also available in your deployment at http://localhost:9080/syncope/swagger/. Apache Syncope 1.2.X Tip For more details please refer to the REST API reference, which is also available in your own deployment at http://localhost:9080/syncope/rest/doc/. Create user Code Block curl -X POST -u admin:password -H "Accept: application/json" -H "Content-Type: application/json" --data @/tmp/newuser.json http://localhost:9080/syncope/rest/users ... View page • Add comment • Like Stop watching space • Manage notifications This message was sent by Atlassian Confluence 5.8.4
[CONF] Apache Syncope > Call REST services from CLI
Title: Message Title Francesco Chicchiricco edited a page Call REST services from CLI ... Code Block language js "resources": [ "ws-target-resource-1" ] You might want to add Panel -H "Prefer: return-no-content" to avoid Syncope core populating the HTTP response with the created user entry. Update user You might want to add Panel -H "Prefer: return-no-content" to avoid Syncope core populating the HTTP response with the updated user entry. Delete user Panel curl -X DELETE -u admin:password -H "Accept: application/json" http://localhost:9080/syncope/rest/users/100 where 100 is the id of the user to be deleted. You might want to add Panel -H "Prefer: return-no-content" to avoid Syncope core populating the HTTP response with the deleted user entry. Export database content Panel curl -X GET -u admin:password -o content.xml http://localhost:9080/syncope/rest/configurations/stream ... View page • Add comment • Like Stop watching space • Manage notifications This message was sent by Atlassian Confluence 5.8.4
[CONF] Apache Syncope > Call REST services from CLI
<<< text/html; charset=UTF-8: Unrecognized >>>
[CONF] Apache Syncope > Call REST services from CLI
<<< text/html; charset=UTF-8: Unrecognized >>>
[CONF] Apache Syncope > Call REST services from CLI
Title: Message Title Francesco Chicchiricco edited a page Call REST services from CLI In the following it is assumed that: admin:password are the credentials for accessing Syncope core Syncope core runs on http://localhost:9080/syncope Table of Contents style decimal ... Panel curl -u admin:password -H "Content-Type: application/json" --data @/tmp/newuser.json http://localhost:9080/syncope/rest/user/create.json Where: /tmp/newuser.json is a file containing the definition of the user to create, see below admin:password is the default username:password combination for accessing Syncope core Syncope core runs on http://localhost:9080/syncope The file /tmp/newuser.json could look like this: ... View page • Add comment • Like Stop watching space • Manage notifications This message was sent by Atlassian Confluence 5.8.4
[CONF] Apache Syncope > Call REST services from CLI
Title: Message Title Francesco Chicchiricco edited a page Call REST services from CLI ... Note Apache Syncope 2.0.0 is yet to be released and only available as SNAPSHOT. With Apache Syncope 2.0.0, besides using curl as with earlier versions, a brand new CLI tool is available. For more details please refer to the REST API reference, which is also available in your own deployment at http://localhost:9080/syncope/. ... View page • Add comment • Like Stop watching space • Manage notifications This message was sent by Atlassian Confluence 5.8.4
[CONF] Apache Syncope > Call REST services from CLI
<<< text/html; charset=UTF-8: Unrecognized >>>