Policy 스키마
Policy 스키마
전체 정책 표현이에요. 정책 유형에 따라 allowlist_v0 또는 cedar_v1 중 정확히 하나가 있어요.
출처: 문서
본문
스키마 — Policy · 유형: object
전체 정책 표현이에요. 정책 유형에 따라 allowlist_v0 또는 cedar_v1 중 정확히 하나가 있어요.
allowlist_v0 — 스키마: AllowlistV0
cedar_v1 — 스키마: CedarV1Policy
created_at · 필수 — 유형: string (date-time)
{
"examples": [
"2026-04-22T00:00:00Z"
],
"format": "date-time",
"type": "string"
}
id · 필수 — 유형: string
{
"examples": [
"pol_06evsmp24r1pg71cm8500546pkbn"
],
"type": "string"
}
name · 필수 — 유형: string — 조직 내에서 고유한 사람이 읽을 수 있는 라벨.
{
"description": "Human-readable label, unique within the organization.",
"examples": [
"Security Research — hardened"
],
"type": "string"
}
org · 필수 — 유형: string
{
"examples": [
"my-org"
],
"type": "string"
}
scope · 필수 — 스키마: Scope
updated_at · 필수 — 유형: string (date-time)
{
"examples": [
"2026-04-22T00:00:00Z"
],
"format": "date-time",
"type": "string"
}
전체 스키마:
{
"description": "Full policy representation. Exactly one of `allowlist_v0` or `cedar_v1` is present, depending on the policy type.\n",
"properties": {
"allowlist_v0": {
"$ref": "#/components/schemas/AllowlistV0"
},
"cedar_v1": {
"$ref": "#/components/schemas/CedarV1Policy"
},
"created_at": {
"examples": [
"2026-04-22T00:00:00Z"
],
"format": "date-time",
"type": "string"
},
"id": {
"examples": [
"pol_06evsmp24r1pg71cm8500546pkbn"
],
"type": "string"
},
"name": {
"description": "Human-readable label, unique within the organization.",
"examples": [
"Security Research — hardened"
],
"type": "string"
},
"org": {
"examples": [
"my-org"
],
"type": "string"
},
"scope": {
"$ref": "#/components/schemas/Scope"
},
"updated_at": {
"examples": [
"2026-04-22T00:00:00Z"
],
"format": "date-time",
"type": "string"
}
},
"required": [
"id",
"name",
"org",
"scope",
"created_at",
"updated_at"
],
"type": "object"
}