All Products
Search
Document Center

Bastionhost:ListOperationTickets

Last Updated:Sep 29, 2026

Retrieves a list of O&M tickets pending approval.

Operation description

This API operation allows administrators to retrieve a list of O&M tickets pending approval.

The QPS limit for a single user is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your services. Make API calls at a reasonable rate.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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 Bastionhost instance.

Note

You can invoke 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 of the page to return in a paged query. Default value: 1.

1

PageSize

string

No

The maximum number of entries to return on each page in a paged query.
The maximum value of the PageSize parameter is 1000. The default value is 20. If this parameter is left empty, 20 entries are returned by default.

Note

We recommend that you specify a value for the PageSize parameter.

20

AssetAddress

string

No

The address of the O&M asset for exact search.

10.167.XX.XX

ProjectId

integer

No

The project ID.

3

Response elements

Element

Type

Description

Example

object

The response data.

OperationTickets

array<object>

The list of O&M tickets 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 for which O&M is requested.

1

AssetAccountName

string

The logon name of the asset account for which O&M is requested.

root

AssetAddress

string

The address of the asset for which O&M is requested.

10.167.XX.XX

AssetId

string

The ID of the asset for which O&M is requested.

2

AssetName

string

The name of the asset for which O&M is requested.

poros-test

AssetNetworkDomainId

string

The ID of the network domain to which the asset for which O&M is requested belongs.

2

AssetOs

string

The operating system type of the asset for which O&M is requested.

Linux

AssetSource

string

The name of the asset source to which the asset for which O&M is requested belongs. Valid values:

  • Local: local host

  • Ecs: ECS instance

  • Rds: ApsaraDB RDS instance

  • name of a third-party asset source

Local

AssetSourceInstanceId

string

The ID of the asset source to which the asset for which O&M is requested belongs.

1

CreatedTime

integer

The time when the application was submitted. The value is a UNIX timestamp in seconds.

1669965908

OperationTicketId

string

The ID of the O&M ticket pending approval.

1

ProtocolName

string

The name of the protocol for the O&M request.

SSH

State

string

The approval status. Valid values:

  • Normal: pending approval

Normal

ApproveComment

string

The remarks entered by the O&M engineer when applying for O&M.

Comment

EffectStartTime

integer

The start time of the approved O&M period specified by the O&M engineer. The value is a UNIX timestamp in seconds.

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 approved O&M period specified by the O&M engineer. The value is a UNIX timestamp in seconds.

Note

A value of 0 indicates that the O&M engineer did not specify a time when submitting the application.

1679393152

EffectCount

integer

The limit on the number of logons requested by the O&M engineer. Valid values:

  • 0: No limit is imposed on the number of logons. The O&M engineer can log on an unlimited number of times within the validity period.

  • 1: The O&M engineer is allowed to log on only once within the validity period.

0

RequestId

string

The unique identifier generated by Alibaba Cloud for the request.

EC9BF0F4-8983-491A-BC8C-1B4DD94976DE

TotalCount

integer

The total number of O&M tickets 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.