{
  "$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-aggregated-list-schema.json",
  "title": "PacketMirroringAggregatedList",
  "description": "Contains a list of packetMirrorings.",
  "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/PacketMirroringAggregatedList",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "description": "Output only. Type of resource.",
      "readOnly": true,
      "default": "compute#packetMirroringAggregatedList"
    },
    "unreachables": {
      "readOnly": true,
      "items": {
        "type": "string"
      },
      "type": "array",
      "description": "Output only. [Output Only] Unreachable resources."
    },
    "selfLink": {
      "readOnly": true,
      "description": "Output only. [Output Only] Server-defined URL for this resource.",
      "type": "string"
    },
    "nextPageToken": {
      "type": "string",
      "description": "[Output Only] This token allows you to get the next page of results for\nlist requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for\nthe query parameter pageToken in the next list request.\nSubsequent list requests will have their own nextPageToken to\ncontinue paging through the results."
    },
    "items": {
      "type": "object",
      "description": "A list of PacketMirroring resources.",
      "additionalProperties": {
        "$ref": "#/$defs/PacketMirroringsScopedList",
        "description": "Name of the scope containing this set of packetMirrorings."
      }
    },
    "warning": {
      "type": "object",
      "description": "[Output Only] Informational warning message.",
      "properties": {
        "code": {
          "type": "string",
          "description": "[Output Only] A warning code, if applicable. For example, Compute\nEngine returns NO_RESULTS_ON_PAGE if there\nare no results in the response.",
          "enum": [
            "CLEANUP_FAILED",
            "DEPRECATED_RESOURCE_USED",
            "DEPRECATED_TYPE_USED",
            "DISK_SIZE_LARGER_THAN_IMAGE_SIZE",
            "EXPERIMENTAL_TYPE_USED",
            "EXTERNAL_API_WARNING",
            "FIELD_VALUE_OVERRIDEN",
            "INJECTED_KERNELS_DEPRECATED",
            "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB",
            "LARGE_DEPLOYMENT_WARNING",
            "LIST_OVERHEAD_QUOTA_EXCEED",
            "MISSING_TYPE_DEPENDENCY",
            "NEXT_HOP_ADDRESS_NOT_ASSIGNED",
            "NEXT_HOP_CANNOT_IP_FORWARD",
            "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE",
            "NEXT_HOP_INSTANCE_NOT_FOUND",
            "NEXT_HOP_INSTANCE_NOT_ON_NETWORK",
            "NEXT_HOP_NOT_RUNNING",
            "NOT_CRITICAL_ERROR",
            "NO_RESULTS_ON_PAGE",
            "PARTIAL_SUCCESS",
            "QUOTA_INFO_UNAVAILABLE",
            "REQUIRED_TOS_AGREEMENT",
            "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING",
            "RESOURCE_NOT_DELETED",
            "SCHEMA_VALIDATION_IGNORED",
            "SINGLE_INSTANCE_PROPERTY_TEMPLATE",
            "UNDECLARED_PROPERTIES",
            "UNREACHABLE"
          ]
        },
        "message": {
          "description": "[Output Only] A human-readable description of the warning code.",
          "type": "string"
        },
        "data": {
          "description": "[Output Only] Metadata about this warning in key:\nvalue format. For example:\n\n\"data\": [\n  {\n   \"key\": \"scope\",\n   \"value\": \"zones/us-east1-d\"\n  }]",
          "items": {
            "properties": {
              "key": {
                "type": "string",
                "description": "[Output Only] A key that provides more detail on the warning being\nreturned. For example, for warnings where there are no results in a list\nrequest for a particular zone, this key might be scope and\nthe key value might be the zone name. Other examples might be a key\nindicating a deprecated resource and a suggested replacement, or a\nwarning about invalid network settings (for example, if an instance\nattempts to perform IP forwarding but is not enabled for IP forwarding)."
              },
              "value": {
                "description": "[Output Only] A warning data value corresponding to the key.",
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        }
      }
    },
    "id": {
      "description": "[Output Only] Unique identifier for the resource; defined by the server.",
      "type": "string"
    }
  },
  "$defs": {
    "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."
        }
      },
      "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."
    },
    "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."
        }
      }
    },
    "PacketMirroringsScopedList": {
      "type": "object",
      "properties": {
        "packetMirrorings": {
          "description": "A list of packetMirrorings contained in this scope.",
          "items": {
            "$ref": "#/$defs/PacketMirroring"
          },
          "type": "array"
        },
        "warning": {
          "description": "Informational warning which replaces the list of packetMirrorings when the\nlist is empty.",
          "type": "object",
          "properties": {
            "code": {
              "enum": [
                "CLEANUP_FAILED",
                "DEPRECATED_RESOURCE_USED",
                "DEPRECATED_TYPE_USED",
                "DISK_SIZE_LARGER_THAN_IMAGE_SIZE",
                "EXPERIMENTAL_TYPE_USED",
                "EXTERNAL_API_WARNING",
                "FIELD_VALUE_OVERRIDEN",
                "INJECTED_KERNELS_DEPRECATED",
                "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB",
                "LARGE_DEPLOYMENT_WARNING",
                "LIST_OVERHEAD_QUOTA_EXCEED",
                "MISSING_TYPE_DEPENDENCY",
                "NEXT_HOP_ADDRESS_NOT_ASSIGNED",
                "NEXT_HOP_CANNOT_IP_FORWARD",
                "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE",
                "NEXT_HOP_INSTANCE_NOT_FOUND",
                "NEXT_HOP_INSTANCE_NOT_ON_NETWORK",
                "NEXT_HOP_NOT_RUNNING",
                "NOT_CRITICAL_ERROR",
                "NO_RESULTS_ON_PAGE",
                "PARTIAL_SUCCESS",
                "QUOTA_INFO_UNAVAILABLE",
                "REQUIRED_TOS_AGREEMENT",
                "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING",
                "RESOURCE_NOT_DELETED",
                "SCHEMA_VALIDATION_IGNORED",
                "SINGLE_INSTANCE_PROPERTY_TEMPLATE",
                "UNDECLARED_PROPERTIES",
                "UNREACHABLE"
              ],
              "description": "[Output Only] A warning code, if applicable. For example, Compute\nEngine returns NO_RESULTS_ON_PAGE if there\nare no results in the response.",
              "type": "string"
            },
            "message": {
              "description": "[Output Only] A human-readable description of the warning code.",
              "type": "string"
            },
            "data": {
              "description": "[Output Only] Metadata about this warning in key:\nvalue format. For example:\n\n\"data\": [\n  {\n   \"key\": \"scope\",\n   \"value\": \"zones/us-east1-d\"\n  }]",
              "items": {
                "properties": {
                  "key": {
                    "type": "string",
                    "description": "[Output Only] A key that provides more detail on the warning being\nreturned. For example, for warnings where there are no results in a list\nrequest for a particular zone, this key might be scope and\nthe key value might be the zone name. Other examples might be a key\nindicating a deprecated resource and a suggested replacement, or a\nwarning about invalid network settings (for example, if an instance\nattempts to perform IP forwarding but is not enabled for IP forwarding)."
                  },
                  "value": {
                    "description": "[Output Only] A warning data value corresponding to the key.",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": "array"
            }
          }
        }
      }
    }
  }
}