Server Usages - List By Server
Returns server usages.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/usages?api-version=2014-04-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
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 servers usages
Sample request
Sample response
{
"value": [
{
"name": "server_dtu_quota",
"resourceName": "sqlcrudtest-9007",
"displayName": "Database Throughput Unit Quota",
"currentValue": 0,
"limit": 45000,
"unit": "DTUs",
"nextResetTime": null
},
{
"name": "server_dtu_quota_current",
"resourceName": "sqlcrudtest-9007",
"displayName": "Database Throughput Unit Quota",
"currentValue": 0,
"limit": 45000,
"unit": "DTUs",
"nextResetTime": null
}
]
}
Definitions
Name | Description |
---|---|
Server |
Represents server metrics. |
Server |
Represents the response to a list server metrics request. |
ServerUsage
Represents server metrics.
Name | Type | Description |
---|---|---|
currentValue |
number |
The current value of the metric. |
displayName |
string |
The metric display name. |
limit |
number |
The current limit of the metric. |
name |
string |
Name of the server usage metric. |
nextResetTime |
string |
The next reset time for the metric (ISO8601 format). |
resourceName |
string |
The name of the resource. |
unit |
string |
The units of the metric. |
ServerUsageListResult
Represents the response to a list server metrics request.
Name | Type | Description |
---|---|---|
value |
The list of server metrics for the server. |