Edit my access keys

Add , enable, disableor remove the access keys for the account that is making the request. An account can have up to 10 access keys.

  • If add an unique access key is generated for account. Added access keys will always enabled.
  • If enable an existing access key will be enabled. When enabled, an access key is available for requests.
  • If disable an existing access key will be disabled. When disabled, requests using the disabled access key will fail.
  • If remove, an existing access key will be removed from COS.

Request

Security

Table 1. Roles capable of executing the Edit My Access Keys API method
Any Super User System Admin Security Admin Operator
any        

HTTP method

Add Key

POST /manager/api/{apiResponseType}/1.0/editMyAccessKeys.adm HTTP/1.1 Host:{manager.dsnet} action=add

Enable Key

POST /manager/api/{apiResponseType}/1.0/editMyAccessKeys.adm HTTP/1.1 Host:{manager.dsnet} action=enable&accessKeyId={accessKeyId}

Disable Key

POST /manager/api/{apiResponseType}/1.0/editMyAccessKeys.adm HTTP/1.1 Host:{manager.dsnet} action=disable&accessKeyId={accessKeyId}

Remove Key

POST /manager/api/{apiResponseType}/1.0/editMyAccessKeys.adm HTTP/1.1 Host:{manager.dsnet} action=remove&accessKeyId={accessKeyId}

Curl method

Add Key

curl -u {admin}:{password} -k “https://{manager.dsnet}/manager/api/{apiResponseType}/1.0/editMyAccessKeys.adm” -d “action=add”

Remove Key

curl -u {admin}:{password} -k “https://{manager.dsnet}/manager/api/{apiResponseType}/1.0/editMyAccessKeys.adm” -d “action=remove&accessKeyId={accessKeyId}”

Parameters

Table 2. Request Parameters for Edit My Access Keys (editMyAccessKeys) API method
Parameter Type Usage Default Description
action String Required   Must be add, enable, disable or remove for each action.
accessKeyId String action=enable,disable,remove   Used to identify the access key to which the action will be applied.

Response

Success or failure status. On a successful add, the generated access key ID is returned.

JSON response example

{
  “responseStatus”:“ok”,
  “responseHeader”:{
    “now”:{milliseconds from the UNIX epoch},
    “status”:“ok”,
    “requestId”:“U203bcCoCAcAABsSf9kAAABU”
  },
  “responseData”:{
    “accessKeyId”:“UdQzHQlMIjFPVKv1PzdX”
  }
}