Dell Technologies ECS REST API

Search (SHIFT+S)




Get Keys Exist For User

GET /object/user-secret-keys/exist/{uid}/{namespace}

Returns indication if secret keys for the specified user and namespace exist.

uidValid user identifier to get the keys from
namespacethe namespace to get all secret keys

Required Roles

Requires one of the following roles:

  • SYSTEM_ADMIN

  • NAMESPACE_ADMIN


Response Body

Indication if secret keys exist or not.

Field Description Type Notes
user_secret_keys
secret_key_1 First secret key String
secret_key_1_exist First secret key exist Boolean
key_timestamp_1 First key creation timestamp in ISO-8601 format String Valid Values:
  •  yyyy-MM-dd'T'HH:mm'Z'
key_expiry_timestamp_1 First key expiration timestamp in ISO-8601 format String Valid Values:
  •  yyyy-MM-dd'T'HH:mm'Z'
secret_key_2 Second secret key String
secret_key_2_exist Second secret key exist Boolean
key_timestamp_2 Second key creation timestamp in ISO-8601 format String Valid Values:
  •  yyyy-MM-dd'T'HH:mm'Z'
key_expiry_timestamp_2 Second key expiry timestamp in ISO-8601 format String Valid Values:
  •  yyyy-MM-dd'T'HH:mm'Z'
link User secret key reference link

Examples

Request
GET https://192.168.0.0:4443/object/user-secret-keys/exist/dd/ns1 HTTP/1.1

Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<user_secret_keys>
    <secret_key_1></secret_key_1>
    <secret_key_1_exist>true</secret_key_1_exist>
    <secret_key_2></secret_key_2>
    <secret_key_2_exist>false</secret_key_2_exist>
    <key_expiry_timestamp_1></key_expiry_timestamp_1>
    <key_expiry_timestamp_2></key_expiry_timestamp_2>
    <key_timestamp_1></key_timestamp_1>
    <key_timestamp_2></key_timestamp_2>
    <link rel="self" href="/object/secret-keys"/>
</user_secret_keys>