Skip to main content

external_addresses

Creates, updates, deletes, gets or lists an external_addresses resource.

Overview

Nameexternal_addresses
TypeResource
Idgoogle.vmwareengine.external_addresses

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier. The resource name of this external IP address. 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/externalAddresses/my-address
createTimestring (google-datetime)Output only. Creation time of this resource.
descriptionstringUser-provided description for this resource.
externalIpstringOutput only. The external IP address of a workload VM.
internalIpstringThe internal IP address of a workload VM.
statestringOutput only. The state of the resource.
uidstringOutput only. System-generated unique identifier for the resource.
updateTimestring (google-datetime)Output only. Last update time of this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, privateCloudsId, externalAddressesIdGets details of a single external IP address.
listselectprojectsId, locationsId, privateCloudsIdpageSize, pageToken, filter, orderByLists external IP addresses assigned to VMware workload VMs in a given private cloud.
createinsertprojectsId, locationsId, privateCloudsIdexternalAddressId, requestIdCreates a new ExternalAddress resource in a given private cloud. The network policy that corresponds to the private cloud must have the external IP address network service enabled (NetworkPolicy.external_ip).
patchupdateprojectsId, locationsId, privateCloudsId, externalAddressesIdupdateMask, requestIdUpdates the parameters of a single external IP address. Only fields specified in update_mask are applied. During operation processing, the resource is temporarily in the ACTIVE state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.
deletedeleteprojectsId, locationsId, privateCloudsId, externalAddressesIdrequestIdDeletes a single external IP address. When you delete an external IP address, connectivity between the external IP address and the corresponding internal IP address is lost.

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
externalAddressesIdstring
locationsIdstring
privateCloudsIdstring
projectsIdstring
externalAddressIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single external IP address.

SELECT
name,
createTime,
description,
externalIp,
internalIp,
state,
uid,
updateTime
FROM google.vmwareengine.external_addresses
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND privateCloudsId = '{{ privateCloudsId }}' -- required
AND externalAddressesId = '{{ externalAddressesId }}' -- required;

INSERT examples

Creates a new ExternalAddress resource in a given private cloud. The network policy that corresponds to the private cloud must have the external IP address network service enabled (NetworkPolicy.external_ip).

INSERT INTO google.vmwareengine.external_addresses (
data__internalIp,
data__description,
projectsId,
locationsId,
privateCloudsId,
externalAddressId,
requestId
)
SELECT
'{{ internalIp }}',
'{{ description }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ privateCloudsId }}',
'{{ externalAddressId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single external IP address. Only fields specified in update_mask are applied. During operation processing, the resource is temporarily in the ACTIVE state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.

UPDATE google.vmwareengine.external_addresses
SET
data__internalIp = '{{ internalIp }}',
data__description = '{{ description }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND privateCloudsId = '{{ privateCloudsId }}' --required
AND externalAddressesId = '{{ externalAddressesId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single external IP address. When you delete an external IP address, connectivity between the external IP address and the corresponding internal IP address is lost.

DELETE FROM google.vmwareengine.external_addresses
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND privateCloudsId = '{{ privateCloudsId }}' --required
AND externalAddressesId = '{{ externalAddressesId }}' --required
AND requestId = '{{ requestId }}';