Getting Details of a Google Cloud Key
Use the get /v1/cckm/google/keys/{id}
API to view the details of a Google Cloud key with the given ID.
Syntax
curl -k '<IP>/api/v1/cckm/google/keys/{id}' -X POST -H 'Authorization: Bearer AUTHTOKEN' -H 'accept: application/json' --compressed
Here, {id}
represents the resource ID of the Google Cloud key on the CipherTrust Manager. The resource id
is different than key_id
.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/google/keys/2f18eade-2fd9-4c48-85f7-550107729299' -X POST -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiI5NDNkZjc1Yy0wOTc5LTRmMzAtODRhMy02OWM5NmRhMzA2MWYiLCJzdWIiOiJsb2NhbHwwMjM0OGZiNi0zNDY3LTQ3NmEtODIyMi00YTc5NDIyZmVhY2UiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiNmE3NzU0YjMtYThhYy00NjU5LTk4ZWMtYmZiY2VhYjE3Y2UwIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6Ijk5YWI4YzQyLTRkNGItNGFmMi05ZGE1LTU2OGUyOTNlMDdiNSIsImlhdCI6MTYyMDE4Njg4NywiZXhwIjoxNjIwMTg3MTg3fQ.zGVgODVVHcVz77gJ6OQnW_d9f1J-2AhW_is_Gj3z6cA' --compressed
Example Response
{
"id": "2f18eade-2fd9-4c48-85f7-550107729299",
"uri": "kylo:kylo:cckm:gcp-keys:3bb59aca-8969-4a85-adca-12e661327dd0",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2021-05-05T03:06:13.442981Z",
"updatedAt": "2021-05-05T03:45:00.217333Z",
"cloud_name": "gcp",
"key_id": "TestKey2",
"project_id": "gemalto-kyloeng",
"location_id": "global",
"key_ring_id": "cckm",
"key_ring_name": "projects/gemalto-kyloeng/locations/global/keyRings/demo-key-ring",
"gone": false,
"auto_rotate": false,
"status": "AVAILABLE",
"create_status": "AVAILABLE",
"gcp_params": {
"name": "projects/gemalto-kyloeng/locations/global/keyRings/demo-key-ring/cryptoKeys/TestKey2",
"primary": "",
"createTime": "2021-05-05T03:06:14.289985Z",
"labels": {
"dgf": "dfg"
},
"purpose": "ASYMMETRIC_DECRYPT",
"next_rotation_time": null,
"import_only": true,
"protectionLevel": "SOFTWARE",
"algorithm": "RSA_DECRYPT_OAEP_2048_SHA256"
},
"organization_name": "organizations/123456789012",
"organization_display_name": "123456789012"
}
The sample output displays the details of a Google Cloud key with the resource ID 2f18eade-2fd9-4c48-85f7-550107729299
.
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.