Queries the result of a database pre-check node.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:QueryPreCheckDatabase |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskId |
string |
No |
The ID of the database pre-check task. Note
You can call the StartPreCheckDatabase operation to obtain this parameter. You must specify at least one of TaskId and InstanceUuid. If neither is specified, the API returns HTTP 400 with error code -106. Call DescribeUniBackupDatabase to obtain the InstanceUuid, and then pass it to StartPreCheckDatabase. The CreateMark returned by StartPreCheckDatabase is the TaskId required by this operation. |
t-000bc9nqwxsbyvod**** |
| InstanceUuid |
string |
No |
The unique identifier of the server database backup client. Note
You can call the DescribeUniBackupDatabase operation to obtain this parameter. You must specify at least one of TaskId and InstanceUuid. If neither is specified, the API returns HTTP 400 with error code -106. |
ebc895506c6911ed800000163e0e**** |
| UniRegionId |
string |
Yes |
The region ID of the database server. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. Alibaba Cloud generates a unique identifier for each API request. You can use this ID to troubleshoot issues. |
CE500770-42D3-442E-9DDD-156E0F9F**** |
| Progress |
integer |
The progress of the pre-check task. Valid values: 0 to 100. |
100 |
| Result |
string |
The result of the pre-check node. The value is in JSON format. The character string contains the following KEY values:
Note
Pre-check item description
|
[ { "instanceId": "i-wz91if83t97xgtn2****", "checkTime": 1671245753, "sourceType": "MSSQL", "results": [ { "item": "OSS_INTERNAL_ENDPOINT_CONNECTIVITY", "result": "PASSED" }, { "item": "SERVICE_CONNECTIVITY", "result": "PASSED" }, { "item": "SQL_SERVER_DB_IN_SIMPLE_RECOVERY_MODE", "result": "WARNING" }, { "item": "SQL_SERVER_DB_NOT_ONLINE", "result": "PASSED" } ] } ] |
| CompletedTime |
integer |
The time when the pre-check was completed. The value is a UNIX timestamp. Unit: seconds. |
1657524396 |
| Description |
string |
The status description of the pre-check task. Valid values:
|
completed |
| UpdatedTime |
integer |
The time when the pre-check was last updated. The value is a UNIX timestamp. Unit: seconds. |
1671084106 |
| CreatedTime |
integer |
The time when the pre-check started. The value is a UNIX timestamp. Unit: seconds. |
1660448660 |
Examples
Success response
JSON format
{
"RequestId": "CE500770-42D3-442E-9DDD-156E0F9F****",
"Progress": 100,
"Result": "[\n {\n \"instanceId\": \"i-wz91if83t97xgtn2****\",\n \"checkTime\": 1671245753,\n \"sourceType\": \"MSSQL\",\n \"results\":\n [\n {\n \"item\": \"OSS_INTERNAL_ENDPOINT_CONNECTIVITY\",\n \"result\": \"PASSED\"\n },\n {\n \"item\": \"SERVICE_CONNECTIVITY\",\n \"result\": \"PASSED\"\n },\n {\n \"item\": \"SQL_SERVER_DB_IN_SIMPLE_RECOVERY_MODE\",\n \"result\": \"WARNING\"\n },\n {\n \"item\": \"SQL_SERVER_DB_NOT_ONLINE\",\n \"result\": \"PASSED\"\n }\n ]\n }\n]",
"CompletedTime": 1657524396,
"Description": "completed",
"UpdatedTime": 1671084106,
"CreatedTime": 1660448660
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.