Share via


Usages - List By Location

Lists the current usages and limits in this location for the provided subscription.

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/locations/{location}/usages?api-version=2024-02-01

URI Parameters

Name In Required Type Description
location
path True

string

The Azure region

subscriptionId
path True

string

minLength: 1

The ID of the target subscription.

api-version
query True

string

minLength: 1

The API version to use for this operation.

Responses

Name Type Description
200 OK

ListUsagesResult

The request was successful; a list of usages is returned

Other Status Codes

ErrorResponse

The default error response.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

listUsages

Sample request

GET https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/providers/Microsoft.DevCenter/locations/westus/usages?api-version=2024-02-01

Sample response

{
  "nextLink": null,
  "value": [
    {
      "currentValue": 2,
      "limit": 8,
      "unit": "Count",
      "name": {
        "value": "devcenters"
      },
      "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/Microsoft.DevCenter/locations/westus/quotas/devcenters"
    },
    {
      "currentValue": 5,
      "limit": 30,
      "unit": "Count",
      "name": {
        "value": "projects"
      },
      "id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/Microsoft.DevCenter/locations/westus/quotas/projects"
    }
  ]
}

Definitions

Name Description
ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

ListUsagesResult

List of Core Usages.

Usage

The core usage details.

UsageName

The Usage Names.

UsageUnit

The unit details.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

ListUsagesResult

List of Core Usages.

Name Type Description
nextLink

string

The link to get the next page of Usage result.

value

Usage[]

The array page of Usages.

Usage

The core usage details.

Name Type Description
currentValue

integer (int64)

The current usage.

id

string

The fully qualified arm resource id.

limit

integer (int64)

The limit integer.

name

UsageName

The name.

unit

UsageUnit

The unit details.

UsageName

The Usage Names.

Name Type Description
localizedValue

string

The localized name of the resource.

value

string

The name of the resource.

UsageUnit

The unit details.

Value Description
Count