Queries tasks that you perform to modify an instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeDrdsTasks |
The operation that you want to perform. Set the value to DescribeDrdsTasks. |
DrdsInstanceId | String | Yes | drdsxxxxxxxxxxxx |
The ID of the instance. |
DbName | String | No | test |
The name of the database. |
TaskType | String | No | test |
The type of tasks. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | CD412DF7-F21D-44CE-88FF-ED24917174A8 |
Indicates the ID of the request. |
Success | Boolean | true |
Indicates whether the request is successful. |
Tasks | Array of Task |
Indicates information about the tasks. |
|
Task | |||
Content | String | upgrade_instance |
Indicates the content of a task. |
Id | Long | 64148 |
Indicates the ID of the task. |
State | String | FAILED |
Indicates the state of the task. |
Examples
Sample requests
http(s)://drds-api.cn-hangzhou.aliyuncs.com/?Action=DescribeDrdsTasks
&DrdsInstanceId=drdsxxxxxxxxxxxx
&<Common request parameters>
Sample success responses
XML
format
<DescribeDrdsTasksReponse>
<Tasks>
<Task>
<State>FAILED</State>
<Content>upgrade_instance</Content>
<Id>64148</Id>
</Task>
</Tasks>
<RequestId>CD412DF7-F21D-44CE-88FF-ED24917174A8</RequestId>
<Success>true</Success>
</DescribeDrdsTasksReponse>
JSON
format
{"Tasks":{"Task":[{"State":"FAILED","Content":"upgrade_instance","Id":"64148"}]},"RequestId":"CD412DF7-F21D-44CE-88FF-ED24917174A8","Success":"true"}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | ActionUnauthorized | The specified action is not available for you | The error message returned because you are not granted permissions to perform this operation. Grant the required permissions to the Resource Access Management (RAM) user that you want to use to perform this operation. |
For a list of error codes, visit the API Error Center.