firewall_endpoints
Creates, updates, deletes, gets or lists a firewall_endpoints
resource.
Overview
Name | firewall_endpoints |
Type | Resource |
Id | google.networksecurity.firewall_endpoints |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Identifier. name of resource |
description | string | Optional. Description of the firewall endpoint. Max length 2048 characters. |
associatedNetworks | array | Output 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}. |
associations | array | Output only. List of FirewallEndpointAssociations that are associated to this endpoint. An association will only appear in this list after traffic routing is fully configured. |
billingProjectId | string | Required. Project to bill on endpoint uptime usage. |
createTime | string | Output only. Create time stamp |
labels | object | Optional. Labels as key value pairs |
reconciling | boolean | Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128. |
state | string | Output only. Current state of the endpoint. |
updateTime | string | Output only. Update time stamp |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_locations_firewall_endpoints_get | SELECT | firewallEndpointsId, locationsId, organizationsId | Gets details of a single Endpoint. |
organizations_locations_firewall_endpoints_list | SELECT | locationsId, organizationsId | Lists FirewallEndpoints in a given project and location. |
organizations_locations_firewall_endpoints_create | INSERT | locationsId, organizationsId | Creates a new FirewallEndpoint in a given project and location. |
organizations_locations_firewall_endpoints_delete | DELETE | firewallEndpointsId, locationsId, organizationsId | Deletes a single Endpoint. |
organizations_locations_firewall_endpoints_patch | UPDATE | firewallEndpointsId, locationsId, organizationsId | Update a single Endpoint. |
SELECT
examples
Lists FirewallEndpoints in a given project and location.
SELECT
name,
description,
associatedNetworks,
associations,
billingProjectId,
createTime,
labels,
reconciling,
state,
updateTime
FROM google.networksecurity.firewall_endpoints
WHERE locationsId = '{{ locationsId }}'
AND organizationsId = '{{ organizationsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new firewall_endpoints
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.networksecurity.firewall_endpoints (
locationsId,
organizationsId,
name,
description,
labels,
billingProjectId
)
SELECT
'{{ locationsId }}',
'{{ organizationsId }}',
'{{ name }}',
'{{ description }}',
'{{ labels }}',
'{{ billingProjectId }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: description
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: labels
value: object
- name: state
value: string
- name: reconciling
value: boolean
- name: associatedNetworks
value:
- string
- name: associations
value:
- - name: name
value: string
- name: network
value: string
- name: billingProjectId
value: string
UPDATE
example
Updates a firewall_endpoints
resource.
/*+ update */
UPDATE google.networksecurity.firewall_endpoints
SET
name = '{{ name }}',
description = '{{ description }}',
labels = '{{ labels }}',
billingProjectId = '{{ billingProjectId }}'
WHERE
firewallEndpointsId = '{{ firewallEndpointsId }}'
AND locationsId = '{{ locationsId }}'
AND organizationsId = '{{ organizationsId }}';
DELETE
example
Deletes the specified firewall_endpoints
resource.
/*+ delete */
DELETE FROM google.networksecurity.firewall_endpoints
WHERE firewallEndpointsId = '{{ firewallEndpointsId }}'
AND locationsId = '{{ locationsId }}'
AND organizationsId = '{{ organizationsId }}';