PacketMirroring
Represents a Packet Mirroring resource. Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) network and forwards it to a collector destination, such as an instance group of an internal TCP/UDP load balancer, for analysis or examination. For more information about setting up Packet Mirroring, seeUsing Packet Mirroring.
Properties
| Name | Type | Description |
|---|---|---|
| kind | string | Output only. [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings. |
| collectorIlb | object | The Forwarding Rule resource of typeloadBalancingScheme=INTERNAL that will be used as collector for mirrored traffic. The specified forwarding rule must have isMirroringCollector set to true. |
| creationTimestamp | string | Output only. [Output Only] Creation timestamp inRFC3339 text format. |
| id | string | Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server. |
| region | string | [Output Only] URI of the region where the packetMirroring resides. |
| 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 withRFC1035. Specifically, the name must be 1-63 characters long and match |
| 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. |
| mirroredResources | object | PacketMirroring mirroredResourceInfos. MirroredResourceInfo specifies a set of mirrored VM instances, subnetworks and/or tags for which traffic from/to all VM instances will be mirrored. |
| description | string | An optional description of this resource. Provide this property when you create the resource. |
| filter | object | Filter for mirrored traffic. If unspecified, all IPv4 traffic is mirrored. |
| network | object | Specifies the mirrored VPC network. Only packets in this network will be mirrored. All mirrored VMs should have a NIC in the given network. All mirrored subnetworks should belong to the given network. |
| 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 |
| selfLink | string | Output only. [Output Only] Server-defined URL for the resource. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-packet-mirroring-schema.json",
"title": "PacketMirroring",
"description": "Represents a Packet Mirroring resource.\n\nPacket Mirroring clones the traffic of specified instances in your Virtual\nPrivate Cloud (VPC) network and forwards it to a collector destination,\nsuch as an instance group of an internal TCP/UDP load balancer, for analysis\nor examination.\nFor more information about setting up Packet Mirroring, seeUsing Packet Mirroring.",
"x-generated": "2026-11-11",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/google-cloud-compute-engine-packet-mirrorings-api-openapi.yml#/components/schemas/PacketMirroring",
"type": "object",
"properties": {
"kind": {
"default": "compute#packetMirroring",
"description": "Output only. [Output Only] Type of the resource. Alwayscompute#packetMirroring for packet mirrorings.",
"type": "string",
"readOnly": true
},
"collectorIlb": {
"$ref": "#/$defs/PacketMirroringForwardingRuleInfo",
"description": "The Forwarding Rule resource of typeloadBalancingScheme=INTERNAL that will be used as collector\nfor mirrored traffic.\nThe specified forwarding rule must have isMirroringCollector\nset to true."
},
"creationTimestamp": {
"description": "Output only. [Output Only] Creation timestamp inRFC3339\ntext format.",
"type": "string",
"readOnly": true
},
"id": {
"description": "Output only. [Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.",
"format": "uint64",
"type": "string",
"readOnly": true
},
"region": {
"type": "string",
"description": "[Output Only] URI of the region where the packetMirroring resides."
},
"name": {
"type": "string",
"description": "Name of the resource; provided by the client when the resource is created.\nThe name must be 1-63 characters long, and comply withRFC1035.\nSpecifically, the name must be 1-63 characters long and match the regular\nexpression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first\ncharacter must be a lowercase letter, and all following characters must be\na dash, lowercase letter, or digit, except the last character, which cannot\nbe a dash.",
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"
},
"enable": {
"description": "Indicates whether or not this packet mirroring takes effect.\nIf set to FALSE, this packet mirroring policy will not be enforced on the\nnetwork.\n\nThe default is TRUE.",
"type": "string",
"enum": [
"FALSE",
"TRUE"
]
},
"mirroredResources": {
"$ref": "#/$defs/PacketMirroringMirroredResourceInfo",
"description": "PacketMirroring mirroredResourceInfos.\nMirroredResourceInfo specifies a set of mirrored VM instances, subnetworks\nand/or tags for which traffic from/to all VM instances will be mirrored."
},
"description": {
"type": "string",
"description": "An optional description of this resource. Provide this property when you\ncreate the resource."
},
"filter": {
"$ref": "#/$defs/PacketMirroringFilter",
"description": "Filter for mirrored traffic. If unspecified, all IPv4 traffic is mirrored."
},
"network": {
"$ref": "#/$defs/PacketMirroringNetworkInfo",
"description": "Specifies the mirrored VPC network. Only packets in this network will be\nmirrored. All mirrored VMs should have a NIC in the given network.\nAll mirrored subnetworks should belong to the given network."
},
"priority": {
"description": "The priority of applying this configuration. Priority is used to break ties\nin cases where there is more than one matching rule. In the case of two\nrules that apply for a given Instance, the one with the lowest-numbered\npriority value wins.\n\nDefault value is 1000. Valid range is 0 through 65535.",
"format": "uint32",
"type": "integer"
},
"selfLink": {
"type": "string",
"readOnly": true,
"description": "Output only. [Output Only] Server-defined URL for the resource."
}
},
"$defs": {
"PacketMirroringFilter": {
"type": "object",
"properties": {
"IPProtocols": {
"items": {
"type": "string"
},
"type": "array",
"description": "Protocols that apply as filter on mirrored traffic.\nIf no protocols are specified, all traffic that matches the specified\nCIDR ranges is mirrored.\nIf neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is\nmirrored."
},
"cidrRanges": {
"description": "One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source\n(ingress) or destination (egress) IP in the IP header. If no ranges are\nspecified, all IPv4 traffic that matches the specified IPProtocols is\nmirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4\ntraffic is mirrored. To mirror all IPv4 and IPv6 traffic, use\n\"0.0.0.0/0,::/0\".",
"items": {
"type": "string"
},
"type": "array"
},
"direction": {
"enum": [
"BOTH",
"EGRESS",
"INGRESS"
],
"type": "string",
"description": "Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH.\nThe default is BOTH."
}
}
},
"PacketMirroringForwardingRuleInfo": {
"properties": {
"url": {
"description": "Resource URL to the forwarding rule representing the ILB\nconfigured as destination of the mirrored traffic.",
"type": "string"
},
"canonicalUrl": {
"description": "Output only. [Output Only] Unique identifier for the forwarding rule; defined by the\nserver.",
"type": "string",
"readOnly": true
}
},
"type": "object"
},
"PacketMirroringMirroredResourceInfo": {
"type": "object",
"properties": {
"subnetworks": {
"description": "A set of subnetworks for which traffic from/to all VM instances will be\nmirrored. They must live in the same region as this packetMirroring.\n\nYou may specify a maximum of 5 subnetworks.",
"type": "array",
"items": {
"$ref": "#/$defs/PacketMirroringMirroredResourceInfoSubnetInfo"
}
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "A set of mirrored tags. Traffic from/to all VM instances that have one or\nmore of these tags will be mirrored."
},
"instances": {
"description": "A set of virtual machine instances that are being mirrored.\nThey must live in zones contained in the same region as this\npacketMirroring.\n\nNote that this config will apply only to those network interfaces of the\nInstances that belong to the network specified in this packetMirroring.\n\nYou may specify a maximum of 50 Instances.",
"items": {
"$ref": "#/$defs/PacketMirroringMirroredResourceInfoInstanceInfo"
},
"type": "array"
}
}
},
"PacketMirroringMirroredResourceInfoInstanceInfo": {
"properties": {
"url": {
"description": "Resource URL to the virtual machine instance which is being mirrored.",
"type": "string"
},
"canonicalUrl": {
"type": "string",
"readOnly": true,
"description": "Output only. [Output Only] Unique identifier for the instance; defined by the\nserver."
}
},
"type": "object"
},
"PacketMirroringMirroredResourceInfoSubnetInfo": {
"properties": {
"canonicalUrl": {
"readOnly": true,
"description": "Output only. [Output Only] Unique identifier for the subnetwork; defined by the\nserver.",
"type": "string"
},
"url": {
"description": "Resource URL to the subnetwork for which\ntraffic from/to all VM instances will be mirrored.",
"type": "string"
}
},
"type": "object"
},
"PacketMirroringNetworkInfo": {
"type": "object",
"properties": {
"canonicalUrl": {
"readOnly": true,
"type": "string",
"description": "Output only. [Output Only] Unique identifier for the network; defined by the server."
},
"url": {
"type": "string",
"description": "URL of the network resource."
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/google-cloud-compute-engine-packet-mirroring"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.