Create Access Policy Tool
create_access_policy_toolAdds a policy to a Cloudflare Access application by specifying include, exclude, or require rules and an allow, deny, bypass, or non_identity decision.
Instructions
Add a policy to an Access application.
Each rule is an object with exactly one key: {"email": "user@example.com"}, {"email_domain": "example.com"}, {"ip": "203.0.113.0/24"} or {"everyone": true}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Policy name | |
| app_id | Yes | Application ID (UUID) | |
| exclude | No | Rules of which a visitor must match none (optional) | |
| include | Yes | Rules of which a visitor must match at least one | |
| require | No | Rules of which a visitor must match all (optional) | |
| zone_id | Yes | Zone ID (32-character hex string) | |
| decision | Yes | allow, deny, bypass (no login at all) or non_identity |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||