Uses a client token to add a database instance.

Request parameters

Parameter Type Required Example Description
Action String No AddHDMInstanceByToken

The operation that you want to perform. Set the value to AddHDMInstanceByToken.

Uid String No hdm_df02bbfd3bd64c7bb1982e5323a6

The ID of the account. On the Security Settings page in the Alibaba Cloud account management center, you can obtain the ID of the logon account.

accessKey String No None

A hidden parameter.

signature String No None

A hidden parameter.

timestamp String No None

A hidden parameter.

__context String No None

A hidden parameter.

skipAuth String No None

A hidden parameter.

UserId String No None

A hidden parameter.

Token String No 111111

The client token. The token is a unique random character string generated by the client.

Username String No test****

The username.

Password String No 122****

The password for the username.

Response parameters

Parameter Type Example Description
RequestId String B6D17591-B48B-4D31-9CD6-9B9796B2****

The message returned for the request.

Note If the request was successful, Successful was returned. If the request failed, an error message that contains an error code was returned.
Message String Successful

The ID of the request.

Synchro String None

A hidden parameter.

Data String "Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true }"Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true }"Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true }"Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true }"Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true }

The list of detailed information, including the error codes and the number of error messages.

Code String 200

The returned status code.

Success String true

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.

Examples

Sample requests

http(s)://das.cn-shanghai.aliyuncs.com//?Action=AddHDMInstanceByToken
&Uid=hdm_df02bbfd3bd64c7bb1982e5323a6
&accessKey=None
&signature=None
&timestamp=None
&__context=None
&skipAuth=None
&UserId=None
&Token=111111
&Username=test****
&Password=122****
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<AddHDMInstanceByTokenResponse>
    <RequestId>B6D17591-B48B-4D31-9CD6-9B9796B2****</RequestId>
    <Message>Successful</Message>
    <Synchro>None</Synchro>
    <Data>"Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true }"Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true }"Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true }"Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true }"Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true }</Data>
    <Code>200</Code>
    <Success>true</Success>
</AddHDMInstanceByTokenResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "B6D17591-B48B-4D31-9CD6-9B9796B2****",
  "Message" : "Successful",
  "Synchro" : "None",
  "Data" : "\"Data\": { \"total\": 1, \"list\":[...] }, \"Code\": 200, \"Success\": true }\"Data\": { \"total\": 1, \"list\":[...] }, \"Code\": 200, \"Success\": true }\"Data\": { \"total\": 1, \"list\":[...] }, \"Code\": 200, \"Success\": true }\"Data\": { \"total\": 1, \"list\":[...] }, \"Code\": 200, \"Success\": true }\"Data\": { \"total\": 1, \"list\":[...] }, \"Code\": 200, \"Success\": true }",
  "Code" : "200",
  "Success" : "true"
}

Errors codes

HTTP status code Error code Error message Description
400 InvalidParams The request parameters are invalid. The error message returned because the specified request parameters are invalid.

For a list of error codes, visit the API Error Center.