Domain name for API request: dts.intl.tencentcloudapi.com.
This API is used to get the information list of data subscription instances. Pagination is enabled by default with 20 results returned each time.
A maximum of 100 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeSubscribeJobs. |
Version | Yes | String | Common Params. The value used for this API: 2021-12-06. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
SubscribeId | No | String | Subscription ID (exact match) |
SubscribeName | No | String | Subscription name (prefix fuzzy match) |
InstanceId | No | String | Subscribed cloud database instance ID (exact match) |
PayType | No | Integer | Payment method. Valid values: 0 (monthly subscription); 1 (pay-as-you-go). |
Product | No | String | Subscribed database product. Currently, cynosdbmysql, mariadb, mongodb, mysql, percona, tdpg, tdsqlpercona are supported. |
Status.N | No | Array of String | Data subscription lifecycle status. Valid values: normal, isolating, isolated, offline, post2PrePayIng. |
SubsStatus.N | No | Array of String | Data subscription status. Valid values: notStarted, checking, checkNotPass, checkPass, starting, running, error. |
Offset | No | Integer | Starting offset for returned results. Default value: 0. |
Limit | No | Integer | Number of results to be returned at a time. Default value: 20. Maximum value: 100. |
OrderDirection | No | String | Sorting order. Valid values: DESC, ASC. Default value: DESC, indicating descending by creation time. |
TagFilters.N | No | Array of TagFilter | Tag filter condition, the relationship between multiple TagFilters is and. |
Parameter Name | Type | Description |
---|---|---|
TotalCount | Integer | Number of eligible instances. |
Items | Array of SubscribeInfo | Information list of data subscription instances |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: dts.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeSubscribeJobs
<Common request parameters>
{
"Offset": 0,
"Limit": 10
}
{
"Response": {
"TotalCount": 1,
"Items": [
{
"SubscribeId": "subs-5ft0e2nrc0",
"SubscribeName": "name-5ft0e2nrc0",
"Topic": "topic-subs-5ft0e2nrc0-cdb-kdxona7h",
"Product": "mysql",
"InstanceId": "cdb-kdxona7h",
"InstanceStatus": "running",
"Status": "normal",
"SubsStatus": "running",
"ModifyTime": "2023-10-01 12:00:00",
"CreateTime": "2023-09-01 12:00:00",
"IsolateTime": "0000-00-00 00:00:00",
"ExpireTime": "2023-11-01 12:00:00",
"OfflineTime": "0000-00-00 00:00:00",
"PayType": 0,
"AutoRenewFlag": 0,
"Region": "ap-guangzhou",
"AccessType": "cdb",
"Endpoints": [
{
"DatabaseRegion": "ap-guangzhou",
"InstanceId": "cdb-kdxona7h",
"EncryptConn": "Encrypted",
"User": "root"
}
],
"SubscribeVersion": "kafka"
}
],
"RequestId": "cd6eebd0-9405-11ee-9689-216abbbe2107"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
AuthFailure | The CAM signature/authentication information is incorrect. |
AuthFailure.AuthFailureError | Authentication failed. |
FailedOperation | Operation failed. |
FailedOperation.FailedOperationError | The operation failed. |
InternalError | An internal error occurred. |
InternalError.InternalErrorError | An internal error occurred. |
InvalidParameter | The parameter is incorrect. |
InvalidParameter.InvalidParameterError | The parameter is invalid. |
InvalidParameterValue | Invalid parameter value. |
InvalidParameterValue.InvalidParameterValueError | The parameter is invalid. |
OperationDenied | The operation was denied. |
OperationDenied.OperationDeniedError | The operation was denied. |
UnauthorizedOperation | The operation is unauthorized. |
UnauthorizedOperation.UnauthorizedOperationError | The operation is unauthorized. |
UnsupportedOperation | The operation is not supported. |
UnsupportedOperation.UnsupportedOperationError | The operation is not supported. |
Was this page helpful?