List Hyperdrives·续
</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: optional 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: optional object {database_branch_name, database_name, organization_name, 3 more }
Selects a PlanetScale database and provisions credentials managed by Cloudflare when creating a Hyperdrive configuration. The Cloudflare account must already be linked to PlanetScale in the Hyperdrive dashboard. The selection is returned as read-only metadata and cannot be changed with replace or update operations.
</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"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)%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: optional 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: optional 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: optional object {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: optional 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: optional 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: optional 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: optional 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: optional string
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>
success: true
Return the status of the API call success.
<details>
<summary>
result_info: optional object {count, page, per_page, total_count }
</summary>
count: optional number
Defines the total number of results for the requested service.
<a href="#(resource)%20hyperdrive.configs%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20count">Link to this property</a>
page: optional number
Defines the current page within paginated list of results.
<a href="#(resource)%20hyperdrive.configs%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20page">Link to this property</a>
per_page: optional number
Defines the number of results per page of results.
<a href="#(resource)%20hyperdrive.configs%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20per_page">Link to this property</a>
total_count: optional number
Defines the total results available without any search parameters.
<a href="#(resource)%20hyperdrive.configs%20%3E%20(method)%20list%20%3E%20(network%20schema)%20%3E%20(property)%20result_info%20%3E%20(property)%20total_count">Link to this property</a>
</details>
List Hyperdrives
HTTP
HTTPTypeScriptPythonGoTerraform
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/hyperdrive/configs \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
200 example
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"result": [
{
"id": "023e105f4ecef8ad9ca31a8372d0c353",
"caching": {
"disabled": true,
"max_age": 1,
"stale_while_revalidate": 0
},
"name": "example-hyperdrive",
"origin": {
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres"
},
"created_on": "2017-01-01T00:00:00Z",
"integration": {
"database_branch_name": "x",
"database_name": "x",
"organization_name": "x",
"provider": "planetscale",
"scheme": "postgres",
"custom_database_name": "custom_database_name"
},
"modified_on": "2017-01-01T00:00:00Z",
"mtls": {
"ca_certificate_id": "00000000-0000-0000-0000-0000000000",
"mtls_certificate_id": "00000000-0000-0000-0000-0000000000",
"sslmode": "verify-full"
},
"origin_connection_limit": 60,
"restarted_on": "2017-01-01T00:00:00Z"
}
],
"success": true,
"result_info": {
"count": 1,
"page": 1,
"per_page": 20,
"total_count": 2000
}
}
Returns Examples
200 example
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"result": [
{
"id": "023e105f4ecef8ad9ca31a8372d0c353",
"caching": {
"disabled": true,
"max_age": 1,
"stale_while_revalidate": 0
},
"name": "example-hyperdrive",
"origin": {
"database": "postgres",
"host": "database.example.com",
"port": 5432,
"scheme": "postgres",
"user": "postgres"
},
"created_on": "2017-01-01T00:00:00Z",
"integration": {
"database_branch_name": "x",
"database_name": "x",
"organization_name": "x",
"provider": "planetscale",
"scheme": "postgres",
"custom_database_name": "custom_database_name"
},
"modified_on": "2017-01-01T00:00:00Z",
"mtls": {
"ca_certificate_id": "00000000-0000-0000-0000-0000000000",
"mtls_certificate_id": "00000000-0000-0000-0000-0000000000",
"sslmode": "verify-full"
},
"origin_connection_limit": 60,
"restarted_on": "2017-01-01T00:00:00Z"
}
],
"success": true,
"result_info": {
"count": 1,
"page": 1,
"per_page": 20,
"total_count": 2000
}
}
description: Serverless durable logs title: K2 image: https://developers.cloudflare.com/k2/og.png?v=9d8a9f5bbb2b5535
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/k2/llms.txt
Use this file to discover all available pages before exploring further.
