Skip to main content

clusters_secondary

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

Overview

Nameclusters_secondary
TypeResource
Idgoogle.alloydb.clusters_secondary

Fields

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

NameAccessible byRequired ParamsDescription
createsecondaryINSERTlocationsId, projectsIdCreates a cluster of type SECONDARY in the given location using the primary cluster as the source.

INSERT example

Use the following StackQL query and manifest file to create a new clusters_secondary resource.

/*+ create */
INSERT INTO google.alloydb.clusters_secondary (
locationsId,
projectsId,
displayName,
labels,
databaseVersion,
networkConfig,
network,
etag,
annotations,
initialUser,
automatedBackupPolicy,
sslConfig,
encryptionConfig,
continuousBackupConfig,
secondaryConfig,
pscConfig,
maintenanceUpdatePolicy,
subscriptionType
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ displayName }}',
'{{ labels }}',
'{{ databaseVersion }}',
'{{ networkConfig }}',
'{{ network }}',
'{{ etag }}',
'{{ annotations }}',
'{{ initialUser }}',
'{{ automatedBackupPolicy }}',
'{{ sslConfig }}',
'{{ encryptionConfig }}',
'{{ continuousBackupConfig }}',
'{{ secondaryConfig }}',
'{{ pscConfig }}',
'{{ maintenanceUpdatePolicy }}',
'{{ subscriptionType }}'
;