A newer release of this product is available.
Manage authentication keys (end-users)
Configure public keys for end-user accounts using these endpoints. Specify details such as the owner UUID, account name, and index to manage the keys associated with each account within a storage virtual machine (SVM).
Overview
This API configures the public keys for end-user (non-cluster admin) accounts. Specify the owner UUID, the user account name, and the index in the URI path. The owner UUID corresponds to the UUID of the SVM containing the user account associated with the public key and can be obtained from the response body of the GET request performed on the API "/api/svm/svms".
The index value corresponds to the public key that needs to be modified or deleted (it is possible to create more than one public key for the same user account).
Examples
Retrieving the specific configured public key for user accounts
# The API:
GET "/api/security/authentication/publickeys/{owner.uuid}/{account.name}/{index}"
# The call:
curl -k https://<mgmt-ip>/api/security/authentication/publickeys/513a78c7-8c13-11e9-8f78-005056bbf6ac/pubuser4/0
Updating the public key and comment for user accounts
# The API:
PATCH "/api/security/authentication/publickeys/{owner.uuid}/{account.name}/{index}"
# The call:
curl -k https://<mgmt-ip>/api/security/authentication/publickeys/d49de271-8c11-11e9-8f78-005056bbf6ac/pubuser1/0 --request PATCH --data '{ "comment": "Cserver-modification","public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCmSLP/FeiT1J4Fb4GNVO4ioa1NIUHWeG08+anDbFke3JcFT5JqBn0QZiG0uF0bqepken/moVKZg8iQng1arjP4ULhhje/LwDuUbaB7kvtPL2gyzAX1qFYnBJ5R1LXja25Z4xeeaXUBJjhUmvpfque0TxbvpaG5V9rFTzVg9ccjBnkBchg3EkhF4VtHmrZNpTDAUOBAz69FRYXYz2ExoCHWqElHBJep9D0DLN0XtzQA0IF9hJck6xja5RcAQ6f9pLMCol9vJiqpcBAjkUmg1qH5ZNHsgDQ7dtGNGJw45zqXHPAy9z8yKJuIsdK2/4iVYLDL8mlHFElgeADn6OSxuij1" }'
Deleting the public key for user accounts
# The API:
DELETE "/api/security/authentication/publickeys/{owner.uuid}/{account.name}/{index}"
# The call:
curl -k https://<mgmt-ip>/api/security/authentication/publickeys/d49de271-8c11-11e9-8f78-005056bbf6ac/pubuser1/0 --request DELETE