Update User Credentials

 
MethodURIDescription
POST/v2.0/users/{userId}/OS-KSADM/credentials/OS-KSEC2:ec2Credentials

Updates credentials for a specified user.

Normal response codes: 200

Error response codes: identityFault (400, 500, ), badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), serviceUnavailable (503), badMediaType (415), itemNotFound (404)

 Request

This table shows the header parameters for the update user credentials request:

NameTypeDescription

X-Auth-Token

​String

(Required)

A valid authentication token.

This table shows the URI parameters for the update user credentials request:

NameTypeDescription

{userId}

​String

The user ID.

 

Example 4.67. Update 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.68. Update User Credentials: JSON request

{
    "OS-KSEC2-ec2Credentials":{
        "username": "test_user",
        "secret": "aaaaa",
        "signature": "bbb"
    }
}

 Response

 

Example 4.69. Update 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.70. Update User Credentials: JSON response

{
    "OS-KSEC2-ec2Credentials":{
        "username": "test_user",
        "secret": "aaaaa",
        "signature": "bbb"
    }
}

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page

loading table of contents...