Schedules the deletion of a secret.
POST {{baseUrl}}/secrets/:secretId/actions/scheduleDeletion
Schedules the deletion of the specified secret. This sets the lifecycle state of the secret
to PENDING_DELETION
and then deletes it after the specified retention period ends.
Request Body
{"timeOfDeletion"=>"<dateTime>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
if-match | string | For optimistic concurrency control. In the PUT or DELETE call for a | |
resource, set the if-match parameter to the value of the etag from a | |||
previous GET or POST response for that resource. The resource will be | |||
updated or deleted only if the etag you provide matches the resource's | |||
current etag value. | |||
opc-request-id | string | Unique identifier for the request. If provided, the returned request ID | |
will include this value. Otherwise, a random request ID will be | |||
generated by the service. | |||
Content-Type | string | ||
Accept | string |