Skip to main content

vmware_engine_networks

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

Overview

Namevmware_engine_networks
TypeResource
Idgoogle.vmwareengine.vmware_engine_networks

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier. The resource name of the VMware Engine network. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/global/vmwareEngineNetworks/my-network
createTimestring (google-datetime)Output only. Creation time of this resource.
descriptionstringUser-provided description for this VMware Engine network.
etagstringChecksum that may be sent on update and delete requests to ensure that the user-provided value is up to date before the server processes a request. The server computes checksums based on the value of other fields in the request.
statestringOutput only. State of the VMware Engine network.
typestringRequired. VMware Engine network type.
uidstringOutput only. System-generated unique identifier for the resource.
updateTimestring (google-datetime)Output only. Last update time of this resource.
vpcNetworksarrayOutput only. VMware Engine service VPC networks that provide connectivity from a private cloud to customer projects, the internet, and other Google Cloud services.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, vmwareEngineNetworksIdRetrieves a VmwareEngineNetwork resource by its resource name. The resource contains details of the VMware Engine network, such as its VMware Engine network type, peered networks in a service project, and state (for example, CREATING, ACTIVE, DELETING).
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists VmwareEngineNetwork resources in a given project and location.
createinsertprojectsId, locationsIdvmwareEngineNetworkId, requestIdCreates a new VMware Engine network that can be used by a private cloud.
patchupdateprojectsId, locationsId, vmwareEngineNetworksIdupdateMask, requestIdModifies a VMware Engine network resource. Only the following fields can be updated: description. Only fields specified in updateMask are applied.
deletedeleteprojectsId, locationsId, vmwareEngineNetworksIdrequestId, etagDeletes a VmwareEngineNetwork resource. You can only delete a VMware Engine network after all resources that refer to it are deleted. For example, a private cloud, a network peering, and a network policy can all refer to the same VMware Engine network.

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
locationsIdstring
projectsIdstring
vmwareEngineNetworksIdstring
etagstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)
vmwareEngineNetworkIdstring

SELECT examples

Retrieves a VmwareEngineNetwork resource by its resource name. The resource contains details of the VMware Engine network, such as its VMware Engine network type, peered networks in a service project, and state (for example, CREATING, ACTIVE, DELETING).

SELECT
name,
createTime,
description,
etag,
state,
type,
uid,
updateTime,
vpcNetworks
FROM google.vmwareengine.vmware_engine_networks
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND vmwareEngineNetworksId = '{{ vmwareEngineNetworksId }}' -- required;

INSERT examples

Creates a new VMware Engine network that can be used by a private cloud.

INSERT INTO google.vmwareengine.vmware_engine_networks (
data__description,
data__type,
data__etag,
projectsId,
locationsId,
vmwareEngineNetworkId,
requestId
)
SELECT
'{{ description }}',
'{{ type }}',
'{{ etag }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ vmwareEngineNetworkId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Modifies a VMware Engine network resource. Only the following fields can be updated: description. Only fields specified in updateMask are applied.

UPDATE google.vmwareengine.vmware_engine_networks
SET
data__description = '{{ description }}',
data__type = '{{ type }}',
data__etag = '{{ etag }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND vmwareEngineNetworksId = '{{ vmwareEngineNetworksId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a VmwareEngineNetwork resource. You can only delete a VMware Engine network after all resources that refer to it are deleted. For example, a private cloud, a network peering, and a network policy can all refer to the same VMware Engine network.

DELETE FROM google.vmwareengine.vmware_engine_networks
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND vmwareEngineNetworksId = '{{ vmwareEngineNetworksId }}' --required
AND requestId = '{{ requestId }}'
AND etag = '{{ etag }}';