All Products
Search
Document Center

Data Transmission Service:ModifyDtsJobDedicatedCluster

Last Updated:May 09, 2024

Modifies the cluster that schedules a Data Transmission Service (DTS) task. The cluster can be a dedicated cluster or a shared cluster.

Note

After the cluster of a DTS instance is changed from a dedicated cluster to a shared cluster, you are charged for the DTS instance based on the pay-as-you-go billing method.

Debugging

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

Request parameters

Parameter

Type

Required

Example

Description

Action

String

Yes

ModifyDtsJobDedicatedCluster

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

DtsJobIds

String

No

["dtsxxxx01", "dtsxxx02"]

The ID of the DTS task. The value can be a JSON array that consists of multiple instance IDs. Separate multiple instance IDs with commas (,).

DedicatedClusterId

String

No

dtsxxxx

The ID of the dedicated cluster. By default, you cannot specify this parameter.

RegionId

String

No

cn-hangzhou

The region ID of the DTS instance.

Note

For information about the regions that support dedicated clusters, see What is a DTS dedicated cluster.

Response parameters

Parameter

Type

Example

Description

RequestId

String

621BB4F8-3016-4FAA-8D5A-5D3163CC****

The request ID.

HttpStatusCode

Long

200

The HTTP status code.

DynamicMessage

String

Type

The dynamic part in the error message. This parameter is used to replace the %s variable in the value of the ErrMessage parameter.

ErrMessage

String

The Value of Input Parameter %s is not valid.

The error message returned if the request failed.

Code

String

500

The error code returned by the backend service. The number is incremented.

Success

Boolean

true

Indicates whether the request was successful.

ErrCode

String

InternalError

The error code returned if the request failed.

Examples

Sample requests

http(s)://dts.aliyuncs.com/?Action=ModifyDtsJobDedicatedCluster
&DtsJobIds=["dtsxxxx01", "dtsxxx02"]
&DedicatedClusterId=dtsxxxxx
&RegionId=cn-hangzhou
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyDtsJobDedicatedClusterResponse>
    <code>200</code>
    <data>
        <RequestId>26EC538C-9E2D-11D5-A55F-***</RequestId>
        <HttpStatusCode>200</HttpStatusCode>
        <Success>true</Success>
    </data>
    <httpStatusCode>200</httpStatusCode>
    <requestId>26EC538C-9E2D-11D5-A55F-***</requestId>
    <successResponse>true</successResponse>
</ModifyDtsJobDedicatedClusterResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "code" : "200",
  "data" : {
    "RequestId" : "26EC538C-9E2D-11D5-A55F-***",
    "HttpStatusCode" : 200,
    "Success" : true
  },
  "httpStatusCode" : "200",
  "requestId" : "26EC538C-9E2D-11D5-A55F-***",
  "successResponse" : true
}

Error codes

HTTP status code

Error Code

Error message

Description

400

Throttling.User

Request was denied due to user flow control.

The number of requests exceeded the limit, and the request was rejected. Try again later.

500

ServiceUnavailable

The request has failed due to a temporary failure of the server.

The response of the server timed out or the server was unavailable. Try again. If the error persists, contact technical support.

403

InvalidSecurityToken.Expired

Specified SecurityToken is expired.

The signature expired. Use a new signature.

For a list of error codes, see Service error codes.