Azure / Azure/azure-rest-api-specs
Expose `mongoEndpoint` property in the Cosmos DB API
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
When creating Cosmos DB Account of kind MongoDB using terraform, the endpoint `https://demo-cosmos-mangodb.documents.azure.com:443` is returned instead of the expected `mongoEndpoint` `https://demo-cosmos-mangodb.mongo.cosmos.azure.com:443/`.
The property `mongoEndpoint` is not currently exposed in the [current version of the API](https://github.com/Azure/azure-rest-api-specs/blob/41645a4769694a7d63a2514b45146ec369eeb273/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/cosmos-db.json#L6073).
This needs to be exposed in order for Terraform to provide the correct value as an output.
This was initial raised in the terraform Azurerm provider project, but needs to be added to the API first.
https://github.com/hashicorp/terraform-provider-azurerm/issues/20306
Contributor guide
Research direction
Open the linked specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/cosmos-db.json at the cited section and inspect the Cosmos DB account properties. Compare the MongoDB account response with the requested mongoEndpoint property; done means the API exposes that property so Terraform can return the expected endpoint.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, openapi, terraform
- Domain
- api, cloud, databases
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100