Cloudflare
Trong trang này
- 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/cloudflarePhản hồi
200 Cloudflare Zero Trust settings and tunnel status (admin)
CloudflareStatusaccess_configuredbooleanbắt buộcaccess_emailsstring[]bắt buộcaccess_enforcedbooleanbắt buộcaccount_idstringbắt buộcagent_bypassbooleanbắt buộcconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)bắt buộcpanel_domainstring | nullpublished_hostsstring[]bắt buộcreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)bắt buộcreplicas_runningintegerbắt buộcssh_addressstringbắt buộcssh_ca_public_keystringbắt buộcssh_configuredbooleanbắt buộcssh_readybooleanbắt buộcssh_usersstring[]bắt buộcteam_domainstringbắt buộctoken_savedbooleanbắt buộcTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringbắt buộctunnel_publishedbooleanbắt buộczone_idstringbắt buộczone_namestringbắt buộc
Protect the panel domain with Cloudflare Access (admin, write)
/api/v1/cloudflare/accessNội dung gửi lênapplication/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[]bắt buộcEmail addresses allowed through Cloudflare Access.
team_domainstringbắt buộcYour Zero Trust team domain, such as
myteam.cloudflareaccess.comor justmyteam.
Phản hồi
200 Protect the panel domain with Cloudflare Access (admin, write)
CloudflareStatusaccess_configuredbooleanbắt buộcaccess_emailsstring[]bắt buộcaccess_enforcedbooleanbắt buộcaccount_idstringbắt buộcagent_bypassbooleanbắt buộcconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)bắt buộcpanel_domainstring | nullpublished_hostsstring[]bắt buộcreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)bắt buộcreplicas_runningintegerbắt buộcssh_addressstringbắt buộcssh_ca_public_keystringbắt buộcssh_configuredbooleanbắt buộcssh_readybooleanbắt buộcssh_usersstring[]bắt buộcteam_domainstringbắt buộctoken_savedbooleanbắt buộcTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringbắt buộctunnel_publishedbooleanbắt buộczone_idstringbắt buộczone_namestringbắt buộc
Require a valid Cloudflare Access token for the panel domain (admin, write)
/api/v1/cloudflare/access/enforcementNội dung gửi lênapplication/json
SetEnforcement
enforcedbooleanbắt buộc
Phản hồi
200 Require a valid Cloudflare Access token for the panel domain (admin, write)
CloudflareStatusaccess_configuredbooleanbắt buộcaccess_emailsstring[]bắt buộcaccess_enforcedbooleanbắt buộcaccount_idstringbắt buộcagent_bypassbooleanbắt buộcconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)bắt buộcpanel_domainstring | nullpublished_hostsstring[]bắt buộcreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)bắt buộcreplicas_runningintegerbắt buộcssh_addressstringbắt buộcssh_ca_public_keystringbắt buộcssh_configuredbooleanbắt buộcssh_readybooleanbắt buộcssh_usersstring[]bắt buộcteam_domainstringbắt buộctoken_savedbooleanbắt buộcTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringbắt buộctunnel_publishedbooleanbắt buộczone_idstringbắt buộczone_namestringbắt buộc
Save the account and token, discover zones and optionally enable a legacy zone id (admin, write)
/api/v1/cloudflare/credentialsNội dung gửi lênapplication/json
SaveCredentials
account_idstringbắt buộc32-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.
Phản hồi
200 Save the account and token, discover zones and optionally enable a legacy zone id (admin, write)
CloudflareStatusaccess_configuredbooleanbắt buộcaccess_emailsstring[]bắt buộcaccess_enforcedbooleanbắt buộcaccount_idstringbắt buộcagent_bypassbooleanbắt buộcconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)bắt buộcpanel_domainstring | nullpublished_hostsstring[]bắt buộcreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)bắt buộcreplicas_runningintegerbắt buộcssh_addressstringbắt buộcssh_ca_public_keystringbắt buộcssh_configuredbooleanbắt buộcssh_readybooleanbắt buộcssh_usersstring[]bắt buộcteam_domainstringbắt buộctoken_savedbooleanbắt buộcTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringbắt buộctunnel_publishedbooleanbắt buộczone_idstringbắt buộczone_namestringbắt buộc
Checks that must pass before the public ports are closed (admin)
/api/v1/cloudflare/preflightPhản hồi
200 Checks that must pass before the public ports are closed (admin)
ReadinesschecksPreflightCheckView[]bắt buộcPreflightCheckView[]
idstringbắt buộcmessagestringbắt buộcokbooleanbắt buộcrequiredbooleanbắt buộcA failing required check blocks closing the public ports.
readybooleanbắt buộcTrue when every required check passes, so the installer may close the ports.
skippedSkippedHost[]bắt buộcSkippedHost[]
hoststringbắt buộcreasonstringbắt buộc
Set up SSH through Access for Infrastructure and return the server script (admin, write)
/api/v1/cloudflare/sshNội dung gửi lênapplication/json
SetupSsh
addressstringbắt buộcIPv4 address
cloudflaredreaches the server's SSH daemon on, for example the Docker gateway of therudder-proxynetwork.usersstring[]bắt buộcUnix accounts Cloudflare may log people in as.
Phản hồi
200 Set up SSH through Access for Infrastructure and return the server script (admin, write)
SshSetupscriptstringbắt buộcRun as root on the server so
sshdtrusts Cloudflare's certificates.statusCloudflareStatusbắt buộcCloudflareStatus
access_configuredbooleanbắt buộcaccess_emailsstring[]bắt buộcaccess_enforcedbooleanbắt buộcaccount_idstringbắt buộcagent_bypassbooleanbắt buộcconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)bắt buộcpanel_domainstring | nullpublished_hostsstring[]bắt buộcreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)bắt buộcreplicas_runningintegerbắt buộcssh_addressstringbắt buộcssh_ca_public_keystringbắt buộcssh_configuredbooleanbắt buộcssh_readybooleanbắt buộcssh_usersstring[]bắt buộcteam_domainstringbắt buộctoken_savedbooleanbắt buộcTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringbắt buộctunnel_publishedbooleanbắt buộczone_idstringbắt buộczone_namestringbắt buộc
Remove the SSH route, target, and application (admin, write)
/api/v1/cloudflare/sshPhản hồi
- 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/confirmationNội dung gửi lênapplication/json
ConfirmSsh
confirmedbooleanbắt buộcTrue once the script ran on the server and a connection through Cloudflare worked.
Phản hồi
200 Record that SSH through Cloudflare was set up and tested (admin, write)
CloudflareStatusaccess_configuredbooleanbắt buộcaccess_emailsstring[]bắt buộcaccess_enforcedbooleanbắt buộcaccount_idstringbắt buộcagent_bypassbooleanbắt buộcconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)bắt buộcpanel_domainstring | nullpublished_hostsstring[]bắt buộcreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)bắt buộcreplicas_runningintegerbắt buộcssh_addressstringbắt buộcssh_ca_public_keystringbắt buộcssh_configuredbooleanbắt buộcssh_readybooleanbắt buộcssh_usersstring[]bắt buộcteam_domainstringbắt buộctoken_savedbooleanbắt buộcTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringbắt buộctunnel_publishedbooleanbắt buộczone_idstringbắt buộczone_namestringbắt buộc
Script that makes the server trust Cloudflare SSH certificates (admin)
/api/v1/cloudflare/ssh/scriptPhản hồi
200 Script that makes the server trust Cloudflare SSH certificates (admin)
SshScriptscriptstringbắt buộc
Create the tunnel and start its replicas (admin, write)
/api/v1/cloudflare/tunnelNội dung gửi lênapplication/json
CreateTunnel
replicasinteger | null (int64)Number of
cloudflaredreplicas, 1 to 5. Defaults to 2.
Phản hồi
201 Create the tunnel and start its replicas (admin, write)
CloudflareStatusaccess_configuredbooleanbắt buộcaccess_emailsstring[]bắt buộcaccess_enforcedbooleanbắt buộcaccount_idstringbắt buộcagent_bypassbooleanbắt buộcconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)bắt buộcpanel_domainstring | nullpublished_hostsstring[]bắt buộcreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)bắt buộcreplicas_runningintegerbắt buộcssh_addressstringbắt buộcssh_ca_public_keystringbắt buộcssh_configuredbooleanbắt buộcssh_readybooleanbắt buộcssh_usersstring[]bắt buộcteam_domainstringbắt buộctoken_savedbooleanbắt buộcTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringbắt buộctunnel_publishedbooleanbắt buộczone_idstringbắt buộczone_namestringbắt buộc
Remove the tunnel, its DNS records, Access applications, and replicas (admin, write)
/api/v1/cloudflare/tunnelPhản hồi
200 Remove the tunnel, its DNS records, Access applications, and replicas (admin, write)
TeardownReportremoved_dnsstring[]bắt buộcHostnames whose DNS record Rudder removed. Point them back at this server.
warningsstring[]bắt buộcSteps that did not finish; the rest was removed.
Refresh the cached stable cloudflared release from GitHub (admin, write)
/api/v1/cloudflare/tunnel/checkPhản hồi
200 Refresh the cached stable cloudflared release from GitHub (admin, write)
TunnelStatuscheck_errorstring | nullchecked_atstring | null (date-time)connection_errorstring | nullconnectionsTunnelConnection[]bắt buộcTunnelConnection[]
colostring | nullconnection_idstring | nullconnector_idstringbắt buộchealthybooleanbắt buộcopened_atstring | nullorigin_ipstring | nullversionstring | null
image_overriddenbooleanbắt buộclatest_releaseCloudflaredRelease | nullCloudflaredRelease | null
Một trong:
CloudflaredReleasehtml_urlstring | nullpublished_atstring | nullversionstringbắt buộc
null
pinned_versionstring | nullreplica_errorstring | nullreplicasTunnelReplica[]bắt buộcTunnelReplica[]
digeststring | nullidstringbắt buộcimagestringbắt buộcnamestringbắt buộcrestartsinteger (int64)bắt buộcstatestringbắt buộcuptime_secondsinteger | null (int64)versionstring | null
tunnel_idstring | nullupdateTunnelUpdateProgress | nullTunnelUpdateProgress | null
Một trong:
TunnelUpdateProgresscompletedinteger (int32)bắt buộcfinished_atstring | null (date-time)imagestringbắt buộcmessagestring | nullreplicainteger | null (int32)started_atstring (date-time)bắt buộcstatusstringbắt buộctotalinteger (int32)bắt buộcversionstringbắt buộc
null
update_availablebooleanbắt buộc
Publish every domain through the tunnel and point DNS at it (admin, write)
/api/v1/cloudflare/tunnel/publishNội dung gửi lênapplication/json
PublishRequest
overwrite_dnsbooleanReplace an existing A, AAAA, or CNAME record with the tunnel's. Off by default.
Phản hồi
200 Publish every domain through the tunnel and point DNS at it (admin, write)
SyncReportdnsDnsOutcome[]bắt buộcDnsOutcome[]
actionstringbắt buộccreated,kept,replaced,conflict, orerror.detailstring | nullhoststringbắt buộczone_idstringbắt buộczone_namestringbắt buộc
hostnamesstring[]bắt buộcpendingintegerbắt buộcHostnames whose DNS record Rudder did not change.
skippedSkippedHost[]bắt buộcSkippedHost[]
hoststringbắt buộcreasonstringbắt buộc
zonesZonePublishResult[]bắt buộcZonePublishResult[]
errorsstring[]bắt buộcpublished_hostsstring[]bắt buộczone_idstringbắt buộczone_namestringbắt buộc
Set the number of tunnel replicas, 1 to 5 (admin, write)
/api/v1/cloudflare/tunnel/replicasNội dung gửi lênapplication/json
SetReplicas
replicasinteger (int64)bắt buộc
Phản hồi
200 Set the number of tunnel replicas, 1 to 5 (admin, write)
CloudflareStatusaccess_configuredbooleanbắt buộcaccess_emailsstring[]bắt buộcaccess_enforcedbooleanbắt buộcaccount_idstringbắt buộcagent_bypassbooleanbắt buộcconnectionsinteger | nullConnections Cloudflare sees for the tunnel;
Nonewhen it could not be read.max_replicasinteger (int32)bắt buộcpanel_domainstring | nullpublished_hostsstring[]bắt buộcreplica_errorstring | nullWhy the replicas could not be started, when the last create or scale failed.
replicasinteger (int32)bắt buộcreplicas_runningintegerbắt buộcssh_addressstringbắt buộcssh_ca_public_keystringbắt buộcssh_configuredbooleanbắt buộcssh_readybooleanbắt buộcssh_usersstring[]bắt buộcteam_domainstringbắt buộctoken_savedbooleanbắt buộcTrue once an API token is saved. The token itself is never returned.
tunnel_idstring | nulltunnel_namestringbắt buộctunnel_publishedbooleanbắt buộczone_idstringbắt buộczone_namestringbắt buộc
Inspect Cloudflare connections, local replicas, versions and rolling update progress (admin)
/api/v1/cloudflare/tunnel/statusPhản hồi
200 Inspect Cloudflare connections, local replicas, versions and rolling update progress (admin)
TunnelStatuscheck_errorstring | nullchecked_atstring | null (date-time)connection_errorstring | nullconnectionsTunnelConnection[]bắt buộcTunnelConnection[]
colostring | nullconnection_idstring | nullconnector_idstringbắt buộchealthybooleanbắt buộcopened_atstring | nullorigin_ipstring | nullversionstring | null
image_overriddenbooleanbắt buộclatest_releaseCloudflaredRelease | nullCloudflaredRelease | null
Một trong:
CloudflaredReleasehtml_urlstring | nullpublished_atstring | nullversionstringbắt buộc
null
pinned_versionstring | nullreplica_errorstring | nullreplicasTunnelReplica[]bắt buộcTunnelReplica[]
digeststring | nullidstringbắt buộcimagestringbắt buộcnamestringbắt buộcrestartsinteger (int64)bắt buộcstatestringbắt buộcuptime_secondsinteger | null (int64)versionstring | null
tunnel_idstring | nullupdateTunnelUpdateProgress | nullTunnelUpdateProgress | null
Một trong:
TunnelUpdateProgresscompletedinteger (int32)bắt buộcfinished_atstring | null (date-time)imagestringbắt buộcmessagestring | nullreplicainteger | null (int32)started_atstring (date-time)bắt buộcstatusstringbắt buộctotalinteger (int32)bắt buộcversionstringbắt buộc
null
update_availablebooleanbắt buộc
Roll tunnel connectors one at a time using a registered surge (admin, write)
/api/v1/cloudflare/tunnel/updateNội dung gửi lênapplication/json
UpdateTunnel
versionstring | null
Phản hồi
202 Roll tunnel connectors one at a time using a registered surge (admin, write)
TunnelUpdateProgresscompletedinteger (int32)bắt buộcfinished_atstring | null (date-time)imagestringbắt buộcmessagestring | nullreplicainteger | null (int32)started_atstring (date-time)bắt buộcstatusstringbắt buộctotalinteger (int32)bắt buộcversionstringbắt buộc
List discovered zones, enablement and per-zone visibility errors (admin)
/api/v1/cloudflare/zonesPhản hồi
200 List discovered zones, enablement and per-zone visibility errors (admin)
CloudflareZone[]accessiblebooleanbắt buộcaccount_idstringbắt buộcenabledbooleanbắt buộclast_errorstring | nulllast_seen_atstring (date-time)bắt buộcnamestringbắt buộcpublished_hostsstring[]bắt buộcstatusstringbắt buộczone_idstringbắt buộc
Refresh all pages of zones visible to the connected account token without deleting DNS records (admin, write)
/api/v1/cloudflare/zones/refreshPhản hồi
200 Refresh all pages of zones visible to the connected account token without deleting DNS records (admin, write)
CloudflareZone[]accessiblebooleanbắt buộcaccount_idstringbắt buộcenabledbooleanbắt buộclast_errorstring | nulllast_seen_atstring (date-time)bắt buộcnamestringbắt buộcpublished_hostsstring[]bắt buộcstatusstringbắt buộczone_idstringbắt buộc
Enable or disable a discovered zone without deleting its records (admin, write)
/api/v1/cloudflare/zones/{zone_id}Nội dung gửi lênapplication/json
SetZone
enabledbooleanbắt buộc
Phản hồi
200 Enable or disable a discovered zone without deleting its records (admin, write)
CloudflareZone[]accessiblebooleanbắt buộcaccount_idstringbắt buộcenabledbooleanbắt buộclast_errorstring | nulllast_seen_atstring (date-time)bắt buộcnamestringbắt buộcpublished_hostsstring[]bắt buộcstatusstringbắt buộczone_idstringbắt buộc