Delete Key For User
POST /object/user-secret-keys/{uid}/deactivate
Deletes a specified secret key for a user. If the system user scope is NAMESPACE, the user's namespace must be supplied.
uid | Valid user identifier to delete the key from |
Required Roles
Requires one of the following roles:
SYSTEM_ADMIN
NAMESPACE_ADMIN
Request Payload
<user_secret_key_delete>
<secret_key></secret_key>
<namespace></namespace>
</user_secret_key_delete>
{
"secret_key": "",
"namespace": ""
}
All parameters are required unless otherwise stated.
Field |
Description |
Type |
Notes |
user_secret_key_delete |
|
|
|
secret_key |
Identity of the secret key |
String |
|
namespace |
User qualifier if the User Scope is NAMESPACE |
String |
|
Response Body
Response indicating success or failure to delete secret key
Examples
Request
POST https://192.168.0.0:4443/object/user-secret-keys/testlogin/deactivate HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
<?xml version="1.0" encoding="UTF-8"?>
<user_secret_key_delete>
<secret_key>R6JUtI6hK2rDxY2fKuaQ51OL2tfyoHjPp8xL2y3T</secret_key>
<namespace>s3</namespace>
</user_secret_key_delete>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
Request
POST https://192.168.0.0:4443/object/user-secret-keys/testlogin/deactivate.json HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
{
"user_secret_key_delete": {
"secret_key": "R6JUtI6hK2rDxY2fKuaQ51OL2tfyoHjPp8xL2y3T",
"namespace": "s3"
}
}
Response
HTTP/1.1 200 OK
Content-Type: application/json
Request
cat body.txt
<?xml version="1.0" encoding="UTF-8"?>
<user_secret_key_delete>
<secret_key>R6JUtI6hK2rDxY2fKuaQ51OL2tfyoHjPp8xL2y3T</secret_key>
<namespace>s3</namespace>
</user_secret_key_delete>
curl -H $token -H "Content-Type: application/xml" -X POST --data @body.txt https://$nodeIp:4443/object/user-secret-keys/testlogin/deactivate
Response
HTTP/1.1 200 OK
Content-Type: application/xml