Modifies the objects of a change tracking task and the types of data changes to be tracked.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer automatically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifySubscription

The operation that you want to perform. Set the value to ModifySubscription.

DbList String Yes {"dtstest":{"name":"dtstest","all":true}}

The objects of the change tracking task. The value is a JSON string. For more information, see Objects of DTS tasks.

Note You can call the DescribeDtsJobDetail operation to query the original objects of the task.
DtsInstanceId String Yes dtsboss6pn1w******

The ID of the change tracking instance. You can call the DescribeDtsJobs operation to query the instance ID.

DtsJobId String Yes boss6pn1w******

The ID of the change tracking task. You can call the DescribeDtsJobs operation to query the task ID.

SubscriptionDataTypeDDL Boolean Yes true

Specifies whether to retrieve data definition language (DDL) statements. Valid values:

  • true: yes
  • false: no
SubscriptionDataTypeDML Boolean Yes true

Specifies whether to retrieve data manipulation language (DML) statements. Valid values:

  • true: yes
  • false: no
RegionId String No cn-hangzhou

The ID of the region where the change tracking instance resides. For more information, see List of supported regions.

Response parameters

Parameter Type Example Description
ErrCode String InternalError

The error code returned if the call failed.

ErrMessage String The request processing has failed due to some unknown error.

The error message returned if the call failed.

HttpStatusCode String 200

The HTTP status code.

RequestId String 068FA72F-4800-4A54-90BB-94806068****

The ID of the request.

Success String true

Indicates whether the call was successful.

Examples

Sample requests

http(s)://dts.aliyuncs.com/?Action=ModifySubscription
&DbList={"dtstest":{"name":"dtstest","all":true}}
&DtsInstanceId=dtsboss6pn1w******
&DtsJobId=boss6pn1w******
&SubscriptionDataTypeDDL=true
&SubscriptionDataTypeDML=true

Sample success responses

XML format

<ModifySubscriptionResponse>
      <RequestId>068FA72F-4800-4A54-90BB-94806068****</RequestId>
      <HttpStatusCode>200</HttpStatusCode>
      <Success>true</Success>
</ModifySubscriptionResponse>

JSON format

{
	"RequestId": "068FA72F-4800-4A54-90BB-94806068****",
	"HttpStatusCode": 200,
	"Success": true
}

Error codes

For a list of error codes, visit the API Error Center.