v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13174266.2 KB
projects

Destroys a SecretVersion. Sets the state of the SecretVersion to DESTROYED and irrevocably destroys the secret data.

post/v1/{+name}:destroy

Path parameters

namestring required

Required. The resource name of the SecretVersion to destroy in the format projects/*/secrets/*/versions/* or projects/*/locations/*/secrets/*/versions/*.

Request body

etagstring

Optional. Etag of the SecretVersion. The request succeeds if it matches the etag of the currently stored secret version object. If the etag is omitted, the request succeeds.

Response

Successful response