Disabling DKE Endpoint
Use the post /v1/cckm/microsoft/dke/endpoints/{id}/disable API to disallow the getkey and decrypt operations for a given Microsoft DKE endpoint.
Syntax
curl -k '<CCKM IP address>/api/v1/cckm/microsoft/dke/endpoints/<id>/disable' -X POST -H 'Authorization: Bearer AUTHTOKEN' -H 'accept: application/json' --compressed
Here, {id} is the ID of the DKE endpoint.
Request Parameter
| Parameter | Type | Description | 
|---|---|---|
| AUTHTOKEN | string | Authorization token. | 
| id | string | ID of the DKE endpoint. | 
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/microsoft/dke/endpoints/f222ffdf-80e1-4fd5-8f17-1b60a26dba5d/disable' -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiI1ZTc3Y2Q3NC0wMmVhLTRhNzYtODIzMi1hNDY4YTg1MGQwM2UiLCJzdWIiOiJsb2NhbHw0ODMyZDM4ZS04YzdhLTRiMjYtYTc5Ni1kNjk3NWQyOTg2ZGIiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJjbGllbnRfdHlwZSI6InVucmVnaXN0ZXJlZCIsImRvbWFpbl9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsImdyb3VwcyI6WyJhZG1pbiJdLCJzaWQiOiIzMGJiZTYxNS1hNWQzLTQwNzAtYTNjYi01NDA0Y2YzMmE5OTYiLCJ6b25lX2lkIjoiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIn0sImp3dGlkIjoiMjJmZGVkNWEtYTYyZS00ZDVhLWJlODItN2M0YTQwMjNjNjc0IiwiaWF0IjoxNjkyOTI1MDc5LCJleHAiOjE2OTI5MjUzNzl9.8Eclw11vXUjAGizwpEO8TSrEZ-6k_2UoEPWNDqREKwE' -H 'accept: application/json' --compressed
Example Response
  {
    "id": "8fbd67ea-3925-4361-9326-c73a84ae872c",
    "uri": "kylo:kylo:cckm:dke-endpoint:8fbd67ea-3925-4361-9326-c73a84ae872c",
    "account": "kylo:kylo:admin:accounts:kylo",
    "createdAt": "2023-06-23T02:58:31.192776Z",
    "updatedAt": "2023-06-23T02:58:31.192776Z",
    "name": "TestDKEEndpoint_001",
    "description": "demo dke endpoint 1",
    "key_uri_hostname": "dke.thales.com",
    "key_uri": "https://dke.thales.com/api/v1/cckm/microsoft/dke-data-plane/endpoints/8fbd67ea-3925-4361-9326-c73a84ae872c/keys/ks-e998720b0e8e4ccc9ecf6a6e125ccce16356ba90b31540478a4d23fed4216203",
    "kek_name": "ks-e998720b0e8e4ccc9ecf6a6e125ccce16356ba90b31540478a4d23fed4216203",
    "kek_id": "e998720b0e8e4ccc9ecf6a6e125ccce16356ba90b31540478a4d23fed4216203",
    "kek_uuid": "efc5544d-53bd-42ab-b582-d6985458f37c",
    "meta": {
        "color": "blue",
        "size": "big"
    },
    "kek_version": "0",
    "key_type": "asymmetric",
    "algorithm": "RSA_DECRYPT_OAEP_2048_SHA256",
    "enable_success_audit_event": true,
    "auth_tenants": [
        "95180635-b494-4f57-b9ba-a250aeac741f"
    ],
    "auto_rotate": false,
    "status": "Disabled"
}
The sample output shows that the parameter status is successfully set to Disabled, which means the getkey and decrypt operations are disallowed for this DKE endpoint.
Response Codes
| Response Code | Description | 
|---|---|
| 2xx | Success | 
| 4xx | Client errors | 
| 5xx | Server errors | 
Refer to HTTP status codes for details.