Updates the status or throttling of a task.
Operation description
- To update a migration task, you must have the permission on mgw:UpdateImportJob.
- You can update only the status or throttling settings of a task in a single request.
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
PUT /UpdateJob/{jobName} HTTP/1.1
Host: userid.cn-hangzhou.mgw.aliyuncs.com
<?xml version="1.0" encoding="UTF-8"?>
<ImportJob>
<Status>string</Status>
<ImportQos>
<MaxBandWidth>integer</MaxBandWidth>
<MaxImportTaskQps>integer</MaxImportTaskQps>
</ImportQos>
</ImportJob>
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| body | object | No | The request body for updating the task. | |
| ImportJob | UpdateJobInfo | No | The details for updating the task. | |
| jobName | string | Yes | The task name. | test_job_name |
Response parameters
Examples
Sample success responses
JSONformat
{}XMLformat
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root/>Error codes
For a list of error codes, visit the Service error codes.