Skip to main content

mirroring_endpoint_group_associations

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

Overview

Namemirroring_endpoint_group_associations
TypeResource
Idgoogle.networksecurity.mirroring_endpoint_group_associations

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. Identifier. The resource name of this endpoint group association, for example: projects/123456789/locations/global/mirroringEndpointGroupAssociations/my-eg-association. See https://google.aip.dev/122 for more details.
createTimestring (google-datetime)Output only. The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.
labelsobjectOptional. Labels are key/value pairs that help to organize and filter resources.
locationsarrayOutput only. The list of locations where the association is configured. This information is retrieved from the linked endpoint group.
locationsDetailsarrayOutput only. The list of locations where the association is present. This information is retrieved from the linked endpoint group, and not configured as part of the association itself.
mirroringEndpointGroupstringImmutable. The endpoint group that this association is connected to, for example: projects/123456789/locations/global/mirroringEndpointGroups/my-eg. See https://google.aip.dev/124.
networkstringImmutable. The VPC network that is associated. for example: projects/123456789/global/networks/my-network. See https://google.aip.dev/124.
reconcilingbooleanOutput only. The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. adding a new location to the target deployment group). See https://google.aip.dev/128.
statestringOutput only. Current state of the endpoint group association.
updateTimestring (google-datetime)Output only. The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_mirroring_endpoint_group_associations_getselectprojectsId, locationsId, mirroringEndpointGroupAssociationsIdGets a specific association. See https://google.aip.dev/131.
projects_locations_mirroring_endpoint_group_associations_listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists associations in a given project and location. See https://google.aip.dev/132.
projects_locations_mirroring_endpoint_group_associations_createinsertprojectsId, locationsIdmirroringEndpointGroupAssociationId, requestIdCreates an association in a given project and location. See https://google.aip.dev/133.
projects_locations_mirroring_endpoint_group_associations_patchupdateprojectsId, locationsId, mirroringEndpointGroupAssociationsIdupdateMask, requestIdUpdates an association. See https://google.aip.dev/134.
projects_locations_mirroring_endpoint_group_associations_deletedeleteprojectsId, locationsId, mirroringEndpointGroupAssociationsIdrequestIdDeletes an association. See https://google.aip.dev/135.

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
locationsIdstring
mirroringEndpointGroupAssociationsIdstring
projectsIdstring
filterstring
mirroringEndpointGroupAssociationIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets a specific association. See https://google.aip.dev/131.

SELECT
name,
createTime,
labels,
locations,
locationsDetails,
mirroringEndpointGroup,
network,
reconciling,
state,
updateTime
FROM google.networksecurity.mirroring_endpoint_group_associations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND mirroringEndpointGroupAssociationsId = '{{ mirroringEndpointGroupAssociationsId }}' -- required;

INSERT examples

Creates an association in a given project and location. See https://google.aip.dev/133.

INSERT INTO google.networksecurity.mirroring_endpoint_group_associations (
data__name,
data__labels,
data__mirroringEndpointGroup,
data__network,
projectsId,
locationsId,
mirroringEndpointGroupAssociationId,
requestId
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ mirroringEndpointGroup }}',
'{{ network }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ mirroringEndpointGroupAssociationId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates an association. See https://google.aip.dev/134.

UPDATE google.networksecurity.mirroring_endpoint_group_associations
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__mirroringEndpointGroup = '{{ mirroringEndpointGroup }}',
data__network = '{{ network }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND mirroringEndpointGroupAssociationsId = '{{ mirroringEndpointGroupAssociationsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes an association. See https://google.aip.dev/135.

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