{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scylladb/json-schema/scylladb-cluster-vpcpeering-info-schema.json",
  "title": "ClusterVPCPeeringInfo",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scylladb-account-cluster-network-api-openapi.yml#/components/schemas/ClusterVPCPeeringInfo",
  "type": "object",
  "x-public": true,
  "properties": {
    "externalId": {
      "type": "string",
      "description": "External ID of the VPC peering"
    },
    "id": {
      "type": "integer",
      "description": "ID of the VPC peering (scyllaDB internal)"
    },
    "networkName": {
      "type": "string",
      "description": "Name of the network (GCP specific)"
    },
    "ownerId": {
      "type": "string",
      "description": "Owner of the peering (AWS account ID or GCP project ID)"
    },
    "vpcId": {
      "type": "string",
      "description": "Peer VPC external ID"
    },
    "cidrList": {
      "description": "List of CIDRs",
      "items": {
        "$ref": "#/$defs/CIDR"
      },
      "type": "array"
    },
    "cidrBlockVerified": {
      "type": "array",
      "description": "List of CIDRs",
      "items": {
        "$ref": "#/$defs/CIDR"
      }
    },
    "regionId": {
      "type": "integer",
      "description": "ID of the cloud provider region, returned for AWS clusters only (full list [get] /deployment/cloud-provider/{}/regions)"
    },
    "projectId": {
      "type": "string",
      "description": "GCP Project ID (GCP specific)"
    },
    "status": {
      "type": "string",
      "description": "Status of the VPC peering",
      "enum": [
        "INITIATING_REQUEST",
        "PENDING_ACCEPTANCE",
        "DELETING",
        "DELETED",
        "FAILED",
        "REJECTED",
        "EXPIRED",
        "PROVISIONING",
        "ACTIVE",
        "MISMATCHED",
        "INACTIVE"
      ]
    },
    "expiresAt": {
      "type": "string",
      "description": "Expiration time"
    },
    "allowCql": {
      "type": "boolean",
      "description": "Is CQL connection allowed for peering CIDRs"
    },
    "dcId": {
      "description": "ID of the cluster's data center",
      "type": "integer"
    }
  },
  "$defs": {
    "CIDR": {
      "type": "string",
      "description": "CIDR block in the form of ip/mask",
      "x-public": true
    }
  }
}