external_addresses
Creates, updates, deletes, gets or lists a external_addresses
resource.
Overview
Name | external_addresses |
Type | Resource |
Id | google.vmwareengine.external_addresses |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output 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 |
description | string | User-provided description for this resource. |
createTime | string | Output only. Creation time of this resource. |
externalIp | string | Output only. The external IP address of a workload VM. |
internalIp | string | The internal IP address of a workload VM. |
state | string | Output only. The state of the resource. |
uid | string | Output only. System-generated unique identifier for the resource. |
updateTime | string | Output only. Last update time of this resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | externalAddressesId, locationsId, privateCloudsId, projectsId | Gets details of a single external IP address. |
list | SELECT | locationsId, privateCloudsId, projectsId | Lists external IP addresses assigned to VMware workload VMs in a given private cloud. |
create | INSERT | locationsId, privateCloudsId, projectsId | 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 ). |
delete | DELETE | externalAddressesId, locationsId, privateCloudsId, projectsId | 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. |
patch | UPDATE | externalAddressesId, locationsId, privateCloudsId, projectsId | 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. |
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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.vmwareengine.external_addresses (
locationsId,
privateCloudsId,
projectsId,
internalIp,
description
)
SELECT
'{{ locationsId }}',
'{{ privateCloudsId }}',
'{{ projectsId }}',
'{{ internalIp }}',
'{{ description }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: internalIp
value: string
- name: externalIp
value: string
- name: state
value: string
- name: uid
value: string
- name: description
value: string
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 }}';