Policies

Get Policy By Id

Get a policy by ID.

Raises: ResourceNotFoundError: If the policy does not exist.

GET
/policies/{policy_id}

Path Parameters

policy_id*string

Response Body

application/json

application/json

curl -X GET "https://api.grayswan.ai/policies/string"
{
  "id": "string",
  "name": "string",
  "description": "string",
  "rules": {
    "property1": "string",
    "property2": "string"
  },
  "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"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}