Cyral
Get Started Sign In

How can I use an API to create the clientID and clientSecret for a Cyral sidecar?

Users wishing to automate their Cyral deployments can use an API call to create the clientID and clientSecret for a Cyral sidecar. 


This is done by doing a POST to https://{{customer_app_url}}:8000/v1/users/sidecarAccounts with a JSON of {"sidecarId" : "<sidecarID>"} where <sidecarID> is the sidecarID for which you want to generate an ID/Secret. 


The response is: 

{"clientId": "<clientID>", "clientSecret": "<clientSecret>", "sidecarId": "<sidecarID>"}


A curl example:

curl -L -X POST 'https://salgatt.apdev.cyral.com:8000/v1/users/sidecarAccounts' -H 'Authorization: Bearer <TOKEN>' -H 'Content-Type: application/json' --data-raw '{
"sidecarId": "<sidecar ID>"
}'

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.