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 |
subscription
|
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 |
The request was successful; a list of usages is returned |
|
Other Status Codes |
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 |
---|---|
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
List |
List of Core Usages. |
Usage |
The core usage details. |
Usage |
The Usage Names. |
Usage |
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 |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
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 |
The name. |
|
unit |
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 |