Method: connect.get

SQL Server, private server access, HDD, data cache, legacy HA, serverless exports, multi-region backups, cross-region replicas are not supported.
Retrieves connect settings about a Cloud SQL instance.

HTTP request

GET https://sqladmin.s3nsapis.fr/v1/projects/{project}/instances/{instance}/connectSettings

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Project ID of the project that contains the instance.

instance

string

Cloud SQL instance ID. This does not include the project ID.

Query parameters

Parameters
readTime

string (Timestamp format)

Optional. Optional snapshot read timestamp to trade freshness for performance.

Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

Request body

The request body must be empty.

Response body

Connect settings retrieval response.

If successful, the response body contains data with the following structure:

JSON representation
{
  "kind": string,
  "serverCaCert": {
    object (SslCert)
  },
  "ipAddresses": [
    {
      object (IpMapping)
    }
  ],
  "region": string,
  "databaseVersion": enum (SqlDatabaseVersion),
  "backendType": enum (SqlBackendType),
  "pscEnabled": boolean,
  "dnsName": string,
  "serverCaMode": enum (CaMode),
  "customSubjectAlternativeNames": [
    string
  ],
  "dnsNames": [
    {
      object (DnsNameMapping)
    }
  ],
  "nodes": [
    {
      object (ConnectPoolNodeConfig)
    }
  ],
  "nodeCount": integer
}
Fields
kind

string

This is always sql#connectSettings.

serverCaCert

object (SslCert)

SSL configuration.

ipAddresses[]

object (IpMapping)

The assigned IP addresses for the instance.

region

string

The cloud region for the instance. For example, us-central1, europe-west1. The region cannot be changed after instance creation.

databaseVersion

enum (SqlDatabaseVersion)

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.

backendType

enum (SqlBackendType)

SECOND_GEN: Cloud SQL database instance. EXTERNAL: A database server that is not managed by Trusted Cloud. This property is read-only; use the tier property in the settings object to determine the database type.

pscEnabled

boolean

Whether PSC connectivity is enabled for this instance.

dnsName

string

The dns name of the instance.

serverCaMode

enum (CaMode)

Specify what type of CA is used for the server certificate.

customSubjectAlternativeNames[]

string

Custom subject alternative names for the server certificate.

dnsNames[]

object (DnsNameMapping)

Output only. The list of DNS names used by this instance.

nodes[]

object (ConnectPoolNodeConfig)

Output only. Entries containing information about each read pool node of the read pool.

nodeCount

integer

The number of read pool nodes in a read pool.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/sqlservice.admin
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

CaMode

Various Certificate Authority (CA) modes for certificate signing.

Enums
CA_MODE_UNSPECIFIED CA mode is unknown.
GOOGLE_MANAGED_INTERNAL_CA Trusted Cloud-managed self-signed internal CA.
GOOGLE_MANAGED_CAS_CA Trusted Cloud-managed regional CA part of root CA hierarchy hosted on Trusted Cloud's Certificate Authority Service (CAS).
CUSTOMER_MANAGED_CAS_CA Customer-managed CA hosted on Trusted Cloud's Certificate Authority Service (CAS).

ConnectPoolNodeConfig

Details of a single read pool node of a read pool.

JSON representation
{
  "ipAddresses": [
    {
      object (IpMapping)
    }
  ],
  "dnsNames": [
    {
      object (DnsNameMapping)
    }
  ],
  "name": string,
  "dnsName": string
}
Fields
ipAddresses[]

object (IpMapping)

Output only. Mappings containing IP addresses that can be used to connect to the read pool node.

dnsNames[]

object (DnsNameMapping)

Output only. The list of DNS names used by this read pool node.

name

string

Output only. The name of the read pool node. Doesn't include the project ID.

dnsName

string

Output only. The DNS name of the read pool node.