packet_mirrorings
Creates, updates, deletes, gets or lists a packet_mirrorings
resource.
Overview
Name | packet_mirrorings |
Type | Resource |
Id | google.compute.packet_mirrorings |
Fields
Name | Datatype | Description |
---|---|---|
id | string | [Output Only] The unique identifier for the resource. This identifier is defined by the server. |
name | string | Name 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. |
description | string | An optional description of this resource. Provide this property when you create the resource. |
collectorIlb | object | |
creationTimestamp | string | [Output Only] Creation timestamp in RFC3339 text format. |
enable | string | Indicates 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. |
filter | object | |
kind | string | [Output Only] Type of the resource. Always compute#packetMirroring for packet mirrorings. |
mirroredResources | object | |
network | object | |
priority | integer | The 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. |
region | string | [Output Only] URI of the region where the packetMirroring resides. |
selfLink | string | [Output Only] Server-defined URL for the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
aggregated_list | SELECT | project | Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true . |
get | SELECT | packetMirroring, project, region | Returns the specified PacketMirroring resource. |
list | SELECT | project, region | Retrieves a list of PacketMirroring resources available to the specified project and region. |
insert | INSERT | project, region | Creates a PacketMirroring resource in the specified project and region using the data included in the request. |
delete | DELETE | packetMirroring, project, region | Deletes the specified PacketMirroring resource. |
patch | UPDATE | packetMirroring, project, region | Patches 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: kind
value: string
- name: id
value: string
- name: creationTimestamp
value: string
- name: selfLink
value: string
- name: name
value: string
- name: description
value: string
- name: region
value: string
- name: network
value:
- name: url
value: string
- name: canonicalUrl
value: string
- name: priority
value: integer
- name: collectorIlb
value:
- name: url
value: string
- name: canonicalUrl
value: string
- name: mirroredResources
value:
- name: subnetworks
value:
- - name: url
value: string
- name: canonicalUrl
value: string
- name: instances
value:
- - name: url
value: string
- name: canonicalUrl
value: string
- name: tags
value:
- string
- name: filter
value:
- name: cidrRanges
value:
- string
- name: IPProtocols
value:
- string
- name: direction
value: string
- name: enable
value: string
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 }}';