Cloudflare
On this page
- Cloudflare Zero Trust settings and tunnel status (admin)
- Protect the panel domain with Cloudflare Access (admin, write)
- Require a valid Cloudflare Access token for the panel domain (admin, write)
- Save the account and token, discover zones and optionally enable a legacy zone id (admin, write)
- Checks that must pass before the public ports are closed (admin)
- Set up SSH through Access for Infrastructure and return the server script (admin, write)
- Remove the SSH route, target, and application (admin, write)
- Record that SSH through Cloudflare was set up and tested (admin, write)
- Script that makes the server trust Cloudflare SSH certificates (admin)
- Create the tunnel and start its replicas (admin, write)
- Remove the tunnel, its DNS records, Access applications, and replicas (admin, write)
- Refresh the cached stable cloudflared release from GitHub (admin, write)
- Publish every domain through the tunnel and point DNS at it (admin, write)
- Set the number of tunnel replicas, 1 to 5 (admin, write)
- Inspect Cloudflare connections, local replicas, versions and rolling update progress (admin)
- Roll tunnel connectors one at a time using a registered surge (admin, write)
- List discovered zones, enablement and per-zone visibility errors (admin)
- Refresh all pages of zones visible to the connected account token without deleting DNS records (admin, write)
- Enable or disable a discovered zone without deleting its records (admin, write)
Cloudflare Zero Trust settings and tunnel status (admin)
/api/v1/cloudflareResponses
200 Cloudflare Zero Trust settings and tunnel status (admin)
CloudflareStatusaccess_configuredbooleanrequiredaccess_emailsstring[]requiredaccess_enforcedbooleanrequiredaccount_idstringrequiredagent_bypassbooleanrequiredconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)requiredpanel_domainstring | nullpublished_hostsstring[]requiredreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)requiredreplicas_runningintegerrequiredssh_addressstringrequiredssh_ca_public_keystringrequiredssh_configuredbooleanrequiredssh_readybooleanrequiredssh_usersstring[]requiredteam_domainstringrequiredtoken_savedbooleanrequiredTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringrequiredtunnel_publishedbooleanrequiredzone_idstringrequiredzone_namestringrequired
Protect the panel domain with Cloudflare Access (admin, write)
/api/v1/cloudflare/accessRequest bodyapplication/json
SetupAccess
agent_bypassbooleanLet AI agents and API clients reach
/mcp,/oauth,/.well-known, and/api/healthwithout an Access login. They still need their own tokens.emailsstring[]requiredEmail addresses allowed through Cloudflare Access.
team_domainstringrequiredYour Zero Trust team domain, such as
myteam.cloudflareaccess.comor justmyteam.
Responses
200 Protect the panel domain with Cloudflare Access (admin, write)
CloudflareStatusaccess_configuredbooleanrequiredaccess_emailsstring[]requiredaccess_enforcedbooleanrequiredaccount_idstringrequiredagent_bypassbooleanrequiredconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)requiredpanel_domainstring | nullpublished_hostsstring[]requiredreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)requiredreplicas_runningintegerrequiredssh_addressstringrequiredssh_ca_public_keystringrequiredssh_configuredbooleanrequiredssh_readybooleanrequiredssh_usersstring[]requiredteam_domainstringrequiredtoken_savedbooleanrequiredTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringrequiredtunnel_publishedbooleanrequiredzone_idstringrequiredzone_namestringrequired
Require a valid Cloudflare Access token for the panel domain (admin, write)
/api/v1/cloudflare/access/enforcementRequest bodyapplication/json
SetEnforcement
enforcedbooleanrequired
Responses
200 Require a valid Cloudflare Access token for the panel domain (admin, write)
CloudflareStatusaccess_configuredbooleanrequiredaccess_emailsstring[]requiredaccess_enforcedbooleanrequiredaccount_idstringrequiredagent_bypassbooleanrequiredconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)requiredpanel_domainstring | nullpublished_hostsstring[]requiredreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)requiredreplicas_runningintegerrequiredssh_addressstringrequiredssh_ca_public_keystringrequiredssh_configuredbooleanrequiredssh_readybooleanrequiredssh_usersstring[]requiredteam_domainstringrequiredtoken_savedbooleanrequiredTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringrequiredtunnel_publishedbooleanrequiredzone_idstringrequiredzone_namestringrequired
Save the account and token, discover zones and optionally enable a legacy zone id (admin, write)
/api/v1/cloudflare/credentialsRequest bodyapplication/json
SaveCredentials
account_idstringrequired32-character Cloudflare account id.
api_tokenstring | nullAPI token. Leave out to keep the saved one.
zone_idstringOptional legacy zone id. When supplied, this zone is enabled.
Responses
200 Save the account and token, discover zones and optionally enable a legacy zone id (admin, write)
CloudflareStatusaccess_configuredbooleanrequiredaccess_emailsstring[]requiredaccess_enforcedbooleanrequiredaccount_idstringrequiredagent_bypassbooleanrequiredconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)requiredpanel_domainstring | nullpublished_hostsstring[]requiredreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)requiredreplicas_runningintegerrequiredssh_addressstringrequiredssh_ca_public_keystringrequiredssh_configuredbooleanrequiredssh_readybooleanrequiredssh_usersstring[]requiredteam_domainstringrequiredtoken_savedbooleanrequiredTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringrequiredtunnel_publishedbooleanrequiredzone_idstringrequiredzone_namestringrequired
Checks that must pass before the public ports are closed (admin)
/api/v1/cloudflare/preflightResponses
200 Checks that must pass before the public ports are closed (admin)
ReadinesschecksPreflightCheckView[]requiredPreflightCheckView[]
idstringrequiredmessagestringrequiredokbooleanrequiredrequiredbooleanrequiredA failing required check blocks closing the public ports.
readybooleanrequiredTrue when every required check passes, so the installer may close the ports.
skippedSkippedHost[]requiredSkippedHost[]
hoststringrequiredreasonstringrequired
Set up SSH through Access for Infrastructure and return the server script (admin, write)
/api/v1/cloudflare/sshRequest bodyapplication/json
SetupSsh
addressstringrequiredIPv4 address
cloudflaredreaches the server's SSH daemon on, for example the Docker gateway of therudder-proxynetwork.usersstring[]requiredUnix accounts Cloudflare may log people in as.
Responses
200 Set up SSH through Access for Infrastructure and return the server script (admin, write)
SshSetupscriptstringrequiredRun as root on the server so
sshdtrusts Cloudflare's certificates.statusCloudflareStatusrequiredCloudflareStatus
access_configuredbooleanrequiredaccess_emailsstring[]requiredaccess_enforcedbooleanrequiredaccount_idstringrequiredagent_bypassbooleanrequiredconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)requiredpanel_domainstring | nullpublished_hostsstring[]requiredreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)requiredreplicas_runningintegerrequiredssh_addressstringrequiredssh_ca_public_keystringrequiredssh_configuredbooleanrequiredssh_readybooleanrequiredssh_usersstring[]requiredteam_domainstringrequiredtoken_savedbooleanrequiredTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringrequiredtunnel_publishedbooleanrequiredzone_idstringrequiredzone_namestringrequired
Remove the SSH route, target, and application (admin, write)
/api/v1/cloudflare/sshResponses
- 204 Remove the SSH route, target, and application (admin, write)
Record that SSH through Cloudflare was set up and tested (admin, write)
/api/v1/cloudflare/ssh/confirmationRequest bodyapplication/json
ConfirmSsh
confirmedbooleanrequiredTrue once the script ran on the server and a connection through Cloudflare worked.
Responses
200 Record that SSH through Cloudflare was set up and tested (admin, write)
CloudflareStatusaccess_configuredbooleanrequiredaccess_emailsstring[]requiredaccess_enforcedbooleanrequiredaccount_idstringrequiredagent_bypassbooleanrequiredconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)requiredpanel_domainstring | nullpublished_hostsstring[]requiredreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)requiredreplicas_runningintegerrequiredssh_addressstringrequiredssh_ca_public_keystringrequiredssh_configuredbooleanrequiredssh_readybooleanrequiredssh_usersstring[]requiredteam_domainstringrequiredtoken_savedbooleanrequiredTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringrequiredtunnel_publishedbooleanrequiredzone_idstringrequiredzone_namestringrequired
Script that makes the server trust Cloudflare SSH certificates (admin)
/api/v1/cloudflare/ssh/scriptResponses
200 Script that makes the server trust Cloudflare SSH certificates (admin)
SshScriptscriptstringrequired
Create the tunnel and start its replicas (admin, write)
/api/v1/cloudflare/tunnelRequest bodyapplication/json
CreateTunnel
replicasinteger | null (int64)Number of
cloudflaredreplicas, 1 to 5. Defaults to 2.
Responses
201 Create the tunnel and start its replicas (admin, write)
CloudflareStatusaccess_configuredbooleanrequiredaccess_emailsstring[]requiredaccess_enforcedbooleanrequiredaccount_idstringrequiredagent_bypassbooleanrequiredconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)requiredpanel_domainstring | nullpublished_hostsstring[]requiredreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)requiredreplicas_runningintegerrequiredssh_addressstringrequiredssh_ca_public_keystringrequiredssh_configuredbooleanrequiredssh_readybooleanrequiredssh_usersstring[]requiredteam_domainstringrequiredtoken_savedbooleanrequiredTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringrequiredtunnel_publishedbooleanrequiredzone_idstringrequiredzone_namestringrequired
Remove the tunnel, its DNS records, Access applications, and replicas (admin, write)
/api/v1/cloudflare/tunnelResponses
200 Remove the tunnel, its DNS records, Access applications, and replicas (admin, write)
TeardownReportremoved_dnsstring[]requiredHostnames whose DNS record Rudder removed. Point them back at this server.
warningsstring[]requiredSteps that did not finish; the rest was removed.
Refresh the cached stable cloudflared release from GitHub (admin, write)
/api/v1/cloudflare/tunnel/checkResponses
200 Refresh the cached stable cloudflared release from GitHub (admin, write)
TunnelStatuscheck_errorstring | nullchecked_atstring | null (date-time)connection_errorstring | nullconnectionsTunnelConnection[]requiredTunnelConnection[]
colostring | nullconnection_idstring | nullconnector_idstringrequiredhealthybooleanrequiredopened_atstring | nullorigin_ipstring | nullversionstring | null
image_overriddenbooleanrequiredlatest_releaseCloudflaredRelease | nullCloudflaredRelease | null
One of:
CloudflaredReleasehtml_urlstring | nullpublished_atstring | nullversionstringrequired
null
pinned_versionstring | nullreplica_errorstring | nullreplicasTunnelReplica[]requiredTunnelReplica[]
digeststring | nullidstringrequiredimagestringrequirednamestringrequiredrestartsinteger (int64)requiredstatestringrequireduptime_secondsinteger | null (int64)versionstring | null
tunnel_idstring | nullupdateTunnelUpdateProgress | nullTunnelUpdateProgress | null
One of:
TunnelUpdateProgresscompletedinteger (int32)requiredfinished_atstring | null (date-time)imagestringrequiredmessagestring | nullreplicainteger | null (int32)started_atstring (date-time)requiredstatusstringrequiredtotalinteger (int32)requiredversionstringrequired
null
update_availablebooleanrequired
Publish every domain through the tunnel and point DNS at it (admin, write)
/api/v1/cloudflare/tunnel/publishRequest bodyapplication/json
PublishRequest
overwrite_dnsbooleanReplace an existing A, AAAA, or CNAME record with the tunnel's. Off by default.
Responses
200 Publish every domain through the tunnel and point DNS at it (admin, write)
SyncReportdnsDnsOutcome[]requiredDnsOutcome[]
actionstringrequiredcreated,kept,replaced,conflict, orerror.detailstring | nullhoststringrequiredzone_idstringrequiredzone_namestringrequired
hostnamesstring[]requiredpendingintegerrequiredHostnames whose DNS record Rudder did not change.
skippedSkippedHost[]requiredSkippedHost[]
hoststringrequiredreasonstringrequired
zonesZonePublishResult[]requiredZonePublishResult[]
errorsstring[]requiredpublished_hostsstring[]requiredzone_idstringrequiredzone_namestringrequired
Set the number of tunnel replicas, 1 to 5 (admin, write)
/api/v1/cloudflare/tunnel/replicasRequest bodyapplication/json
SetReplicas
replicasinteger (int64)required
Responses
200 Set the number of tunnel replicas, 1 to 5 (admin, write)
CloudflareStatusaccess_configuredbooleanrequiredaccess_emailsstring[]requiredaccess_enforcedbooleanrequiredaccount_idstringrequiredagent_bypassbooleanrequiredconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)requiredpanel_domainstring | nullpublished_hostsstring[]requiredreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)requiredreplicas_runningintegerrequiredssh_addressstringrequiredssh_ca_public_keystringrequiredssh_configuredbooleanrequiredssh_readybooleanrequiredssh_usersstring[]requiredteam_domainstringrequiredtoken_savedbooleanrequiredTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringrequiredtunnel_publishedbooleanrequiredzone_idstringrequiredzone_namestringrequired
Inspect Cloudflare connections, local replicas, versions and rolling update progress (admin)
/api/v1/cloudflare/tunnel/statusResponses
200 Inspect Cloudflare connections, local replicas, versions and rolling update progress (admin)
TunnelStatuscheck_errorstring | nullchecked_atstring | null (date-time)connection_errorstring | nullconnectionsTunnelConnection[]requiredTunnelConnection[]
colostring | nullconnection_idstring | nullconnector_idstringrequiredhealthybooleanrequiredopened_atstring | nullorigin_ipstring | nullversionstring | null
image_overriddenbooleanrequiredlatest_releaseCloudflaredRelease | nullCloudflaredRelease | null
One of:
CloudflaredReleasehtml_urlstring | nullpublished_atstring | nullversionstringrequired
null
pinned_versionstring | nullreplica_errorstring | nullreplicasTunnelReplica[]requiredTunnelReplica[]
digeststring | nullidstringrequiredimagestringrequirednamestringrequiredrestartsinteger (int64)requiredstatestringrequireduptime_secondsinteger | null (int64)versionstring | null
tunnel_idstring | nullupdateTunnelUpdateProgress | nullTunnelUpdateProgress | null
One of:
TunnelUpdateProgresscompletedinteger (int32)requiredfinished_atstring | null (date-time)imagestringrequiredmessagestring | nullreplicainteger | null (int32)started_atstring (date-time)requiredstatusstringrequiredtotalinteger (int32)requiredversionstringrequired
null
update_availablebooleanrequired
Roll tunnel connectors one at a time using a registered surge (admin, write)
/api/v1/cloudflare/tunnel/updateRequest bodyapplication/json
UpdateTunnel
versionstring | null
Responses
202 Roll tunnel connectors one at a time using a registered surge (admin, write)
TunnelUpdateProgresscompletedinteger (int32)requiredfinished_atstring | null (date-time)imagestringrequiredmessagestring | nullreplicainteger | null (int32)started_atstring (date-time)requiredstatusstringrequiredtotalinteger (int32)requiredversionstringrequired
List discovered zones, enablement and per-zone visibility errors (admin)
/api/v1/cloudflare/zonesResponses
200 List discovered zones, enablement and per-zone visibility errors (admin)
CloudflareZone[]accessiblebooleanrequiredaccount_idstringrequiredenabledbooleanrequiredlast_errorstring | nulllast_seen_atstring (date-time)requirednamestringrequiredpublished_hostsstring[]requiredstatusstringrequiredzone_idstringrequired
Refresh all pages of zones visible to the connected account token without deleting DNS records (admin, write)
/api/v1/cloudflare/zones/refreshResponses
200 Refresh all pages of zones visible to the connected account token without deleting DNS records (admin, write)
CloudflareZone[]accessiblebooleanrequiredaccount_idstringrequiredenabledbooleanrequiredlast_errorstring | nulllast_seen_atstring (date-time)requirednamestringrequiredpublished_hostsstring[]requiredstatusstringrequiredzone_idstringrequired
Enable or disable a discovered zone without deleting its records (admin, write)
/api/v1/cloudflare/zones/{zone_id}Request bodyapplication/json
SetZone
enabledbooleanrequired
Responses
200 Enable or disable a discovered zone without deleting its records (admin, write)
CloudflareZone[]accessiblebooleanrequiredaccount_idstringrequiredenabledbooleanrequiredlast_errorstring | nulllast_seen_atstring (date-time)requirednamestringrequiredpublished_hostsstring[]requiredstatusstringrequiredzone_idstringrequired