Delete All Keys
POST /object/secret-keys/deactivate
Deletes the specified secret key for the authenticated user that makes the request.
Required Roles
This call has no restrictions.
Request Payload
<secret_key_delete_param>
<secret_key></secret_key>
</secret_key_delete_param>
{
"secret_key": ""
}
All parameters are required unless otherwise stated.
Field |
Description |
Type |
Notes |
secret_key_delete_param |
|
|
|
secret_key |
Secret key to be deleted |
String |
|
Response Body
Response indicating Success or Failure to delete secret keys
Examples
Request
POST https://192.168.0.0:4443/object/secret-keys/deactivate HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
<?xml version="1.0" encoding="UTF-8"?>
<secret_key_delete_param>
<secret_key>b2qffCUYCyyKrwoaEKkb1XoYB4m82eonbgwUjjxs</secret_key>
</secret_key_delete_param>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
Request
POST https://192.168.0.0:4443/object/secret-keys/deactivate.json HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
{"secret_key": "b2qffCUYCyyKrwoaEKkb1XoYB4m82eonbgwUjjxs"}
Response
HTTP/1.1 200 OK
Content-Type: application/json
Request
cat body.txt
<?xml version="1.0" encoding="UTF-8"?>
<secret_key_delete_param>
<secret_key>b2qffCUYCyyKrwoaEKkb1XoYB4m82eonbgwUjjxs</secret_key>
</secret_key_delete_param>
curl -H $token -H "Content-Type: application/xml" -X POST --data @body.txt https://$nodeIp:4443/object/secret-keys/deactivate
Response
HTTP/1.1 200 OK
Content-Type: application/xml