---
title: Configs
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/typescript)

[Hyperdrive](https://developers.cloudflare.com/api/typescript/resources/hyperdrive)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Configs

##### [List Hyperdrives](https://developers.cloudflare.com/api/typescript/resources/hyperdrive/subresources/configs/methods/list)

client.hyperdrive.configs.list(ConfigListParams {account\_id, page, per\_page } params, RequestOptionsoptions?): V4PagePaginationArray< [ConfigListResponse](<https://developers.cloudflare.com/api/typescript/resources/hyperdrive#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)>) {id, caching, name, 7 more } >

GET/accounts/{account\_id}/hyperdrive/configs

##### [Get Hyperdrive](https://developers.cloudflare.com/api/typescript/resources/hyperdrive/subresources/configs/methods/get)

client.hyperdrive.configs.get(stringhyperdriveID, ConfigGetParams {account\_id } params, RequestOptionsoptions?): [ConfigGetResponse](<https://developers.cloudflare.com/api/typescript/resources/hyperdrive#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)>) {id, caching, name, 7 more }

GET/accounts/{account\_id}/hyperdrive/configs/{hyperdrive\_id}

##### [Create Hyperdrive](https://developers.cloudflare.com/api/typescript/resources/hyperdrive/subresources/configs/methods/create)

client.hyperdrive.configs.create(ConfigCreateParamsparams, RequestOptionsoptions?): [ConfigCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/hyperdrive#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)>) {id, caching, name, 7 more }

POST/accounts/{account\_id}/hyperdrive/configs

##### [Replace Hyperdrive](https://developers.cloudflare.com/api/typescript/resources/hyperdrive/subresources/configs/methods/update)

client.hyperdrive.configs.update(stringhyperdriveID, ConfigUpdateParams {account\_id, name, origin, 3 more } params, RequestOptionsoptions?): [ConfigUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/hyperdrive#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)>) {id, caching, name, 7 more }

PUT/accounts/{account\_id}/hyperdrive/configs/{hyperdrive\_id}

##### [Update Hyperdrive](https://developers.cloudflare.com/api/typescript/resources/hyperdrive/subresources/configs/methods/edit)

client.hyperdrive.configs.edit(stringhyperdriveID, ConfigEditParams {account\_id, caching, mtls, 3 more } params, RequestOptionsoptions?): [ConfigEditResponse](<https://developers.cloudflare.com/api/typescript/resources/hyperdrive#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)>) {id, caching, name, 7 more }

PATCH/accounts/{account\_id}/hyperdrive/configs/{hyperdrive\_id}

##### [Restart Hyperdrive](https://developers.cloudflare.com/api/typescript/resources/hyperdrive/subresources/configs/methods/restart)

client.hyperdrive.configs.restart(stringhyperdriveID, ConfigRestartParams {account\_id } params, RequestOptionsoptions?): [ConfigRestartResponse](<https://developers.cloudflare.com/api/typescript/resources/hyperdrive#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)>) {id, caching, name, 7 more }

POST/accounts/{account\_id}/hyperdrive/configs/{hyperdrive\_id}/restart

##### [Delete Hyperdrive](https://developers.cloudflare.com/api/typescript/resources/hyperdrive/subresources/configs/methods/delete)

client.hyperdrive.configs.delete(stringhyperdriveID, ConfigDeleteParams {account\_id } params, RequestOptionsoptions?): [ConfigDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/hyperdrive#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_delete_response%20%3E%20(schema)>)| null

DELETE/accounts/{account\_id}/hyperdrive/configs/{hyperdrive\_id}

##### ModelsExpand Collapse

<details>

<summary>

ConfigListResponse {id, caching, name, 7 more }

</summary>

id: string

Define configurations using a unique string identifier.

maxLength32

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

caching: Caching {disabled, max\_age, stale\_while\_revalidate }

</summary>

disabled: boolean

Defines whether caching is disabled.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20disabled">Link to this property</a>

max\_age?: number

Defines the maximum duration (in seconds) items persist in the cache.

maximum3600

minimum1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20max_age">Link to this property</a>

stale\_while\_revalidate?: number

Defines the number of seconds the cache may serve a stale response.

minimum0

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20stale_while_revalidate">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20caching">Link to this property</a>

name: string

The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

origin: PublicDatabase {database, host, password, 3 more } | AccessProtectedDatabaseBehindCloudflareTunnel {access\_client\_id, access\_client\_secret, database, 4 more } | DatabaseReachableThroughAWorkersVPC {database, password, scheme, 2 more }

Combines database connection fields with exactly one supported network location.

</summary>

One of the following:

<details>

<summary>

PublicDatabase {database, host, password, 3 more }

</summary>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20database">Link to this property</a>

host: string

Defines the publicly reachable hostname or IP of your origin database. Private, loopback, and link-local IP addresses are not allowed.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20host">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20password">Link to this property</a>

port: number

Defines the port of your origin database. Defaults to 5432 for PostgreSQL or 3306 for MySQL if not specified.

maximum65535

minimum1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20port">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

AccessProtectedDatabaseBehindCloudflareTunnel {access\_client\_id, access\_client\_secret, database, 4 more }

</summary>

access\_client\_id: string

Defines the Client ID of the Access token to use when connecting to the origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20access_client_id">Link to this property</a>

access\_client\_secret: string

Defines the Client Secret of the Access Token to use when connecting to the origin database. The API never returns this write-only value.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20access_client_secret">Link to this property</a>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20database">Link to this property</a>

host: string

Defines the host (hostname or IP) of your origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20host">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20password">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

DatabaseReachableThroughAWorkersVPC {database, password, scheme, 2 more }

</summary>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20database">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20password">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme">Link to this property</a>

service\_id: string

The identifier of the Workers VPC Service to connect through. Hyperdrive will egress through the specified VPC Service to reach the origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20service_id">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin">Link to this property</a>

created\_on?: string

Defines the creation time of the Hyperdrive configuration.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

integration?: Integration {database\_branch\_name, database\_name, organization\_name, 3 more }

Connects to a PlanetScale database using credentials managed by Cloudflare. The Cloudflare account must already be linked to PlanetScale in the Hyperdrive dashboard.

</summary>

database\_branch\_name: string

The name of the PlanetScale database branch.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20database_branch_name">Link to this property</a>

database\_name: string

The name of the PlanetScale database.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20database_name">Link to this property</a>

organization\_name: string

The name of the PlanetScale organization.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20organization_name">Link to this property</a>

provider: "planetscale"

The database integration provider used by this operation.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20provider">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme">Link to this property</a>

custom\_database\_name?: string

The database name to use when connecting. Defaults to <code>postgres</code> for PostgreSQL and <code>mysql</code> for MySQL.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20custom_database_name">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20integration">Link to this property</a>

modified\_on?: string

Defines the last modified time of the Hyperdrive configuration.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

<details>

<summary>

mtls?: MTLS {ca\_certificate\_id, mtls\_certificate\_id, sslmode }

mTLS configuration for the origin connection. Cannot be used with VPC Service origins; TLS must be managed on the VPC Service.

</summary>

ca\_certificate\_id?: string

Define CA certificate ID obtained after uploading CA cert.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20ca_certificate_id">Link to this property</a>

mtls\_certificate\_id?: string

Define mTLS certificate ID obtained after uploading client cert.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20mtls_certificate_id">Link to this property</a>

sslmode?: string

PostgreSQL accepts <code>require</code>, <code>verify-ca</code>, and <code>verify-full</code>. MySQL accepts <code>REQUIRED</code>, <code>VERIFY_CA</code>, and <code>VERIFY_IDENTITY</code>. The verify modes require a CA certificate; the require modes cannot be used with a CA certificate.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20sslmode">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20mtls">Link to this property</a>

origin\_connection\_limit?: number

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. Certain Cloudflare-managed origins may be permitted a higher limit. Contact Cloudflare if you need a higher limit.

minimum5

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20origin_connection_limit">Link to this property</a>

restarted\_on?: string| null

Defines the last time the Hyperdrive connection pool was explicitly restarted via the restart endpoint. Omitted if the pool has never been explicitly restarted.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)%20%3E%20(property)%20restarted_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_list_response%20%3E%20(schema)>)

<details>

<summary>

ConfigGetResponse {id, caching, name, 7 more }

</summary>

id: string

Define configurations using a unique string identifier.

maxLength32

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

caching: Caching {disabled, max\_age, stale\_while\_revalidate }

</summary>

disabled: boolean

Defines whether caching is disabled.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20disabled">Link to this property</a>

max\_age?: number

Defines the maximum duration (in seconds) items persist in the cache.

maximum3600

minimum1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20max_age">Link to this property</a>

stale\_while\_revalidate?: number

Defines the number of seconds the cache may serve a stale response.

minimum0

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20stale_while_revalidate">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20caching">Link to this property</a>

name: string

The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

origin: PublicDatabase {database, host, password, 3 more } | AccessProtectedDatabaseBehindCloudflareTunnel {access\_client\_id, access\_client\_secret, database, 4 more } | DatabaseReachableThroughAWorkersVPC {database, password, scheme, 2 more }

Combines database connection fields with exactly one supported network location.

</summary>

One of the following:

<details>

<summary>

PublicDatabase {database, host, password, 3 more }

</summary>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20database">Link to this property</a>

host: string

Defines the publicly reachable hostname or IP of your origin database. Private, loopback, and link-local IP addresses are not allowed.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20host">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20password">Link to this property</a>

port: number

Defines the port of your origin database. Defaults to 5432 for PostgreSQL or 3306 for MySQL if not specified.

maximum65535

minimum1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20port">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

AccessProtectedDatabaseBehindCloudflareTunnel {access\_client\_id, access\_client\_secret, database, 4 more }

</summary>

access\_client\_id: string

Defines the Client ID of the Access token to use when connecting to the origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20access_client_id">Link to this property</a>

access\_client\_secret: string

Defines the Client Secret of the Access Token to use when connecting to the origin database. The API never returns this write-only value.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20access_client_secret">Link to this property</a>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20database">Link to this property</a>

host: string

Defines the host (hostname or IP) of your origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20host">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20password">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

DatabaseReachableThroughAWorkersVPC {database, password, scheme, 2 more }

</summary>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20database">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20password">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme">Link to this property</a>

service\_id: string

The identifier of the Workers VPC Service to connect through. Hyperdrive will egress through the specified VPC Service to reach the origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20service_id">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin">Link to this property</a>

created\_on?: string

Defines the creation time of the Hyperdrive configuration.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

integration?: Integration {database\_branch\_name, database\_name, organization\_name, 3 more }

Connects to a PlanetScale database using credentials managed by Cloudflare. The Cloudflare account must already be linked to PlanetScale in the Hyperdrive dashboard.

</summary>

database\_branch\_name: string

The name of the PlanetScale database branch.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20database_branch_name">Link to this property</a>

database\_name: string

The name of the PlanetScale database.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20database_name">Link to this property</a>

organization\_name: string

The name of the PlanetScale organization.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20organization_name">Link to this property</a>

provider: "planetscale"

The database integration provider used by this operation.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20provider">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme">Link to this property</a>

custom\_database\_name?: string

The database name to use when connecting. Defaults to <code>postgres</code> for PostgreSQL and <code>mysql</code> for MySQL.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20custom_database_name">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20integration">Link to this property</a>

modified\_on?: string

Defines the last modified time of the Hyperdrive configuration.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

<details>

<summary>

mtls?: MTLS {ca\_certificate\_id, mtls\_certificate\_id, sslmode }

mTLS configuration for the origin connection. Cannot be used with VPC Service origins; TLS must be managed on the VPC Service.

</summary>

ca\_certificate\_id?: string

Define CA certificate ID obtained after uploading CA cert.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20ca_certificate_id">Link to this property</a>

mtls\_certificate\_id?: string

Define mTLS certificate ID obtained after uploading client cert.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20mtls_certificate_id">Link to this property</a>

sslmode?: string

PostgreSQL accepts <code>require</code>, <code>verify-ca</code>, and <code>verify-full</code>. MySQL accepts <code>REQUIRED</code>, <code>VERIFY_CA</code>, and <code>VERIFY_IDENTITY</code>. The verify modes require a CA certificate; the require modes cannot be used with a CA certificate.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20sslmode">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20mtls">Link to this property</a>

origin\_connection\_limit?: number

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. Certain Cloudflare-managed origins may be permitted a higher limit. Contact Cloudflare if you need a higher limit.

minimum5

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20origin_connection_limit">Link to this property</a>

restarted\_on?: string| null

Defines the last time the Hyperdrive connection pool was explicitly restarted via the restart endpoint. Omitted if the pool has never been explicitly restarted.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)%20%3E%20(property)%20restarted_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_get_response%20%3E%20(schema)>)

<details>

<summary>

ConfigCreateResponse {id, caching, name, 7 more }

</summary>

id: string

Define configurations using a unique string identifier.

maxLength32

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

caching: Caching {disabled, max\_age, stale\_while\_revalidate }

</summary>

disabled: boolean

Defines whether caching is disabled.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20disabled">Link to this property</a>

max\_age?: number

Defines the maximum duration (in seconds) items persist in the cache.

maximum3600

minimum1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20max_age">Link to this property</a>

stale\_while\_revalidate?: number

Defines the number of seconds the cache may serve a stale response.

minimum0

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20stale_while_revalidate">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20caching">Link to this property</a>

name: string

The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

origin: PublicDatabase {database, host, password, 3 more } | AccessProtectedDatabaseBehindCloudflareTunnel {access\_client\_id, access\_client\_secret, database, 4 more } | DatabaseReachableThroughAWorkersVPC {database, password, scheme, 2 more }

Combines database connection fields with exactly one supported network location.

</summary>

One of the following:

<details>

<summary>

PublicDatabase {database, host, password, 3 more }

</summary>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20database">Link to this property</a>

host: string

Defines the publicly reachable hostname or IP of your origin database. Private, loopback, and link-local IP addresses are not allowed.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20host">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20password">Link to this property</a>

port: number

Defines the port of your origin database. Defaults to 5432 for PostgreSQL or 3306 for MySQL if not specified.

maximum65535

minimum1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20port">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

AccessProtectedDatabaseBehindCloudflareTunnel {access\_client\_id, access\_client\_secret, database, 4 more }

</summary>

access\_client\_id: string

Defines the Client ID of the Access token to use when connecting to the origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20access_client_id">Link to this property</a>

access\_client\_secret: string

Defines the Client Secret of the Access Token to use when connecting to the origin database. The API never returns this write-only value.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20access_client_secret">Link to this property</a>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20database">Link to this property</a>

host: string

Defines the host (hostname or IP) of your origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20host">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20password">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

DatabaseReachableThroughAWorkersVPC {database, password, scheme, 2 more }

</summary>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20database">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20password">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme">Link to this property</a>

service\_id: string

The identifier of the Workers VPC Service to connect through. Hyperdrive will egress through the specified VPC Service to reach the origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20service_id">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin">Link to this property</a>

created\_on?: string

Defines the creation time of the Hyperdrive configuration.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

integration?: Integration {database\_branch\_name, database\_name, organization\_name, 3 more }

Connects to a PlanetScale database using credentials managed by Cloudflare. The Cloudflare account must already be linked to PlanetScale in the Hyperdrive dashboard.

</summary>

database\_branch\_name: string

The name of the PlanetScale database branch.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20database_branch_name">Link to this property</a>

database\_name: string

The name of the PlanetScale database.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20database_name">Link to this property</a>

organization\_name: string

The name of the PlanetScale organization.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20organization_name">Link to this property</a>

provider: "planetscale"

The database integration provider used by this operation.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20provider">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme">Link to this property</a>

custom\_database\_name?: string

The database name to use when connecting. Defaults to <code>postgres</code> for PostgreSQL and <code>mysql</code> for MySQL.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20custom_database_name">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20integration">Link to this property</a>

modified\_on?: string

Defines the last modified time of the Hyperdrive configuration.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

<details>

<summary>

mtls?: MTLS {ca\_certificate\_id, mtls\_certificate\_id, sslmode }

mTLS configuration for the origin connection. Cannot be used with VPC Service origins; TLS must be managed on the VPC Service.

</summary>

ca\_certificate\_id?: string

Define CA certificate ID obtained after uploading CA cert.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20ca_certificate_id">Link to this property</a>

mtls\_certificate\_id?: string

Define mTLS certificate ID obtained after uploading client cert.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20mtls_certificate_id">Link to this property</a>

sslmode?: string

PostgreSQL accepts <code>require</code>, <code>verify-ca</code>, and <code>verify-full</code>. MySQL accepts <code>REQUIRED</code>, <code>VERIFY_CA</code>, and <code>VERIFY_IDENTITY</code>. The verify modes require a CA certificate; the require modes cannot be used with a CA certificate.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20sslmode">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20mtls">Link to this property</a>

origin\_connection\_limit?: number

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. Certain Cloudflare-managed origins may be permitted a higher limit. Contact Cloudflare if you need a higher limit.

minimum5

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20origin_connection_limit">Link to this property</a>

restarted\_on?: string| null

Defines the last time the Hyperdrive connection pool was explicitly restarted via the restart endpoint. Omitted if the pool has never been explicitly restarted.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)%20%3E%20(property)%20restarted_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_create_response%20%3E%20(schema)>)

<details>

<summary>

ConfigUpdateResponse {id, caching, name, 7 more }

</summary>

id: string

Define configurations using a unique string identifier.

maxLength32

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

caching: Caching {disabled, max\_age, stale\_while\_revalidate }

</summary>

disabled: boolean

Defines whether caching is disabled.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20disabled">Link to this property</a>

max\_age?: number

Defines the maximum duration (in seconds) items persist in the cache.

maximum3600

minimum1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20max_age">Link to this property</a>

stale\_while\_revalidate?: number

Defines the number of seconds the cache may serve a stale response.

minimum0

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20stale_while_revalidate">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20caching">Link to this property</a>

name: string

The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

origin: PublicDatabase {database, host, password, 3 more } | AccessProtectedDatabaseBehindCloudflareTunnel {access\_client\_id, access\_client\_secret, database, 4 more } | DatabaseReachableThroughAWorkersVPC {database, password, scheme, 2 more }

Combines database connection fields with exactly one supported network location.

</summary>

One of the following:

<details>

<summary>

PublicDatabase {database, host, password, 3 more }

</summary>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20database">Link to this property</a>

host: string

Defines the publicly reachable hostname or IP of your origin database. Private, loopback, and link-local IP addresses are not allowed.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20host">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20password">Link to this property</a>

port: number

Defines the port of your origin database. Defaults to 5432 for PostgreSQL or 3306 for MySQL if not specified.

maximum65535

minimum1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20port">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

AccessProtectedDatabaseBehindCloudflareTunnel {access\_client\_id, access\_client\_secret, database, 4 more }

</summary>

access\_client\_id: string

Defines the Client ID of the Access token to use when connecting to the origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20access_client_id">Link to this property</a>

access\_client\_secret: string

Defines the Client Secret of the Access Token to use when connecting to the origin database. The API never returns this write-only value.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20access_client_secret">Link to this property</a>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20database">Link to this property</a>

host: string

Defines the host (hostname or IP) of your origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20host">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20password">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

DatabaseReachableThroughAWorkersVPC {database, password, scheme, 2 more }

</summary>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20database">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20password">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme">Link to this property</a>

service\_id: string

The identifier of the Workers VPC Service to connect through. Hyperdrive will egress through the specified VPC Service to reach the origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20service_id">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin">Link to this property</a>

created\_on?: string

Defines the creation time of the Hyperdrive configuration.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

integration?: Integration {database\_branch\_name, database\_name, organization\_name, 3 more }

Connects to a PlanetScale database using credentials managed by Cloudflare. The Cloudflare account must already be linked to PlanetScale in the Hyperdrive dashboard.

</summary>

database\_branch\_name: string

The name of the PlanetScale database branch.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20database_branch_name">Link to this property</a>

database\_name: string

The name of the PlanetScale database.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20database_name">Link to this property</a>

organization\_name: string

The name of the PlanetScale organization.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20organization_name">Link to this property</a>

provider: "planetscale"

The database integration provider used by this operation.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20provider">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme">Link to this property</a>

custom\_database\_name?: string

The database name to use when connecting. Defaults to <code>postgres</code> for PostgreSQL and <code>mysql</code> for MySQL.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20custom_database_name">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20integration">Link to this property</a>

modified\_on?: string

Defines the last modified time of the Hyperdrive configuration.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

<details>

<summary>

mtls?: MTLS {ca\_certificate\_id, mtls\_certificate\_id, sslmode }

mTLS configuration for the origin connection. Cannot be used with VPC Service origins; TLS must be managed on the VPC Service.

</summary>

ca\_certificate\_id?: string

Define CA certificate ID obtained after uploading CA cert.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20ca_certificate_id">Link to this property</a>

mtls\_certificate\_id?: string

Define mTLS certificate ID obtained after uploading client cert.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20mtls_certificate_id">Link to this property</a>

sslmode?: string

PostgreSQL accepts <code>require</code>, <code>verify-ca</code>, and <code>verify-full</code>. MySQL accepts <code>REQUIRED</code>, <code>VERIFY_CA</code>, and <code>VERIFY_IDENTITY</code>. The verify modes require a CA certificate; the require modes cannot be used with a CA certificate.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20sslmode">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20mtls">Link to this property</a>

origin\_connection\_limit?: number

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. Certain Cloudflare-managed origins may be permitted a higher limit. Contact Cloudflare if you need a higher limit.

minimum5

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20origin_connection_limit">Link to this property</a>

restarted\_on?: string| null

Defines the last time the Hyperdrive connection pool was explicitly restarted via the restart endpoint. Omitted if the pool has never been explicitly restarted.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)%20%3E%20(property)%20restarted_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_update_response%20%3E%20(schema)>)

<details>

<summary>

ConfigEditResponse {id, caching, name, 7 more }

</summary>

id: string

Define configurations using a unique string identifier.

maxLength32

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

caching: Caching {disabled, max\_age, stale\_while\_revalidate }

</summary>

disabled: boolean

Defines whether caching is disabled.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20disabled">Link to this property</a>

max\_age?: number

Defines the maximum duration (in seconds) items persist in the cache.

maximum3600

minimum1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20max_age">Link to this property</a>

stale\_while\_revalidate?: number

Defines the number of seconds the cache may serve a stale response.

minimum0

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20stale_while_revalidate">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20caching">Link to this property</a>

name: string

The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

origin: PublicDatabase {database, host, password, 3 more } | AccessProtectedDatabaseBehindCloudflareTunnel {access\_client\_id, access\_client\_secret, database, 4 more } | DatabaseReachableThroughAWorkersVPC {database, password, scheme, 2 more }

Combines database connection fields with exactly one supported network location.

</summary>

One of the following:

<details>

<summary>

PublicDatabase {database, host, password, 3 more }

</summary>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20database">Link to this property</a>

host: string

Defines the publicly reachable hostname or IP of your origin database. Private, loopback, and link-local IP addresses are not allowed.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20host">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20password">Link to this property</a>

port: number

Defines the port of your origin database. Defaults to 5432 for PostgreSQL or 3306 for MySQL if not specified.

maximum65535

minimum1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20port">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

AccessProtectedDatabaseBehindCloudflareTunnel {access\_client\_id, access\_client\_secret, database, 4 more }

</summary>

access\_client\_id: string

Defines the Client ID of the Access token to use when connecting to the origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20access_client_id">Link to this property</a>

access\_client\_secret: string

Defines the Client Secret of the Access Token to use when connecting to the origin database. The API never returns this write-only value.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20access_client_secret">Link to this property</a>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20database">Link to this property</a>

host: string

Defines the host (hostname or IP) of your origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20host">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20password">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

DatabaseReachableThroughAWorkersVPC {database, password, scheme, 2 more }

</summary>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20database">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20password">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme">Link to this property</a>

service\_id: string

The identifier of the Workers VPC Service to connect through. Hyperdrive will egress through the specified VPC Service to reach the origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20service_id">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin">Link to this property</a>

created\_on?: string

Defines the creation time of the Hyperdrive configuration.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

integration?: Integration {database\_branch\_name, database\_name, organization\_name, 3 more }

Connects to a PlanetScale database using credentials managed by Cloudflare. The Cloudflare account must already be linked to PlanetScale in the Hyperdrive dashboard.

</summary>

database\_branch\_name: string

The name of the PlanetScale database branch.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20database_branch_name">Link to this property</a>

database\_name: string

The name of the PlanetScale database.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20database_name">Link to this property</a>

organization\_name: string

The name of the PlanetScale organization.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20organization_name">Link to this property</a>

provider: "planetscale"

The database integration provider used by this operation.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20provider">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme">Link to this property</a>

custom\_database\_name?: string

The database name to use when connecting. Defaults to <code>postgres</code> for PostgreSQL and <code>mysql</code> for MySQL.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20custom_database_name">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20integration">Link to this property</a>

modified\_on?: string

Defines the last modified time of the Hyperdrive configuration.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

<details>

<summary>

mtls?: MTLS {ca\_certificate\_id, mtls\_certificate\_id, sslmode }

mTLS configuration for the origin connection. Cannot be used with VPC Service origins; TLS must be managed on the VPC Service.

</summary>

ca\_certificate\_id?: string

Define CA certificate ID obtained after uploading CA cert.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20ca_certificate_id">Link to this property</a>

mtls\_certificate\_id?: string

Define mTLS certificate ID obtained after uploading client cert.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20mtls_certificate_id">Link to this property</a>

sslmode?: string

PostgreSQL accepts <code>require</code>, <code>verify-ca</code>, and <code>verify-full</code>. MySQL accepts <code>REQUIRED</code>, <code>VERIFY_CA</code>, and <code>VERIFY_IDENTITY</code>. The verify modes require a CA certificate; the require modes cannot be used with a CA certificate.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20sslmode">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20mtls">Link to this property</a>

origin\_connection\_limit?: number

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. Certain Cloudflare-managed origins may be permitted a higher limit. Contact Cloudflare if you need a higher limit.

minimum5

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20origin_connection_limit">Link to this property</a>

restarted\_on?: string| null

Defines the last time the Hyperdrive connection pool was explicitly restarted via the restart endpoint. Omitted if the pool has never been explicitly restarted.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)%20%3E%20(property)%20restarted_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_edit_response%20%3E%20(schema)>)

<details>

<summary>

ConfigRestartResponse {id, caching, name, 7 more }

</summary>

id: string

Define configurations using a unique string identifier.

maxLength32

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

<details>

<summary>

caching: Caching {disabled, max\_age, stale\_while\_revalidate }

</summary>

disabled: boolean

Defines whether caching is disabled.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20disabled">Link to this property</a>

max\_age?: number

Defines the maximum duration (in seconds) items persist in the cache.

maximum3600

minimum1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20max_age">Link to this property</a>

stale\_while\_revalidate?: number

Defines the number of seconds the cache may serve a stale response.

minimum0

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20caching%20%3E%20(property)%20stale_while_revalidate">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20caching">Link to this property</a>

name: string

The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

origin: PublicDatabase {database, host, password, 3 more } | AccessProtectedDatabaseBehindCloudflareTunnel {access\_client\_id, access\_client\_secret, database, 4 more } | DatabaseReachableThroughAWorkersVPC {database, password, scheme, 2 more }

Combines database connection fields with exactly one supported network location.

</summary>

One of the following:

<details>

<summary>

PublicDatabase {database, host, password, 3 more }

</summary>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20database">Link to this property</a>

host: string

Defines the publicly reachable hostname or IP of your origin database. Private, loopback, and link-local IP addresses are not allowed.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20host">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20password">Link to this property</a>

port: number

Defines the port of your origin database. Defaults to 5432 for PostgreSQL or 3306 for MySQL if not specified.

maximum65535

minimum1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20port">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20scheme">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

AccessProtectedDatabaseBehindCloudflareTunnel {access\_client\_id, access\_client\_secret, database, 4 more }

</summary>

access\_client\_id: string

Defines the Client ID of the Access token to use when connecting to the origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20access_client_id">Link to this property</a>

access\_client\_secret: string

Defines the Client Secret of the Access Token to use when connecting to the origin database. The API never returns this write-only value.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20access_client_secret">Link to this property</a>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20database">Link to this property</a>

host: string

Defines the host (hostname or IP) of your origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20host">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20password">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20scheme">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

DatabaseReachableThroughAWorkersVPC {database, password, scheme, 2 more }

</summary>

database: string

Set the name of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20database">Link to this property</a>

password: string

Set the password needed to access your origin database. The API never returns this write-only value.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20password">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20scheme">Link to this property</a>

service\_id: string

The identifier of the Workers VPC Service to connect through. Hyperdrive will egress through the specified VPC Service to reach the origin database.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20service_id">Link to this property</a>

user: string

Set the user of your origin database.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202%20%3E%20(property)%20user">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin%20%3E%20(variant)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin">Link to this property</a>

created\_on?: string

Defines the creation time of the Hyperdrive configuration.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

integration?: Integration {database\_branch\_name, database\_name, organization\_name, 3 more }

Connects to a PlanetScale database using credentials managed by Cloudflare. The Cloudflare account must already be linked to PlanetScale in the Hyperdrive dashboard.

</summary>

database\_branch\_name: string

The name of the PlanetScale database branch.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20database_branch_name">Link to this property</a>

database\_name: string

The name of the PlanetScale database.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20database_name">Link to this property</a>

organization\_name: string

The name of the PlanetScale organization.

maxLength2048

minLength1

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20organization_name">Link to this property</a>

provider: "planetscale"

The database integration provider used by this operation.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20provider">Link to this property</a>

<details>

<summary>

scheme: "postgres"| "postgresql"| "mysql"

Specifies the URL scheme used to connect to your origin database.

</summary>

One of the following:

"postgres"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%200">Link to this property</a>

"postgresql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%201">Link to this property</a>

"mysql"

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20scheme">Link to this property</a>

custom\_database\_name?: string

The database name to use when connecting. Defaults to <code>postgres</code> for PostgreSQL and <code>mysql</code> for MySQL.

maxLength2048

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20integration%20%3E%20(property)%20custom_database_name">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20integration">Link to this property</a>

modified\_on?: string

Defines the last modified time of the Hyperdrive configuration.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20modified_on">Link to this property</a>

<details>

<summary>

mtls?: MTLS {ca\_certificate\_id, mtls\_certificate\_id, sslmode }

mTLS configuration for the origin connection. Cannot be used with VPC Service origins; TLS must be managed on the VPC Service.

</summary>

ca\_certificate\_id?: string

Define CA certificate ID obtained after uploading CA cert.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20ca_certificate_id">Link to this property</a>

mtls\_certificate\_id?: string

Define mTLS certificate ID obtained after uploading client cert.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20mtls_certificate_id">Link to this property</a>

sslmode?: string

PostgreSQL accepts <code>require</code>, <code>verify-ca</code>, and <code>verify-full</code>. MySQL accepts <code>REQUIRED</code>, <code>VERIFY_CA</code>, and <code>VERIFY_IDENTITY</code>. The verify modes require a CA certificate; the require modes cannot be used with a CA certificate.

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20mtls%20%3E%20(property)%20sslmode">Link to this property</a>

</details>

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20mtls">Link to this property</a>

origin\_connection\_limit?: number

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. Certain Cloudflare-managed origins may be permitted a higher limit. Contact Cloudflare if you need a higher limit.

minimum5

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20origin_connection_limit">Link to this property</a>

restarted\_on?: string| null

Defines the last time the Hyperdrive connection pool was explicitly restarted via the restart endpoint. Omitted if the pool has never been explicitly restarted.

formatdate-time

<a href="#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)%20%3E%20(property)%20restarted_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_restart_response%20%3E%20(schema)>)

ConfigDeleteResponse = unknown

[Link to this property](<#(resource)%20hyperdrive.configs%20%3E%20(model)%20config_delete_response%20%3E%20(schema)>)