Skip to main content

database_properties

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

Overview

Namedatabase_properties
TypeResource
Idgoogle.composer.database_properties

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
isFailoverReplicaAvailablebooleanThe availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only fail over to the failover replica when the status is true.
primaryGceZonestringThe Compute Engine zone that the instance is currently serving from.
secondaryGceZonestringThe Compute Engine zone that the failover instance is currently serving from for a regional Cloud SQL instance.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
fetch_database_propertiesselectprojectsId, locationsId, environmentsIdFetches database properties.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
environmentsIdstring
locationsIdstring
projectsIdstring

SELECT examples

Fetches database properties.

SELECT
isFailoverReplicaAvailable,
primaryGceZone,
secondaryGceZone
FROM google.composer.database_properties
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND environmentsId = '{{ environmentsId }}' -- required;