Re-importing a Google Cloud Key Version
Use the post /v1/cckm/google/keys/{id}/versions/{versionID}/re-import
API to re-import the DESTROYED or IMPORT_FAILED GCP Key Version of a Google Cloud key.
Syntax
curl -k '<IP>/api/v1/cckm/google/keys/{id}/versions/{versionID}/re-import' -X POST -H 'Authorization: Bearer AUTHTOKEN' -H 'accept: application/json' --compressed
Here, {id}
represents the resource ID of the parent Google Cloud key and {versionID}
represents the resource ID of the key version on the CipherTrust Manager.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
source_key_id (optional) | string | ID of the key that will be uploaded from an external key source. |
source_key_tier (optional) | string | Key source from where the key will be uploaded. The options can be: • local : CipherTrust Manager• external-cm : External CipherTrust Manager• dsm : DSM• hsm-luna : Luna HSM (FM-enabled Luna HSM is not supported as a key source). |
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/google/keys/ce23f9be/versions/b2d9/re-import' -X POST -H 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJlYmVjM2VkYi00YWExLTRkMzEtODNkMS05ZTI3YzI1ZjlkMTIiLCJzdWIiOiJsb2NhbHw5NWI3NmU3Yi0yNWE4LTQyYzYtYWFlNS01Yjg4NmI0NjA4MWUiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJjbGllbnRfaWQiOiI4MzdjODQwZC03NWRkLTRiNGYtYTMxOC03OWNiMTZjYTI0OGQiLCJjbGllbnRfbmFtZSI6ImFwaS1wbGF5Z3JvdW5kIiwiY2xpZW50X3R5cGUiOiJwdWJsaWMiLCJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiODM3Yzg0MGQtNzVkZC00YjRmLWEzMTgtNzljYjE2Y2EyNDhkIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6IjI1YjhmNTM0LWRjNjUtNGU5NS05NmE2LTJjODFkMDEwYzZkZiIsImlhdCI6MTcxMjI1NDA4OCwiZXhwIjoxNzEyMjU0Mzg4fQ.rGJPo2Sb_s3Q2aeOvNhcmwsabJRtjEkOAdU5piwTs4uVYbXtoDvAYRME7VC30l_zKMUgTXXp6l3K4zzT4joiNQ' -H 'accept: application/json' --compressed
Example Response
{
"id": "ce23f9be-287e-4b15-b2d9-c42362de6ef8",
"uri": "kylo:kylo:cckm:gcp-key-versions:ce23f9be-287e-4b15-b2d9-c42362de6ef8",
"account": "kylo:kylo:admin:accounts:kylo",
"createdAt": "2021-07-09T09:00:55.019909334Z",
"updatedAt": "2021-07-09T09:00:55.01855799Z",
"parent_key_name": "projects/cckm/locations/global/keyRings/Cckm-test/cryptoKeys/TestKey",
"parent_key_id": "82436f2b-9d09-48f5-aca5-49433cad79dc",
"key_ring_name": "projects/cckm/locations/global/keyRings/Cckm-test",
"version": 2,
"is_primary": true,
"key_material_origin": "cckm",
"deleted": false,
"gone": false,
"gcp_cloud_resource_name": "projects/cckm/locations/global/keyRings/Cckm-test/cryptoKeys/TestKey/cryptoKeyVersions/2",
"gcp_key_version_params": {
"name": "projects/cckm/locations/global/keyRings/Cckm-test/cryptoKeys/TestKey/cryptoKeyVersions/2",
"state": "ENABLED",
"protectionLevel": "SOFTWARE",
"algorithm": "GOOGLE_SYMMETRIC_ENCRYPTION",
"createTime": "2021-07-09T09:02:36.11438554Z",
"generateTime": "2021-07-09T09:02:36.11438554Z",
"reimportEligible": true
}
}
The DESTROYED or IMPORT_FAILED GCP Key Version of a Google Cloud key is re-imported.
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.