Azure / Azure/azure-rest-api-specs

Expose `mongoEndpoint` property in the Cosmos DB API

Open
#22,703 2 comments 1 reaction 0 assignees View on GitHub
Cosmos customer-reported needs-team-attention question Service Attention
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.