{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-sql/json-schema/google-cloud-sql-connect-settings-schema.json",
  "title": "ConnectSettings",
  "description": "Connect settings retrieval response.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-sql-connect-api-openapi.yml#/components/schemas/ConnectSettings",
  "type": "object",
  "properties": {
    "ipAddresses": {
      "description": "The assigned IP addresses for the instance.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/IpMapping"
      }
    },
    "backendType": {
      "enum": [
        "SQL_BACKEND_TYPE_UNSPECIFIED",
        "FIRST_GEN",
        "SECOND_GEN",
        "EXTERNAL"
      ],
      "type": "string",
      "description": "`SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type."
    },
    "serverCaMode": {
      "enum": [
        "CA_MODE_UNSPECIFIED",
        "GOOGLE_MANAGED_INTERNAL_CA",
        "GOOGLE_MANAGED_CAS_CA",
        "CUSTOMER_MANAGED_CAS_CA"
      ],
      "description": "Specify what type of CA is used for the server certificate.",
      "type": "string"
    },
    "nodes": {
      "readOnly": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConnectPoolNodeConfig"
      },
      "description": "Output only. Entries containing information about each read pool node of the read pool."
    },
    "customSubjectAlternativeNames": {
      "items": {
        "type": "string"
      },
      "description": "Custom subject alternative names for the server certificate.",
      "type": "array"
    },
    "kind": {
      "type": "string",
      "description": "This is always `sql#connectSettings`."
    },
    "mdxProtocolSupport": {
      "readOnly": true,
      "type": "array",
      "description": "Optional. Output only. mdx_protocol_support controls how the client uses metadata exchange when connecting to the instance. The values in the list representing parts of the MDX protocol that are supported by this instance. When the list is empty, the instance does not support MDX, so the client must not send an MDX request. The default is empty.",
      "items": {
        "type": "string",
        "enum": [
          "MDX_PROTOCOL_SUPPORT_UNSPECIFIED",
          "CLIENT_PROTOCOL_TYPE"
        ]
      }
    },
    "pscEnabled": {
      "type": "boolean",
      "description": "Whether PSC connectivity is enabled for this instance."
    },
    "dnsName": {
      "type": "string",
      "description": "The dns name of the instance."
    },
    "databaseVersion": {
      "enum": [
        "SQL_DATABASE_VERSION_UNSPECIFIED",
        "MYSQL_5_1",
        "MYSQL_5_5",
        "MYSQL_5_6",
        "MYSQL_5_7",
        "MYSQL_8_0",
        "MYSQL_8_0_18",
        "MYSQL_8_0_26",
        "MYSQL_8_0_27",
        "MYSQL_8_0_28",
        "MYSQL_8_0_29",
        "MYSQL_8_0_30",
        "MYSQL_8_0_31",
        "MYSQL_8_0_32",
        "MYSQL_8_0_33",
        "MYSQL_8_0_34",
        "MYSQL_8_0_35",
        "MYSQL_8_0_36",
        "MYSQL_8_0_37",
        "MYSQL_8_0_39",
        "MYSQL_8_0_40",
        "MYSQL_8_0_41",
        "MYSQL_8_0_42",
        "MYSQL_8_0_43",
        "MYSQL_8_0_44",
        "MYSQL_8_0_45",
        "MYSQL_8_0_46",
        "MYSQL_8_4",
        "MYSQL_9_7",
        "SQLSERVER_2017_STANDARD",
        "SQLSERVER_2017_ENTERPRISE",
        "SQLSERVER_2017_EXPRESS",
        "SQLSERVER_2017_WEB",
        "POSTGRES_9_6",
        "POSTGRES_10",
        "POSTGRES_11",
        "POSTGRES_12",
        "POSTGRES_13",
        "POSTGRES_14",
        "POSTGRES_15",
        "POSTGRES_16",
        "POSTGRES_17",
        "POSTGRES_18",
        "POSTGRES_19",
        "POSTGRES_20",
        "SQLSERVER_2019_STANDARD",
        "SQLSERVER_2019_ENTERPRISE",
        "SQLSERVER_2019_EXPRESS",
        "SQLSERVER_2019_WEB",
        "SQLSERVER_2022_STANDARD",
        "SQLSERVER_2022_ENTERPRISE",
        "SQLSERVER_2022_EXPRESS",
        "SQLSERVER_2022_WEB",
        "SQLSERVER_2025_STANDARD",
        "SQLSERVER_2025_ENTERPRISE",
        "SQLSERVER_2025_EXPRESS"
      ],
      "description": "The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11`, `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default), `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`.",
      "type": "string"
    },
    "serverCaCert": {
      "$ref": "#/$defs/SslCert",
      "description": "SSL configuration."
    },
    "connectionName": {
      "description": "Optional. Output only. Connection name of the Cloud SQL instance used in connection strings, in the format project:region:instance.",
      "readOnly": true,
      "type": "string"
    },
    "nodeCount": {
      "description": "The number of read pool nodes in a read pool.",
      "type": "integer",
      "format": "int32"
    },
    "region": {
      "description": "The cloud region for the instance. For example, `us-central1`, `europe-west1`. The region cannot be changed after instance creation.",
      "type": "string"
    },
    "dnsNames": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DnsNameMapping"
      },
      "readOnly": true,
      "description": "Output only. The list of DNS names used by this instance."
    }
  },
  "$defs": {
    "ConnectPoolNodeConfig": {
      "type": "object",
      "description": "Details of a single read pool node of a read pool.",
      "properties": {
        "dnsNames": {
          "description": "Output only. The list of DNS names used by this read pool node.",
          "readOnly": true,
          "type": "array",
          "items": {
            "$ref": "#/$defs/DnsNameMapping"
          }
        },
        "dnsName": {
          "description": "Output only. The DNS name of the read pool node.",
          "readOnly": true,
          "type": "string"
        },
        "ipAddresses": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/IpMapping"
          },
          "description": "Output only. Mappings containing IP addresses that can be used to connect to the read pool node."
        },
        "name": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The name of the read pool node. Doesn't include the project ID."
        }
      }
    },
    "DnsNameMapping": {
      "properties": {
        "dnsScope": {
          "readOnly": true,
          "description": "Output only. The scope that the DNS name applies to.",
          "type": "string",
          "enum": [
            "DNS_SCOPE_UNSPECIFIED",
            "INSTANCE",
            "CLUSTER"
          ]
        },
        "recordManager": {
          "enum": [
            "RECORD_MANAGER_UNSPECIFIED",
            "CUSTOMER",
            "CLOUD_SQL_AUTOMATION"
          ],
          "type": "string",
          "readOnly": true,
          "description": "Output only. The manager for this DNS record."
        },
        "connectionType": {
          "description": "Output only. The connection type of the DNS name.",
          "type": "string",
          "enum": [
            "CONNECTION_TYPE_UNSPECIFIED",
            "PUBLIC",
            "PRIVATE_SERVICES_ACCESS",
            "PRIVATE_SERVICE_CONNECT"
          ],
          "readOnly": true
        },
        "name": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The DNS name."
        }
      },
      "type": "object",
      "description": "DNS metadata."
    },
    "IpMapping": {
      "type": "object",
      "description": "Database instance IP mapping",
      "properties": {
        "timeToRetire": {
          "format": "google-datetime",
          "description": "The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.",
          "type": "string"
        },
        "type": {
          "enum": [
            "SQL_IP_ADDRESS_TYPE_UNSPECIFIED",
            "PRIMARY",
            "OUTGOING",
            "PRIVATE",
            "MIGRATED_1ST_GEN"
          ],
          "description": "The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.",
          "type": "string"
        },
        "ipAddress": {
          "type": "string",
          "description": "The IP address assigned."
        }
      }
    },
    "SslCert": {
      "type": "object",
      "properties": {
        "createTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`"
        },
        "sha1Fingerprint": {
          "type": "string",
          "description": "Sha1 Fingerprint."
        },
        "expirationTime": {
          "type": "string",
          "description": "The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.",
          "format": "google-datetime"
        },
        "selfLink": {
          "type": "string",
          "description": "The URI of this resource."
        },
        "commonName": {
          "type": "string",
          "description": "User supplied name. Constrained to [a-zA-Z.-_ ]+."
        },
        "instance": {
          "type": "string",
          "description": "Name of the database instance."
        },
        "certSerialNumber": {
          "description": "Serial number, as extracted from the certificate.",
          "type": "string"
        },
        "kind": {
          "type": "string",
          "description": "This is always `sql#sslCert`."
        },
        "cert": {
          "description": "PEM representation.",
          "type": "string"
        }
      },
      "description": "SslCerts Resource"
    }
  }
}