{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-virtual-machines/json-schema/microsoft-azure-virtual-machines-interconnect-block-list-result-schema.json",
  "title": "InterconnectBlockListResult",
  "description": "The list Interconnect Block operation response.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-virtual-machines-interconnectblocks-api-openapi.yml#/components/schemas/InterconnectBlockListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The list of Interconnect Blocks.",
      "items": {
        "$ref": "#/$defs/InterconnectBlock"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The URI to fetch the next page of Interconnect Blocks. Call ListNext() with this URI to fetch the next page of Interconnect Blocks."
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "ApiEntityReference": {
      "type": "object",
      "description": "The API entity reference.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/..."
        }
      }
    },
    "InstanceViewStatus": {
      "type": "object",
      "description": "Instance view status.",
      "properties": {
        "code": {
          "type": "string",
          "description": "The status code."
        },
        "level": {
          "$ref": "#/$defs/StatusLevelTypes",
          "description": "The level code."
        },
        "displayStatus": {
          "type": "string",
          "description": "The short localizable label for the status."
        },
        "message": {
          "type": "string",
          "description": "The detailed status message, including for alerts and error messages."
        },
        "time": {
          "type": "string",
          "format": "date-time",
          "description": "The time of the status."
        }
      }
    },
    "InterconnectBlock": {
      "type": "object",
      "description": "Specifies information about the Interconnect Block.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/InterconnectBlockProperties",
          "description": "Properties of the Interconnect Block."
        },
        "sku": {
          "$ref": "#/$defs/Sku",
          "description": "SKU of the resource for which capacity needs to be pre-allocated. Both `sku.name` and `sku.capacity` are required at create. After create, only `sku.capacity` can be updated."
        },
        "zones": {
          "type": "array",
          "description": "The availability zones.",
          "items": {
            "type": "string"
          }
        },
        "placement": {
          "$ref": "#/$defs/Placement",
          "description": "Placement section specifies the user-defined constraints for Interconnect Block hardware placement. This property cannot be changed once Interconnect Block is provisioned."
        }
      },
      "required": [
        "sku"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/TrackedResource"
        }
      ]
    },
    "InterconnectBlockInstanceView": {
      "type": "object",
      "description": "The instance view of an Interconnect Block.",
      "properties": {
        "currentCapacity": {
          "type": "integer",
          "format": "int32",
          "description": "The current capacity allocated for this Interconnect Block.",
          "readOnly": true
        },
        "statuses": {
          "type": "array",
          "description": "The resource status information.",
          "items": {
            "$ref": "#/$defs/InstanceViewStatus"
          },
          "readOnly": true,
          "x-ms-identifiers": []
        }
      }
    },
    "InterconnectBlockProperties": {
      "type": "object",
      "description": "Properties of the Interconnect Block.",
      "properties": {
        "virtualMachinesAssociated": {
          "type": "array",
          "description": "A list of all virtual machine resource ids that are associated with the Interconnect Block.",
          "items": {
            "$ref": "#/$defs/SubResourceReadOnly"
          },
          "readOnly": true,
          "x-ms-identifiers": [
            "id"
          ]
        },
        "interconnectGroup": {
          "$ref": "#/$defs/ApiEntityReference",
          "description": "The Microsoft.Network/interconnectGroups resource that this Interconnect Block is associated with. Required at create and immutable thereafter.",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        },
        "interconnectBlockId": {
          "type": "string",
          "description": "A unique id (GUID) generated and assigned to the Interconnect Block by the platform which does not change throughout the lifetime of the resource.",
          "readOnly": true
        },
        "provisioningTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date time when the Interconnect Block was last updated.",
          "readOnly": true
        },
        "provisioningState": {
          "type": "string",
          "description": "The provisioning state, which only appears in the response.",
          "readOnly": true
        },
        "instanceView": {
          "$ref": "#/$defs/InterconnectBlockInstanceView",
          "description": "The Interconnect Block instance view.",
          "readOnly": true
        },
        "timeCreated": {
          "type": "string",
          "format": "date-time",
          "description": "Specifies the time at which the Interconnect Block resource was created.",
          "readOnly": true
        }
      },
      "required": [
        "interconnectGroup"
      ]
    },
    "Placement": {
      "type": "object",
      "description": "Describes the user-defined constraints for resource hardware placement.",
      "properties": {
        "zonePlacementPolicy": {
          "$ref": "#/$defs/ZonePlacementPolicyType",
          "description": "Specifies the policy for the resource's placement in an availability zone. Use **Auto** for Virtual Machines and Virtual Machine Scale Sets to let the system automatically select an availability zone during resource creation. **Any** remains supported for Virtual Machines for backward compatibility."
        },
        "includeZones": {
          "type": "array",
          "description": "This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any'/'Auto', availability zone selected by the system must be present in the list of availability zones passed with 'includeZones'. If 'includeZones' is not provided, all availability zones in region will be considered for selection.",
          "items": {
            "type": "string"
          }
        },
        "excludeZones": {
          "type": "array",
          "description": "This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any'/'Auto', availability zone selected by the system must not be present in the list of availability zones passed with 'excludeZones'. If 'excludeZones' is not provided, all availability zones in region will be considered for selection.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "Sku": {
      "type": "object",
      "description": "Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The sku name."
        },
        "tier": {
          "type": "string",
          "description": "Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**"
        },
        "capacity": {
          "type": "integer",
          "format": "int64",
          "description": "Specifies the number of virtual machines in the scale set."
        }
      }
    },
    "StatusLevelTypes": {
      "type": "string",
      "description": "The level code.",
      "enum": [
        "Info",
        "Warning",
        "Error"
      ],
      "x-ms-enum": {
        "name": "StatusLevelTypes",
        "modelAsString": false
      }
    },
    "SubResourceReadOnly": {
      "type": "object",
      "properties": {
        "id": {
          "readOnly": true,
          "type": "string",
          "description": "Resource Id"
        }
      }
    },
    "TrackedResource": {
      "type": "object",
      "title": "Tracked Resource",
      "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "read",
            "create",
            "update"
          ]
        },
        "location": {
          "type": "string",
          "description": "The geo-location where the resource lives",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "location"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "ZonePlacementPolicyType": {
      "type": "string",
      "description": "Specifies the policy for the resource's placement in an availability zone. Use **Auto** for Virtual Machines and Virtual Machine Scale Sets to let the system automatically select an availability zone during resource creation. **Any** remains supported for Virtual Machines for backward compatibility.",
      "enum": [
        "Any",
        "Auto"
      ],
      "x-ms-enum": {
        "name": "ZonePlacementPolicyType",
        "modelAsString": true,
        "values": [
          {
            "name": "Any",
            "value": "Any"
          },
          {
            "name": "Auto",
            "value": "Auto",
            "description": "Automatic zone placement for Virtual Machines and Virtual Machine Scale Sets."
          }
        ]
      }
    }
  }
}