Viewing Versions of a Google Cloud Key
Use the get /v1/cckm/google/keys/{id}/versions
API to view the versions of a Google Cloud key with the given ID.
Syntax
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. |
Request Query Parameters
Parameter | Type | Description |
---|---|---|
version_id | string | ID of the version resource on the CipherTrust Manager. |
version | string | ID of the Google Cloud key version. This is different than version_id . |
name | string | Full name of the Google Cloud key version. for example, projects/gemalto-kyloeng/locations/global/keyRings/demo-key-ring/cryptoKeys/TestKey2/cryptoKeyVersions/1 . |
state | string | State of the Google Cloud key version. The states can be: • ABORTED • PENDING_GENERATION • ENABLED • DISABLED • DESTROY_SCHEDULED • DESTROYED |
algorithm | string | Algorithm of the Google Cloud key version. |
is_primary | boolean | Whether the version is the primary version of the Google Cloud key. Specify true to fetch the primary version, false to fetch non-primary versions. |
deleted | boolean | Whether the key version is deleted. |
gone | boolean | Whether the key version exists in the cloud. |
key_material_origin | string | Source of the key material. The origin of the key can be: • cckm: Key material is created on CCKM. • native: Key material is created on the Google Cloud. • unknown: Source of the key material is unknown. It is different than CCKM and the native cloud. |
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
Example Response
The sample output displays that the Google Cloud key with the ID 2f18eade-2fd9-4c48-85f7-550107729299
has only one version represented by "version": 1
.
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.