DescribeSyncJobs

Last updated: 2020-03-16 10:30:47

PDF

1. API Description

Domain name for API request: dts.tencentcloudapi.com.

This API is used to query disaster recovery sync tasks initiated on the DTS platform.

A maximum of 20 requests can be initiated per second for this API.

Note: This API supports Finance regions. If the common parameter Region is a Finance region, a domain name with the Finance region needs to be specified, for example: dts.ap-shanghai-fsi.tencentcloudapi.com

2. Input Parameters

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 parameter. The value used for this API: DescribeSyncJobs.
Version Yes String Common parameter. The value used for this API: 2018-03-30.
Region Yes String Common parameter. For more information, please see the list of regions supported by the product.
JobId No String Disaster recovery sync task ID
JobName No String Disaster recovery sync task name
Order No String Sort by field. Value range: JobId, Status, JobName, CreateTime
OrderSeq No String Sorting order. Value range: ASC (ascending), DESC (descending)
Offset No Integer Offset. Default value: 0
Limit No Integer Number of the returned instances. Value range: [1, 100]. Default value: 20

3. Output Parameters

Parameter Name Type Description
TotalCount Integer Number of tasks
JobList Array of SyncJobInfo Array of task details
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Querying Disaster Recovery Sync Tasks

Input Example

https://dts.tencentcloudapi.com/?Action=DescribeSyncJobs
&Order=CreateTime
&OrderSeq=DESC
&Offset=0
&Limit=2
&<Common request parameter>

Output Example

{
  "Response": {
    "TotalCount": 2,
    "JobList": [
      {
        "JobId": "sync-blj8wnt1",
        "JobName": "okJobName1",
        "SyncOption": {
          "SyncObject": 1,
          "RunMode": 1,
          "SyncType": 3,
          "ConsistencyType": 1
        },
        "SrcAccessType": "cdb",
        "SrcDatabaseType": "mysql",
        "SrcInfo": {
          "InstanceId": "cdb-e28hhsjt",
          "Region": "ap-shanghai"
        },
        "DstAccessType": "cdb",
        "DstDatabaseType": "mysql",
        "DstInfo": {
          "InstanceId": "cdb-mdgezf4d",
          "Region": "ap-shanghai"
        },
        "Detail": {
          "StepAll": 0,
          "StepNow": 0,
          "Progress": "0",
          "CurrentStepProgress": "",
          "MasterSlaveDistance": 0,
          "SecondsBehindMaster": 0,
          "StepInfo": []
        },
        "Status": 4,
        "DatabaseInfo": "Array",
        "CreateTime": "2018-06-22 21:59:16",
        "StartTime": "0000-00-00 00:00:00",
        "EndTime": "0000-00-00 00:00:00"
      },
      {
        "JobId": "sync-2hoficf5",
        "JobName": "test_create_sync_jobName_0622_2100",
        "SyncOption": {
          "SyncObject": 2,
          "RunMode": 1,
          "SyncType": 3,
          "ConsistencyType": 1
        },
        "SrcAccessType": "cdb",
        "SrcDatabaseType": "mysql",
        "SrcInfo": {
          "InstanceId": "cdb-6ygku747",
          "Region": "ap-guangzhou"
        },
        "DstAccessType": "cdb",
        "DstDatabaseType": "mysql",
        "DstInfo": {
          "InstanceId": "cdb-ddlroj4d",
          "Region": "ap-shanghai"
        },
        "Detail": {
          "StepAll": 0,
          "StepNow": 0,
          "Progress": "",
          "CurrentStepProgress": "",
          "MasterSlaveDistance": 0,
          "SecondsBehindMaster": 0,
          "StepInfo": []
        },
        "Status": 1,
        "DatabaseInfo": "Array",
        "CreateTime": "2018-06-22 20:37:28",
        "StartTime": "0000-00-00 00:00:00",
        "EndTime": "0000-00-00 00:00:00"
      }
    ],
    "RequestId": "1ae80092-45be-4cf2-b313-026b6380463e"
  }
}

5. Developer Resources

API Explorer

This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation.NotAllowOperation This operation is prohibited.
InternalError.DatabaseError Failed to access the database on the DTS platform.
InternalError.ProtocolError Communication protocol error.
InvalidParameter Invalid parameter.