Querying DocumentDB resources
This section covers how to use REST to query DocumentDB resources. Each resource has a corresponding URI. The database account is managed by the Azure Management API and the base URI for a DocumentDB is https://management.azure.com/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/Microsoft.DocumentDB/databaseAccounts/{accountname}
.
- The
subscriptionid
is the Azure subscription that is the owner of the database - The
resourcegroupname
is the resource group that the account is under - The
accountname
is the database account name
The base URI for the rest of the resources are based on the URI endpoint that is specifically created for the database account name. The following table shows the base URI for each type of resource:
Resources |
Base URI |
---|---|
Database |
|
User |
|
Permission |
|