{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-log-analytics/json-schema/azure-log-analytics-storage-insight-list-result-schema.json",
  "title": "StorageInsightListResult",
  "description": "The list storage insights operation response.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-log-analytics-storageinsights-api-openapi.yml#/components/schemas/StorageInsightListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "A list of storage insight items.",
      "items": {
        "$ref": "#/$defs/StorageInsight"
      }
    },
    "@odata.nextLink": {
      "type": "string",
      "description": "The link (url) to the next page of results.",
      "x-ms-client-name": "odataNextLink"
    }
  },
  "$defs": {
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "title": "Resource",
      "description": "Common fields that are returned in the response for all Azure Resource Manager resources",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "Fully qualified resource ID for the resource. E.g. \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\"",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"",
          "readOnly": true
        },
        "systemData": {
          "$ref": "#/$defs/systemData",
          "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    },
    "StorageAccount": {
      "type": "object",
      "description": "Describes a storage account connection.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The Azure Resource Manager ID of the storage account resource."
        },
        "key": {
          "type": "string",
          "description": "The storage account key."
        }
      },
      "required": [
        "id",
        "key"
      ]
    },
    "StorageInsight": {
      "type": "object",
      "description": "The top level storage insight resource container.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/StorageInsightProperties",
          "description": "Storage insight properties.",
          "x-ms-client-flatten": true
        },
        "eTag": {
          "type": "string",
          "description": "The ETag of the storage insight."
        },
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "read",
            "update",
            "create"
          ]
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResource"
        }
      ]
    },
    "StorageInsightProperties": {
      "type": "object",
      "description": "Storage insight properties.",
      "properties": {
        "containers": {
          "type": "array",
          "description": "The names of the blob containers that the workspace should read",
          "items": {
            "type": "string"
          }
        },
        "tables": {
          "type": "array",
          "description": "The names of the Azure tables that the workspace should read",
          "items": {
            "type": "string"
          }
        },
        "storageAccount": {
          "$ref": "#/$defs/StorageAccount",
          "description": "The storage account connection details"
        },
        "status": {
          "$ref": "#/$defs/StorageInsightStatus",
          "description": "The status of the storage insight",
          "readOnly": true
        }
      },
      "required": [
        "storageAccount"
      ]
    },
    "StorageInsightState": {
      "type": "string",
      "description": "The state of the storage insight connection to the workspace",
      "enum": [
        "OK",
        "ERROR"
      ],
      "x-ms-enum": {
        "name": "StorageInsightState",
        "modelAsString": true,
        "values": [
          {
            "name": "OK",
            "value": "OK",
            "description": "OK"
          },
          {
            "name": "ERROR",
            "value": "ERROR",
            "description": "ERROR"
          }
        ]
      }
    },
    "StorageInsightStatus": {
      "type": "object",
      "description": "The status of the storage insight.",
      "properties": {
        "state": {
          "$ref": "#/$defs/StorageInsightState",
          "description": "The state of the storage insight connection to the workspace"
        },
        "description": {
          "type": "string",
          "description": "Description of the state of the storage insight."
        }
      },
      "required": [
        "state"
      ]
    }
  }
}