Get Usages In Location - list
Lists subscription core usages for all skus used in a location, for a given type of quota.
List usages in cores for all skus used by a subscription in a given location, for a specific quota type.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/usages?api-version=2024-11-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
location
|
path | True |
string minLength: 1 |
The name of the Azure region. |
subscription
|
path | True |
string |
Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). |
api-version
|
query | True |
string |
API Version |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
App Service 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
Get usages in location for subscription
Sample request
Sample response
{
"value": [
{
"unit": "Core Count",
"currentValue": 55,
"limit": 250,
"name": {
"value": "Cores usage in West US",
"localizedValue": "Cores usage in West US"
}
}
],
"nextLink": null
}
Definitions
Name | Description |
---|---|
Csm |
Usage of the quota resource. |
Csm |
Collection of CSM usage quotas. |
Default |
App Service error response. |
Details | |
Error |
Error model. |
Localizable |
Localizable string object containing the name and a localized value. |
CsmUsageQuota
Usage of the quota resource.
Name | Type | Description |
---|---|---|
currentValue |
integer (int64) |
The current value of the resource counter. |
limit |
integer (int64) |
The resource limit. |
name |
Quota name. |
|
nextResetTime |
string (date-time) |
Next reset time for the resource counter. |
unit |
string |
Units of measurement for the quota resource. |
CsmUsageQuotaCollection
Collection of CSM usage quotas.
Name | Type | Description |
---|---|---|
nextLink |
string |
Link to next page of resources. |
value |
Collection of resources. |
DefaultErrorResponse
App Service error response.
Name | Type | Description |
---|---|---|
error |
Error model. |
Details
Name | Type | Description |
---|---|---|
code |
string |
Standardized string to programmatically identify the error. |
message |
string |
Detailed error description and debugging information. |
target |
string |
Detailed error description and debugging information. |
Error
Error model.
Name | Type | Description |
---|---|---|
code |
string |
Standardized string to programmatically identify the error. |
details |
Details[] |
Detailed errors. |
innererror |
string |
More information to debug error. |
message |
string |
Detailed error description and debugging information. |
target |
string |
Detailed error description and debugging information. |
LocalizableString
Localizable string object containing the name and a localized value.
Name | Type | Description |
---|---|---|
localizedValue |
string |
Localized name. |
value |
string |
Non-localized name. |