Canceling Scheduled Destruction of a Google Cloud Key Version
Use the post /v1/cckm/google/keys/{id}/versions/{versionID}/cancel-schedule-destroy
API to cancel the scheduled destruction of a version of a Google Cloud key with the given ID. This is also known as restoring a version scheduled for destruction. The version state
is set to DISABLED
.
Only the scheduled destruction of a Google Cloud key version with the DESTROY_SCHEDULED
state can be canceled.
Syntax
Here, {id}
represents the resource ID of the parent Google Cloud key and {versionID}
represents the resource ID of the version to be restored.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
Example Request
Example Response
The sample output displays that a version with the ID e2f79e23-749d-4579-bef1-5777a4651e9e
of a Google Cloud key with the ID ecc73bfb-7605-4263-abb8-84fe431d35fb
is set to DISABLED
(restored).
To use the version, enable it by running the /v1/cckm/google/keys/{id}/versions/{versionID}/enable
API.
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.