List policies
Retrieve an environment's gateway policies in evaluation order: the gateway evaluates them top to bottom and the first rejection short-circuits the request.
The full policy list is returned in a single response.
Required Permissions
Your root key must have one of the following permissions:
- environment.*.read_policies (for any environment)
- environment.<environment_id>.read_policies (for a specific environment)
Request body
Example request
{
"project": "proj_1234abcd",
"app": "proj_1234abcd",
"environment": "proj_1234abcd"
}Response
Policies retrieved successfully
Example response
{
"meta": {
"requestId": "req_123"
},
"data": [
{
"id": "pol_2gJbXhAr4",
"name": "Block internal paths",
"enabled": true,
"match": [
{
"path": {
"path": {
"prefix": "/internal/"
}
}
}
],
"firewall": {
"action": "ACTION_DENY"
}
}
]
}Changes
Changed in 4 of the 92 revisions of this API.256
- ○
added the optional property
data/items/loggingto the response with the200statusresponse-optional-property-added
- ○
- ○
added the optional property
data/items/keyauth/creditsto the response with the200statusresponse-optional-property-added
- ○
- ▲
the response property
data/items/ratelimit/identifierbecame optional for the status200response-property-became-optional
- ▲
the
data/items/ratelimit/identifierresponse's property type/format changed fromobject/to/for status200response-property-type-changed
- ●
removed the optional property
data/items/ratelimit/identifier/authenticatedSubjectfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/ratelimit/identifier/headerfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/ratelimit/identifier/pathfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/ratelimit/identifier/principalFieldfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
data/items/ratelimit/identifier/remoteIpfrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
data/items/ratelimit/identifiersto the response with the200statusresponse-optional-property-added
- ○
added
RatelimitIdentifierto thedata/items/ratelimit/identifierresponse propertyallOflist for the response status200response-property-all-of-added
- ○
response property
data/items/ratelimit/identifierdeprecatedresponse-property-deprecated
- ▲
- ○
endpoint added
endpoint-added
- ○