Common Request Parameters

Last updated: 2020-04-12 18:36:59

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:

Name Type Description Required
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:

Was this page helpful?

Was this page helpful?

  • Not at all
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful
Send Feedback