Retrieves the inspection reports for a specified scheduled task, allowing you to filter by time range and paginate the results.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rdsai:GetScheduledReports |
get |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ScheduledId |
string |
Yes |
The scheduled inspection ID. |
847268a4-196f-416b-aa12-bfe0c115**** |
| StartTime |
string |
No |
Specifies the start of the time range to query. The time must be in UTC and formatted as |
2026-01-25T01:02:00Z |
| EndTime |
string |
No |
Specifies the end of the time range to query. The time must be in UTC and formatted as |
2026-01-25T02:02:00Z |
| PageNumber |
integer |
No |
Specifies the page number of the results to return. Default: 1. |
1 |
| PageSize |
integer |
No |
Specifies the number of entries to return on each page. Default: 20. Maximum: 100. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| Success |
boolean |
Indicates whether the request succeeded. |
true |
| Message |
string |
The response message. |
获取巡检报告列表成功 |
| Reports |
array<object> |
A list of inspection reports. |
|
|
object |
|||
| TaskId |
string |
The inspection report ID. |
65f0053b-f933-49f5-bf65-4e4593e1**** |
| StartTime |
string |
The time when the inspection started. The time is in UTC and formatted as |
2025-01-01T00:00:00Z |
| EndTime |
string |
The time when the inspection ended. The time is in UTC and formatted as |
2025-01-01T23:59:59Z |
| Status |
string |
The status of the inspection report. |
success |
| CreatedTime |
string |
The time when the report was created. The time is in UTC and formatted as |
2025-01-01T22:59:59Z |
| ReportLanguage |
string |
||
| ReportType |
string |
||
| RegionId |
string |
||
| InspectionItems |
string |
||
| TotalCount |
integer |
The total number of records. |
20 |
| PageNumber |
integer |
The page number of the returned results. The default value is 1. |
1 |
| PageSize |
integer |
The number of records per page. |
10 |
| RequestId |
string |
The request ID. |
FE9C65D7-930F-57A5-A207-8C396329**** |
Examples
Success response
JSON format
{
"Success": true,
"Message": "获取巡检报告列表成功",
"Reports": [
{
"TaskId": "65f0053b-f933-49f5-bf65-4e4593e1****",
"StartTime": "2025-01-01T00:00:00Z",
"EndTime": "2025-01-01T23:59:59Z",
"Status": "success",
"CreatedTime": "2025-01-01T22:59:59Z",
"ReportLanguage": "",
"ReportType": "",
"RegionId": "",
"InspectionItems": ""
}
],
"TotalCount": 20,
"PageNumber": 1,
"PageSize": 10,
"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.