Skip to main content

subnets

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

Overview

Namesubnets
TypeResource
Idgoogle.vmwareengine.subnets

Fields

NameDatatypeDescription
namestringOutput only. The resource name of this subnet. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet
gatewayIpstringThe IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
ipCidrRangestringThe IP address range of the subnet in CIDR format '10.0.0.0/24'.
statestringOutput only. The state of the resource.
typestringOutput only. The type of the subnet. For example "management" or "userDefined".
vlanIdintegerOutput only. VLAN ID of the VLAN on which the subnet is configured

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, privateCloudsId, projectsId, subnetsIdGets details of a single subnet.
listSELECTlocationsId, privateCloudsId, projectsIdLists subnets in a given private cloud.
patchUPDATElocationsId, privateCloudsId, projectsId, subnetsIdUpdates the parameters of a single subnet. Only fields specified in update_mask are applied. Note: This API is synchronous and always returns a successful google.longrunning.Operation (LRO). The returned LRO will only have done and response fields.

SELECT examples

Lists subnets in a given private cloud.

SELECT
name,
gatewayIp,
ipCidrRange,
state,
type,
vlanId
FROM google.vmwareengine.subnets
WHERE locationsId = '{{ locationsId }}'
AND privateCloudsId = '{{ privateCloudsId }}'
AND projectsId = '{{ projectsId }}';

UPDATE example

Updates a subnets resource.

/*+ update */
UPDATE google.vmwareengine.subnets
SET
ipCidrRange = '{{ ipCidrRange }}',
gatewayIp = '{{ gatewayIp }}'
WHERE
locationsId = '{{ locationsId }}'
AND privateCloudsId = '{{ privateCloudsId }}'
AND projectsId = '{{ projectsId }}'
AND subnetsId = '{{ subnetsId }}';