Skip to main content

instances_connection_info

Creates, updates, deletes, gets or lists a instances_connection_info resource.

Overview

Nameinstances_connection_info
TypeResource
Idgoogle.alloydb.instances_connection_info

Fields

NameDatatypeDescription
namestringThe name of the ConnectionInfo singleton resource, e.g.: projects/{project}/locations/{location}/clusters//instances//connectionInfo This field currently has no semantic meaning.
instanceUidstringOutput only. The unique ID of the Instance.
ipAddressstringOutput only. The private network IP address for the Instance. This is the default IP for the instance and is always created (even if enable_public_ip is set). This is the connection endpoint for an end-user application.
publicIpAddressstringOutput only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.

Methods

NameAccessible byRequired ParamsDescription
get_connection_infoSELECTclustersId, instancesId, locationsId, projectsIdGet instance metadata used for a connection.

SELECT examples

Get instance metadata used for a connection.

SELECT
name,
instanceUid,
ipAddress,
publicIpAddress
FROM google.alloydb.instances_connection_info
WHERE clustersId = '{{ clustersId }}'
AND instancesId = '{{ instancesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';