Database Usages - List By Database
Returns database usages.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/usages?api-version=2014-04-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
database
|
path | True |
string |
The name of the database. |
resource
|
path | True |
string |
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
server
|
path | True |
string |
The name of the server. |
subscription
|
path | True |
string |
The subscription ID that identifies an Azure subscription. |
api-version
|
query | True |
string |
The API version to use for the request. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
Examples
List database usage metrics
Sample request
Sample response
{
"value": [
{
"name": "database_size",
"resourceName": "3481",
"displayName": "Database Size",
"currentValue": 4194304,
"limit": 268435456000,
"unit": "Bytes",
"nextResetTime": null
}
]
}
Definitions
Name | Description |
---|---|
Database |
The database usages. |
Database |
The response to a list database metrics request. |
DatabaseUsage
The database usages.
Name | Type | Description |
---|---|---|
currentValue |
number |
The current value of the usage metric. |
displayName |
string |
The usage metric display name. |
limit |
number |
The current limit of the usage metric. |
name |
string |
The name of the usage metric. |
nextResetTime |
string |
The next reset time for the usage metric (ISO8601 format). |
resourceName |
string |
The name of the resource. |
unit |
string |
The units of the usage metric. |
DatabaseUsageListResult
The response to a list database metrics request.
Name | Type | Description |
---|---|---|
value |
The list of database usages for the database. |