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
resourceGroupName
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.

serverName
path True

string

The name of the server.

subscriptionId
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

ServerUsageListResult

OK

Examples

List servers usages

Sample request

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6730/providers/Microsoft.Sql/servers/sqlcrudtest-9007/usages?api-version=2014-04-01

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
ServerUsage

Represents server metrics.

ServerUsageListResult

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

ServerUsage[]

The list of server metrics for the server.