Common parameters include common request parameters and common response parameters. You can call a Dynamic Route for CDN (DCDN) API operation by sending an HTTP GET request to the endpoint of the DCDN API. When you call an operation, you must specify the request parameters as required by the operation. After the request is processed, the system returns a result.

Note The following code has been formatted to improve readability.
Parameter Type Required Description
Format String No The format in which to return the response. Valid values: JSON and XML. Default value: XML.
Version String Yes The version number of the API. The date format is YYYY-MM-DD. The current version is 2018-01-15.
AccessKeyId String Yes The AccessKey ID provided to you by Alibaba Cloud.
Signature String Yes The signature string of the current request. For more information about how signatures are calculated, see Signature method.
SignatureMethod String Yes The encryption method of the signature string. Set the value to HMAC-SHA1.
Timestamp String Yes The timestamp of the request. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. For example, you can set this parameter to 2018-05-10T12:00:00Z. This value represents 20:00:00 on Thursday, May 10, 2018 in UTC+08:00.
SignatureVersion String Yes The version of the signature algorithm. Set the value to 1.0.
SignatureNonce String Yes A unique, random number used to prevent replay attacks. You must use different numbers for different requests.

Sample requests

Common response parameters

API responses use the HTTP response format where a 2XX status code indicates a successful call and a 4XX or 5XX status code indicates a failed call. Responses can be returned in either the JSON or XML format. You can specify the response format in the request. The default response format is XML.

Every response returns a unique RequestID regardless of whether the call is successful.

Sample responses in XML format

<? xml version="1.0" encoding="utf-8"? > 
    <!--Result Root Node-->
    <Operation Name+Response>
        <!--Request ID-->
        <!--Response Data-->
    </Operation Name+Response>

Sample responses in JSON format

    /*Response Data*/

A 4xx or 5xx status code indicates a failed call. The request ID, host ID, error code, and error message are returned to you.

You can troubleshoot the error based on the error code. For more information, see Error codes. If the error persists, you can submit a ticket and provide the host ID and request ID to get technical support from Alibaba Cloud.

Sample responses in XML format

<? xml version="1.0" encoding="UTF-8"? >
<Message>The specified action is not supported. </Message></Error>

Sample responses in JSON format

"RequestId": "8906582E-6722-409A-A6C4-0E7863B733A5",    
"HostId": "",    
"Code": "OperationDenied",    
"Message": "The specified action is not supported."