Retrieves the list of pending automated O&M approvals.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ListTodoOpsTaskApprovals |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID of the Bastionhost instance. Note
You can call the DescribeInstances operation to obtain this parameter. |
bastionhost-cn-m413tuhlo03 |
| RegionId |
string |
No |
The region ID of the Bastionhost instance. Note
For more information about the mapping between region IDs and region names, see Regions and zones. |
cn-hangzhou |
| Keyword |
string |
No |
The name or comment of the task to query. Fuzzy match is supported. |
test |
| ScheduleType |
string |
No |
The scheduling type of the task. Valid values:
|
Manual |
| PageNumber |
string |
No |
The page number of the current page in a paging query. Default value: 1. |
1 |
| PageSize |
string |
No |
The maximum number of entries to return on each page in a paging query. Note
Specify a value for the PageSize parameter. |
20 |
| ProjectId |
integer |
No |
The project ID. |
3 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Approves |
array<object> |
The returned data. |
|
|
object |
|||
| ApproveId |
string |
The approval ID of the O&M task. |
1 |
| ApplyAt |
integer |
The time when the application was submitted. The value is a UNIX timestamp in seconds. |
1669965908 |
| ClientName |
string |
The username of the user who applied for the O&M task. |
Username |
| ClientUid |
integer |
The Bastionhost user ID of the user who submitted the application. |
12 |
| Comment |
string |
The comment of the O&M task. |
Comment |
| ScheduleType |
string |
The scheduling type of the task.
|
Manual |
| TaskId |
integer |
The ID of the O&M task. |
2 |
| Name |
string |
The name of the O&M task. |
task |
| RequestId |
string |
The unique identifier generated by Alibaba Cloud for the request. |
45717163-334B-5955-8048-A02DAC6B3817 |
| TotalCount |
integer |
The total number of queried approval records. |
6 |
Examples
Success response
JSON format
{
"Approves": [
{
"ApproveId": "1",
"ApplyAt": 1669965908,
"ClientName": "Username",
"ClientUid": 12,
"Comment": "Comment",
"ScheduleType": "Manual",
"TaskId": 2,
"Name": "task"
}
],
"RequestId": "45717163-334B-5955-8048-A02DAC6B3817",
"TotalCount": 6
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | The argument is invalid. |
| 500 | InternalError | An unknown error occurred. | An unknown error occurred. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.