Skip to content

List all policy rules

Request

OAuth 2.0 scope:
  • okta.authorizationServers.read

Lists all policy rules for the specified Custom Authorization Server and Policy

Path
authServerIdstringrequired

id of the Authorization Server

Example:GeGRTEr7f3yu2n7grw22
policyIdstringrequired

id of the policy

Example:00plrilJ7jZ66Gn0X0g3
curl -i -X GET \
  https://subdomain.okta.com/api/v1/authorizationServers/GeGRTEr7f3yu2n7grw22/policies/00plrilJ7jZ66Gn0X0g3/rules

Responses

Success

Bodyapplication/json
Array [
actionsobject(AuthorizationServerPolicyRuleActions)
conditionsobject(AuthorizationServerPolicyRuleConditions)
createdstring, (date-time)read-only

Timestamp when the rule was created

idstringread-only

Identifier of the rule

lastUpdatedstring, (date-time)read-only

Timestamp when the rule was last modified

namestring

Name of the rule

priorityinteger

Priority of the rule

statusstring

Status of the rule

Enum:"ACTIVE""INACTIVE"
systemboolean

Set to true for system rules. You can't delete system rules.

typestring

Rule type

Value:"RESOURCE_ACCESS"
]
Response
[ { "type": "RESOURCE_ACCESS", "id": "0prbsjfyl01zfSZ9K0h7", "status": "ACTIVE", "name": "Default Policy Rule", "priority": 1, "created": "2017-08-25T16:57:02.000Z", "lastUpdated": "2017-08-30T14:51:05.000Z", "system": false, "conditions": { … }, "actions": { … }, "_links": { … } } ]