Getting Details of a SAP Key Version
Use the get /v1/cckm/sap/keys/{id}/versions/{versionID} API to view the key version details. Specify the key ID and the version ID.
Syntax
curl -k '<IP>/api/v1/cckm/sap/keys/{id}/versions/{versionID}' -H 'Authorization: Bearer AUTHTOKEN' --compressed
Here, {id} is the resource ID of the key ID and {versionID} is the resource ID of the key version.
Request Parameters
| Parameter | Type | Description | 
|---|---|---|
| AUTHTOKEN | string | Authentication token. | 
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/sap/keys/442a7d65-1f27-4d2e-96b3-c8144b363eb7/versions/%224125bc1c-5502-484a-9475-ef86feaa6e3b%22' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiI3ZjRlNmJkNi0wMzgzLTQ4MGMtYWZmZS0wYTQxNDgzZmVlNmUiLCJzdWIiOiJsb2NhbHxlNjM3NTVjOS01YzRhLTQ0NzUtOWI0Zi0wN2JjNzQxYjQ1MGEiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiOWMxMjQyOTQtMmM1Mi00ZmJmLWExNWEtMGZlNzkxZmI4YzNlIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImMwNjJhNmE1LTg1NDQtNDRjMS05ZDMwLTZjZDZkYTdkY2Y3OSIsImlhdCI6MTYzNDU1NjYwMywiZXhwIjoxNjM0NTU2OTAzfQ.lcFZLheFbNnNR3VvQAigSe6u6BL4_NOEAwkNQROn0Bs' --compressed
Example Response
{
    "id":"d1679f07-38e0-4521-911c-90118e9497c4",
    "uri":"kylo:kylo:cckm:SAP_KEY_VERSION:d1679f07-38e0-4521-911c-90118e9497c4",
    "account":"kylo:kylo:admin:accounts:kylo",
    "createdAt":"2021-10-04T14:07:01.000529683Z",
    "updatedAt":"2021-10-04T14:07:00.99243925Z",
    "cloud_name":"SAP",
    "tenant":"thales-preprod",
    "groupId":"2f0243f5-cce5-45d9-b6fe-fdcfc0d50fde",
    "sap_key_id":"806f0dc7-e5d0-4695-b68b-1148bda4a63e",
    "origin":"native",
    "enabled":true,
    "operations":[
        "DECRYPT",
        "ENCRYPT"
    ],
    "version":1,
    "meta":{
        "created":"2021-10-04T14:07:00.822338",
        "creatorId":"613738c2-550d-4881-b5a8-c230fcffcf60",
        "creatorName":"creator.name@xyz.com"
    }
}
Response Codes
| Response Code | Description | 
|---|---|
| 2xx | Success | 
| 4xx | Client errors | 
| 5xx | Server errors | 
Refer to HTTP status codes for details.