{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instaclustr/json-schema/instaclustr-azure-vnet-peer-v2-schema.json",
  "title": "Root Type for AzureVnetPeerV2",
  "description": "Definition of an Azure Virtual Network Peering request to allow privately routed connections to a target data centre.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instaclustr-azure-vnet-peer-v2-api-openapi.yml#/components/schemas/AzureVnetPeerV2",
  "required": [
    "cdcId",
    "peerResourceGroup",
    "peerSubnets",
    "peerSubscriptionId",
    "peerVirtualNetworkName"
  ],
  "type": "object",
  "properties": {
    "dataCentreResourceGroup": {
      "type": "string",
      "description": "Resource Group Name of the Data Centre Virtual Network.",
      "readOnly": true
    },
    "peerVirtualNetworkName": {
      "type": "string",
      "description": "The name of the VPC Network you wish to peer to.",
      "x-terraform-force-new": true
    },
    "peerSubnets": {
      "type": "array",
      "description": "The subnets for the peering VPC.",
      "items": {
        "type": "string"
      },
      "x-terraform-force-new": true,
      "x-terraform-ignore-order": true
    },
    "peerResourceGroup": {
      "type": "string",
      "description": "Resource Group Name of the Virtual Network.",
      "x-terraform-force-new": true
    },
    "failureReason": {
      "type": "string",
      "description": "Reason for Peering Connection Failure.",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "Name of the Vpc Peering Connection.",
      "readOnly": true
    },
    "peerAdObjectId": {
      "type": "string",
      "description": "ID of the Active Directory Object to give peering permissions to, required for cross subscription peering.",
      "x-terraform-force-new": true
    },
    "id": {
      "type": "string",
      "description": "ID of the VPC peering connection.",
      "readOnly": true
    },
    "dataCentreSubscriptionId": {
      "type": "string",
      "description": "Subscription ID of the Data Centre Virtual Network.",
      "readOnly": true
    },
    "peerSubscriptionId": {
      "type": "string",
      "description": "Subscription ID of the Virtual Network.",
      "x-terraform-force-new": true
    },
    "statusCode": {
      "type": "string",
      "description": "Status of the VPC Peering Connection. Values can be `GENESIS`, `PROVISIONING`, `FAILED`, `INACTIVE`, `CONNECTED` or `UNKNOWN`.",
      "readOnly": true
    },
    "cdcId": {
      "type": "string",
      "description": "ID of the Cluster Data Centre.",
      "format": "uuid",
      "x-terraform-force-new": true
    },
    "dataCentreVirtualNetworkName": {
      "type": "string",
      "description": "The name of the Data Centre Virtual Network.",
      "readOnly": true
    }
  }
}