Common Request Parameters
Last updated: 2018-08-14 18:07:10
Common request parameters are the parameters common to all APIs, and will not be discussed in the document for each API unless it is necessary to do so. They are required in each request for the request to be initiated normally. The first letter of each common request parameter is uppercase so that the parameter can be differentiated from API request parameters.
Common request parameters are listed as follows:
|Action||String||The name of the API for the desired operation. For example, if you want to call the API Query Scaling Group List, the Action parameter is DescribeInstances.||Yes|
|Region||String|| Region parameter that is used to identify the region to which the instance you want to operate belongs. The parameter values for regions are as follows: |
Beijing: bj, Guangzhou: gz, Shanghai: sh, Hong Kong: hk, North America: ca.
Note: Generally, this parameter is required, unless otherwise indicated in the relevant API.
|Timestamp||UInt||The current UNIX timestamp that records the time at which the API request was initiated.||Yes|
|Nonce||UInt||A random positive integer that is used in conjunction with Timestamp to prevent replay attacks.||Yes|
|SecretId||String||The SecretId which is used for identifying identity and applied for on Cloud API Key. A SecretId corresponds to a unique SecretKey, which is used to generate the request Signature. For more information, refer to Signature Method.||Yes|
|Signature||String||Request signature, which is used to verify the legitimacy of the request and automatically generated by system according to input parameters. For more information, refer to Signature Method.||Yes|
Assuming that the user wants to query the list of CVM instances for Guangzhou, the request link may be as follows:
https://cvm.api.qcloud.com/v2/index.php? Action=DescribeInstances &SecretId=xxxxxxx &Region=gz &Timestamp=1465055529 &Nonce=59485 &Signature=mysignature &<API Request Parameter>
A complete request needs two types of request parameters: common request parameters and API request parameters. Only six common request parameters are listed above. For information on API parameters, refer to API Request Parameters section.