All Products
Search
Document Center

Bastionhost:ListOperationTickets

Last Updated:Oct 25, 2024

Queries O\\\\\\&M applications to be reviewed.

Operation description

You can call this operation to query the O&M applications to be reviewed by a Bastionhost administrator.

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-bastionhost:ListOperationTickets
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the bastion host.

Note You can call the DescribeInstances operation to query the ID of the bastion host.
bastionhost-cn-st220aw****
RegionIdstringNo

The region ID of the bastion host.

Note For more information about the mapping between region IDs and region names, see Regions and zones.
cn-hangzhou
PageNumberstringNo

The number of the page. Default value: 1.

1
PageSizestringNo

The number of entries per page.
Maximum value: 1000. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.

Note We recommend that you do not leave this parameter empty.
20
AssetAddressstringNo

The IP address of the asset that is contained in the O&M application to be reviewed.

10.167.XX.XX

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

OperationTicketsarray<object>

The O&M applications to be reviewed.

itemobject

The returned data.

ApplyUserIdstring

The ID of the O&M applicant.

1
ApplyUsernamestring

The username of the O&M applicant.

test
AssetAccountIdstring

The ID of the asset account.

1
AssetAccountNamestring

The username of the asset account.

root
AssetAddressstring

The IP address of the asset.

10.167.XX.XX
AssetIdstring

The ID of the asset.

2
AssetNamestring

The name of the asset.

poros-test
AssetNetworkDomainIdstring

The network domain ID of the asset.

2
AssetOsstring

The operating system of the asset.

Linux
AssetSourcestring

The name of the asset source to which the asset belongs. Valid values:

  • Local: an on-premises host.
  • Ecs: an Elastic Compute Service (ECS) instance.
  • Rds: an ApsaraDB RDS instance.
  • A third-party asset source.
Local
AssetSourceInstanceIdstring

The ID of the asset source to which the asset belongs.

1
CreatedTimelong

The time when the O&M application was submitted. The value is a UNIX timestamp. Unit: seconds.

1669965908
OperationTicketIdstring

The ID of the O&M application to be reviewed.

1
ProtocolNamestring

The O&M protocol.

SSH
Statestring

The status of the review. Valid value:

  • Normal: to be reviewed
Normal
RequestIdstring

The request ID.

EC9BF0F4-8983-491A-BC8C-1B4DD94976DE
TotalCountlong

The total number of O&M applications to be reviewed.

20

Examples

Sample success responses

JSONformat

{
  "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"
    }
  ],
  "RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
  "TotalCount": 20
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe argument is invalid.The argument is invalid.
500InternalErrorAn unknown error occurred.An unknown error occurred.

For a list of error codes, visit the Service error codes.