Retrieves the list of O&M applications that require approval.
Operation description
Retrieves the list of O&M applications that require approval for an administrator.
The China site Chinese QPS limit for this API is 10 requests per second. If this limit is exceeded, throttling is triggered, which may affect your business. Call this API appropriately.
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 instance ID of the bastion host. Note
You can invoke DescribeInstances to obtain this parameter. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
The region ID of the bastion host. Note
For the mapping between region IDs and region names, see Regions and zones. |
cn-hangzhou |
| PageNumber |
string |
No |
The page number for a paged query. Default value: 1. |
1 |
| PageSize |
string |
No |
The maximum number of entries per page for a paged query. Note
Do not leave PageSize empty. |
20 |
| AssetAddress |
string |
No |
The exact asset address to search for in the pending approval list. |
10.167.XX.XX |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| OperationTickets |
array<object> |
The list of O&M applications pending approval. |
|
|
object |
The response data. |
||
| ApplyUserId |
string |
The ID of the O&M applicant. |
1 |
| ApplyUsername |
string |
The username of the O&M applicant. |
test |
| AssetAccountId |
string |
The ID of the asset account requested for O&M. |
1 |
| AssetAccountName |
string |
The logon name of the asset account requested for O&M. |
root |
| AssetAddress |
string |
The address of the asset requested for O&M. |
10.167.XX.XX |
| AssetId |
string |
The ID of the asset requested for O&M. |
2 |
| AssetName |
string |
The name of the asset requested for O&M. |
poros-test |
| AssetNetworkDomainId |
string |
The network domain ID of the asset requested for O&M. |
2 |
| AssetOs |
string |
The operating system type of the asset requested for O&M. |
Linux |
| AssetSource |
string |
The name of the asset source to which the requested O&M asset belongs. Valid values:
|
Local |
| AssetSourceInstanceId |
string |
The ID of the asset source to which the requested O&M asset belongs. |
1 |
| CreatedTime |
integer |
The time when the application was submitted, in seconds (UNIX timestamp format). |
1669965908 |
| OperationTicketId |
string |
The ID of the O&M application that requires approval. |
1 |
| ProtocolName |
string |
The protocol name requested for O&M. |
SSH |
| State |
string |
The approval status. Valid values:
|
Normal |
| ApproveComment |
string |
The remarks entered by the O&M engineer when submitting the O&M application. |
Comment |
| EffectStartTime |
integer |
The start time of the O&M period specified by the O&M engineer, in seconds (UNIX timestamp format). Note
A value of 0 indicates that the O&M engineer did not specify a time when submitting the application. |
1685600242 |
| EffectEndTime |
integer |
The end time of the O&M period specified by the O&M engineer, in seconds (UNIX timestamp format). Note
A value of 0 indicates that the O&M engineer did not specify a time when submitting the application. |
1679393152 |
| EffectCount |
integer |
The logon count limit requested by the O&M engineer. Valid values:
|
0 |
| RequestId |
string |
The unique request ID generated by Alibaba Cloud for this request. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
| TotalCount |
integer |
The total number of O&M applications 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": "Comment",
"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.