Changes the name of a DTS task.

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 ModifyDtsJobName

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

DtsJobId String Yes l3m1213ye7l****

The ID of the data migration, data synchronization, or change tracking task.

DtsJobName String No RDS_TO_RDS_MIGRATION

The new name of the DTS task.

Note This parameter is required. We recommend that you specify an informative name for easy identification. You do not need to use a unique task name.

Response parameters

Parameter Type Example Description
Code String 200

The error code. This parameter will be removed in the future.

DynamicMessage String DtsJobId

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

Note If the return value of the ErrMessage parameter is The Value of Input Parameter %s is not valid and the return value of the DynamicMessage parameter is DtsJobId, the specified DtsJobId parameter is invalid.
ErrCode String InternalError

The error code returned if the call failed.

ErrMessage String The Value of Input Parameter %s is not valid.

The error message returned if the call failed.

HttpStatusCode Integer 200

The HTTP status code.

RequestId String 8C498360-7892-433C-847A-BA71A850****

The ID of the request.

Success Boolean true

Indicates whether the call was successful.

Examples

Sample requests

http(s)://dts.aliyuncs.com/?Action=ModifyDtsJobName
&DtsJobId=l3m1213ye7l****
&DtsJobName=RDS_TO_RDS_MIGRATION
&<Common request parameters>

Sample success responses

XML format

<ModifyDtsJobNameResponse>
      <RequestId>8C498360-7892-433C-847A-BA71A850****</RequestId>
      <HttpStatusCode>200</HttpStatusCode>
      <Success>true</Success>
</ModifyDtsJobNameResponse>

JSON format

{
  "RequestId": "8C498360-7892-433C-847A-BA71A850****",
  "HttpStatusCode": 200,
  "Success": true
}

Error codes

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