DeleteAccessKey

Last Updated: Aug 25, 2016

Interface description

 Deletes an access key of an RAM user.

Request parameters

Action

  • Type: String
  • Required: Yes
  • Description: Operation interface, required. The parameter value is “DeleteAccessKey”.

UserAccessKeyId

  • Type: String
  • Required: Yes
  • Description: ID of the access key to be deleted.

UserName

  • Type: String
  • Required: No
  • Description: User name.

Return parameters

  Only public parameters are returned. For details, see Public return parameters.

Required permissions

Action

ram:DeleteAccessKey

Resource

acs:ram:*:${AccountId}:user/${UserName}

Error messages

InvalidParameter.UserName.InvalidChars
  • HTTP Status:400
  • Error Message:The parameter - “UserName” contains invalid chars.
InvalidParameter.UserName.Length
  • HTTP Status:400
  • Error Message:The parameter - “UserName” beyond the length limit.
EntityNotExist.User
  • HTTP Status:404
  • Error Message:The user does not exist.
EntityNotExist.User.AccessKey
  • HTTP Status:404
  • Error Message:The user access key does not exist.

Operation examples

Request example

  1. https://ram.aliyuncs.com/?Action=DeleteAccessKey
  2. &UserName=zhangqiang
  3. &UserAccessKeyId=0wNEpMMlzy7szvai
  4. &<Public request parameters>

Return example

XML format

  1. <DeleteAccessKeyResponse>
  2. <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
  3. </DeleteAccessKeyResponse>

JSON format

  1. {
  2. "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
  3. }
Thank you! We've received your feedback.