List policies in a zone
GET/zones/{zone_id}/policies
List policies in a zone
Path Parameters
zone_id: string
Query Parameters
after: optional string
Return items after this cursor (forward pagination). Use after_cursor from a previous response. Mutually exclusive with before.
before: optional string
Return items before this cursor (backward pagination). Use before_cursor from a previous response. Mutually exclusive with after.
expand: optional array of "total_count"
Opt-in to additional response fields
limit: optional number
Maximum number of items to return
maximum100
minimum1
sort: optional "created_at"
Field to sort by.
Header Parameters
"X-API-Version": optional string
"X-Client-Request-ID": optional string
formatuuid
Returns
List policies in a zone
curl https://api.keycard.ai/zones/$ZONE_ID/policies{
"items": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": "created_by",
"name": "name",
"owner_type": "platform",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"archived_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"latest_version": 0,
"latest_version_id": "latest_version_id",
"updated_by": "updated_by"
}
],
"pagination": {
"after_cursor": "after_cursor",
"before_cursor": "before_cursor",
"total_count": 0
}
}Returns Examples
{
"items": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": "created_by",
"name": "name",
"owner_type": "platform",
"updated_at": "2019-12-27T18:11:19.117Z",
"zone_id": "zone_id",
"archived_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"latest_version": 0,
"latest_version_id": "latest_version_id",
"updated_by": "updated_by"
}
],
"pagination": {
"after_cursor": "after_cursor",
"before_cursor": "before_cursor",
"total_count": 0
}
}