{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-external-vpn-gateway-schema.json",
  "title": "ExternalVpnGateway",
  "description": "Represents an external VPN gateway.\n\nExternal VPN gateway is the on-premises VPN gateway(s) or another cloud\nprovider's VPN gateway that connects to your Google Cloud VPN gateway.\n\nTo create a highly available VPN from Google Cloud Platform to your\nVPN gateway or another cloud provider's VPN gateway, you must create a\nexternal VPN gateway resource with information about the other gateway.\n\nFor more information about using external VPN gateways, see\nCreating an HA VPN gateway and tunnel pair to a peer VPN.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-external-vpn-gateways-api-openapi.yml#/components/schemas/ExternalVpnGateway",
  "type": "object",
  "properties": {
    "description": {
      "description": "An optional description of this resource. Provide this property when you\ncreate the resource.",
      "type": "string"
    },
    "interfaces": {
      "type": "array",
      "description": "A list of interfaces for this external VPN gateway.\n\nIf your peer-side gateway is an on-premises gateway and non-AWS cloud\nproviders' gateway, at most two interfaces can be provided for an external\nVPN gateway. If your peer side is an AWS virtual private gateway, four\ninterfaces should be provided for an external VPN gateway.",
      "items": {
        "$ref": "#/$defs/ExternalVpnGatewayInterface"
      }
    },
    "id": {
      "type": "string",
      "format": "uint64",
      "readOnly": true,
      "description": "Output only. [Output Only] The unique identifier for the resource. This identifier is\ndefined by the server."
    },
    "params": {
      "$ref": "#/$defs/ExternalVpnGatewayParams",
      "description": "Input only. [Input Only] Additional params passed with the request, but not persisted\nas part of resource payload."
    },
    "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])?"
    },
    "labelFingerprint": {
      "format": "byte",
      "description": "A fingerprint for the labels being applied to this ExternalVpnGateway,\nwhich is essentially a hash of the labels set used for optimistic locking.\nThe fingerprint 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 ExternalVpnGateway.",
      "type": "string"
    },
    "redundancyType": {
      "type": "string",
      "description": "Indicates the user-supplied redundancy type of this external VPN gateway.",
      "enum": [
        "FOUR_IPS_REDUNDANCY",
        "SINGLE_IP_INTERNALLY_REDUNDANT",
        "TWO_IPS_REDUNDANCY"
      ]
    },
    "creationTimestamp": {
      "type": "string",
      "readOnly": true,
      "description": "Output only. [Output Only] Creation timestamp inRFC3339\ntext format."
    },
    "labels": {
      "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.",
      "additionalProperties": {
        "type": "string"
      },
      "type": "object"
    },
    "kind": {
      "default": "compute#externalVpnGateway",
      "description": "Output only. [Output Only] Type of the resource. Alwayscompute#externalVpnGateway for externalVpnGateways.",
      "type": "string",
      "readOnly": true
    },
    "selfLink": {
      "description": "Output only. [Output Only] Server-defined URL for the resource.",
      "readOnly": true,
      "type": "string"
    }
  },
  "$defs": {
    "ExternalVpnGatewayInterface": {
      "description": "The interface for the external VPN gateway.",
      "properties": {
        "ipAddress": {
          "description": "IP address of the interface in the external VPN gateway. Only IPv4 is\nsupported. This IP address can be either from your on-premise gateway or\nanother Cloud provider's VPN gateway, it cannot be an IP address from\nGoogle Compute Engine.",
          "type": "string"
        },
        "id": {
          "format": "uint32",
          "description": "The numeric ID of this interface.\nThe allowed input values for this id for different redundancy types of\nexternal VPN gateway:\n   \n   - SINGLE_IP_INTERNALLY_REDUNDANT - 0\n   - TWO_IPS_REDUNDANCY - 0, 1\n   - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3",
          "type": "integer"
        },
        "ipv6Address": {
          "type": "string",
          "description": "IPv6 address of the interface in the external VPN gateway. This IPv6\naddress can be either from your on-premise gateway or another Cloud\nprovider's VPN gateway, it cannot be an IP address from Google Compute\nEngine. Must specify an IPv6 address (not IPV4-mapped) using any format\ndescribed in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format\nis RFC 5952 format (e.g. 2001:db8::2d9:51:0:0)."
        }
      },
      "type": "object"
    },
    "ExternalVpnGatewayParams": {
      "properties": {
        "resourceManagerTags": {
          "type": "object",
          "description": "Tag keys/values directly bound to this resource.\nTag keys and values have the same definition as resource\nmanager tags. The field is allowed for INSERT\nonly. The keys/values to set on the resource should be specified in\neither ID { : } or Namespaced format\n{ : }.\nFor example the following are valid inputs:\n* {\"tagKeys/333\" : \"tagValues/444\", \"tagKeys/123\" : \"tagValues/456\"}\n* {\"123/environment\" : \"production\", \"345/abc\" : \"xyz\"}\nNote:\n* Invalid combinations of ID & namespaced format is not supported. For\n  instance: {\"123/environment\" : \"tagValues/444\"} is invalid.\n* Inconsistent format is not supported. For instance:\n  {\"tagKeys/333\" : \"tagValues/444\", \"123/env\" : \"prod\"} is invalid.",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "type": "object"
    }
  }
}