Skip to main content

packet_mirrorings

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

Overview

Namepacket_mirrorings
TypeResource
Idgoogle.compute.packet_mirrorings

Fields

NameDatatypeDescription
idstring[Output Only] The unique identifier for the resource. This identifier is defined by the server.
namestringName of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
descriptionstringAn optional description of this resource. Provide this property when you create the resource.
collectorIlbobject
creationTimestampstring[Output Only] Creation timestamp in RFC3339 text format.
enablestringIndicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE.
filterobject
kindstring[Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings.
mirroredResourcesobject
networkobject
priorityintegerThe priority of applying this configuration. Priority is used to break ties in cases where there is more than one matching rule. In the case of two rules that apply for a given Instance, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535.
regionstring[Output Only] URI of the region where the packetMirroring resides.
selfLinkstring[Output Only] Server-defined URL for the resource.

Methods

NameAccessible byRequired ParamsDescription
aggregated_listSELECTprojectRetrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.
getSELECTpacketMirroring, project, regionReturns the specified PacketMirroring resource.
listSELECTproject, regionRetrieves a list of PacketMirroring resources available to the specified project and region.
insertINSERTproject, regionCreates a PacketMirroring resource in the specified project and region using the data included in the request.
deleteDELETEpacketMirroring, project, regionDeletes the specified PacketMirroring resource.
patchUPDATEpacketMirroring, project, regionPatches the specified PacketMirroring resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

SELECT examples

Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

SELECT
id,
name,
description,
collectorIlb,
creationTimestamp,
enable,
filter,
kind,
mirroredResources,
network,
priority,
region,
selfLink
FROM google.compute.packet_mirrorings
WHERE project = '{{ project }}';

INSERT example

Use the following StackQL query and manifest file to create a new packet_mirrorings resource.

/*+ create */
INSERT INTO google.compute.packet_mirrorings (
project,
region,
name,
description,
region,
network,
priority,
collectorIlb,
mirroredResources,
filter,
enable
)
SELECT
'{{ project }}',
'{{ region }}',
'{{ name }}',
'{{ description }}',
'{{ region }}',
'{{ network }}',
'{{ priority }}',
'{{ collectorIlb }}',
'{{ mirroredResources }}',
'{{ filter }}',
'{{ enable }}'
;

UPDATE example

Updates a packet_mirrorings resource.

/*+ update */
UPDATE google.compute.packet_mirrorings
SET
name = '{{ name }}',
description = '{{ description }}',
region = '{{ region }}',
network = '{{ network }}',
priority = '{{ priority }}',
collectorIlb = '{{ collectorIlb }}',
mirroredResources = '{{ mirroredResources }}',
filter = '{{ filter }}',
enable = '{{ enable }}'
WHERE
packetMirroring = '{{ packetMirroring }}'
AND project = '{{ project }}'
AND region = '{{ region }}';

DELETE example

Deletes the specified packet_mirrorings resource.

/*+ delete */
DELETE FROM google.compute.packet_mirrorings
WHERE packetMirroring = '{{ packetMirroring }}'
AND project = '{{ project }}'
AND region = '{{ region }}';