Disabling a Version of a Google Cloud Key
Use the post /v1/cckm/google/keys/{id}/versions/{versionID}/disable
API to disable a particular version of a Google Cloud key with the given ID. The state of a key version changes from ENABLED
to DISABLED
.
Syntax
Here, {id}
represents the resource ID of the parent Google Cloud key and {versionID}
represents the resource ID of the key version to be disabled.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
Example Request
Example Response
The sample output displays that the version with the ID e2f79e23-749d-4579-bef1-5777a4651e9e
of a Google Cloud key with the ID ecc73bfb-7605-4263-abb8-84fe431d35fb
has been DISABLED
.
To enable a DISABLED
version, run the /v1/cckm/google/keys/{id}/versions/{versionID}/enable
API. Refer to Enabling a Version of a Google Cloud Key.
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.