Method | URI | Description |
---|---|---|
POST | /v2.0/users/{userId}/OS-KSADM/credentials{?marker,limit} | Adds a credential to a user. |
Normal response codes: 201
Error response codes: identityFault (400, 500, …), badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), serviceUnavailable (503), badMediaType (415), itemNotFound (404)
This table shows the header parameters for the add user credentials request:
Name | Type | Description |
---|---|---|
| String (Required) | A valid authentication token. |
This table shows the URI parameters for the add user credentials request:
Name | Type | Description |
---|---|---|
| String | The user ID. |
Example 4.61. Add User Credentials: XML request
<?xml version="1.0" encoding="UTF-8"?> <ec2Credentials xmlns="http://docs.openstack.org/identity/api/ext/OS-KSEC2/v1.0" username="testuser" key="aaaaa" signature="bbbbb"/>
Example 4.62. Add User Credentials: JSON request
{ "OS-KSEC2-ec2Credentials":{ "username": "test_user", "secret": "aaaaa", "signature": "bbb" } }
Example 4.63. Add User Credentials: XML response
<?xml version="1.0" encoding="UTF-8"?> <ec2Credentials xmlns="http://docs.openstack.org/identity/api/ext/OS-KSEC2/v1.0" username="testuser" key="aaaaa" signature="bbbbb"/>
Example 4.64. Add User Credentials: JSON response
{ "OS-KSEC2-ec2Credentials":{ "username": "test_user", "secret": "aaaaa", "signature": "bbb" } }