Skip to main content

cloud_vm_clusters

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

Overview

Namecloud_vm_clusters
TypeResource
Idgoogle.oracledatabase.cloud_vm_clusters

Fields

NameDatatypeDescription
namestringIdentifier. The name of the VM Cluster resource with the format: projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}
backupSubnetCidrstringRequired. CIDR range of the backup subnet.
cidrstringRequired. Network settings. CIDR to use for cluster IP allocation.
createTimestringOutput only. The date and time that the VM cluster was created.
displayNamestringOptional. User friendly name for this resource.
exadataInfrastructurestringRequired. The name of the Exadata Infrastructure resource on which VM cluster resource is created, in the following format: projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extradata_infrastructure}
gcpOracleZonestringOutput only. GCP location where Oracle Exadata is hosted. It is same as GCP Oracle zone of Exadata infrastructure.
labelsobjectOptional. Labels or tags associated with the VM Cluster.
networkstringRequired. The name of the VPC network. Format: projects/{project}/global/networks/{network}
propertiesobjectVarious properties and settings associated with Exadata VM cluster.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcloudVmClustersId, locationsId, projectsIdGets details of a single VM Cluster.
listSELECTlocationsId, projectsIdLists the VM Clusters in a given project and location.
createINSERTlocationsId, projectsIdCreates a new VM Cluster in a given project and location.
deleteDELETEcloudVmClustersId, locationsId, projectsIdDeletes a single VM Cluster.

SELECT examples

Lists the VM Clusters in a given project and location.

SELECT
name,
backupSubnetCidr,
cidr,
createTime,
displayName,
exadataInfrastructure,
gcpOracleZone,
labels,
network,
properties
FROM google.oracledatabase.cloud_vm_clusters
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.oracledatabase.cloud_vm_clusters (
locationsId,
projectsId,
name,
exadataInfrastructure,
displayName,
properties,
labels,
cidr,
backupSubnetCidr,
network
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ exadataInfrastructure }}',
'{{ displayName }}',
'{{ properties }}',
'{{ labels }}',
'{{ cidr }}',
'{{ backupSubnetCidr }}',
'{{ network }}'
;

DELETE example

Deletes the specified cloud_vm_clusters resource.

/*+ delete */
DELETE FROM google.oracledatabase.cloud_vm_clusters
WHERE cloudVmClustersId = '{{ cloudVmClustersId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';