{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-hosts-list-response-schema.json",
  "title": "HostsListResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-hosts-api-openapi.yml#/components/schemas/HostsListResponse",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier for the resource; defined by the server."
    },
    "unreachables": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Unreachable resources.\nend_interface: MixerListResponseWithEtagBuilder"
    },
    "warning": {
      "description": "An 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"
          ]
        },
        "data": {
          "items": {
            "properties": {
              "value": {
                "description": "[Output Only] A warning data value corresponding to the key.",
                "type": "string"
              },
              "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"
              }
            },
            "type": "object"
          },
          "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  }]",
          "type": "array"
        },
        "message": {
          "type": "string",
          "description": "[Output Only] A human-readable description of the warning code."
        }
      },
      "type": "object"
    },
    "selfLink": {
      "type": "string",
      "description": "The server-defined URL for this resource."
    },
    "nextPageToken": {
      "description": "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.",
      "type": "string"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/Host"
      },
      "description": "A list of host resources.",
      "type": "array"
    },
    "etag": {
      "type": "string"
    },
    "kind": {
      "description": "The type of resource. Always compute#host for a list of hosts.",
      "default": "compute#hostList",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "Host": {
      "description": "Represents a host resource.",
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The state of the host.",
          "enum": [
            "ACTIVE",
            "CREATING",
            "DELETING",
            "STATE_UNSPECIFIED",
            "UNAVAILABLE"
          ]
        },
        "status": {
          "$ref": "#/$defs/HostStatus",
          "description": "Output only. The status of the host"
        },
        "creationTimestamp": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The creation timestamp, formatted asRFC3339 text."
        },
        "id": {
          "format": "uint64",
          "readOnly": true,
          "type": "string",
          "description": "Output only. The unique identifier for this resource. This identifier is\ndefined by the server."
        },
        "kind": {
          "type": "string",
          "default": "compute#host",
          "readOnly": true,
          "description": "Output only. The type of resource. Alwayscompute#host for hosts."
        },
        "aliasLinks": {
          "type": "array",
          "description": "Output only. All aliases for this resource.\ne.g.\nprojects/123/zones/us-centra1-a/reservation/r1/reservationBlock/b1/hosts/h1",
          "items": {
            "type": "string"
          },
          "readOnly": true
        },
        "description": {
          "description": "An optional description of this resource.",
          "type": "string"
        },
        "zone": {
          "type": "string",
          "description": "Output only. The zone in which the host resides.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The name of the host."
        },
        "selfLinkWithId": {
          "description": "Output only. The self link with id of the host.",
          "type": "string",
          "readOnly": true
        },
        "selfLink": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The self link of the host."
        }
      }
    },
    "HostPhysicalTopology": {
      "properties": {
        "host": {
          "description": "The unique identifier of the capacity host within the capacity sub-block.",
          "type": "string"
        },
        "subBlock": {
          "type": "string",
          "description": "The unique identifier of the capacity sub-block within the capacity\nblock."
        },
        "cluster": {
          "type": "string",
          "description": "The cluster name of the reservation sub-block."
        },
        "block": {
          "type": "string",
          "description": "The unique identifier of the capacity block within the cluster."
        }
      },
      "type": "object"
    },
    "HostStatus": {
      "type": "object",
      "properties": {
        "physicalTopology": {
          "$ref": "#/$defs/HostPhysicalTopology",
          "description": "Output only. The physical topology of the reservation sub-block, if\npresent"
        },
        "runningInstances": {
          "items": {
            "type": "string"
          },
          "description": "Output only. The URIs of the instances currently running on this host.",
          "type": "array",
          "readOnly": true
        }
      }
    }
  }
}