Common parameters

Updated at:

Common parameters include common request parameters and common response parameters.

Common request parameters

Name

Type

Required

Description

Format

String

No

The format of the response. Valid values:

  • JSON

  • XML (default)

Version

String

Yes

The API version. The value is in the YYYY-MM-DD format. Set the value to 2019-01-08.

Signature

String

Yes

The message signature.

SignatureMethod

String

Yes

The signature method. Set the value to HMAC-SHA1.

SignatureNonce

String

Yes

A unique random number. It is used to prevent replay attacks. Use a different random number for each request.

SignatureVersion

String

Yes

The signature algorithm version. Set the value to 1.0.

AccessKeyId

String

Yes

The ID of the AccessKey.

Timestamp

String

Yes

The timestamp of the request. The value is in the date format. Use UTC time in the ISO 8601 standard format: YYYY-MM-DDThh:mm:ssZ.

For example, 20:00:00 on January 10, 2013 (UTC+8) is represented as 2013-01-10T12:00:00Z.

The following example shows the common request parameters:

https://config.aliyuncs.com/?Action=DescribeDiscoveredResource
&Format=JSON
&Version=2019-01-08
&Signature=Pc5WB8gokVn0xfeu%2FZV%2BiNM1dg****
&SignatureMethod=HMAC-SHA1
&SignatureNonce=1521552885****
&SignatureVersion=1.0
&AccessKeyId=LTAI****************
&Timestamp=2020-06-01T12:00:00Z

Common response parameters

API responses use a unified format. Successful calls return data in either XML or JSON format. You can specify the response format in your request. The default format is XML. Each API call, whether successful or not, returns a unique RequestId.

  • An HTTP status code in the 2xx range indicates that the call is successful.

  • An HTTP status code in the 4xx or 5xx range indicates that the call failed.

The following examples show the common response parameters:

  • XML format

    <?xml version="1.0" encoding="utf-8"?> 
        <!--The root node of the result-->
        <API name+Response>
            <!--The request ID-->
            <RequestId>4C467B38-3910-447D-87BC-AC049166F216</RequestId>
            <!--The response data-->
        </API name+Response>                        
  • JSON format

    {
        "RequestId":"4C467B38-3910-447D-87BC-AC049166F216"
        /*The response data*/
    }