Note:
This is a legacy API which has been hidden and will no longer be updated. We recommend using the new CMQ API 3.0 which is standardized and faster. Splicing rule
A Tencent Cloud API request URL is constructed as follows:
Note:
Https:// + request domain name + request path +? + final request parameter string
The elements of each URL are described as follows:
Request domain name: The request domain name is determined by the product to which the API belongs or the module of the product to which the API belongs. The request domain name for different products or modules of different products may be different. For example, the request domain name for querying instance list (DescribeInstances) of Tencent Cloud CVM is as follows: cvm.api.qcloud.com
. For more information about the request domain names for different products, see the relevant API documents.
Request path: Tencent Cloud API corresponds to the request path of a product. Generally speaking, a product corresponds to a fixed path (for example, Tencent Cloud CVM request path is fixed as /v2/index.php
).
Final request parameter string: The request parameter string of the interface includes common request parameters and interface request parameters.
Usage Examples
The final request URL for a TencentCloud API is as follows:
With Tencent Cloud CVM Querying the List of Instances Take the API (DescribeInstances) as an example. The first six parameters are common request parameters, and the last six parameters are API request parameters. https://cvm.api.qcloud.com/v2/index.php?
Action=DescribeInstances
&SecretId=xxxxxxx
&Region=gz
&Timestamp=1465055529
&Nonce=59485
&Signature=mysignature //Common request parameters
&instanceIds.0=ins-0hm4gvho
&instanceIds.1=ins-8oby8q00
&offset=0
&limit=20
&status=2
&zoneId=100003 //API Request Parameters
Was this page helpful?