List Hyperdrives

GET/accounts/{account_id}/hyperdrive/configs

Returns a list of Hyperdrives.

Security

<details>

<summary>API Token</summary>

The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

Example:<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

Accepted Permissions (at least one required)

Hyperdrive Write``Hyperdrive Read

P ath ParametersExpand Collapse

account_id: string

Define configurations using a unique string identifier.

maxLength32

Link to this property

Q uery ParametersExpand Collapse

page: optional number

Page number of paginated results.

minimum1

Link to this property

per_page: optional number

Maximum number of results per page.

maximum100

minimum1

Link to this property

ReturnsExpand Collapse

<details>

<summary>

errors: array of <a href="https://developers.cloudflare.com/api/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)">ResponseInfo</a> { code, message, documentation_url, source }

</summary>

code: number

minimum1000

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20code">Link to this property</a>

message: string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20message">Link to this property</a>

documentation_url: optional string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: optional object {pointer }

</summary>

pointer: optional string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

Link to this property

<details>

<summary>

messages: array of <a href="https://developers.cloudflare.com/api/resources/$shared#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)">ResponseInfo</a> { code, message, documentation_url, source }

</summary>

code: number

minimum1000

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20code">Link to this property</a>

message: string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20message">Link to this property</a>

documentation_url: optional string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: optional object {pointer }

</summary>

pointer: optional string

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20%24shared%20%3E%20(model)%20response_info%20%3E%20(schema)%20%3E%20(property)%20source">Link to this property</a>

</details>

Link to this property

<details>

<summary>

result: array of object {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: object {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: optional 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: optional 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: object {database, host, password, 3 more } or object {access_client_id, access_client_secret, database, 4 more } or object {database, password, scheme, 2 more }

Combines database connection fields with exactly one supported network location.

</summary>

One of the following:

<details>

<summary>

PublicDatabase object {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"or "postgresql"or "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 object {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"or "postgresql"or "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 object {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"or "postgresql"or "mysql"

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