Policies

Get Policy By Id

GET
/policies/{policy_id}

Get a policy by ID.

Docs: Guide | API Reference

Raises: ResourceNotFoundError: If the policy does not exist.

Path Parameters

policy_id*Policy Id

Response Body

application/json

application/json

curl -X GET "https://example.com/policies/string"
{  "id": "string",  "name": "string",  "description": "string",  "rules": {    "property1": "string",    "property2": "string"  },  "rule_modes": {    "property1": "block",    "property2": "block"  },  "mode": "string",  "pre_violation_threshold": 0,  "pre_jb_threshold": 0,  "post_violation_threshold": 0,  "post_violation_jb_threshold": 0,  "scanners_config": {},  "is_preset": false,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}