All Products
Search
Document Center

Bastionhost:ListReviewRules

Last Updated:Aug 14, 2026

Queries the list of audit policies.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The ID of the bastion host instance.

Note

You can call the DescribeInstances operation to obtain the bastion host instance ID.

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

NextToken

string

No

The token for the paging query. Leave this parameter empty or do not specify it for the first request.

4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs****

MaxResults

integer

No

The maximum number of audit policies to return per request. Valid values: 1 to 100. Default value: 20.

20

Keyword

string

No

The name of the audit policy to query. Fuzzy match is supported.

test

Skip

integer

No

The number of entries to skip.

Note

This parameter takes effect only when NextToken is empty.

0

Response elements

Element

Type

Description

Example

object

Schema of Response

TotalCount

integer

The total number of audit policies returned.

5

NextToken

string

The token for the next request. Use this value for the NextToken request parameter in the next paging query. If this field is empty in the response, no more data is available.

4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs****

MaxResults

integer

The value of the MaxResults request parameter if a valid value was specified. Otherwise, the default value is returned.

20

RequestId

string

The unique request ID generated by Alibaba Cloud for this request.

50177258-E817-4D2F-A5C6-3FD7BC4806E3

ReviewRules

array<object>

The list of audit policies.

object

The audit policy information.

ReviewRuleId

integer

The audit policy ID.

1

RuleName

string

The audit policy name.

rulename

Remark

string

The remarks of the audit policy.

test

ScopeType

integer

The type of auditable asset scope specified in the audit policy. Valid values:

  • 1: All projects.

  • 2: Specified projects.

2

Examples

Success response

JSON format

{
  "TotalCount": 5,
  "NextToken": "4ieSWJCwxvW3dk3wF.BqkrZmP72nWu5zJ5NWydMqyEs****",
  "MaxResults": 20,
  "RequestId": "50177258-E817-4D2F-A5C6-3FD7BC4806E3",
  "ReviewRules": [
    {
      "ReviewRuleId": 1,
      "RuleName": "rulename",
      "Remark": "test",
      "ScopeType": 2
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.