Skip to main content
POST
cURL
Check out the configuration docs for MySQL Connections to learn how to obtain the required credentials.

Body

application/json
method
enum<string>
required

The method used to authenticate with MySQL.

Available options:
username-and-password
credentials
object
required

The credentials used to connect with MySQL.

name
string
required

The name of the MySQL Connection to create. Must be slug-friendly.

Required string length: 1 - 64
description
string | null

An optional description for the MySQL Connection.

Maximum string length: 256
projectId
string

The ID of the project to create the MySQL Connection in.

isPlatformManagedCredentials
boolean
default:false

Whether or not the MySQL Connection credentials should be managed by Infisical. Once enabled this cannot be reversed.

gatewayId
string<uuid> | null

The Gateway ID to use for this connection.

gatewayPoolId
string<uuid> | null

The Gateway Pool ID to use for this connection.

isAutoRotationEnabled
enum<boolean>

Not supported for MySQL Connections.

Available options:
false
rotation

Not supported for MySQL Connections.

Response

Default Response

appConnection
MySQL (Username and Password) · object
required