Returns a list of zones for the authenticated organization
Parameters
after: Optional[str]
Cursor for forward pagination
minLength1
maxLength255
before: Optional[str]
Cursor for backward pagination
minLength1
maxLength255
cursor: Optional[str]
limit: Optional[int]
Maximum number of items to return
minimum1
maximum100
slug: Optional[str]
Returns
List zones
from keycardai_api import KeycardAPI
client = KeycardAPI()
zones = client.zones.list()
print(zones.items){
"items": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"name": "x",
"organization_id": "organization_id",
"protocols": {
"oauth2": {
"authorization_endpoint": "https://example.com",
"authorization_server_metadata": "https://example.com",
"dcr_enabled": true,
"issuer": "https://example.com",
"jwks_uri": "https://example.com",
"pkce_required": true,
"redirect_uri": "https://example.com",
"registration_endpoint": "https://example.com",
"token_endpoint": "https://example.com"
},
"openid": {
"provider_configuration": "https://example.com",
"userinfo_endpoint": "https://example.com"
}
},
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"default_mcp_gateway_application_id": "default_mcp_gateway_application_id",
"default_resource_id": "default_resource_id",
"description": "description",
"encryption_key": {
"arn": "x",
"type": "aws"
},
"login_flow": "default",
"permissions": {
"zones": {
"read": true,
"update": true,
"delete": false,
"create": false
},
"applications": {
"read": true,
"list": true,
"create": false
}
},
"requires_invitation": true,
"user_identity_provider_id": "user_identity_provider_id"
}
],
"page_info": {
"has_next_page": true,
"has_previous_page": true,
"end_cursor": "end_cursor",
"start_cursor": "start_cursor"
},
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}Returns Examples
{
"items": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"name": "x",
"organization_id": "organization_id",
"protocols": {
"oauth2": {
"authorization_endpoint": "https://example.com",
"authorization_server_metadata": "https://example.com",
"dcr_enabled": true,
"issuer": "https://example.com",
"jwks_uri": "https://example.com",
"pkce_required": true,
"redirect_uri": "https://example.com",
"registration_endpoint": "https://example.com",
"token_endpoint": "https://example.com"
},
"openid": {
"provider_configuration": "https://example.com",
"userinfo_endpoint": "https://example.com"
}
},
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"default_mcp_gateway_application_id": "default_mcp_gateway_application_id",
"default_resource_id": "default_resource_id",
"description": "description",
"encryption_key": {
"arn": "x",
"type": "aws"
},
"login_flow": "default",
"permissions": {
"zones": {
"read": true,
"update": true,
"delete": false,
"create": false
},
"applications": {
"read": true,
"list": true,
"create": false
}
},
"requires_invitation": true,
"user_identity_provider_id": "user_identity_provider_id"
}
],
"page_info": {
"has_next_page": true,
"has_previous_page": true,
"end_cursor": "end_cursor",
"start_cursor": "start_cursor"
},
"pagination": {
"after_cursor": "x",
"before_cursor": "x",
"total_count": 0
}
}