Synchronizing Azure Certificates
Use the post /v1/cckm/azure/certificates/synchronization-jobs
API to synchronize Azure certificates of all or particular vaults.
Syntax
curl -k '<IP>/api/v1/cckm/azure/certificates/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}' --compressed
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authentication token. |
key_vaults | array of strings | ID of the vaults from which certificates will be synchronized. Provide resource ID or vault ID of the Azure vault. |
synchronize_all | boolean | Whether to synchronize all certificates from all vaults. Set true to synchronize all certificates 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/certificates/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": "51550607-e6fe-44f8-998a-c1455f0ecf50",
"uri": "kylo:kylo-36b619e0-7aed-4de7-958a-6d670b85ee71:cckm:synchronize:51550607-e6fe-44f8-998a-c1455f0ecf50",
"account": "kylo:kylo-36b619e0-7aed-4de7-958a-6d670b85ee71:admin:accounts:kylo-36b619e0-7aed-4de7-958a-6d670b85ee71",
"application": "ncryptify:gemalto:admin:apps:kylo",
"devAccount": "ncryptify:gemalto:admin:accounts:gemalto",
"createdAt": "2022-05-17T09:28:11.503990939Z",
"updatedAt": "2022-05-17T09:28:11.509727986Z",
"overall_status": "in_progress",
"cloud": "AzureCloud",
"key_vaults": [
"pkv-softkeys::260ecbe7-777b-4d3c-84ea-887620498863",
"CCKM-Soft-Delete::260ecbe7-777b-4d3c-84ea-887620498863"
],
"abort": false,
"sync_item": "azure-certificate"
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.