Skip to main content

firewall_endpoints

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

Overview

Namefirewall_endpoints
TypeResource
Idgoogle.networksecurity.firewall_endpoints

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. Identifier. Name of resource.
associatedNetworksarrayOutput only. List of networks that are associated with this endpoint in the local zone. This is a projection of the FirewallEndpointAssociations pointing at this endpoint. A network will only appear in this list after traffic routing is fully configured. Format: projects/{project}/global/networks/{name}.
associationsarrayOutput only. List of FirewallEndpointAssociations that are associated to this endpoint. An association will only appear in this list after traffic routing is fully configured.
billingProjectIdstringRequired. Project to bill on endpoint uptime usage.
createTimestring (google-datetime)Output only. Create time stamp.
descriptionstringOptional. Description of the firewall endpoint. Max length 2048 characters.
labelsobjectOptional. Labels as key value pairs
reconcilingbooleanOutput only. Whether reconciling is in progress, recommended per https://google.aip.dev/128.
satisfiesPzibooleanOutput only. [Output Only] Reserved for future use.
satisfiesPzsbooleanOutput only. [Output Only] Reserved for future use.
statestringOutput only. Current state of the endpoint.
updateTimestring (google-datetime)Output only. Update time stamp

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_locations_firewall_endpoints_getselectorganizationsId, locationsId, firewallEndpointsIdGets details of a single Endpoint.
organizations_locations_firewall_endpoints_listselectorganizationsId, locationsIdpageSize, pageToken, filter, orderByLists FirewallEndpoints in a given project and location.
organizations_locations_firewall_endpoints_createinsertorganizationsId, locationsIdfirewallEndpointId, requestIdCreates a new FirewallEndpoint in a given project and location.
organizations_locations_firewall_endpoints_patchupdateorganizationsId, locationsId, firewallEndpointsIdupdateMask, requestIdUpdate a single Endpoint.
organizations_locations_firewall_endpoints_deletedeleteorganizationsId, locationsId, firewallEndpointsIdrequestIdDeletes a single Endpoint.

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
firewallEndpointsIdstring
locationsIdstring
organizationsIdstring
filterstring
firewallEndpointIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single Endpoint.

SELECT
name,
associatedNetworks,
associations,
billingProjectId,
createTime,
description,
labels,
reconciling,
satisfiesPzi,
satisfiesPzs,
state,
updateTime
FROM google.networksecurity.firewall_endpoints
WHERE organizationsId = '{{ organizationsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND firewallEndpointsId = '{{ firewallEndpointsId }}' -- required;

INSERT examples

Creates a new FirewallEndpoint in a given project and location.

INSERT INTO google.networksecurity.firewall_endpoints (
data__name,
data__description,
data__labels,
data__billingProjectId,
organizationsId,
locationsId,
firewallEndpointId,
requestId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ billingProjectId }}',
'{{ organizationsId }}',
'{{ locationsId }}',
'{{ firewallEndpointId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Update a single Endpoint.

UPDATE google.networksecurity.firewall_endpoints
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__labels = '{{ labels }}',
data__billingProjectId = '{{ billingProjectId }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND firewallEndpointsId = '{{ firewallEndpointsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single Endpoint.

DELETE FROM google.networksecurity.firewall_endpoints
WHERE organizationsId = '{{ organizationsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND firewallEndpointsId = '{{ firewallEndpointsId }}' --required
AND requestId = '{{ requestId }}';