Deleting OCI Vaults
Use the delete /v1/cckm/oci/vaults/{id}
API to delete an OCI vault from the CCKM.
Syntax
curl -k '<IP>/api/v1/cckm/oci/vaults/{id}' -X DELETE -H 'Authorization: Bearer AUTHTOKEN' --compressed
Here, {id}
is the resource ID of the OCI vault on the CipherTrust Manager. Run the get /v1/cckm/oci/vaults
API to view the resource ID (id
) of the OCI vaults added to the CipherTrust Manager. Note that this resource id
is different from the vault_id
on OCI.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authentication token. |
Example Request
curl -k 'https://127.0.0.1/api/v1/cckm/oci/vaults/f3f71f32-a89f-4c0a-be14-44e324b38f63' -X DELETE -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJjZmU5MGJkZC01MWQwLTQ3NDctODNkMi1kODA5ZmNmOGQ4M2IiLCJzdWIiOiJsb2NhbHxiNDhkNDliNC00NjMyLTQ4YmUtOTdiZC04N2MwODg1YjU3YjUiLCJpc3MiOiJreWxvIiwiYWNjIjoia3lsbyIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiY3VzdCI6eyJkb21haW5faWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJncm91cHMiOlsiYWRtaW4iXSwic2lkIjoiMDk4MzZmMjQtNzdmMS00YzUxLTgxYzktNTczNWZkYmE3OTMzIiwiem9uZV9pZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCJ9LCJqd3RpZCI6ImY1MDZkMmU4LWFjNjMtNDE0Yi1hNzUxLTFiODAyZjJiYTQ4NSIsImlhdCI6MTYzNDcwOTUxMywiZXhwIjoxNjM0NzA5ODEzfQ.FrDF64vD0Q1S_k0AM3hfJ6W3QGyOj2gF4JRF4CZJ5ZA' -H 'accept: application/json' --compressed
Example Response
204
The OCI vault with the resource ID f3f71f32-a89f-4c0a-be14-44e324b38f63
is deleted from the CipherTrust Manager.
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.