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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The name of the VM Cluster resource with the format: projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}
backupOdbSubnetstringOptional. The name of the backup OdbSubnet associated with the VM Cluster. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
backupSubnetCidrstringOptional. CIDR range of the backup subnet.
cidrstringOptional. Network settings. CIDR to use for cluster IP allocation.
createTimestring (google-datetime)Output 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. The GCP Oracle zone where Oracle CloudVmCluster is hosted. This will be the same as the gcp_oracle_zone of the CloudExadataInfrastructure. Example: us-east4-b-r2.
labelsobjectOptional. Labels or tags associated with the VM Cluster.
networkstringOptional. The name of the VPC network. Format: projects/{project}/global/networks/{network}
odbNetworkstringOptional. The name of the OdbNetwork associated with the VM Cluster. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network} It is optional but if specified, this should match the parent ODBNetwork of the odb_subnet and backup_odb_subnet.
odbSubnetstringOptional. The name of the OdbSubnet associated with the VM Cluster for IP allocation. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}
propertiesobjectOptional. Various properties of the VM Cluster. (id: CloudVmClusterProperties)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, cloudVmClustersIdGets details of a single VM Cluster.
listselectprojectsId, locationsIdpageSize, pageToken, filterLists the VM Clusters in a given project and location.
createinsertprojectsId, locationsIdcloudVmClusterId, requestIdCreates a new VM Cluster in a given project and location.
deletedeleteprojectsId, locationsId, cloudVmClustersIdrequestId, forceDeletes a single VM Cluster.

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
cloudVmClustersIdstring
locationsIdstring
projectsIdstring
cloudVmClusterIdstring
filterstring
forceboolean
pageSizeinteger (int32)
pageTokenstring
requestIdstring

SELECT examples

Gets details of a single VM Cluster.

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

INSERT examples

Creates a new VM Cluster in a given project and location.

INSERT INTO google.oracledatabase.cloud_vm_clusters (
data__name,
data__exadataInfrastructure,
data__displayName,
data__properties,
data__labels,
data__cidr,
data__backupSubnetCidr,
data__network,
data__odbNetwork,
data__odbSubnet,
data__backupOdbSubnet,
projectsId,
locationsId,
cloudVmClusterId,
requestId
)
SELECT
'{{ name }}',
'{{ exadataInfrastructure }}',
'{{ displayName }}',
'{{ properties }}',
'{{ labels }}',
'{{ cidr }}',
'{{ backupSubnetCidr }}',
'{{ network }}',
'{{ odbNetwork }}',
'{{ odbSubnet }}',
'{{ backupOdbSubnet }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ cloudVmClusterId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes a single VM Cluster.

DELETE FROM google.oracledatabase.cloud_vm_clusters
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND cloudVmClustersId = '{{ cloudVmClustersId }}' --required
AND requestId = '{{ requestId }}'
AND force = '{{ force }}';