All Products
Search
Document Center

Key Management Service:ListPolicies

Last Updated:Jul 29, 2025

Queries a list of permission policies.

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberintegerNo

The page number. Default value: 1.

1
PageSizeintegerNo

The number of entries per page. Valid values: 1 to 100. Default value: 20.

10

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

b66ad557-9c00-4064-9c8d-b621c3263308
PageNumberinteger

The page number.

1
PageSizeinteger

The number of entries per page.

10
TotalCountinteger

The total number of entries returned.

1
Policiesarray<object>

A list of permission policies.

Policyobject

A list of permission policies.

Namestring

The name of the permission policy.

policy_test

Examples

Sample success responses

JSONformat

{
  "RequestId": "b66ad557-9c00-4064-9c8d-b621c3263308",
  "PageNumber": 1,
  "PageSize": 10,
  "TotalCount": 1,
  "Policies": {
    "Policy": [
      {
        "Name": "policy_test"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe specified parameter is not valid.An invalid value is specified for the parameter.
404InvalidAccessKeyId.NotFoundThe Access Key ID provided does not exist in our records.-

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