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

Create CosmosDB Database/Collections #1637

Closed
jeremyrickard opened this issue Apr 18, 2018 · 4 comments
Closed

Create CosmosDB Database/Collections #1637

jeremyrickard opened this issue Apr 18, 2018 · 4 comments
Labels

Comments

@jeremyrickard
Copy link

jeremyrickard commented Apr 18, 2018

Hi,

Looking through the existing CosmosDB functionality, it looks like I can only programmatically create database accounts, I'm not able to create the database itself or the collection (which have some parameters that can be tuned). Am I stuck calling the API myself or using the portal? It seems like it's possible to do this with the Node SDK and the Java SDK.

It would be super helpful if we published a client for these like we do in many other languages. Passing the auth header is non trivial and would be much better handled by a go lib like we have for Java/Node/Python/Dot Net.

@joshgav
Copy link
Contributor

joshgav commented May 29, 2018

Thank you for the feedback @jeremyrickard, we're looking into creating a Go client for Cosmos; in the meantime we recommend using the MongoDB API with mgo.

You can also use Cosmos' API directly: https://docs.microsoft.com/en-us/rest/api/cosmos-db/

cc @shireeshthota @kirillg

@ryancrawcour
Copy link

We need this for Terraform support, so we're able to spin up not only the account, but also the database and the collection. Now that ARM supports database and collection, it makes sense to add this to Terraform as well. In order to do this we need it in the Azure GO SDK.

Anyone mind if i contribute basic functionality to the Azure GO SDK for this?
@shireeshthota @kirillg

@tombuildsstuff
Copy link
Contributor

@ryancrawcour FWIW Terraform supports creating CosmosDB Collections and Databases now: https://www.terraform.io/docs/providers/azurerm/r/cosmosdb_mongo_collection.html

@ryancrawcour
Copy link

ryancrawcour commented May 28, 2019

Thanks, but not really interested in the Mongo API, i am interested in supporting the Core SQL API.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants