Skip to content
Dymini Panel
v0.17.0
Menu
You are reading the docs of v0.17.0.Go to the latest version

Cloudflare

On this page

Cloudflare Zero Trust settings and tunnel status (admin)

GET/api/v1/cloudflare

Responses

  • 200 Cloudflare Zero Trust settings and tunnel status (admin)CloudflareStatus
    • access_configuredbooleanrequired
    • access_emailsstring[]required
    • access_enforcedbooleanrequired
    • account_idstringrequired
    • agent_bypassbooleanrequired
    • connectionsinteger | null

      Connections Cloudflare sees for the tunnel; None when it could not be read.

    • max_replicasinteger (int32)required
    • panel_domainstring | null
    • published_hostsstring[]required
    • replica_errorstring | null

      Why the replicas could not be started, when the last create or scale failed.

    • replicasinteger (int32)required
    • replicas_runningintegerrequired
    • ssh_addressstringrequired
    • ssh_ca_public_keystringrequired
    • ssh_configuredbooleanrequired
    • ssh_readybooleanrequired
    • ssh_usersstring[]required
    • team_domainstringrequired
    • token_savedbooleanrequired

      True once an API token is saved. The token itself is never returned.

    • tunnel_idstring | null
    • tunnel_namestringrequired
    • tunnel_publishedbooleanrequired
    • zone_idstringrequired
    • zone_namestringrequired

Protect the panel domain with Cloudflare Access (admin, write)

PUT/api/v1/cloudflare/access

Request bodyapplication/json

SetupAccess

  • agent_bypassboolean

    Let AI agents and API clients reach /mcp, /oauth, /.well-known, and /api/health without an Access login. They still need their own tokens.

  • emailsstring[]required

    Email addresses allowed through Cloudflare Access.

  • team_domainstringrequired

    Your Zero Trust team domain, such as myteam.cloudflareaccess.com or just myteam.

Responses

  • 200 Protect the panel domain with Cloudflare Access (admin, write)CloudflareStatus
    • access_configuredbooleanrequired
    • access_emailsstring[]required
    • access_enforcedbooleanrequired
    • account_idstringrequired
    • agent_bypassbooleanrequired
    • connectionsinteger | null

      Connections Cloudflare sees for the tunnel; None when it could not be read.

    • max_replicasinteger (int32)required
    • panel_domainstring | null
    • published_hostsstring[]required
    • replica_errorstring | null

      Why the replicas could not be started, when the last create or scale failed.

    • replicasinteger (int32)required
    • replicas_runningintegerrequired
    • ssh_addressstringrequired
    • ssh_ca_public_keystringrequired
    • ssh_configuredbooleanrequired
    • ssh_readybooleanrequired
    • ssh_usersstring[]required
    • team_domainstringrequired
    • token_savedbooleanrequired

      True once an API token is saved. The token itself is never returned.

    • tunnel_idstring | null
    • tunnel_namestringrequired
    • tunnel_publishedbooleanrequired
    • zone_idstringrequired
    • zone_namestringrequired

Require a valid Cloudflare Access token for the panel domain (admin, write)

PUT/api/v1/cloudflare/access/enforcement

Request bodyapplication/json

SetEnforcement

  • enforcedbooleanrequired

Responses

  • 200 Require a valid Cloudflare Access token for the panel domain (admin, write)CloudflareStatus
    • access_configuredbooleanrequired
    • access_emailsstring[]required
    • access_enforcedbooleanrequired
    • account_idstringrequired
    • agent_bypassbooleanrequired
    • connectionsinteger | null

      Connections Cloudflare sees for the tunnel; None when it could not be read.

    • max_replicasinteger (int32)required
    • panel_domainstring | null
    • published_hostsstring[]required
    • replica_errorstring | null

      Why the replicas could not be started, when the last create or scale failed.

    • replicasinteger (int32)required
    • replicas_runningintegerrequired
    • ssh_addressstringrequired
    • ssh_ca_public_keystringrequired
    • ssh_configuredbooleanrequired
    • ssh_readybooleanrequired
    • ssh_usersstring[]required
    • team_domainstringrequired
    • token_savedbooleanrequired

      True once an API token is saved. The token itself is never returned.

    • tunnel_idstring | null
    • tunnel_namestringrequired
    • tunnel_publishedbooleanrequired
    • zone_idstringrequired
    • zone_namestringrequired

Save the account and token, discover zones and optionally enable a legacy zone id (admin, write)

PUT/api/v1/cloudflare/credentials

Request bodyapplication/json

SaveCredentials

  • account_idstringrequired

    32-character Cloudflare account id.

  • api_tokenstring | null

    API token. Leave out to keep the saved one.

  • zone_idstring

    Optional 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)CloudflareStatus
    • access_configuredbooleanrequired
    • access_emailsstring[]required
    • access_enforcedbooleanrequired
    • account_idstringrequired
    • agent_bypassbooleanrequired
    • connectionsinteger | null

      Connections Cloudflare sees for the tunnel; None when it could not be read.

    • max_replicasinteger (int32)required
    • panel_domainstring | null
    • published_hostsstring[]required
    • replica_errorstring | null

      Why the replicas could not be started, when the last create or scale failed.

    • replicasinteger (int32)required
    • replicas_runningintegerrequired
    • ssh_addressstringrequired
    • ssh_ca_public_keystringrequired
    • ssh_configuredbooleanrequired
    • ssh_readybooleanrequired
    • ssh_usersstring[]required
    • team_domainstringrequired
    • token_savedbooleanrequired

      True once an API token is saved. The token itself is never returned.

    • tunnel_idstring | null
    • tunnel_namestringrequired
    • tunnel_publishedbooleanrequired
    • zone_idstringrequired
    • zone_namestringrequired

Checks that must pass before the public ports are closed (admin)

GET/api/v1/cloudflare/preflight

Responses

  • 200 Checks that must pass before the public ports are closed (admin)Readiness
    • checksPreflightCheckView[]required
      PreflightCheckView[]
      • idstringrequired
      • messagestringrequired
      • okbooleanrequired
      • requiredbooleanrequired

        A failing required check blocks closing the public ports.

    • readybooleanrequired

      True when every required check passes, so the installer may close the ports.

    • skippedSkippedHost[]required
      SkippedHost[]
      • hoststringrequired
      • reasonstringrequired

Set up SSH through Access for Infrastructure and return the server script (admin, write)

PUT/api/v1/cloudflare/ssh

Request bodyapplication/json

SetupSsh

  • addressstringrequired

    IPv4 address cloudflared reaches the server's SSH daemon on, for example the Docker gateway of the dymini-panel-proxy network.

  • usersstring[]required

    Unix accounts Cloudflare may log people in as.

Responses

  • 200 Set up SSH through Access for Infrastructure and return the server script (admin, write)SshSetup
    • scriptstringrequired

      Run as root on the server so sshd trusts Cloudflare's certificates.

    • statusCloudflareStatusrequired
      CloudflareStatus
      • access_configuredbooleanrequired
      • access_emailsstring[]required
      • access_enforcedbooleanrequired
      • account_idstringrequired
      • agent_bypassbooleanrequired
      • connectionsinteger | null

        Connections Cloudflare sees for the tunnel; None when it could not be read.

      • max_replicasinteger (int32)required
      • panel_domainstring | null
      • published_hostsstring[]required
      • replica_errorstring | null

        Why the replicas could not be started, when the last create or scale failed.

      • replicasinteger (int32)required
      • replicas_runningintegerrequired
      • ssh_addressstringrequired
      • ssh_ca_public_keystringrequired
      • ssh_configuredbooleanrequired
      • ssh_readybooleanrequired
      • ssh_usersstring[]required
      • team_domainstringrequired
      • token_savedbooleanrequired

        True once an API token is saved. The token itself is never returned.

      • tunnel_idstring | null
      • tunnel_namestringrequired
      • tunnel_publishedbooleanrequired
      • zone_idstringrequired
      • zone_namestringrequired

Remove the SSH route, target, and application (admin, write)

DELETE/api/v1/cloudflare/ssh

Responses

  • 204 Remove the SSH route, target, and application (admin, write)

Record that SSH through Cloudflare was set up and tested (admin, write)

PUT/api/v1/cloudflare/ssh/confirmation

Request bodyapplication/json

ConfirmSsh

  • confirmedbooleanrequired

    True 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)CloudflareStatus
    • access_configuredbooleanrequired
    • access_emailsstring[]required
    • access_enforcedbooleanrequired
    • account_idstringrequired
    • agent_bypassbooleanrequired
    • connectionsinteger | null

      Connections Cloudflare sees for the tunnel; None when it could not be read.

    • max_replicasinteger (int32)required
    • panel_domainstring | null
    • published_hostsstring[]required
    • replica_errorstring | null

      Why the replicas could not be started, when the last create or scale failed.

    • replicasinteger (int32)required
    • replicas_runningintegerrequired
    • ssh_addressstringrequired
    • ssh_ca_public_keystringrequired
    • ssh_configuredbooleanrequired
    • ssh_readybooleanrequired
    • ssh_usersstring[]required
    • team_domainstringrequired
    • token_savedbooleanrequired

      True once an API token is saved. The token itself is never returned.

    • tunnel_idstring | null
    • tunnel_namestringrequired
    • tunnel_publishedbooleanrequired
    • zone_idstringrequired
    • zone_namestringrequired

Script that makes the server trust Cloudflare SSH certificates (admin)

GET/api/v1/cloudflare/ssh/script

Responses

  • 200 Script that makes the server trust Cloudflare SSH certificates (admin)SshScript
    • scriptstringrequired

Create the tunnel and start its replicas (admin, write)

POST/api/v1/cloudflare/tunnel

Request bodyapplication/json

CreateTunnel

  • replicasinteger | null (int64)

    Number of cloudflared replicas, 1 to 5. Defaults to 2.

Responses

  • 201 Create the tunnel and start its replicas (admin, write)CloudflareStatus
    • access_configuredbooleanrequired
    • access_emailsstring[]required
    • access_enforcedbooleanrequired
    • account_idstringrequired
    • agent_bypassbooleanrequired
    • connectionsinteger | null

      Connections Cloudflare sees for the tunnel; None when it could not be read.

    • max_replicasinteger (int32)required
    • panel_domainstring | null
    • published_hostsstring[]required
    • replica_errorstring | null

      Why the replicas could not be started, when the last create or scale failed.

    • replicasinteger (int32)required
    • replicas_runningintegerrequired
    • ssh_addressstringrequired
    • ssh_ca_public_keystringrequired
    • ssh_configuredbooleanrequired
    • ssh_readybooleanrequired
    • ssh_usersstring[]required
    • team_domainstringrequired
    • token_savedbooleanrequired

      True once an API token is saved. The token itself is never returned.

    • tunnel_idstring | null
    • tunnel_namestringrequired
    • tunnel_publishedbooleanrequired
    • zone_idstringrequired
    • zone_namestringrequired

Remove the tunnel, its DNS records, Access applications, and replicas (admin, write)

DELETE/api/v1/cloudflare/tunnel

Responses

  • 200 Remove the tunnel, its DNS records, Access applications, and replicas (admin, write)TeardownReport
    • removed_dnsstring[]required

      Hostnames whose DNS record Dymini Panel removed. Point them back at this server.

    • warningsstring[]required

      Steps that did not finish; the rest was removed.

Refresh the cached stable cloudflared release from GitHub (admin, write)

POST/api/v1/cloudflare/tunnel/check

Responses

  • 200 Refresh the cached stable cloudflared release from GitHub (admin, write)TunnelStatus
    • check_errorstring | null
    • checked_atstring | null (date-time)
    • connection_errorstring | null
    • connectionsTunnelConnection[]required
      TunnelConnection[]
      • colostring | null
      • connection_idstring | null
      • connector_idstringrequired
      • healthybooleanrequired
      • opened_atstring | null
      • origin_ipstring | null
      • versionstring | null
    • image_overriddenbooleanrequired
    • latest_releaseCloudflaredRelease | null
      CloudflaredRelease | null

      One of:

      • CloudflaredRelease
        • html_urlstring | null
        • published_atstring | null
        • versionstringrequired
      • null
    • pinned_versionstring | null
    • replica_errorstring | null
    • replicasTunnelReplica[]required
      TunnelReplica[]
      • digeststring | null
      • idstringrequired
      • imagestringrequired
      • namestringrequired
      • restartsinteger (int64)required
      • statestringrequired
      • uptime_secondsinteger | null (int64)
      • versionstring | null
    • tunnel_idstring | null
    • updateTunnelUpdateProgress | null
      TunnelUpdateProgress | null

      One of:

      • TunnelUpdateProgress
        • completedinteger (int32)required
        • finished_atstring | null (date-time)
        • imagestringrequired
        • messagestring | null
        • replicainteger | null (int32)
        • started_atstring (date-time)required
        • statusstringrequired
        • totalinteger (int32)required
        • versionstringrequired
      • null
    • update_availablebooleanrequired

Publish every domain through the tunnel and point DNS at it (admin, write)

POST/api/v1/cloudflare/tunnel/publish

Request bodyapplication/json

PublishRequest

  • overwrite_dnsboolean

    Replace 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)SyncReport
    • dnsDnsOutcome[]required
      DnsOutcome[]
      • actionstringrequired

        created, kept, replaced, conflict, or error.

      • detailstring | null
      • hoststringrequired
      • zone_idstringrequired
      • zone_namestringrequired
    • hostnamesstring[]required
    • pendingintegerrequired

      Hostnames whose DNS record Dymini Panel did not change.

    • skippedSkippedHost[]required
      SkippedHost[]
      • hoststringrequired
      • reasonstringrequired
    • zonesZonePublishResult[]required
      ZonePublishResult[]
      • errorsstring[]required
      • published_hostsstring[]required
      • zone_idstringrequired
      • zone_namestringrequired

Set the number of tunnel replicas, 1 to 5 (admin, write)

PUT/api/v1/cloudflare/tunnel/replicas

Request bodyapplication/json

SetReplicas

  • replicasinteger (int64)required

Responses

  • 200 Set the number of tunnel replicas, 1 to 5 (admin, write)CloudflareStatus
    • access_configuredbooleanrequired
    • access_emailsstring[]required
    • access_enforcedbooleanrequired
    • account_idstringrequired
    • agent_bypassbooleanrequired
    • connectionsinteger | null

      Connections Cloudflare sees for the tunnel; None when it could not be read.

    • max_replicasinteger (int32)required
    • panel_domainstring | null
    • published_hostsstring[]required
    • replica_errorstring | null

      Why the replicas could not be started, when the last create or scale failed.

    • replicasinteger (int32)required
    • replicas_runningintegerrequired
    • ssh_addressstringrequired
    • ssh_ca_public_keystringrequired
    • ssh_configuredbooleanrequired
    • ssh_readybooleanrequired
    • ssh_usersstring[]required
    • team_domainstringrequired
    • token_savedbooleanrequired

      True once an API token is saved. The token itself is never returned.

    • tunnel_idstring | null
    • tunnel_namestringrequired
    • tunnel_publishedbooleanrequired
    • zone_idstringrequired
    • zone_namestringrequired

Inspect Cloudflare connections, local replicas, versions and rolling update progress (admin)

GET/api/v1/cloudflare/tunnel/status

Responses

  • 200 Inspect Cloudflare connections, local replicas, versions and rolling update progress (admin)TunnelStatus
    • check_errorstring | null
    • checked_atstring | null (date-time)
    • connection_errorstring | null
    • connectionsTunnelConnection[]required
      TunnelConnection[]
      • colostring | null
      • connection_idstring | null
      • connector_idstringrequired
      • healthybooleanrequired
      • opened_atstring | null
      • origin_ipstring | null
      • versionstring | null
    • image_overriddenbooleanrequired
    • latest_releaseCloudflaredRelease | null
      CloudflaredRelease | null

      One of:

      • CloudflaredRelease
        • html_urlstring | null
        • published_atstring | null
        • versionstringrequired
      • null
    • pinned_versionstring | null
    • replica_errorstring | null
    • replicasTunnelReplica[]required
      TunnelReplica[]
      • digeststring | null
      • idstringrequired
      • imagestringrequired
      • namestringrequired
      • restartsinteger (int64)required
      • statestringrequired
      • uptime_secondsinteger | null (int64)
      • versionstring | null
    • tunnel_idstring | null
    • updateTunnelUpdateProgress | null
      TunnelUpdateProgress | null

      One of:

      • TunnelUpdateProgress
        • completedinteger (int32)required
        • finished_atstring | null (date-time)
        • imagestringrequired
        • messagestring | null
        • replicainteger | null (int32)
        • started_atstring (date-time)required
        • statusstringrequired
        • totalinteger (int32)required
        • versionstringrequired
      • null
    • update_availablebooleanrequired

Roll tunnel connectors one at a time using a registered surge (admin, write)

POST/api/v1/cloudflare/tunnel/update

Request bodyapplication/json

UpdateTunnel

  • versionstring | null

Responses

  • 202 Roll tunnel connectors one at a time using a registered surge (admin, write)TunnelUpdateProgress
    • completedinteger (int32)required
    • finished_atstring | null (date-time)
    • imagestringrequired
    • messagestring | null
    • replicainteger | null (int32)
    • started_atstring (date-time)required
    • statusstringrequired
    • totalinteger (int32)required
    • versionstringrequired

List discovered zones, enablement and per-zone visibility errors (admin)

GET/api/v1/cloudflare/zones

Responses

  • 200 List discovered zones, enablement and per-zone visibility errors (admin)CloudflareZone[]
    • accessiblebooleanrequired
    • account_idstringrequired
    • enabledbooleanrequired
    • last_errorstring | null
    • last_seen_atstring (date-time)required
    • namestringrequired
    • published_hostsstring[]required
    • statusstringrequired
    • zone_idstringrequired

Refresh all pages of zones visible to the connected account token without deleting DNS records (admin, write)

POST/api/v1/cloudflare/zones/refresh

Responses

  • 200 Refresh all pages of zones visible to the connected account token without deleting DNS records (admin, write)CloudflareZone[]
    • accessiblebooleanrequired
    • account_idstringrequired
    • enabledbooleanrequired
    • last_errorstring | null
    • last_seen_atstring (date-time)required
    • namestringrequired
    • published_hostsstring[]required
    • statusstringrequired
    • zone_idstringrequired

Enable or disable a discovered zone without deleting its records (admin, write)

PUT/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[]
    • accessiblebooleanrequired
    • account_idstringrequired
    • enabledbooleanrequired
    • last_errorstring | null
    • last_seen_atstring (date-time)required
    • namestringrequired
    • published_hostsstring[]required
    • statusstringrequired
    • zone_idstringrequired