Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Additional Cosmos DB Types (Azure) #4347

Open
HRouhani opened this issue Jul 16, 2024 · 0 comments
Open

Support for Additional Cosmos DB Types (Azure) #4347

HRouhani opened this issue Jul 16, 2024 · 0 comments
Labels
azure enhancement New feature or request

Comments

@HRouhani
Copy link
Contributor

HRouhani commented Jul 16, 2024

Issue Description:

Currently, cnquery only supports listing Cosmos DB accounts of the NoSQL type. We request the inclusion of support for additional Cosmos DB types such as MongoDB, Cassandra, Gremlin, Table, and PostgreSQL.

Context:

Azure Cosmos DB offers various APIs to serve to different use cases, as shown below:

  • Azure Cosmos DB for NoSQL
  • Azure Cosmos DB for MongoDB
  • Azure Cosmos DB for Apache Cassandra
  • Azure Cosmos DB for Apache Gremlin
  • Azure Cosmos DB for Table
  • Azure Cosmos DB for PostgreSQL

Screenshot from 2024-07-16 14-28-52

Currently, the cnquery integration only lists Cosmos DB accounts of the NoSQL type, which limits visibility and management of other types of Cosmos DB resources.

Proposed Solution:

Enhance the existing Cosmos DB support (cosmosdb.go in azure) to include querying and listing for all the above-mentioned types. This will involve:

  1. Creating Clients for Different Resource Types: Add clients for MongoDB clusters, Cassandra clusters, Gremlin clusters, Table clusters, and PostgreSQL clusters.
    
  2. Query Each Resource Type: Modify the code to query each type and aggregate the results.
    
@HRouhani HRouhani added azure enhancement New feature or request labels Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant