
## What does Atlan crawl from Microsoft Azure Cosmos DB for NoSQL?

URL: https://docs.atlan.com/apps/connectors/database/microsoft-azure-cosmos-db-for-nosql/references/what-does-atlan-crawl-from-microsoft-azure-cosmos-db-for-nosql

> Assets and metadata that Atlan extracts from Microsoft Azure Cosmos DB for NoSQL during metadata extraction.

Atlan crawls and maps accounts, databases, containers, inferred field schemas, stored procedures, triggers, and user-defined functions from Microsoft Azure Cosmos DB for NoSQL. Lineage isn't supported for Cosmos DB for NoSQL assets.

## Asset types

| Source asset | Atlan asset type | Description |
|---|---|---|
| Account | `CosmosMongoDBAccount` | Top-level Cosmos DB for NoSQL account in an Azure subscription |
| Database | `CosmosMongoDBDatabase` | Database within a Cosmos DB for NoSQL account |
| Container | `CosmosMongoDBCollection` | Container within a database; `assetUserDefinedType` is set to `Container` |
| Field (inferred) | `Column` | Field inferred by sampling up to 200 items per container; nested up to 35 levels deep |
| Stored procedure | `Procedure` | JavaScript stored procedure; `assetUserDefinedType` is set to `Stored Procedure` |
| Trigger | `Procedure` | JavaScript trigger; `subType` and `assetUserDefinedType` are both set to `Trigger` |
| User-defined function | `Function` | JavaScript user-defined function |

Cosmos DB for NoSQL reuses Atlan's existing Cosmos DB asset family for accounts, databases, and containers, so some property names carry a `cosmosMongoDB` prefix even though the assets come from the NoSQL API. Atlan distinguishes these assets using the `connectorName="cosmosnosql"` discriminator on the connection, so they appear under the Cosmos DB for NoSQL connector in the Atlan UI, separately from any [Microsoft Azure Cosmos DB](https://docs.atlan.com/llms/connectors/microsoft-azure-cosmos-db/llms.txt) connection.

After [crawling Cosmos DB for NoSQL](https://docs.atlan.com/llms/connectors/microsoft-azure-cosmos-db-for-nosql/crawl-microsoft-azure-cosmos-db-for-nosql/llms.txt), you can [use connector-specific filters](https://docs.atlan.com/llms/catalog/discovery/use-the-filters-menu/llms.txt) to discover assets.

## Metadata fields

The following sections show the source metadata and corresponding Atlan property for each asset type.

### Accounts

Atlan maps accounts from Cosmos DB for NoSQL to its `CosmosMongoDBAccount` asset type.

| Source metadata | Atlan property |
| --- | --- |
| Account name | `name` |
| Number of databases in the account | `cosmosMongoDBDatabaseCount` |
| Subscription that contains the account | `cosmosMongoDBAccountSubscriptionId` |
| Resource group that contains the account | `cosmosMongoDBAccountResourceGroup` |
| Document endpoint of the account | `cosmosMongoDBAccountDocumentEndpoint` |
| Default consistency level | `cosmosMongoDBAccountConsistencyPolicy` |
| Whether public network access is enabled | `cosmosMongoDBAccountPublicNetworkAccess` |
| Whether multiple write locations are enabled | `cosmosMongoDBAccountEnableMultipleWriteLocations` |
| All Azure regions configured for the account | `cosmosMongoDBAccountLocations` |
| Regions serving reads | `cosmosMongoDBAccountReadLocations` |
| Regions serving writes | `cosmosMongoDBAccountWriteLocations` |

### Databases

Atlan maps databases from Cosmos DB for NoSQL to its `CosmosMongoDBDatabase` asset type.

| Source metadata | Atlan property |
| --- | --- |
| Database name | `name` |
| Parent account | `cosmosMongoDBAccountQualifiedName` |
| Time the database was last modified | `sourceUpdatedAt` |

### Containers

Atlan maps containers from Cosmos DB for NoSQL to its `CosmosMongoDBCollection` asset type, with `assetUserDefinedType` set to `Container`.

| Source metadata | Atlan property |
| --- | --- |
| Container name | `name` |
| Parent database name | `databaseName` |
| `Container` | `assetUserDefinedType` |
| Whether the container is partitioned | `isPartitioned` |
| Partitioning strategy | `partitionStrategy` |
| Partition key paths | `partitionList` |
| Number of inferred fields | `columnCount` |
| Time the container was last modified | `sourceUpdatedAt` |

### Columns

Atlan maps each inferred field from a container to its `Column` asset type. Fields are inferred by sampling up to 200 items per container and consolidating the fields found across those items into a single schema. Nested fields are published up to 35 levels deep.

| Source metadata | Atlan property |
| --- | --- |
| Field name | `name` |
| Field order within the container | `order` |
| Inferred data type | `dataType` |
| `nested` for fields below the top level | `subDataType` |
| Raw inferred type definition | `rawDataTypeDefinition` |
| Whether the field matches a partition key path | `isPrimary` |
| Whether the field is absent from at least one sampled item | `isNullable` |
| Nesting depth of the field | `columnDepthLevel` |
| Complete hierarchy from parent column to child column | `columnHierarchy` |
| Position of the field within its nesting level | `nestedColumnOrder` |
| Number of fields nested beneath this field | `nestedColumnCount` |
| Parent field name, for nested fields | `parentColumnName` |
| Parent field, for nested fields | `parentColumnQualifiedName` |
| Parent container name | `nosqlCollectionName` |
| Parent container | `nosqlCollectionQualifiedName` |

### Stored procedures

Atlan maps stored procedures from Cosmos DB for NoSQL to its `Procedure` asset type, with `assetUserDefinedType` set to `Stored Procedure`.

| Source metadata | Atlan property |
| --- | --- |
| Stored procedure name | `name` |
| Stored procedure body | `definition` |
| Language the stored procedure is written in | `sqlLanguage` |
| `Stored Procedure` | `assetUserDefinedType` |
| Parent database name | `databaseName` |
| Time the stored procedure was last modified | `sourceUpdatedAt` |

### Triggers

Atlan maps triggers from Cosmos DB for NoSQL to its `Procedure` asset type, with `subType` and `assetUserDefinedType` both set to `Trigger`.

| Source metadata | Atlan property |
| --- | --- |
| Trigger name | `name` |
| Trigger body | `definition` |
| Language the trigger is written in | `sqlLanguage` |
| `Trigger` | `subType` |
| `Trigger` | `assetUserDefinedType` |
| Parent database name | `databaseName` |
| Time the trigger was last modified | `sourceUpdatedAt` |

### User-defined functions

Atlan maps user-defined functions from Cosmos DB for NoSQL to its `Function` asset type.

| Source metadata | Atlan property |
| --- | --- |
| Function name | `name` |
| Function body | `functionDefinition` |
| Language the function is written in | `functionLanguage` |
| Parent database name | `databaseName` |
| Time the function was last modified | `sourceUpdatedAt` |

---
