Fetching List of DKE Endpoints
Use the get /v1/cckm/microsoft/dke/endpoints API to fetch a list of the Microsoft DKE endpoints from CCKM. The results can be filtered using the query parameters.
Syntax
curl -k '<CCKM IP address>/api/v1/cckm/microsoft/dke/endpoints' -H 'Authorization: Bearer AUTHTOKEN' -H 'accept: application/json' --compressed
Request Parameters
| Parameter | Type | Description | 
|---|---|---|
| AUTHTOKEN | string | Authorization token. | 
Request Query Parameters
| Parameter | Type | Description | 
|---|---|---|
| id | string | DKE endpoint ID. | 
| name | string | Name of the DKE endpoint. | 
| algorithm | string | DKE endpoint algorithm. | 
| status | string | The status of the DKE endpoint. | 
| key_type | string | Type of key created by DKE endpoint. The only option currently supported is asymmetric. | 
| key_uri | string | URI of key created by the DKE endpoint. | 
| auth_tenants | string | List of IDs of authorized tenants for the DKE endpoint. | 
| skip | integer | Number of records to skip. For example, if "skip":5 is specified, the first five records will not be displayed in the output. | 
| limit | integer | Numbers of records to display. For example, if "limit":10 is specified, then the next 10 records (after skipping the number of records specified in the skip parameter) will be displayed in the output. | 
| sort | string | Comma-delimited list of properties to sort the results. | 
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/microsoft/dke/endpoints?skip=0&limit=10&sort=updatedAt' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiI1ZTc3Y2Q3NC0wMmVhLTRhNzYtODIzMi1hNDY4YTg1MGQwM2UiLCJzdWIiOiJsb2NhbHw0ODMyZDM4ZS04YzdhLTRiMjYtYTc5Ni1kNjk3NWQyOTg2ZGIiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJjbGllbnRfaWQiOiI4MzdjODQwZC03NWRkLTRiNGYtYTMxOC03OWNiMTZjYTI0OGQiLCJjbGllbnRfbmFtZSI6ImFwaS1wbGF5Z3JvdW5kIiwiY2xpZW50X3R5cGUiOiJwdWJsaWMiLCJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiNDQ5MTdlZjctYjhmYi00NTFjLThhYTMtYzAxZDUxNjZkYmY4Iiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImViODNmNzFmLTg2MGItNGZhMy04ODZjLTM4ZGJkNzQyZDYwYiIsImlhdCI6MTY5MjgyMzE2MCwiZXhwIjoxNjkyODIzNDYwfQ.INuQJVq6VZeEz4RCOOsFCy68Go3rbkTNWNSTKW-2mkE' -H 'accept: application/json' --compressed
Example Response
{
    "skip": "0,",
    "limit": "10,",
    "total": "2,",
    "resources": [
        {
            "id": "2f63df7e-4229-4bee-aeba-ec8c408fb8fb",
            "uri": "kylo:kylo:cckm:dke-endpoint:2f63df7e-4229-4bee-aeba-ec8c408fb8fb",
            "account": "kylo:kylo:admin:accounts:kylo",
            "createdAt": "2023-06-23T03:23:59.468599Z",
            "updatedAt": "2023-06-23T03:23:59.468599Z",
            "name": "dkeEndpoint_7426",
            "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/2f63df7e-4229-4bee-aeba-ec8c408fb8fb/keys/ks-e998720b0e8e4ccc9ecf6a6e125ccce16356ba90b31540478a4d23fed4216203",
            "kek_name": "ks-e998720b0e8e4ccc9ecf6a6e125ccce16356ba90b31540478a4d23fed4216203",
            "kek_id": "e998720b0e8e4ccc9ecf6a6e125ccce16356ba90b31540478a4d23fed4216203",
            "kek_uuid": "da9cebd9-7b04-4412-b73f-d9193838f4ad",
            "meta": {
                "size": "big",
                "color": "blue"
            },
            "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": "Enabled"
        },
        {
            "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 2",
            "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-e998720b0e8e4ccc9ecf6a6e125ccce16356ba90b31540478a4d23fed4216202",
            "kek_name": "ks-e998720b0e8e4ccc9ecf6a6e125ccce16356ba90b31540478a4d23fed4216202",
            "kek_id": "e998720b0e8e4ccc9ecf6a6e125ccce16356ba90b31540478a4d23fed4216202",
            "kek_uuid": "efc5544d-53bd-42ab-b582-d6985458f37c",
            "meta": {
                "size": "big",
                "color": "blue"
            },
            "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": "Enabled"
        }
    ]
}
The sample output shows two DKE endpoints listed--one with the endpoint ID of b724005d-e821-4a54-8f69-2199e1499898 and the other with the endpoint ID of f222ffdf-80e1-4fd5-8f17-1b60a26dba5d.
Response Codes
| Response Code | Description | 
|---|---|
| 2xx | Success | 
| 4xx | Client errors | 
| 5xx | Server errors | 
Refer to HTTP status codes for details.