GetSanityCheckTask
Queries the current status and results of a specified health check task. By specifying the task ID and check type, you can obtain the execution progress of the task (such as Pending, Executing, Completed, or Failed), start and end times, and a list of identified issues. If verbose is set to true in the request, detailed analysis results for each checkpoint are also returned, including the checkpoint name, description, result, and failure reason to help accurately identify issues.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidsw:GetSanityCheckTask |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v2/sanitychecks/{CheckType}/{TaskId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CheckType |
string |
No |
The check type. Valid values:
Valid values:
|
SSH |
| TaskId |
string |
No |
The ID of the health check task. |
917479ff-c869-49ea-908e-ae85bd987bc0 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Verbose |
boolean |
No |
Specifies whether to return the details of the health check. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
44FB0869-AA85-599D-A09D-C42F7467618A |
| TaskId |
string |
The ID of the health check task. |
917479ff-c869-49ea-908e-ae85bd987bc0 |
| InstanceId |
string |
The DSW instance ID. |
dsw-730xxxxxxxxxx |
| CheckType |
string |
The check type. Valid values:
|
SSH |
| Status |
string |
The status of the health check task. |
Executing |
| StartTime |
string |
The start time of the task, if any. |
2020-11-08T15:00:00Z |
| EndTime |
string |
The end time of the task, if any. |
2020-11-08T15:00:00Z |
| Issues |
array |
The identified issues. If no issues are identified, an empty array is returned. |
|
|
string |
The identified health issue. |
sshd has not been installed" |
|
| CheckDetails |
array<object> |
The analysis results of the health check task. |
|
|
object |
The analysis results of the health check task. |
||
| Name |
string |
The name of the check item. |
secureGroupCheck |
| Description |
string |
The detailed description of the check item. |
Check whether the security group allows traffic on port 22 |
| Result |
string |
The check result. |
passed |
| Reason |
string |
The reason why the check item failed. |
Port 22 is blocked by the security group |
Examples
Success response
JSON format
{
"requestId": "44FB0869-AA85-599D-A09D-C42F7467618A",
"TaskId": "917479ff-c869-49ea-908e-ae85bd987bc0",
"InstanceId": "dsw-730xxxxxxxxxx",
"CheckType": "SSH",
"Status": "Executing",
"StartTime": "2020-11-08T15:00:00Z",
"EndTime": "2020-11-08T15:00:00Z",
"Issues": [
"sshd has not been installed\""
],
"CheckDetails": [
{
"Name": "secureGroupCheck",
"Description": "Check whether the security group allows traffic on port 22",
"Result": "passed",
"Reason": "Port 22 is blocked by the security group"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.