Usages - List By Location
Gets the current usage count and the limit for the resources of the location under the subscription.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages?api-version=2024-01-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
location
|
path | True |
string |
The location of the Azure Storage resource. |
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 |
OK -- current usage count and limit retrieved and returned successfully. |
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
UsageList
Sample request
Sample response
{
"value": [
{
"unit": "Count",
"currentValue": 55,
"limit": 250,
"name": {
"value": "StorageAccounts",
"localizedValue": "Storage Accounts"
}
}
]
}
Definitions
Name | Description |
---|---|
Usage |
Describes Storage Resource Usage. |
Usage |
The response from the List Usages operation. |
Usage |
The usage names that can be used; currently limited to StorageAccount. |
Usage |
Gets the unit of measurement. |
Usage
Describes Storage Resource Usage.
Name | Type | Description |
---|---|---|
currentValue |
integer (int32) |
Gets the current count of the allocated resources in the subscription. |
limit |
integer (int32) |
Gets the maximum count of the resources that can be allocated in the subscription. |
name |
Gets the name of the type of usage. |
|
unit |
Gets the unit of measurement. |
UsageListResult
The response from the List Usages operation.
Name | Type | Description |
---|---|---|
value |
Usage[] |
Gets or sets the list of Storage Resource Usages. |
UsageName
The usage names that can be used; currently limited to StorageAccount.
Name | Type | Description |
---|---|---|
localizedValue |
string |
Gets a localized string describing the resource name. |
value |
string |
Gets a string describing the resource name. |
UsageUnit
Gets the unit of measurement.
Value | Description |
---|---|
Bytes | |
BytesPerSecond | |
Count | |
CountsPerSecond | |
Percent | |
Seconds |