Lists the O&M requests that require approval.
Operation description
Administrators can call this operation to retrieve a list of operations and maintenance (O&M) requests that require approval.
The queries per second (QPS) limit for this operation is 10 per user. Exceeding this limit triggers throttling, which can affect your business. Plan your calls accordingly.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ListOperationTickets |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the Bastionhost instance. Note
Call the DescribeInstances operation to obtain this parameter. |
bastionhost-cn-st220aw**** |
| 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 |
| PageNumber |
string |
No |
The page number for a paged query. The default value is 1. |
1 |
| PageSize |
string |
No |
The maximum number of entries to return on each page of a paged query. Note
We recommend that you specify this parameter. |
20 |
| AssetAddress |
string |
No |
The address of the asset for which the O&M request is pending approval. This parameter supports exact match searches. |
10.167.XX.XX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| OperationTickets |
array<object> |
A list of O&M requests that are pending approval. |
|
|
object |
The response data. |
||
| ApplyUserId |
string |
The ID of the user who submitted the O&M request. |
1 |
| ApplyUsername |
string |
The username of the user who submitted the O&M request. |
test |
| AssetAccountId |
string |
The ID of the asset account for which the O&M request was submitted. |
1 |
| AssetAccountName |
string |
The logon name of the asset account for which the O&M request was submitted. |
root |
| AssetAddress |
string |
The address of the asset for which the O&M request was submitted. |
10.167.XX.XX |
| AssetId |
string |
The ID of the asset for which the O&M request was submitted. |
2 |
| AssetName |
string |
The name of the asset for which the O&M request was submitted. |
poros-test |
| AssetNetworkDomainId |
string |
The ID of the network domain to which the asset belongs. |
2 |
| AssetOs |
string |
The operating system of the asset. |
Linux |
| AssetSource |
string |
The source of the asset. Valid values:
|
Local |
| AssetSourceInstanceId |
string |
The ID of the source of the asset. |
1 |
| CreatedTime |
integer |
The time when the request was submitted. This is a UNIX timestamp. Unit: seconds. |
1669965908 |
| OperationTicketId |
string |
The ID of the O&M request that requires approval. |
1 |
| ProtocolName |
string |
The name of the protocol used for the O&M request. |
SSH |
| State |
string |
The approval status. Valid values:
|
Normal |
| ApproveComment |
string |
The comments provided by the O&M engineer when submitting the request. |
申请运维 |
| EffectStartTime |
integer |
The start time of the O&M period specified by the O&M engineer. This is a UNIX timestamp. Unit: seconds. Note
A value of 0 indicates that the O&M engineer did not specify a start time. |
1685600242 |
| EffectEndTime |
integer |
The end time of the O&M period specified by the O&M engineer. This is a UNIX timestamp. Unit: seconds. Note
A value of 0 indicates that the O&M engineer did not specify an end time. |
1679393152 |
| EffectCount |
integer |
The number of permitted logons specified in the request. Valid values:
|
0 |
| RequestId |
string |
The unique ID generated by Alibaba Cloud for the request. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
| TotalCount |
integer |
The total number of O&M requests that are pending approval. |
20 |
Examples
Success response
JSON format
{
"OperationTickets": [
{
"ApplyUserId": "1",
"ApplyUsername": "test",
"AssetAccountId": "1",
"AssetAccountName": "root",
"AssetAddress": "10.167.XX.XX",
"AssetId": "2",
"AssetName": "poros-test",
"AssetNetworkDomainId": "2",
"AssetOs": "Linux",
"AssetSource": "Local",
"AssetSourceInstanceId": "1",
"CreatedTime": 1669965908,
"OperationTicketId": "1",
"ProtocolName": "SSH",
"State": "Normal",
"ApproveComment": "申请运维",
"EffectStartTime": 1685600242,
"EffectEndTime": 1679393152,
"EffectCount": 0
}
],
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
"TotalCount": 20
}
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.