Canceling Synchronization Jobs
Use the post /v1/cckm/azure/certificates/synchronization-jobs/{id}/cancel
API to cancel the synchronization job.
Syntax
curl -k '<IP>/api/v1/cckm/azure/certificates/synchronization-jobs/{id}/cancel' -X POST -H 'Authorization: Bearer AUTHTOKEN' -H 'accept: application/json' --compressed
Here, {id}
is the ID of the synchronization job.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authentication token. |
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/azure/certificates/synchronization-jobs/6a5b8f4c-e377-4019-b77a-cad68061af4d/cancel' -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiIxYzU1ZWY0Yi01MThjLTQ5ZmMtODRmMy1mYjk4MGY4YTQ3ODQiLCJzdWIiOiJsb2NhbHwyZjBmZWViNC02MjkwLTQ4ZWQtYmU1Yy0wYmU4NTVkMzE4NzMiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiODU3ZDEyYjItNjljZi00OWY1LThkYjktMjI0NWMwODNiODg5Iiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6IjQ4MGI4NmU0LWI2NTgtNGE3OC05N2NkLTk1OWY0OWNmMmM0NSIsImlhdCI6MTY0Mzg2MzU2MywiZXhwIjoxNjQzODYzODYzfQ.RQ3jtVuxiPWCxM6SNC9GEzfq0mmMvO-efLgq8BeA95k' -H 'accept: application/json' --compressed
Example Response
{
"id": "6a5b8f4c-e377-4019-b77a-cad68061af4d",
"uri": "kylo:kylo:cckm:synchronize:6a5b8f4c-e377-4019-b77a-cad68061af4d",
"account": "kylo:kylo:admin:accounts:kylo",
"application": "ncryptify:gemalto:admin:apps:kylo",
"devAccount": "ncryptify:gemalto:admin:accounts:gemalto",
"createdAt": "2022-05-12T08:35:28.927391Z",
"updatedAt": "2022-05-12T08:35:28.929992Z",
"overall_status": "in_progress",
"cloud": "AzureCloud",
"key_vaults": [
"pkv-softkeys::260ecbe7-777b-4d3c-84ea-887620498863",
"CCKM-Soft-Delete::260ecbe7-777b-4d3c-84ea-887620498863"
],
"abort": true,
"sync_item": "azure-certificate"
}
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.