{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-global-ip-assignment-schema.json",
  "title": "GlobalIpAssignment",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-global-ips-api-openapi.yml#/components/schemas/GlobalIpAssignment",
  "allOf": [
    {
      "$ref": "#/$defs/Record"
    },
    {
      "properties": {
        "global_ip_id": {
          "description": "Global IP ID.",
          "format": "uuid",
          "type": "string"
        },
        "is_announced": {
          "description": "Status of BGP announcement.",
          "readOnly": true,
          "type": "boolean"
        },
        "is_connected": {
          "description": "Wireguard peer is connected.",
          "readOnly": true,
          "type": "boolean"
        },
        "is_in_maintenance": {
          "description": "Enable/disable BGP announcement.",
          "type": "boolean"
        },
        "record_type": {
          "description": "Identifies the type of the resource.",
          "readOnly": true,
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/InterfaceStatus"
        },
        "wireguard_peer_id": {
          "description": "Wireguard peer ID.",
          "format": "uuid",
          "type": "string"
        }
      },
      "title": "Global IP",
      "type": "object"
    }
  ],
  "$defs": {
    "InterfaceStatus": {
      "description": "The current status of the interface deployment.",
      "enum": [
        "created",
        "provisioning",
        "provisioned",
        "deleting"
      ],
      "readOnly": true,
      "type": "string"
    },
    "Record": {
      "properties": {
        "created_at": {
          "description": "ISO 8601 formatted date-time indicating when the resource was created.",
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "description": "Identifies the resource.",
          "format": "uuid",
          "readOnly": true,
          "type": "string"
        },
        "record_type": {
          "description": "Identifies the type of the resource.",
          "readOnly": true,
          "type": "string"
        },
        "updated_at": {
          "description": "ISO 8601 formatted date-time indicating when the resource was updated.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}