Policies
Get Policies
Get policies for an organization with pagination.
By default, returns all policies (no limit). Use limit parameter for pagination. Response includes pagination metadata (total, has_more) to detect truncation.
Query Parameters
limit?Limit|Limit
Maximum number of policies to return (omit to return all)
offset?integer
Number of policies to skip
Default
0Range
0 <= valueResponse Body
application/json
application/json
curl -X GET "https://api.grayswan.ai/policies"{
"policies": [
{
"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"
}
],
"total": 0,
"limit": 0,
"offset": 0,
"has_more": false
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}