{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-purview/json-schema/microsoft-purview-account-list-schema.json",
  "title": "AccountList",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-purview-accounts-api-openapi.yml#/components/schemas/AccountList",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Account"
      }
    },
    "nextLink": {
      "type": "string"
    },
    "count": {
      "type": "integer",
      "format": "int64"
    }
  },
  "$defs": {
    "Account": {
      "type": "object",
      "description": "A Microsoft Purview account resource",
      "properties": {
        "id": {
          "type": "string",
          "readOnly": true
        },
        "identity": {
          "$ref": "#/$defs/Identity"
        },
        "location": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "readOnly": true
        },
        "properties": {
          "$ref": "#/$defs/AccountProperties"
        },
        "sku": {
          "$ref": "#/$defs/AccountSku"
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "type": {
          "type": "string",
          "readOnly": true
        }
      }
    },
    "AccountEndpoints": {
      "type": "object",
      "readOnly": true,
      "properties": {
        "catalog": {
          "type": "string"
        },
        "guardian": {
          "type": "string"
        },
        "scan": {
          "type": "string"
        }
      }
    },
    "AccountProperties": {
      "type": "object",
      "properties": {
        "cloudConnectors": {
          "type": "object",
          "properties": {
            "awsExternalId": {
              "type": "string",
              "readOnly": true
            }
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "createdBy": {
          "type": "string",
          "readOnly": true
        },
        "createdByObjectId": {
          "type": "string",
          "readOnly": true
        },
        "endpoints": {
          "$ref": "#/$defs/AccountEndpoints"
        },
        "friendlyName": {
          "type": "string",
          "readOnly": true
        },
        "managedResourceGroupName": {
          "type": "string"
        },
        "managedResources": {
          "type": "object",
          "readOnly": true,
          "properties": {
            "eventHubNamespace": {
              "type": "string"
            },
            "resourceGroup": {
              "type": "string"
            },
            "storageAccount": {
              "type": "string"
            }
          }
        },
        "privateEndpointConnections": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/PrivateEndpointConnection"
          }
        },
        "provisioningState": {
          "type": "string",
          "readOnly": true,
          "enum": [
            "Unknown",
            "Creating",
            "Moving",
            "Deleting",
            "SoftDeleting",
            "SoftDeleted",
            "Failed",
            "Succeeded",
            "Canceled"
          ]
        },
        "publicNetworkAccess": {
          "type": "string",
          "enum": [
            "NotSpecified",
            "Enabled",
            "Disabled"
          ]
        }
      }
    },
    "AccountSku": {
      "type": "object",
      "properties": {
        "capacity": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": "string",
          "enum": [
            "Standard"
          ]
        }
      }
    },
    "Identity": {
      "type": "object",
      "properties": {
        "principalId": {
          "type": "string",
          "readOnly": true
        },
        "tenantId": {
          "type": "string",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "enum": [
            "None",
            "SystemAssigned",
            "UserAssigned"
          ]
        },
        "userAssignedIdentities": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "clientId": {
                "type": "string"
              },
              "principalId": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "PrivateEndpointConnection": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "readOnly": true
        },
        "properties": {
          "type": "object",
          "properties": {
            "privateEndpoint": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                }
              }
            },
            "privateLinkServiceConnectionState": {
              "type": "object",
              "properties": {
                "actionsRequired": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "Unknown",
                    "Pending",
                    "Approved",
                    "Rejected",
                    "Disconnected"
                  ]
                }
              }
            },
            "provisioningState": {
              "type": "string",
              "readOnly": true
            }
          }
        },
        "type": {
          "type": "string",
          "readOnly": true
        }
      }
    }
  }
}