Skip to main content

Cloudflare/access

@swamp/cloudflare/accessv2026.05.22.1· 1d agoMODELS
01README

Cloudflare access infrastructure models

02Release Notes
  • Added: portals
  • Added: servers
  • Added: apps
  • Added: certificates
  • Added: custom_pages
  • Added: groups
  • Added: identity_providers
  • Added: policies
  • Added: policy-tests
  • Added: service_tokens
  • Added: tags
  • Added: users
03Models12
apps.tsv2026.05.22.1

Global Arguments

ArgumentTypeDescription
account_id?stringCloudflare account ID (provide account_id or zone_id)
zone_id?stringCloudflare zone ID (provide account_id or zone_id)
allow_authenticate_via_warp?booleanWhen set to true, users can authenticate to this application using their WARP session. When set to false this application will always require direct IdP authentication. This setting always overrides the organization setting for WARP authentication.
allow_iframe?booleanEnables loading application content in an iFrame.
allowed_idps?arrayThe identity providers your users can select when connecting to this application. Defaults to all IdPs configured in your account.
app_launcher_visible?booleanDisplays the application in the App Launcher.
auto_redirect_to_identity?booleanWhen set to `true`, users skip the identity provider selection step during login. You must specify only one identity provider in allowed_idps.
cors_headers?object
custom_deny_message?stringThe custom error message shown to a user when they are denied access to the application.
custom_deny_url?stringThe custom URL a user is redirected to when they are denied access to the application when failing identity-based rules.
custom_non_identity_deny_url?stringThe custom URL a user is redirected to when they are denied access to the application when failing non-identity rules.
custom_pages?arrayThe custom pages that will be displayed when applicable for this application
destinations?arrayList of destinations secured by Access. This supersedes `self_hosted_domains` to allow for more flexibility in defining different types of domains. If `destinations` are provided, then `self_hosted_domains` will be ignored.\n
domain?stringThe primary hostname and path secured by Access. This domain will be displayed if the app is visible in the App Launcher.
enable_binding_cookie?booleanEnables the binding cookie, which increases security against compromised authorization tokens and CSRF attacks.
http_only_cookie_attribute?booleanEnables the HttpOnly cookie attribute, which increases security against XSS attacks.
logo_url?stringThe image URL for the logo shown in the App Launcher dashboard.
mfa_config?objectConfigures multi-factor authentication (MFA) settings.
name?stringThe name of the application.
oauth_configuration?object**Beta:** Optional configuration for managing an OAuth authorization flow controlled by Access. When set, Access will act as the OAuth authorization server for this application. Only compatible with OAuth clients that support [RFC 8707](https://datatracker.ietf.org/doc/html/rfc8707) (Resource Indicators for OAuth 2.0). This feature is currently in beta.\n
options_preflight_bypass?booleanAllows options preflight requests to bypass Access authentication and go directly to the origin. Cannot turn on if cors_headers is set.
path_cookie_attribute?booleanEnables cookie paths to scope an application's JWT to the application path. If disabled, the JWT will scope to the hostname by default
read_service_tokens_from_header?stringAllows matching Access Service Tokens passed HTTP in a single header with this name.\nThis works as an alternative to the (CF-Access-Client-Id, CF-Access-Client-Secret) pair of headers.\nThe header value will be interpreted as a json object similar to:\n {\n "cf-access-client-id": "88bf3b6d86161464f6509f7219099e57.access.example.com",\n "cf-access-client-secret": "bdd31cbc4dec990953e39163fbbb194c93313ca9f0a6e420346af9d326b1d2a5"\n }\n
same_site_cookie_attribute?stringSets the SameSite cookie setting, which provides increased security against CSRF attacks.
scim_config?objectConfiguration for provisioning to this application via SCIM. This is currently in closed beta.
self_hosted_domains?arrayList of public domains that Access will secure. This field is deprecated in favor of `destinations` and will be supported until **November 21, 2025.** If `destinations` are provided, then `self_hosted_domains` will be ignored.\n
service_auth_401_redirect?booleanReturns a 401 status code when the request is blocked by a Service Auth policy.
session_duration?stringThe amount of time that tokens issued for this application will be valid. Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. Note: unsupported for infrastructure type applications.
skip_interstitial?booleanEnables automatic authentication through cloudflared.
tags?arrayThe tags you want assigned to an application. Tags are used to filter applications in the App Launcher dashboard.
typestringThe application type.
use_clientless_isolation_app_launcher_url?booleanDetermines if users can access this application via a clientless browser isolation URL.\nThis allows users to access private domains without connecting to Gateway. The option requires\nClientless Browser Isolation to be set up with policies that allow users of this application.\n
policies?arrayThe policies that Access applies to the application, in ascending order of precedence. Items can reference existing policies or create new policies exclusive to the application. Reusable and inline policies are mutually exclusive.
saas_app?object
app_launcher_logo_url?stringThe image URL of the logo shown in the App Launcher header.
bg_color?stringThe background color of the App Launcher page.
footer_links?arrayThe links in the App Launcher footer.
header_bg_color?stringThe background color of the App Launcher header.
landing_page_design?objectThe design of the App Launcher landing page shown to users when they log in.
skip_app_launcher_login_page?booleanDetermines when to skip the App Launcher landing page.
target_criteria?array
fn create()
Create a Apps
fn get(id: string)
Get a Apps
ArgumentTypeDescription
idstringThe ID of the Apps
fn update()
Update Apps attributes
fn delete(id: string)
Delete the Apps
ArgumentTypeDescription
idstringThe ID of the Apps
fn sync()
Sync Apps state from Cloudflare
certificates.tsv2026.05.22.1

Global Arguments

ArgumentTypeDescription
account_id?stringCloudflare account ID (provide account_id or zone_id)
zone_id?stringCloudflare zone ID (provide account_id or zone_id)
associated_hostnames?arrayThe hostnames of the applications that will use this certificate.
namestringThe name of the certificate.
certificatestringThe certificate content.
fn create()
Create a Certificates
fn get(id: string)
Get a Certificates
ArgumentTypeDescription
idstringThe ID of the Certificates
fn update()
Update Certificates attributes
fn delete(id: string)
Delete the Certificates
ArgumentTypeDescription
idstringThe ID of the Certificates
fn sync()
Sync Certificates state from Cloudflare
custom_pages.tsv2026.05.22.1

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
app_count?numberNumber of apps the custom page is assigned to.
created_at?string
custom_htmlstringCustom page HTML.
namestringCustom page name.
typeenumCustom page type.
uid?stringUUID.
updated_at?string
fn create()
Create a Custom Pages
fn get(id: string)
Get a Custom Pages
ArgumentTypeDescription
idstringThe ID of the Custom Pages
fn update()
Update Custom Pages attributes
fn delete(id: string)
Delete the Custom Pages
ArgumentTypeDescription
idstringThe ID of the Custom Pages
fn sync()
Sync Custom Pages state from Cloudflare
groups.tsv2026.05.22.1

Global Arguments

ArgumentTypeDescription
account_id?stringCloudflare account ID (provide account_id or zone_id)
zone_id?stringCloudflare zone ID (provide account_id or zone_id)
exclude?arrayRules evaluated with a NOT logical operator. To match a policy, a user cannot meet any of the Exclude rules.
includearrayRules evaluated with an OR logical operator. A user needs to meet only one of the Include rules.
is_default?booleanWhether this is the default group
namestringThe name of the Access group.
require?arrayRules evaluated with an AND logical operator. To match a policy, a user must meet all of the Require rules.
fn create()
Create a Groups
fn get(id: string)
Get a Groups
ArgumentTypeDescription
idstringThe ID of the Groups
fn update()
Update Groups attributes
fn delete(id: string)
Delete the Groups
ArgumentTypeDescription
idstringThe ID of the Groups
fn sync()
Sync Groups state from Cloudflare
identity_providers.tsv2026.05.22.1

Global Arguments

ArgumentTypeDescription
account_id?stringCloudflare account ID (provide account_id or zone_id)
zone_id?stringCloudflare zone ID (provide account_id or zone_id)
config?object
id?stringUUID.
namestringThe name of the identity provider, shown to users on the login page.
saml_certificate_set?objectA SAML encryption certificate set containing current and optionally previous certificates for encryption key rotation.
saml_certificate_set_id?stringThe UID of the SAML encryption certificate set assigned to this Identity Provider.\nOnly present for SAML identity providers with encryption configured.\nCreate a certificate set via POST to `/identity_providers/{id}/saml_certificate`.\n
scim_config?objectThe configuration settings for enabling a System for Cross-Domain Identity Management (SCIM) with the identity provider.
typeenumThe type of identity provider. To determine the value for a specific provider, refer to our [developer documentation](https://developers.cloudflare.com/cloudflare-one/identity/idp-integration/).
fn create()
Create a Identity Providers
fn get(id: string)
Get a Identity Providers
ArgumentTypeDescription
idstringThe ID of the Identity Providers
fn update()
Update Identity Providers attributes
fn delete(id: string)
Delete the Identity Providers
ArgumentTypeDescription
idstringThe ID of the Identity Providers
fn sync()
Sync Identity Providers state from Cloudflare
policies.tsv2026.05.22.1

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
decisionenumThe action Access will take if a user matches this policy. Infrastructure application policies can only use the Allow action.
exclude?arrayRules evaluated with a NOT logical operator. To match the policy, a user cannot meet any of the Exclude rules.
includearrayRules evaluated with an OR logical operator. A user needs to meet only one of the Include rules.
namestringThe name of the Access policy.
require?arrayRules evaluated with an AND logical operator. To match the policy, a user must meet all of the Require rules.
fn create()
Create a Policies
fn get(id: string)
Get a Policies
ArgumentTypeDescription
idstringThe ID of the Policies
fn update()
Update Policies attributes
fn delete(id: string)
Delete the Policies
ArgumentTypeDescription
idstringThe ID of the Policies
fn sync()
Sync Policies state from Cloudflare
policy-tests.tsv2026.05.22.1

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
policies?array
fn create()
Create a Policy-tests
fn get(id: string)
Get a Policy-tests
ArgumentTypeDescription
idstringThe ID of the Policy-tests
fn sync()
Sync Policy-tests state from Cloudflare
portals.tsv2026.05.22.1

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
allow_code_mode?booleanAllow remote code execution in Dynamic Workers (beta)
description?string
hostnamestring
namestring
secure_web_gateway?booleanRoute outbound MCP traffic through Zero Trust Secure Web Gateway
servers?array
idstringportal id
fn create()
Create a Portals
fn get(id: string)
Get a Portals
ArgumentTypeDescription
idstringThe ID of the Portals
fn update()
Update Portals attributes
fn delete(id: string)
Delete the Portals
ArgumentTypeDescription
idstringThe ID of the Portals
fn sync()
Sync Portals state from Cloudflare
servers.tsv2026.05.22.1

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
auth_credentials?string
description?string
is_shared_oauth_callback_enabled?booleanWhen true, the gateway worker uses the shared Cloudflare-owned OAuth callback endpoint as the redirect_uri for upstream on-behalf OAuth, instead of the customer portal hostname. New servers default to true; existing servers default to false. Effective behavior is gated by the gateway worker's per-env rollout mode KV key.
namestring
updated_prompts?array
updated_tools?array
auth_typeenum
hostnamestring
idstringserver id
fn create()
Create a Servers
fn get(id: string)
Get a Servers
ArgumentTypeDescription
idstringThe ID of the Servers
fn update()
Update Servers attributes
fn delete(id: string)
Delete the Servers
ArgumentTypeDescription
idstringThe ID of the Servers
fn sync()
Sync Servers state from Cloudflare
service_tokens.tsv2026.05.22.1

Global Arguments

ArgumentTypeDescription
account_id?stringCloudflare account ID (provide account_id or zone_id)
zone_id?stringCloudflare zone ID (provide account_id or zone_id)
client_secret_version?numberA version number identifying the current `client_secret` associated with the service token. Incrementing it triggers a rotation; the previous secret will still be accepted until the time indicated by `previous_client_secret_expires_at`.
duration?stringThe duration for how long the service token will be valid. Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h).
namestringThe name of the service token.
previous_client_secret_expires_at?stringThe expiration of the previous `client_secret`. This can be modified at any point after a rotation. For example, you may extend it further into the future if you need more time to update services with the new secret; or move it into the past to immediately invalidate the previous token in case of compromise.
fn create()
Create a Service Tokens
fn get(id: string)
Get a Service Tokens
ArgumentTypeDescription
idstringThe ID of the Service Tokens
fn update()
Update Service Tokens attributes
fn delete(id: string)
Delete the Service Tokens
ArgumentTypeDescription
idstringThe ID of the Service Tokens
fn sync()
Sync Service Tokens state from Cloudflare
tags.tsv2026.05.22.1

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
created_at?string
name?stringThe name of the tag
updated_at?string
fn create()
Create a Tags
fn get(id: string)
Get a Tags
ArgumentTypeDescription
idstringThe ID of the Tags
fn update()
Update Tags attributes
fn delete(id: string)
Delete the Tags
ArgumentTypeDescription
idstringThe ID of the Tags
fn sync()
Sync Tags state from Cloudflare
users.tsv2026.05.22.1

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
emailstringThe email of the user.
name?stringThe name of the user.
fn create()
Create a Users
fn get(id: string)
Get a Users
ArgumentTypeDescription
idstringThe ID of the Users
fn update()
Update Users attributes
fn delete(id: string)
Delete the Users
ArgumentTypeDescription
idstringThe ID of the Users
fn sync()
Sync Users state from Cloudflare
04Stats
A
100 / 100
Downloads
0
Archive size
41.6 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
05Platforms
06Labels