Updates task information in the task center.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyTaskInfo |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the task is located. |
cn-beijing |
| TaskId |
string |
Yes |
The ID of the task to be updated. The ID is provided by the task center. You can obtain the task ID by calling task query operations such as DescribeTasks, DescribeHistoryTasks, and DescribeScheduleTasks. |
32077061 |
| StepName |
string |
No |
The name of the task step to be updated. This parameter is required. If you do not specify this parameter, the service returns Param.Invalid (400). |
create_instance |
| TaskAction |
string |
No |
The name of the API operation associated with the task, which is defined by the task center. Currently, only modifySwitchTime is verified and supported. For other values, confirm with the task center or the R&D team before use. This parameter is required. If you do not specify this parameter, the service returns Param.Invalid (400). The task action names returned by operations such as DescribeTasks cannot be directly used as the TaskAction input parameter for this operation. |
modifySwitchTime |
| ActionParams |
string |
No |
The operation parameters of the task. |
{} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
{} |
|
| RequestId |
string |
The request ID. |
2921D843-433A-5FB3-A03B-4EC093B219F8 |
| ErrorTaskId |
string |
The ID of the task that failed to be updated. |
32077061 |
| SuccessCount |
string |
The number of tasks that were successfully updated. |
1 |
| ErrorCode |
string |
The error code returned when the task update fails. |
InvalidParameter |
Examples
Success response
JSON format
{
"RequestId": "2921D843-433A-5FB3-A03B-4EC093B219F8",
"ErrorTaskId": "32077061",
"SuccessCount": "1",
"ErrorCode": "InvalidParameter"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.