Synchronizing Azure Secrets
Use the post /v1/cckm/azure/secrets/synchronization-jobs
API to synchronize Azure secrets of all or particular vaults.
Syntax
curl -k '<IP>/api/v1/cckm/azure/secrets/synchronization-jobs' -H 'Authorization: Bearer AUTHTOKEN' -H 'Content-Type: application/json' -H 'accept: application/json' --data-binary $'{\n "key_vaults": ["<vault-1>, <vault-2>, <vault-3>"],\n "synchronize_all": false\n}' -H 'accept: application/json' --compressed
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authentication token. |
key_vaults | array of strings | ID of the vaults from which secrets will be synchronized. Provide resource ID or vault ID of the Azure vault. |
synchronize_all | boolean | Whether to synchronize all secrets from all vaults. Set true to synchronize all secrets from all vaults. synchronize_all and key_vaults are mutually exclusive - specify either. |
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/azure/secrets/synchronization-jobs' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiIxYzU1ZWY0Yi01MThjLTQ5ZmMtODRmMy1mYjk4MGY4YTQ3ODQiLCJzdWIiOiJsb2NhbHwyZjBmZWViNC02MjkwLTQ4ZWQtYmU1Yy0wYmU4NTVkMzE4NzMiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiODU3ZDEyYjItNjljZi00OWY1LThkYjktMjI0NWMwODNiODg5Iiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6Ijg1NTRhOWJhLTE1OTgtNDE0OC04YWMwLWYwZWJkNjJlMThmOSIsImlhdCI6MTY0Mzg2MzI1MywiZXhwIjoxNjQzODYzNTUzfQ.F6D3QgJLvFY0UyltBn6TfmiET-kExTl7RcvsmYzg550' -H 'Content-Type: application/json' -H 'accept: application/json' --data-binary $'{\n "key_vaults": ["pkv-softkeys::260ecbe7-777b-4d3c-84ea-887620498863"],\n "synchronize_all": false\n}' --compressed
Example Response
{
"id": "5df2bf50-cbf3-4c10-b784-613059982cb4",
"uri": "kylo:kylo:cckm:synchronize:5df2bf50-cbf3-4c10-b784-613059982cb4",
"account": "kylo:kylo:admin:accounts:kylo",
"application": "ncryptify:gemalto:admin:apps:kylo",
"devAccount": "ncryptify:gemalto:admin:accounts:gemalto",
"createdAt": "2022-05-10T11:47:32.209469205Z",
"updatedAt": "2022-05-10T11:47:32.212156703Z",
"overall_status": "in_progress",
"cloud": "AzureCloud",
"key_vaults": [
"cckm-vault::eecde78c-1b53-4552-acd9-a19beb2ea72e",
"cckm_vault2::eecde78c-1b53-4552-acd9-a19beb2ea72e",
"cckm_vault3::eecde78c-1b53-4552-acd9-a19beb2ea72e"
],
"abort": false,
"sync_item": "azure-secret"
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.