Skip to main content
GET
List policy rules
This endpoint is experimental. It may change or be removed without notice and is not covered by API stability guarantees.

Authorizations

Authorization
string
header
required

Get access to data with your API token. Example header:

Authorization: Bearer 2991e2fb4b540fe75b8f90677b0b892b6314e4961cb001fe6eb452eee248a628

The token can be provisioned from the Tokens section in your Settings, and requires explicitly enabling Web API access.

Path Parameters

deploymentId
string<int64>
required

The unique numerical identifier for the deployment.

Example:

123

policyId
string<int64>
required

The unique numerical identifier for the policy. Find your policy's ID via the List Policies endpoint.

Example:

456

Query Parameters

cursor
string

Cursor to paginate through the rules. Provide a cursor value from the response to retrieve the next page.

limit
integer<int64>

Page size to paginate through the rules. The default page size is 500 and the maximum allowed page size is 2000.

Response

200 - application/json

OK

policy
Policy · object
rules
Rule · object[]

List of Rules for the given Policy.

Example:
cursor
string

Cursor to paginate through the rules.

Example:

"Pm0ROjIwMjQtMDItMDYgMjA6MDQ6NDguMEDzNzk2fmk6NYTM2zUxOTI"