{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-networking-services/json-schema/azure-networking-services-interconnect-group-schema.json",
  "title": "InterconnectGroup",
  "description": "An interconnect group resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-networking-services-interconnectgroups-api-openapi.yml#/components/schemas/InterconnectGroup",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/InterconnectGroupPropertiesFormat",
      "description": "Properties of the interconnect group.",
      "x-ms-client-flatten": true
    },
    "etag": {
      "type": "string",
      "description": "A unique read-only string that changes whenever the resource is updated.",
      "readOnly": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/Resource"
    }
  ],
  "$defs": {
    "InterconnectGroupPropertiesFormat": {
      "type": "object",
      "description": "Interconnect group properties.",
      "properties": {
        "scope": {
          "$ref": "#/$defs/InterconnectGroupScope",
          "description": "Scope of interconnect group resource."
        },
        "subgroups": {
          "type": "array",
          "description": "A list of subgroups of the interconnect group.",
          "items": {
            "$ref": "#/$defs/Subgroup"
          },
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the interconnect group resource.",
          "readOnly": true
        },
        "resourceGuid": {
          "type": "string",
          "description": "The resource GUID property of the interconnect group resource.",
          "readOnly": true
        },
        "subgroupProfile": {
          "$ref": "#/$defs/SubgroupProfile",
          "description": "The subgroup profile of the interconnect group resource."
        }
      },
      "required": [
        "subgroupProfile"
      ]
    },
    "InterconnectGroupScope": {
      "type": "string",
      "description": "Scope of an interconnect group resource.",
      "enum": [
        "None",
        "InfiniBand"
      ],
      "x-ms-enum": {
        "name": "InterconnectGroupScope",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "No interconnect group scope."
          },
          {
            "name": "InfiniBand",
            "value": "InfiniBand",
            "description": "InfiniBand interconnect group scope."
          }
        ]
      }
    },
    "ProvisioningState": {
      "type": "string",
      "description": "Provisioning states of a resource.",
      "enum": [
        "Failed",
        "Succeeded",
        "Canceled",
        "Creating",
        "Updating",
        "Deleting"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Failed"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Succeeded"
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Canceled"
          },
          {
            "name": "Creating",
            "value": "Creating",
            "description": "Creating"
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "Updating"
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "Deleting"
          }
        ]
      }
    },
    "Resource": {
      "type": "object",
      "description": "Common resource representation.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        },
        "name": {
          "type": "string",
          "description": "Resource name.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        },
        "location": {
          "type": "string",
          "description": "Resource location."
        },
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "x-ms-azure-resource": true
    },
    "SubResource": {
      "type": "object",
      "description": "Reference to another subresource.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        }
      }
    },
    "SubResourceModel": {
      "type": "object",
      "description": "Reference to another subresource.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the resource."
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ],
      "x-ms-azure-resource": true
    },
    "Subgroup": {
      "type": "object",
      "description": "A subgroup in an interconnect group.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/SubgroupProperties",
          "description": "Properties of the subgroup.",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResourceModel"
        }
      ]
    },
    "SubgroupProfile": {
      "type": "object",
      "description": "Subgroup profile of the interconnect group resource.",
      "properties": {
        "vmSize": {
          "type": "string",
          "description": "VM size of the subgroup profile."
        },
        "scope": {
          "$ref": "#/$defs/SubgroupProfileScope",
          "description": "Scope of the subgroup profile."
        },
        "size": {
          "type": "integer",
          "format": "int32",
          "description": "Size of the subgroup profile.",
          "minimum": 0
        }
      },
      "required": [
        "vmSize"
      ]
    },
    "SubgroupProfileScope": {
      "type": "string",
      "description": "Scope of the subgroup profile.",
      "enum": [
        "None",
        "VerticalConnect"
      ],
      "x-ms-enum": {
        "name": "SubgroupProfileScope",
        "modelAsString": true,
        "values": [
          {
            "name": "None",
            "value": "None",
            "description": "No subgroup profile scope."
          },
          {
            "name": "VerticalConnect",
            "value": "VerticalConnect",
            "description": "VerticalConnect subgroup profile scope."
          }
        ]
      }
    },
    "SubgroupProperties": {
      "type": "object",
      "description": "Properties of subgroup.",
      "properties": {
        "internalSubgroupId": {
          "type": "string",
          "description": "The unique identifier of the subgroup.",
          "readOnly": true
        },
        "interconnectBlock": {
          "$ref": "#/$defs/SubResource",
          "description": "The reference to an interconnect block resource.",
          "readOnly": true
        },
        "virtualMachines": {
          "type": "array",
          "description": "A list of virtual machine references.",
          "items": {
            "$ref": "#/$defs/SubResource"
          },
          "readOnly": true
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the subgroup.",
          "readOnly": true
        }
      }
    }
  }
}