Common parameters

Updated at:
Copy as MD

Every TSDB Operations and Maintenance (O&M) API call requires a set of public request parameters. After the call completes, a set of public response parameters is returned regardless of whether the call succeeded or failed.

Public request parameters

Include the following parameters in every O&M API request.

ParameterTypeRequiredDescription
ActionStringYesName of the API operation to call.
VersionStringYesAPI version in YYYY-MM-DD format. The current version is 2017-06-01.
AccessKeyIdStringYesYour Alibaba Cloud AccessKey ID.
SignatureStringYesThe request signature.
SignatureMethodStringYesSignature algorithm. Currently, only HMAC-SHA1 is supported.
SignatureVersionStringYesSignature algorithm version. The current version is 1.0.
SignatureNonceStringYesA unique random string to prevent replay attacks. Use a different value for each request.
TimestampStringYesRequest timestamp in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ), using UTC time. For example, 2013-08-15T12:00:00Z.
RegionIdStringYesThe region where your TSDB instance resides.
FormatStringNoFormat of the returned data. Valid values: JSON (recommended), XML.

Public response parameters

Every API response includes a RequestId field — a globally unique identifier for that request. Use RequestId when troubleshooting API issues.

HTTP status codes

Status codeMeaning
2xxThe request succeeded.
4xxThe request failed due to a client error. Check the error code and message in the response body.
5xxThe request failed due to a server error. Contact Alibaba Cloud Customer Service with the HostId and RequestId.

Successful response format

A successful response contains RequestId and the operation-specific data. Both JSON and XML formats are supported. JSON is recommended.

JSON

{
  "RequestId": "4C467B38-3910-447D-87BC-AC049166F216",
  ...
}

XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Root node of the response data -->
<API operation name+Response>
  <!-- Request tag -->
  <RequestId>4C467B38-3910-447D-87BC-AC049166F216</RequestId>
  <!-- Response data -->
  ...
</API operation name+Response>
Response examples in this documentation are formatted for readability. Actual responses do not contain line breaks or indentation.

Error response format

When a request fails, the response body contains the following fields.

FieldTypeAlways returnedDescription
RequestIdStringYesThe request ID. Provide this to Alibaba Cloud Customer Service when reporting issues.
HostIdStringYesThe ID of the endpoint that handled the request.
CodeStringYesThe error code identifying the type of error.
MessageStringYesA human-readable description of the error.

JSON

{
  "RequestId": "7463B73D-35CC-4D19-A010-6B8D65D242EF",
  "HostId": "hitsdb.aliyuncs.com",
  "Code": "UnsupportedOperation",
  "Message": "The specified action is not supported."
}

XML

<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <RequestId>8906582E-6722-409AA6C4-0E7863B733A5</RequestId>
  <HostId>hitsdb.aliyuncs.com</HostId>
  <Code>UnsupportedOperation</Code>
  <Message>The specified action is not supported.</Message>
</Error>

If you cannot identify the cause of an error, contact Alibaba Cloud Customer Service and provide the HostId and RequestId.