Share via

Cosmos DB Gremlin, DB and Collection Creation via APIs

Don Liyanage 20 Reputation points
Jun 17, 2024, 5:08 PM

Is there an API that we can use to Create DB and Collection/Graphs?

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,721 questions
{count} votes

Accepted answer
  1. TP 101.3K Reputation points
    Jun 18, 2024, 12:29 AM

    Hi Don,

    Please see below page for Cosmos DB Gremlin REST API. You can use it to create/update/etc. databases and graphs:

    Gremlin Resources

    https://learn.microsoft.com/en-us/rest/api/cosmos-db-resource-provider/gremlin-resources?view=rest-cosmos-db-resource-provider-2023-11-15

    Please click Accept Answer and upvote if the above was helpful. If I have misunderstood your question or something is unclear, please add a comment.

    Thanks.

    -TP

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,502 Reputation points Microsoft Employee
    Jun 17, 2024, 6:54 PM

    @Don Liyanage Welcome to Microsoft Q&A thanks for posting your question.

    Azure Cosmos DB for Gremlin provides a graph database service via the API for Gremlin on a fully managed database service designed for any scale. You can manage your data using Gremlin Console, a .NET app, or a Python app. For creating databases.

    you create the Cosmos DB account (with type Gremlin), then you create a database and a collection, like with any other Cosmos DB account

    https://learn.microsoft.com/en-us/azure/cosmos-db/gremlin/

    User's image

    Regards

    Geetha

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.