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:

NameDatatypeDescription
namestringImmutable. Identifier. Name of resource.
associatedNetworksarrayOutput only. Deprecated: 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.
billingProjectIdstringOptional. Project to charge for the deployed firewall endpoint. This field must be specified when creating the endpoint in the organization scope, and should be omitted otherwise.
createTimestring (google-datetime)Output only. Create time stamp.
descriptionstringOptional. Description of the firewall endpoint. Max length 2048 characters.
endpointSettingsobjectOptional. Settings for the endpoint. (id: FirewallEndpointEndpointSettings)
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. (STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, INACTIVE)
updateTimestring (google-datetime)Output only. Update time stamp

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_firewall_endpoints_getselectprojectsId, locationsId, firewallEndpointsIdGets details of a single project Endpoint.
organizations_locations_firewall_endpoints_getselectorganizationsId, locationsId, firewallEndpointsIdGets details of a single org Endpoint.
projects_locations_firewall_endpoints_listselectprojectsId, locationsIdpageSize, filter, pageToken, orderByLists FirewallEndpoints in a given project and location.
organizations_locations_firewall_endpoints_listselectorganizationsId, locationsIdpageToken, orderBy, filter, pageSizeLists FirewallEndpoints in a given organization and location.
projects_locations_firewall_endpoints_createinsertprojectsId, locationsIdrequestId, firewallEndpointIdCreates a new FirewallEndpoint in a given project and location.
organizations_locations_firewall_endpoints_createinsertorganizationsId, locationsIdfirewallEndpointId, requestIdCreates a new FirewallEndpoint in a given organization and location.
projects_locations_firewall_endpoints_patchupdateprojectsId, locationsId, firewallEndpointsIdupdateMask, requestIdUpdate a single project Endpoint.
organizations_locations_firewall_endpoints_patchupdateorganizationsId, locationsId, firewallEndpointsIdupdateMask, requestIdUpdate a single org Endpoint.
projects_locations_firewall_endpoints_deletedeleteprojectsId, locationsId, firewallEndpointsIdrequestIdDeletes a single project Endpoint.
organizations_locations_firewall_endpoints_deletedeleteorganizationsId, locationsId, firewallEndpointsIdrequestIdDeletes a single org 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
projectsIdstring
filterstring
firewallEndpointIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single project Endpoint.

SELECT
name,
associatedNetworks,
associations,
billingProjectId,
createTime,
description,
endpointSettings,
labels,
reconciling,
satisfiesPzi,
satisfiesPzs,
state,
updateTime
FROM google.networksecurity.firewall_endpoints
WHERE projectsId = '{{ projectsId }}' -- 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__billingProjectId,
data__endpointSettings,
data__name,
data__description,
data__labels,
projectsId,
locationsId,
requestId,
firewallEndpointId
)
SELECT
'{{ billingProjectId }}',
'{{ endpointSettings }}',
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ requestId }}',
'{{ firewallEndpointId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Update a single project Endpoint.

UPDATE google.networksecurity.firewall_endpoints
SET
data__billingProjectId = '{{ billingProjectId }}',
data__endpointSettings = '{{ endpointSettings }}',
data__name = '{{ name }}',
data__description = '{{ description }}',
data__labels = '{{ labels }}'
WHERE
projectsId = '{{ projectsId }}' --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 project Endpoint.

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