All Products
Search
Document Center

ApsaraDB for MongoDB:ModifyTaskInfo

Last Updated:Sep 03, 2024

Modifies the information of a task in the task center for an ApsaraDB for MongoDB instance.

Operation description

The actions performed by this operation for a task vary based on the current state of the task. The supported actions for a task can be obtained from the value of the actionInfo parameter in the DescribeHistoryTasks operation.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dds:ModifyTaskInfoupdate
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the instance. You can call the DescribeRegions operation to query the region ID.

cn-hangzhou
TaskIdstringYes

The task ID. Separate multiple IDs with commas (,). You can specify up to 10 task IDs.

t-83br18hlpdrw3uxxxx
StepNamestringYes

The name of the step visible to the user.

exec_task
TaskActionstringYes

The action name that corresponds to the state described in the actionInfo parameter of the DescribeHistoryTasks operation.

modifySwitchTime
ActionParamsstringNo

A action-related parameter. This parameter can be extended based on your business requirements. This parameter value varies with the value of the TaskAction parameter.

{\"recoverMode\":\"immediate\"}

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

6163731A-XXXX-XXXX-B934-3388DE70C217
ErrorTaskIdstring

The ID of the failed task. The operation returns results after a task fails.

""
SuccessCountstring

The number of successful tasks.

1
ErrorCodestring

The error code for the failed task. It is the same as that of the ModifyTaskInfo operation.

""

Examples

Sample success responses

JSONformat

{
  "RequestId": "6163731A-XXXX-XXXX-B934-3388DE70C217",
  "ErrorTaskId": "\"\"",
  "SuccessCount": "1",
  "ErrorCode": "\"\""
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-04-08The internal configuration of the API is changed, but the call is not affectedView Change Details