Scheduling Deletion of an OCI Key Version
Use the post /v1/cckm/oci/keys/{id}/versions/{versionID}/schedule-deletion
API to schedule automatic deletion of an OCI key version in a specified number of days. Specify the key ID and the version ID.
Syntax
Here, {id}
is the resource ID of the OCI key and {versionID}
is the resource ID of the key version.
Note that the resource id
is different from key_id
on OCI. Run the get /v1/cckm/oci/keys
API to view the resource ID (id
) of the OCI key on the CipherTrust Manager. Similarly, run the get /v1/cckm/oci/keys/{id}/versions
API to get the resource ID of an OCI key version.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authentication token. |
days | number | Number of days after which the key version will be deleted. The number of days can be 7 to 30. The default value is 7 . |
Example Request
Example Response
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.