{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-xpn-host-list-schema.json",
  "title": "XpnHostList",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-projects-api-openapi.yml#/components/schemas/XpnHostList",
  "type": "object",
  "properties": {
    "warning": {
      "description": "[Output Only] Informational warning message.",
      "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": {
          "type": "array",
          "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": {
            "type": "object",
            "properties": {
              "key": {
                "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).",
                "type": "string"
              },
              "value": {
                "type": "string",
                "description": "[Output Only] A warning data value corresponding to the key."
              }
            }
          }
        }
      },
      "type": "object"
    },
    "id": {
      "description": "[Output Only] Unique identifier for the resource; defined by the server.",
      "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."
    },
    "kind": {
      "readOnly": true,
      "description": "Output only. [Output Only] Type of resource. Always compute#xpnHostList for\nlists of shared VPC hosts.",
      "type": "string",
      "default": "compute#xpnHostList"
    },
    "items": {
      "type": "array",
      "description": "[Output Only] A list of shared VPC host project URLs.",
      "items": {
        "$ref": "#/$defs/Project"
      }
    },
    "selfLink": {
      "description": "Output only. [Output Only] Server-defined URL for this resource.",
      "type": "string",
      "readOnly": true
    }
  },
  "$defs": {
    "Metadata": {
      "description": "A metadata key/value entry.",
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "description": "Array of key/value pairs. The total size of all keys and values must be\nless than 512 KB.",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "pattern": "[a-zA-Z0-9-_]{1,128}",
                "description": "Key for the metadata entry. Keys must conform to the following\nregexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length.\nThis is reflected as part of a URL in the metadata server. Additionally, to\navoid ambiguity, keys must not conflict with any other metadata keys\nfor the project."
              },
              "value": {
                "type": "string",
                "description": "Value for the metadata entry. These are free-form strings, and only\nhave meaning as interpreted by the image running in the instance. The\nonly restriction placed on values is that their size must be less than\nor equal to 262144 bytes (256 KiB)."
              }
            },
            "description": "Metadata"
          }
        },
        "kind": {
          "description": "Output only. [Output Only] Type of the resource. Always compute#metadata\nfor metadata.",
          "type": "string",
          "readOnly": true,
          "default": "compute#metadata"
        },
        "fingerprint": {
          "description": "Specifies a fingerprint for this request, which is essentially a hash of\nthe metadata's contents and used for optimistic locking. The\nfingerprint is initially generated by Compute Engine and changes after\nevery request to modify or update metadata. You must always provide an\nup-to-date fingerprint hash in order to update or change metadata,\notherwise the request will fail with error412 conditionNotMet.\n\nTo see the latest fingerprint, make a get() request to\nretrieve the resource.",
          "type": "string",
          "format": "byte"
        }
      }
    },
    "Project": {
      "type": "object",
      "description": "Represents a Project resource.\n\nA project is used to organize resources in a Google Cloud Platform\nenvironment. For more information, read about the \nResource Hierarchy.",
      "properties": {
        "cloudArmorTier": {
          "type": "string",
          "description": "Output only. [Output Only] The Cloud Armor tier for this project. It can be one of the\nfollowing values: CA_STANDARD,CA_ENTERPRISE_PAYGO.\n\nIf this field is not specified, it is assumed to beCA_STANDARD.",
          "enum": [
            "CA_ENTERPRISE_ANNUAL",
            "CA_ENTERPRISE_PAYGO",
            "CA_STANDARD"
          ],
          "readOnly": true
        },
        "name": {
          "description": "The project ID. For example: my-example-project. Use the\nproject ID to make requests to Compute Engine.",
          "type": "string"
        },
        "selfLink": {
          "description": "[Output Only] Server-defined URL for the resource.",
          "type": "string"
        },
        "description": {
          "description": "An optional textual description of the resource.",
          "type": "string"
        },
        "usageExportLocation": {
          "$ref": "#/$defs/UsageExportLocation",
          "description": "An optional naming prefix for daily usage reports and the Google Cloud\nStorage bucket where they are stored."
        },
        "xpnProjectStatus": {
          "description": "[Output Only] The role this project has in a shared VPC configuration.\nCurrently, only projects with the host role, which is specified by the\nvalue HOST, are differentiated.",
          "enum": [
            "HOST",
            "UNSPECIFIED_XPN_PROJECT_STATUS"
          ],
          "type": "string"
        },
        "enabledFeatures": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An optional list of restricted features enabled for use on this project."
        },
        "defaultServiceAccount": {
          "description": "[Output Only] Default service account used by VMs running in this project.",
          "type": "string"
        },
        "quotas": {
          "items": {
            "$ref": "#/$defs/Quota"
          },
          "type": "array",
          "description": "[Output Only] Quotas assigned to this project."
        },
        "creationTimestamp": {
          "type": "string",
          "description": "[Output Only] Creation timestamp inRFC3339\ntext format."
        },
        "vmDnsSetting": {
          "enum": [
            "GLOBAL_DEFAULT",
            "UNSPECIFIED_VM_DNS_SETTING",
            "ZONAL_DEFAULT",
            "ZONAL_ONLY"
          ],
          "readOnly": true,
          "description": "Output only. [Output Only] Default internal DNS setting used by VMs running in\nthis project.",
          "type": "string"
        },
        "id": {
          "type": "string",
          "description": "[Output Only] The unique identifier for the resource. This identifier is\ndefined by the server. This is *not* the project ID, and is\njust a unique ID used by Compute Engine to identify resources.",
          "format": "uint64"
        },
        "defaultNetworkTier": {
          "type": "string",
          "description": "This signifies the default network tier used for configuring resources of\nthe project and can only take the following values:PREMIUM, STANDARD. Initially the default network\ntier is PREMIUM.",
          "enum": [
            "FIXED_STANDARD",
            "PREMIUM",
            "STANDARD",
            "STANDARD_OVERRIDES_FIXED_STANDARD"
          ]
        },
        "kind": {
          "description": "Output only. [Output Only] Type of the resource. Always compute#project for\nprojects.",
          "default": "compute#project",
          "type": "string",
          "readOnly": true
        },
        "commonInstanceMetadata": {
          "$ref": "#/$defs/Metadata",
          "description": "Metadata key/value pairs available to all instances contained in this\nproject. See Custom\nmetadata for more information."
        }
      }
    },
    "Quota": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "number",
          "format": "double",
          "description": "[Output Only] Quota limit for this metric."
        },
        "owner": {
          "description": "[Output Only] Owning resource. This is the resource on which this quota\nis applied.",
          "type": "string"
        },
        "metric": {
          "type": "string",
          "enum": [
            "A2_CPUS",
            "AFFINITY_GROUPS",
            "AUTOSCALERS",
            "BACKEND_BUCKETS",
            "BACKEND_SERVICES",
            "C2D_CPUS",
            "C2_CPUS",
            "C3_CPUS",
            "COMMITMENTS",
            "COMMITTED_A2_CPUS",
            "COMMITTED_C2D_CPUS",
            "COMMITTED_C2_CPUS",
            "COMMITTED_C3_CPUS",
            "COMMITTED_CPUS",
            "COMMITTED_E2_CPUS",
            "COMMITTED_LICENSES",
            "COMMITTED_LOCAL_SSD_TOTAL_GB",
            "COMMITTED_M3_CPUS",
            "COMMITTED_MEMORY_OPTIMIZED_CPUS",
            "COMMITTED_N2A_CPUS",
            "COMMITTED_N2D_CPUS",
            "COMMITTED_N2_CPUS",
            "COMMITTED_NVIDIA_A100_80GB_GPUS",
            "COMMITTED_NVIDIA_A100_GPUS",
            "COMMITTED_NVIDIA_H100_GPUS",
            "COMMITTED_NVIDIA_K80_GPUS",
            "COMMITTED_NVIDIA_L4_GPUS",
            "COMMITTED_NVIDIA_P100_GPUS",
            "COMMITTED_NVIDIA_P4_GPUS",
            "COMMITTED_NVIDIA_T4_GPUS",
            "COMMITTED_NVIDIA_V100_GPUS",
            "COMMITTED_T2A_CPUS",
            "COMMITTED_T2D_CPUS",
            "COMMITTED_Z3_CPUS",
            "CPUS",
            "CPUS_ALL_REGIONS",
            "DISKS_TOTAL_GB",
            "E2_CPUS",
            "EXTERNAL_MANAGED_FORWARDING_RULES",
            "EXTERNAL_NETWORK_LB_FORWARDING_RULES",
            "EXTERNAL_PROTOCOL_FORWARDING_RULES",
            "EXTERNAL_VPN_GATEWAYS",
            "FIREWALLS",
            "FORWARDING_RULES",
            "GLOBAL_EXTERNAL_MANAGED_BACKEND_SERVICES",
            "GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES",
            "GLOBAL_EXTERNAL_PROXY_LB_BACKEND_SERVICES",
            "GLOBAL_INTERNAL_ADDRESSES",
            "GLOBAL_INTERNAL_MANAGED_BACKEND_SERVICES",
            "GLOBAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVICES",
            "GPUS_ALL_REGIONS",
            "HDB_TOTAL_GB",
            "HDB_TOTAL_IOPS",
            "HDB_TOTAL_THROUGHPUT",
            "HEALTH_CHECKS",
            "IMAGES",
            "INSTANCES",
            "INSTANCE_GROUPS",
            "INSTANCE_GROUP_MANAGERS",
            "INSTANCE_TEMPLATES",
            "INTERCONNECTS",
            "INTERCONNECT_ATTACHMENTS_PER_REGION",
            "INTERCONNECT_ATTACHMENTS_TOTAL_MBPS",
            "INTERCONNECT_TOTAL_GBPS",
            "INTERNAL_ADDRESSES",
            "INTERNAL_TRAFFIC_DIRECTOR_FORWARDING_RULES",
            "IN_PLACE_SNAPSHOTS",
            "IN_USE_ADDRESSES",
            "IN_USE_BACKUP_SCHEDULES",
            "IN_USE_SNAPSHOT_SCHEDULES",
            "LOCAL_SSD_TOTAL_GB",
            "M1_CPUS",
            "M2_CPUS",
            "M3_CPUS",
            "MACHINE_IMAGES",
            "N2A_CPUS",
            "N2D_CPUS",
            "N2_CPUS",
            "NETWORKS",
            "NETWORK_ATTACHMENTS",
            "NETWORK_ENDPOINT_GROUPS",
            "NETWORK_FIREWALL_POLICIES",
            "NET_LB_SECURITY_POLICIES_PER_REGION",
            "NET_LB_SECURITY_POLICY_RULES_PER_REGION",
            "NET_LB_SECURITY_POLICY_RULE_ATTRIBUTES_PER_REGION",
            "NODE_GROUPS",
            "NODE_TEMPLATES",
            "NVIDIA_A100_80GB_GPUS",
            "NVIDIA_A100_GPUS",
            "NVIDIA_K80_GPUS",
            "NVIDIA_L4_GPUS",
            "NVIDIA_P100_GPUS",
            "NVIDIA_P100_VWS_GPUS",
            "NVIDIA_P4_GPUS",
            "NVIDIA_P4_VWS_GPUS",
            "NVIDIA_T4_GPUS",
            "NVIDIA_T4_VWS_GPUS",
            "NVIDIA_V100_GPUS",
            "PACKET_MIRRORINGS",
            "PD_EXTREME_TOTAL_PROVISIONED_IOPS",
            "PREEMPTIBLE_CPUS",
            "PREEMPTIBLE_LOCAL_SSD_GB",
            "PREEMPTIBLE_NVIDIA_A100_80GB_GPUS",
            "PREEMPTIBLE_NVIDIA_A100_GPUS",
            "PREEMPTIBLE_NVIDIA_H100_GPUS",
            "PREEMPTIBLE_NVIDIA_K80_GPUS",
            "PREEMPTIBLE_NVIDIA_L4_GPUS",
            "PREEMPTIBLE_NVIDIA_P100_GPUS",
            "PREEMPTIBLE_NVIDIA_P100_VWS_GPUS",
            "PREEMPTIBLE_NVIDIA_P4_GPUS",
            "PREEMPTIBLE_NVIDIA_P4_VWS_GPUS",
            "PREEMPTIBLE_NVIDIA_T4_GPUS",
            "PREEMPTIBLE_NVIDIA_T4_VWS_GPUS",
            "PREEMPTIBLE_NVIDIA_V100_GPUS",
            "PREEMPTIBLE_TPU_LITE_DEVICE_V5",
            "PREEMPTIBLE_TPU_LITE_PODSLICE_V5",
            "PREEMPTIBLE_TPU_PODSLICE_V4",
            "PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK",
            "PSC_INTERNAL_LB_FORWARDING_RULES",
            "PUBLIC_ADVERTISED_PREFIXES",
            "PUBLIC_DELEGATED_PREFIXES",
            "REGIONAL_AUTOSCALERS",
            "REGIONAL_EXTERNAL_MANAGED_BACKEND_SERVICES",
            "REGIONAL_EXTERNAL_NETWORK_LB_BACKEND_SERVICES",
            "REGIONAL_INSTANCE_GROUP_MANAGERS",
            "REGIONAL_INTERNAL_LB_BACKEND_SERVICES",
            "REGIONAL_INTERNAL_MANAGED_BACKEND_SERVICES",
            "REGIONAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVICES",
            "RESERVATIONS",
            "RESOURCE_POLICIES",
            "ROUTERS",
            "ROUTES",
            "SECURITY_POLICIES",
            "SECURITY_POLICIES_PER_REGION",
            "SECURITY_POLICY_ADVANCED_RULES_PER_REGION",
            "SECURITY_POLICY_CEVAL_RULES",
            "SECURITY_POLICY_RULES",
            "SECURITY_POLICY_RULES_PER_REGION",
            "SERVICE_ATTACHMENTS",
            "SNAPSHOTS",
            "SSD_TOTAL_GB",
            "SSL_CERTIFICATES",
            "SSL_POLICIES",
            "STATIC_ADDRESSES",
            "STATIC_BYOIP_ADDRESSES",
            "STATIC_EXTERNAL_IPV6_ADDRESS_RANGES",
            "SUBNETWORKS",
            "T2A_CPUS",
            "T2D_CPUS",
            "TARGET_HTTPS_PROXIES",
            "TARGET_HTTP_PROXIES",
            "TARGET_INSTANCES",
            "TARGET_POOLS",
            "TARGET_SSL_PROXIES",
            "TARGET_TCP_PROXIES",
            "TARGET_VPN_GATEWAYS",
            "TPU_LITE_DEVICE_V5",
            "TPU_LITE_PODSLICE_V5",
            "TPU_PODSLICE_V4",
            "URL_MAPS",
            "VARIABLE_IPV6_PUBLIC_DELEGATED_PREFIXES",
            "VPN_GATEWAYS",
            "VPN_TUNNELS",
            "XPN_SERVICE_PROJECTS"
          ],
          "description": "[Output Only] Name of the quota metric."
        },
        "usage": {
          "format": "double",
          "type": "number",
          "description": "[Output Only] Current usage of this metric."
        }
      },
      "description": "A quotas entry."
    },
    "UsageExportLocation": {
      "type": "object",
      "description": "The location in Cloud Storage and naming method of the daily usage\nreport. Contains bucket_name and report_name prefix.",
      "properties": {
        "reportNamePrefix": {
          "type": "string",
          "description": "An optional prefix for the name of the usage report object stored inbucketName. If not supplied, defaults tousage_gce. The report is stored as a CSV file namedreport_name_prefix_gce_YYYYMMDD.csv whereYYYYMMDD is the day of the usage according to Pacific Time.\nIf you supply a prefix, it should conform to Cloud Storageobject naming\nconventions."
        },
        "bucketName": {
          "type": "string",
          "description": "The name of an existing bucket in Cloud Storage where the usage report\nobject is stored. The Google Service Account is granted write access to\nthis bucket. This can either be the bucket name by itself, such asexample-bucket, or the bucket name with gs://\nor https://storage.googleapis.com/ in front of it, such\nas gs://example-bucket."
        }
      }
    }
  }
}