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

feature: View CosmosDB collection offer #2252

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

JasonYeMSFT
Copy link
Contributor

resolves: #1979

The offer of a CosmosDB NoSQL collection will look like this:

{
  "resource": "dbs/xxx/colls/xxx/",
  "offerType": "Invalid",
  "offerResourceId": "xxx",
  "offerVersion": "V2",
  "content": {
    "offerThroughput": 400,
    "offerIsRUPerMinuteThroughputEnabled": false,
    "offerMinimumThroughputParameters": {
      "maxThroughputEverProvisioned": 400,
      "maxConsumedStorageEverInKB": 0
    }
  },
  "id": "xxx",
  "_rid": "xxx",
  "_self": "offers/xxx/",
  "_etag": "\"some_etag\"",
  "_ts": 123456
}

If the collection is serverless, there is no such offer for it because it scales automatically. Attempting to view its offer would result in an error in the output saying it's not available for a serverless database account.

@JasonYeMSFT JasonYeMSFT requested a review from a team as a code owner February 22, 2024 21:30
@JasonYeMSFT JasonYeMSFT merged commit 27ffdd8 into main Mar 5, 2024
5 checks passed
@JasonYeMSFT JasonYeMSFT deleted the dev/chuye/view-cosmos-offer branch March 5, 2024 22:03
@microsoft microsoft locked and limited conversation to collaborators Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Suggestion] Display additional info for CosmosDB collections
2 participants