Bind mTLS Certificate
POST/accounts/{account_id}/hyperdrive/mtls/bind
Enables or disables an uploaded mTLS client or CA certificate for use by Hyperdrive. Enabling a certificate starts deploying it to the Cloudflare network so Hyperdrive configurations can reference it. A certificate cannot be disabled while a Hyperdrive configuration still references it; remove it from those configurations first. Requires Account SSL and Certificates Read in addition to Hyperdrive Write.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Body ParametersJSON
Bind mTLS Certificate
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/hyperdrive/mtls/bind \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
-d '{
"enabled": true,
"mtls_certificate_id": "00000000-0000-0000-0000-000000000000"
}'{
"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": "00000000-0000-0000-0000-000000000000",
"binding_status": "pending_deployment",
"mtls_certificate_id": "00000000-0000-0000-0000-000000000000"
},
"success": true
}Returns Examples
{
"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": "00000000-0000-0000-0000-000000000000",
"binding_status": "pending_deployment",
"mtls_certificate_id": "00000000-0000-0000-0000-000000000000"
},
"success": true
}