Skip to main content

nat_addresses

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

Overview

Namenat_addresses
TypeResource
Idgoogle.apigee.nat_addresses

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringRequired. Resource ID of the NAT address.
ipAddressstringOutput only. The static IPV4 address.
statestringOutput only. State of the nat address.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_instances_nat_addresses_getselectorganizationsId, instancesId, natAddressesIdGets the details of a NAT address. Note: Not supported for Apigee hybrid.
organizations_instances_nat_addresses_listselectorganizationsId, instancesIdpageSize, pageTokenLists the NAT addresses for an Apigee instance. Note: Not supported for Apigee hybrid.
organizations_instances_nat_addresses_createinsertorganizationsId, instancesIdCreates a NAT address. The address is created in the RESERVED state and a static external IP address will be provisioned. At this time, the instance will not use this IP address for Internet egress traffic. The address can be activated for use once any required firewall IP whitelisting has been completed. Note: Not supported for Apigee hybrid.
organizations_instances_nat_addresses_deletedeleteorganizationsId, instancesId, natAddressesIdDeletes the NAT address. Connections that are actively using the address are drained before it is removed. Note: Not supported for Apigee hybrid.
organizations_instances_nat_addresses_activateexecorganizationsId, instancesId, natAddressesIdActivates the NAT address. The Apigee instance can now use this for Internet egress traffic. Note: Not supported for Apigee hybrid.

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
instancesIdstring
natAddressesIdstring
organizationsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets the details of a NAT address. Note: Not supported for Apigee hybrid.

SELECT
name,
ipAddress,
state
FROM google.apigee.nat_addresses
WHERE organizationsId = '{{ organizationsId }}' -- required
AND instancesId = '{{ instancesId }}' -- required
AND natAddressesId = '{{ natAddressesId }}' -- required;

INSERT examples

Creates a NAT address. The address is created in the RESERVED state and a static external IP address will be provisioned. At this time, the instance will not use this IP address for Internet egress traffic. The address can be activated for use once any required firewall IP whitelisting has been completed. Note: Not supported for Apigee hybrid.

INSERT INTO google.apigee.nat_addresses (
data__name,
organizationsId,
instancesId
)
SELECT
'{{ name }}',
'{{ organizationsId }}',
'{{ instancesId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes the NAT address. Connections that are actively using the address are drained before it is removed. Note: Not supported for Apigee hybrid.

DELETE FROM google.apigee.nat_addresses
WHERE organizationsId = '{{ organizationsId }}' --required
AND instancesId = '{{ instancesId }}' --required
AND natAddressesId = '{{ natAddressesId }}' --required;

Lifecycle Methods

Activates the NAT address. The Apigee instance can now use this for Internet egress traffic. Note: Not supported for Apigee hybrid.

EXEC google.apigee.nat_addresses.organizations_instances_nat_addresses_activate 
@organizationsId='{{ organizationsId }}' --required,
@instancesId='{{ instancesId }}' --required,
@natAddressesId='{{ natAddressesId }}' --required;