Skip to main content

external_addresses

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

Overview

Nameexternal_addresses
TypeResource
Idgoogle.vmwareengine.external_addresses

Fields

NameDatatypeDescription
namestringOutput only. 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
descriptionstringUser-provided description for this resource.
createTimestringOutput only. Creation time of 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.
updateTimestringOutput only. Last update time of this resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTexternalAddressesId, locationsId, privateCloudsId, projectsIdGets details of a single external IP address.
listSELECTlocationsId, privateCloudsId, projectsIdLists external IP addresses assigned to VMware workload VMs in a given private cloud.
createINSERTlocationsId, privateCloudsId, projectsIdCreates 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).
deleteDELETEexternalAddressesId, locationsId, privateCloudsId, projectsIdDeletes 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.
patchUPDATEexternalAddressesId, locationsId, privateCloudsId, projectsIdUpdates 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.

SELECT examples

Lists external IP addresses assigned to VMware workload VMs in a given private cloud.

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

INSERT example

Use the following StackQL query and manifest file to create a new external_addresses resource.

/*+ create */
INSERT INTO google.vmwareengine.external_addresses (
locationsId,
privateCloudsId,
projectsId,
internalIp,
description
)
SELECT
'{{ locationsId }}',
'{{ privateCloudsId }}',
'{{ projectsId }}',
'{{ internalIp }}',
'{{ description }}'
;

UPDATE example

Updates a external_addresses resource.

/*+ update */
UPDATE google.vmwareengine.external_addresses
SET
internalIp = '{{ internalIp }}',
description = '{{ description }}'
WHERE
externalAddressesId = '{{ externalAddressesId }}'
AND locationsId = '{{ locationsId }}'
AND privateCloudsId = '{{ privateCloudsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified external_addresses resource.

/*+ delete */
DELETE FROM google.vmwareengine.external_addresses
WHERE externalAddressesId = '{{ externalAddressesId }}'
AND locationsId = '{{ locationsId }}'
AND privateCloudsId = '{{ privateCloudsId }}'
AND projectsId = '{{ projectsId }}';