firewall_endpoint_associations
Creates, updates, deletes, gets or lists a firewall_endpoint_associations
resource.
Overview
Name | firewall_endpoint_associations |
Type | Resource |
Id | google.networksecurity.firewall_endpoint_associations |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Identifier. name of resource |
createTime | string | Output only. Create time stamp |
disabled | boolean | Optional. Whether the association is disabled. True indicates that traffic won't be intercepted |
firewallEndpoint | string | Required. The URL of the FirewallEndpoint that is being associated. |
labels | object | Optional. Labels as key value pairs |
network | string | Required. The URL of the network that is being associated. |
reconciling | boolean | Output only. Whether reconciling is in progress, recommended per https://google.aip.dev/128. |
state | string | Output only. Current state of the association. |
tlsInspectionPolicy | string | Optional. The URL of the TlsInspectionPolicy that is being associated. |
updateTime | string | Output only. Update time stamp |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_firewall_endpoint_associations_get | SELECT | firewallEndpointAssociationsId, locationsId, projectsId | Gets details of a single FirewallEndpointAssociation. |
projects_locations_firewall_endpoint_associations_list | SELECT | locationsId, projectsId | Lists Associations in a given project and location. |
projects_locations_firewall_endpoint_associations_create | INSERT | locationsId, projectsId | Creates a new FirewallEndpointAssociation in a given project and location. |
projects_locations_firewall_endpoint_associations_delete | DELETE | firewallEndpointAssociationsId, locationsId, projectsId | Deletes a single FirewallEndpointAssociation. |
projects_locations_firewall_endpoint_associations_patch | UPDATE | firewallEndpointAssociationsId, locationsId, projectsId | Update a single FirewallEndpointAssociation. |
SELECT
examples
Lists Associations in a given project and location.
SELECT
name,
createTime,
disabled,
firewallEndpoint,
labels,
network,
reconciling,
state,
tlsInspectionPolicy,
updateTime
FROM google.networksecurity.firewall_endpoint_associations
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new firewall_endpoint_associations
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.networksecurity.firewall_endpoint_associations (
locationsId,
projectsId,
name,
labels,
network,
firewallEndpoint,
tlsInspectionPolicy,
disabled
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ labels }}',
'{{ network }}',
'{{ firewallEndpoint }}',
'{{ tlsInspectionPolicy }}',
{{ disabled }}
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: labels
value: object
- name: state
value: string
- name: network
value: string
- name: firewallEndpoint
value: string
- name: tlsInspectionPolicy
value: string
- name: reconciling
value: boolean
- name: disabled
value: boolean
UPDATE
example
Updates a firewall_endpoint_associations
resource.
/*+ update */
UPDATE google.networksecurity.firewall_endpoint_associations
SET
name = '{{ name }}',
labels = '{{ labels }}',
network = '{{ network }}',
firewallEndpoint = '{{ firewallEndpoint }}',
tlsInspectionPolicy = '{{ tlsInspectionPolicy }}',
disabled = true|false
WHERE
firewallEndpointAssociationsId = '{{ firewallEndpointAssociationsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified firewall_endpoint_associations
resource.
/*+ delete */
DELETE FROM google.networksecurity.firewall_endpoint_associations
WHERE firewallEndpointAssociationsId = '{{ firewallEndpointAssociationsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';