CreateInspectionTask
Creates a batch instance inspection task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rdsai:CreateInspectionTask |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StartTime |
string |
No |
The start of the inspection time range. The time must be in |
2025-12-28T16:00:00Z |
| EndTime |
string |
No |
The end of the inspection time range. The time must be in |
2026-01-30T02:10:48Z |
| InstanceIds |
string |
No |
The IDs of the instances to be inspected. To specify multiple IDs, separate them with a comma (,). |
rm-2ze6mk259v322****,rm-2zef3b65430j0**** |
| InspectionItems |
string |
No |
The inspection items. To specify multiple items, separate them with a comma (,). If you do not specify this parameter, all inspection items are inspected. Available inspection items
|
instance_info, resource_usage |
| ReportLanguage |
string |
No |
||
| ReportType |
string |
No |
||
| RegionId |
string |
No |
The ID of the region. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Message |
string |
The response message. |
任务创建成功 |
| Data |
object |
The data returned by the operation. |
|
| TaskId |
string |
The ID of the inspection task. |
9adf8567-b619-4d37-8ff2-01d38a76**** |
| RequestId |
string |
The ID of the request. |
FE9C65D7-930F-57A5-A207-8C396329**** |
Examples
Success response
JSON format
{
"Success": true,
"Message": "任务创建成功",
"Data": {
"TaskId": "9adf8567-b619-4d37-8ff2-01d38a76****"
},
"RequestId": "FE9C65D7-930F-57A5-A207-8C396329****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Request parameter validation failed. | Request parameter verification failed |
| 500 | InternalError | System internal exception. | System internal exception |
| 403 | PermissionDenied | User has no operation permission. | User has no operation permission |
| 403 | InvalidUserOrder | There is no valid order for this UID. | There is no valid order for this UID |
| 404 | TaskNotFound | The resource of the specified ld does not exist. | The resource of the specified ld does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.