All Products
Search
Document Center

Cloud Data Transfer:Make API requests

Last Updated:Jan 10, 2022

To call a Cloud Data Transfer (CDT) API operation, you must send HTTPS GET requests to the endpoint of the CDT API. You must add the request parameters that correspond to the API operation being called. After you call the API operation, the system returns a response. Requests and responses are encoded in UTF-8.

Request syntax

CDT API operations use the RPC protocol. You can call CDT API operations by sending HTTPS requests.

Request syntax:

https://Endpoint/?Action=xx&Parameters

Parameter descriptions:

Endpoint: the endpoint of the CDT API. Set the value to cdt.aliyuncs.com.

·Action: the action that you want to perform. For example, to query the status of CDT for the billing of local data transfers, set the value to GetCdtServiceStatus.

Version: the version of the API to be used. The current CDT API version is 2021-08-13.

Parameters: request parameters that are separated by ampersands (&).

Request parameters include both common request parameters and API operation-specific parameters. Common parameters include the API version and authentication information.

The following example describes how to query the status of CDT for the billing of local data transfers by calling the GetCdtServiceStatus operation:

https://cdt.aliyuncs.com/?Action= GetCdtServiceStatus
&Version=2021-08-13
&Format=xml
&SignatureMethod=HMAC-SHA1
&SignatureNonce=9fb6fe5b-329f-48f5-8d0f-dfe769c0d3bc
&SignatureVersion=1.0
&AccessKeyId= xxxxxxxxxxxxx
&Signature=xxxxxxxxxxxxx
&Timestamp= 2021-09-07T09:26:09Z
…

Note: The preceding code is formatted to improve readability.