{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-address-schema.json",
  "title": "Address",
  "description": "Represents an IP Address resource.\n\nGoogle Compute Engine has two IP Address resources:\n\n* [Global (external and\ninternal)](https://cloud.google.com/compute/docs/reference/rest/v1/globalAddresses)\n* [Regional (external and\ninternal)](https://cloud.google.com/compute/docs/reference/rest/v1/addresses)\n\nFor more information, see\nReserving a static external IP address.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-addresses-api-openapi.yml#/components/schemas/Address",
  "properties": {
    "prefixLength": {
      "type": "integer",
      "description": "The prefix length if the resource represents an IP range.",
      "format": "int32"
    },
    "creationTimestamp": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. [Output Only] Creation timestamp inRFC3339\ntext format."
    },
    "description": {
      "type": "string",
      "description": "An optional description of this resource. Provide this field when you\ncreate the resource."
    },
    "kind": {
      "default": "compute#address",
      "type": "string",
      "readOnly": true,
      "description": "Output only. [Output Only] Type of the resource. Always compute#address for\naddresses."
    },
    "id": {
      "format": "uint64",
      "type": "string",
      "description": "Output only. [Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.",
      "readOnly": true
    },
    "users": {
      "items": {
        "type": "string"
      },
      "description": "[Output Only] The URLs of the resources that are using this address.",
      "type": "array"
    },
    "addressType": {
      "enum": [
        "EXTERNAL",
        "INTERNAL",
        "UNSPECIFIED_TYPE"
      ],
      "description": "The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified, defaults to EXTERNAL.",
      "type": "string"
    },
    "purpose": {
      "type": "string",
      "description": "The purpose of this resource, which can be one of the following values:\n   \n   \n     - GCE_ENDPOINT for addresses that are used by VM\n     instances, alias IP ranges, load balancers, and similar resources.\n     - DNS_RESOLVER for a DNS resolver address in a subnetwork\n       for a Cloud DNS  inbound\n       forwarder IP addresses (regional internal IP address in a subnet of\n       a VPC network)\n     - VPC_PEERING for global internal IP addresses used for\n      \n          private services access allocated ranges.\n     - NAT_AUTO for the regional external IP addresses used by\n          Cloud NAT when allocating addresses using\n          \n          automatic NAT IP address allocation.\n     - IPSEC_INTERCONNECT for addresses created from a private\n     IP range that are reserved for a VLAN attachment in an\n     *HA VPN over Cloud Interconnect* configuration. These addresses\n     are regional resources.\n     - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned\n     to multiple internal forwarding rules.\n     - `PRIVATE_SERVICE_CONNECT` for a private network address that is\n     used to configure Private Service Connect. Only global internal addresses\n     can use this purpose.\n     - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP0` for addresses\n     that can only be assigned to global external Passthrough Network Load\n     Balancer forwarding rules, as an Availability Group 0 address.\n     - `PASSTHROUGH_LOAD_BALANCER_AVAILABILITY_GROUP1` for addresses that\n     can only be assigned to global external Passthrough Network Load Balancer\n     forwarding rules, as an Availability Group 1 address.",
      "enum": [
        "DNS_RESOLVER",
        "GCE_ENDPOINT",
        "IPSEC_INTERCONNECT",
        "NAT_AUTO",
        "PRIVATE_SERVICE_CONNECT",
        "SERVERLESS",
        "SHARED_LOADBALANCER_VIP",
        "VPC_PEERING"
      ]
    },
    "network": {
      "description": "The URL of the network in which to reserve the address. This field can\nonly be used with INTERNAL type with theVPC_PEERING purpose.",
      "type": "string"
    },
    "ipVersion": {
      "description": "The IP version that will be used by this address. Valid options areIPV4 or IPV6.",
      "type": "string",
      "enum": [
        "IPV4",
        "IPV6",
        "UNSPECIFIED_VERSION"
      ]
    },
    "selfLink": {
      "description": "[Output Only] Server-defined URL for the resource.",
      "type": "string"
    },
    "status": {
      "description": "Output only. [Output Only] The status of the address, which can be one ofRESERVING, RESERVED, or IN_USE.\nAn address that is RESERVING is currently in the process of\nbeing reserved. A RESERVED address is currently reserved and\navailable to use. An IN_USE address is currently being used\nby another resource and is not available.",
      "type": "string",
      "enum": [
        "IN_USE",
        "RESERVED",
        "RESERVING"
      ],
      "readOnly": true
    },
    "labels": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Labels for this resource. These can only be added or modified by thesetLabels method. Each label key/value pair must comply withRFC1035.\nLabel values may be empty."
    },
    "address": {
      "description": "The static IP address represented by this resource.",
      "type": "string"
    },
    "ipCollection": {
      "type": "string",
      "description": "Reference to the source of IP addresses.\n\nIt supports the following cases:\n   \n   - \n     Case 1: PublicDelegatedPrefix (PDP) for BYOIP external\n     addresses. If an IPv4 PDP is used, the PDP must support enhanced IPv4\n     allocations. If an IPv6 PDP is used, the PDP must be in\n     EXTERNAL_IPV6_FORWARDING_RULE_CREATION mode.\n   - \n     Case 2: Internal Range for global internal addresses.\n\n\n\nUse one of the following formats to specify the resource:\n\nFor a Public Delegated Prefix:\n   \n   - \n   Full resource URL:https://www.googleapis.com/compute/v1/projects/projectId/regions/region/publicDelegatedPrefixes/pdp\n   - Partial URL:\n      - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name\n      - regions/region/publicDelegatedPrefixes/pdp-name\n   \n\n\nFor an Internal Range:\n   \n   - Full URL:https://networkconnectivity.googleapis.com/v1/projects/project/locations/global/internalRanges/internal-range\n   - Partial URL:projects/project/locations/global/internalRanges/internal-range"
    },
    "region": {
      "type": "string",
      "description": "Output only. [Output Only] The URL of the region where a regional address resides.\nFor regional addresses, you must specify the region as a path parameter in\nthe HTTP request URL. *This field is not applicable to global\naddresses.*",
      "readOnly": true
    },
    "ipv6EndpointType": {
      "description": "The endpoint type of this address, which should be VM\nor NETLB. This is used for deciding which type of endpoint\nthis address can be used after the external IPv6 address reservation.",
      "type": "string",
      "enum": [
        "NETLB",
        "VM"
      ]
    },
    "networkTier": {
      "type": "string",
      "enum": [
        "FIXED_STANDARD",
        "PREMIUM",
        "STANDARD",
        "STANDARD_OVERRIDES_FIXED_STANDARD"
      ],
      "description": "This signifies the networking tier used for configuring this address and\ncan only take the following values: PREMIUM orSTANDARD. Internal IP addresses are always Premium Tier;\nglobal external IP addresses are always Premium Tier; regional external IP\naddresses can be either Standard or Premium Tier.\n\nIf this field is not specified, it is assumed to be PREMIUM."
    },
    "labelFingerprint": {
      "description": "A fingerprint for the labels being applied to this Address, which is\nessentially a hash of the labels set used for optimistic locking. The\nfingerprint is initially generated by Compute Engine and changes after\nevery request to modify or update labels. You must always provide an\nup-to-date fingerprint hash in order to update or change labels,\notherwise the request will fail with error412 conditionNotMet.\n\nTo see the latest fingerprint, make a get() request to\nretrieve an Address.",
      "type": "string",
      "format": "byte"
    },
    "name": {
      "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])?`. The first character\nmust be a lowercase letter, and all following characters (except for the\nlast character) must be a dash, lowercase letter, or digit. The last\ncharacter must be a lowercase letter or digit.",
      "type": "string",
      "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"
    },
    "subnetwork": {
      "type": "string",
      "description": "The URL of the subnetwork in which to reserve the address. If an IP address\nis specified, it must be within the subnetwork's IP range. This field can\nonly be used with INTERNAL type with aGCE_ENDPOINT or DNS_RESOLVER purpose."
    }
  },
  "type": "object"
}