Method | URI | Description |
---|---|---|
POST | /v2.0/users/{userId}/OS-OS-KSS3/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 credential. request:
Name | Type | Description |
---|---|---|
| String (Required) | A valid authentication token. |
This table shows the URI parameters for the add user credential. request:
Name | Type | Description |
---|---|---|
| String | The user ID. |
Example 4.73. Add User Credential.: XML request
<?xml version="1.0" encoding="UTF-8"?> <s3Credentials xmlns="http://docs.openstack.org/identity/api/ext/OS-KSS3/v1.0" username="testuser" key="aaaaa" signature="bbbbb"/>
Example 4.74. Add User Credential.: JSON request
{ "OS-KSS3:s3Credentials":{ "username": "test_user", "secret": "aaaaa", "signature": "bbb" } }
Example 4.75. Add User Credential.: XML response
<?xml version="1.0" encoding="UTF-8"?> <s3Credentials xmlns="http://docs.openstack.org/identity/api/ext/OS-KSS3/v1.0" username="testuser" key="aaaaa" signature="bbbbb"/>
Example 4.76. Add User Credential.: JSON response
{ "OS-KSS3:s3Credentials":{ "username": "test_user", "secret": "aaaaa", "signature": "bbb" } }