List policy schemas
List policy schemas
client.zones.policySchemas.list(stringzoneID, PolicySchemaListParams { after, before, expand, 8 more } params?, RequestOptionsoptions?): PolicySchemaListResponse { items, pagination }
GET/zones/{zone_id}/policy-schemas
List policy schemas
Parameters
zoneID: string
Returns
List policy schemas
import KeycardAPI from '@keycardai/api';
const client = new KeycardAPI();
const policySchemas = await client.zones.policySchemas.list('zone_id');
console.log(policySchemas.items);{
"items": [
{
"created_at": "2019-12-27T18:11:19.117Z",
"status": "active",
"updated_at": "2019-12-27T18:11:19.117Z",
"version": "version",
"archived_at": "2019-12-27T18:11:19.117Z",
"cedar_schema": "cedar_schema",
"cedar_schema_json": {},
"deprecated_at": "2019-12-27T18:11:19.117Z",
"is_default": true
}
],
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}Returns Examples
{
"items": [
{
"created_at": "2019-12-27T18:11:19.117Z",
"status": "active",
"updated_at": "2019-12-27T18:11:19.117Z",
"version": "version",
"archived_at": "2019-12-27T18:11:19.117Z",
"cedar_schema": "cedar_schema",
"cedar_schema_json": {},
"deprecated_at": "2019-12-27T18:11:19.117Z",
"is_default": true
}
],
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}