Hyperdrive
ModelsExpand Collapse
type Configuration interface{…}Connect to a database through a Workers VPC Service. TLS settings (mTLS, sslmode) cannot be configured on the Hyperdrive when using a VPC Service origin; TLS must be managed on the VPC Service itself.
Connect to a database through a Workers VPC Service. TLS settings (mTLS, sslmode) cannot be configured on the Hyperdrive when using a VPC Service origin; TLS must be managed on the VPC Service itself.
ConfigurationHyperdriveInternetOrigin
Defines the port of your origin database. Defaults to 5432 for PostgreSQL or 3306 for MySQL if not specified.
Set the password needed to access your origin database. The API never returns this write-only value.
Scheme ConfigurationHyperdriveInternetOriginSchemeOptionalSpecifies the URL scheme used to connect to your origin database.
Specifies the URL scheme used to connect to your origin database.
ConfigurationHyperdriveOverAccessOrigin
Defines the Client ID of the Access token to use when connecting to the origin database.
Defines the Client Secret of the Access Token to use when connecting to the origin database. The API never returns this write-only value.
Set the password needed to access your origin database. The API never returns this write-only value.
Scheme ConfigurationHyperdriveOverAccessOriginSchemeOptionalSpecifies the URL scheme used to connect to your origin database.
Specifies the URL scheme used to connect to your origin database.
ConfigurationHyperdriveVPCServiceOrigin
The identifier of the Workers VPC Service to connect through. Hyperdrive will egress through the specified VPC Service to reach the origin database.
Set the password needed to access your origin database. The API never returns this write-only value.
Scheme ConfigurationHyperdriveVPCServiceOriginSchemeOptionalSpecifies the URL scheme used to connect to your origin database.
Specifies the URL scheme used to connect to your origin database.
type Hyperdrive struct{…}
The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.
Origin HyperdriveOrigin
type HyperdriveOriginPublicDatabase struct{…}
Set the password needed to access your origin database. The API never returns this write-only value.
Defines the port of your origin database. Defaults to 5432 for PostgreSQL or 3306 for MySQL if not specified.
type HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnel struct{…}
Defines the Client ID of the Access token to use when connecting to the origin database.
Defines the Client Secret of the Access Token to use when connecting to the origin database. The API never returns this write-only value.
Set the password needed to access your origin database. The API never returns this write-only value.
Scheme HyperdriveOriginAccessProtectedDatabaseBehindCloudflareTunnelSchemeSpecifies the URL scheme used to connect to your origin database.
Specifies the URL scheme used to connect to your origin database.
type HyperdriveOriginDatabaseReachableThroughAWorkersVPC struct{…}
Set the password needed to access your origin database. The API never returns this write-only value.
Scheme HyperdriveOriginDatabaseReachableThroughAWorkersVPCSchemeSpecifies the URL scheme used to connect to your origin database.
Specifies the URL scheme used to connect to your origin database.
Caching HyperdriveCachingOptional
Defines the last modified time of the Hyperdrive configuration.
MTLS HyperdriveMTLSOptionalmTLS configuration for the origin connection. Cannot be used with VPC Service origins; TLS must be managed on the VPC Service.
mTLS configuration for the origin connection. Cannot be used with VPC Service origins; TLS must be managed on the VPC Service.
The (soft) maximum number of connections the Hyperdrive is allowed to make to the origin database.
Maximum allowed: 20 for free tier accounts, 100 for paid tier accounts. If not specified, defaults to 20 for free tier and 60 for paid tier. Contact Cloudflare if you need a higher limit.