-
Notifications
You must be signed in to change notification settings - Fork 850
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
Comments
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/ |
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? |
@ryancrawcour FWIW Terraform supports creating CosmosDB Collections and Databases now: https://www.terraform.io/docs/providers/azurerm/r/cosmosdb_mongo_collection.html |
Thanks, but not really interested in the Mongo API, i am interested in supporting the Core SQL API. |
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.
The text was updated successfully, but these errors were encountered: