{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-global-network-endpoint-groups-detach-endpoints-request-schema.json",
  "title": "GlobalNetworkEndpointGroupsDetachEndpointsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-global-network-endpoint-groups-api-openapi.yml#/components/schemas/GlobalNetworkEndpointGroupsDetachEndpointsRequest",
  "properties": {
    "networkEndpoints": {
      "items": {
        "$ref": "#/$defs/NetworkEndpoint"
      },
      "type": "array",
      "description": "The list of network endpoints to be detached."
    }
  },
  "type": "object",
  "$defs": {
    "NetworkEndpoint": {
      "description": "The network endpoint.",
      "type": "object",
      "properties": {
        "ipAddress": {
          "description": "Optional IPv4 address of network endpoint. The IP address must belong to a\nVM in Compute Engine (either the primary IP or as part of an aliased IP\nrange). If the IP address is not specified, then the primary IP address for\nthe VM instance in the network that the network endpoint group belongs to\nwill be used.\n\nThis field is redundant and need not be set for network endpoints of typeGCE_VM_IP. If set, it must be set to the primary internal IP\naddress of the attached VM instance that matches the subnetwork of the NEG.\nThe primary internal IP address from any NIC of a multi-NIC VM instance can\nbe added to a NEG as long as it matches the NEG subnetwork.",
          "type": "string"
        },
        "clientDestinationPort": {
          "type": "integer",
          "format": "int32",
          "description": "Represents the port number to which PSC consumer sends packets.\n\nOptional. Only valid for network endpoint groups created withGCE_VM_IP_PORTMAP endpoint type."
        },
        "ipv6Address": {
          "type": "string",
          "description": "Optional IPv6 address of network endpoint."
        },
        "port": {
          "description": "Optional port number of network endpoint. If not specified, the\ndefaultPort for the network endpoint group will be used.\n\nThis field can not be set for network endpoints of typeGCE_VM_IP.",
          "format": "int32",
          "type": "integer"
        },
        "fqdn": {
          "type": "string",
          "description": "Optional fully qualified domain name of network endpoint. This can only be\nspecified when NetworkEndpointGroup.network_endpoint_type isNON_GCP_FQDN_PORT."
        },
        "instance": {
          "type": "string",
          "description": "The name or a URL of VM instance of this network endpoint.\nOptional, the field presence depends on the network endpoint type. The\nfield is required for network endpoints of type GCE_VM_IP andGCE_VM_IP_PORT.\n\nThe instance must be in the same zone of network endpoint group (for zonal\nNEGs) or in the zone within the region of the NEG (for regional NEGs).\nIf the ipAddress is specified, it must belongs to the VM\ninstance.\n\nThe name must be 1-63 characters long, and comply withRFC1035\nor be a valid URL pointing to an existing instance."
        },
        "annotations": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "description": "Optional metadata defined as annotations on the network endpoint."
        }
      }
    }
  }
}