Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Documentation does not include how to create a database with provisioned throughput #179

Open
tuckeryatesjvion opened this issue Aug 28, 2019 · 0 comments

Comments

@tuckeryatesjvion
Copy link

I just spent several hours figuring out how to create a database through the python api with provisioned throughput. This was easy from the azure portal, but documentation does not mention how to do this in the python API. Eventually, I figured out the solution by viewing the source code and finding a reference to "offerThroughput" and trying it as an option in cosmos_client.CreateDatabase. Example:

from azure.cosmos import cosmos_client
client = cosmos_client.CosmosClient(url_connection="REDACTED",auth={'masterKey': "REDACTED"})
CreateDatabase(database={"id": "mydb"},options={"offerThroughput": 400})

Could we add this to the documentation for creating a database so that others don't run into this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant