subnets
Creates, updates, deletes, gets or lists a subnets
resource.
Overview
Name | subnets |
Type | Resource |
Id | google.vmwareengine.subnets |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output 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 |
gatewayIp | string | The IP address of the gateway of this subnet. Must fall within the IP prefix defined above. |
ipCidrRange | string | The IP address range of the subnet in CIDR format '10.0.0.0/24'. |
state | string | Output only. The state of the resource. |
type | string | Output only. The type of the subnet. For example "management" or "userDefined". |
vlanId | integer | Output only. VLAN ID of the VLAN on which the subnet is configured |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, privateCloudsId, projectsId, subnetsId | Gets details of a single subnet. |
list | SELECT | locationsId, privateCloudsId, projectsId | Lists subnets in a given private cloud. |
patch | UPDATE | locationsId, privateCloudsId, projectsId, subnetsId | Updates 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 }}';