Deleting a DKR from SAP
Use the post /v1/cckm/sap/dkr/{id}/delete
API to delete a Dynamic Key Reference (DKR) with given ID from SAP.
Syntax
curl -k '<IP>/api/v1/cckm/sap/dkr/{id}/delete' -H 'Authorization: Bearer AUTHTOKEN' --compressed
Here, {id}
is the resource ID of the SAP DKR on the CipherTrust Manager. Note that the resource id
is different from dynamic_key_reference_id
on SAP. Run the get /v1/cckm/sap/dkr
API to view the resource ID (id
) of the SAP DKR on the CipherTrust Manager.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/sap/dkr/46c6696a-f3a5-4aba-96ed-b9a609d497c8/delete' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiI3ZjRlNmJkNi0wMzgzLTQ4MGMtYWZmZS0wYTQxNDgzZmVlNmUiLCJzdWIiOiJsb2NhbHxlNjM3NTVjOS01YzRhLTQ0NzUtOWI0Zi0wN2JjNzQxYjQ1MGEiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiODJlZTQ2MzAtNjQwMi00MTQ3LTliNDYtNWE5YzU1OGVjZWU4Iiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImI4MThiN2MzLTk5NzItNDU0YS1iMjI0LWQ2NGQwOWVlOGRmNSIsImlhdCI6MTYzNDU0MzE0OSwiZXhwIjoxNjM0NTQzNDQ5fQ.KEXK5uaMecdIQT8QWsIqVn6szCz5VBPetDh8i2ePiLU' --compressed
Example Response
{
"id": "46c6696a-f3a5-4aba-96ed-b9a609d497c8",
"uri": "kylo:kylo:cckm:sap-dkr:46c6696a-f3a5-4aba-96ed-b9a609d497c8",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2023-02-16T08:49:57.380404Z",
"updatedAt": "2023-02-16T09:05:46.656983Z",
"cloud_name": "sap",
"sap_key_name": "Demo-19-10-2022",
"cckm_group_id": "b484d259-2756-4469-88fe-b0444947f83b",
"cckm_sap_key_id": "33e75af5-3fb0-474e-b6c2-4660f1501caa",
"gone": true,
"status": "DELETED",
"sap_dkr_param": {
"allow_underlying_key_exchange": true,
"meta": {
"created": "2023-02-16T09:18:31Z",
"creatorId": "171cdee5-947e-4bcd-ae0b-562256624904",
"creatorName": "example@thalesgroup.com"
},
"name": "DKR-Demo",
"dynamic_key_reference_id": "dkr--235556a0-509e-4aa1-b285-7cb9ab4c56cd",
"sap_key_id": "b1101911-960b-4955-8133-20ca4dc6097e"
}
}
The status DELETED
indicates that the SAP DKR with the specified ID is deleted from SAP.
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.