Usage By Subscription Sku - Usage By Subscription Sku
Gets the quota usage for a search SKU in the given subscription.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName}?api-version=2023-11-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
location
|
path | True |
string |
The unique location name for a Microsoft Azure geographic region. |
sku
|
path | True |
string |
The unique SKU name that identifies a billable tier. |
subscription
|
path | True |
string |
The unique identifier for a Microsoft Azure subscription. You can obtain this value from the Azure Resource Manager API, command line tools, or the portal. |
api-version
|
query | True |
string |
The API version to use for each request. |
Request Header
Name | Required | Type | Description |
---|---|---|---|
x-ms-client-request-id |
string (uuid) |
A client-generated GUID value that identifies this request. If specified, this will be included in response information as a way to track the request. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The operation succeeded. The response contains the quota usage of a search service SKU for the given subscription. |
|
Other Status Codes |
An unexpected error occurred during the operation. |
Security
azure_auth
Microsoft Entra ID OAuth2 authorization flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
GetQuotaUsage
Sample request
GET https://management.azure.com/subscriptions/subid/providers/Microsoft.Search/locations/westus/usages/free?api-version=2023-11-01
Sample response
{
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{location}/usages/{skuName}",
"unit": "Count",
"currentValue": 8,
"limit": 16,
"name": {
"value": "free",
"localizedValue": "F - Free"
}
}
Definitions
Name | Description |
---|---|
Cloud |
Contains information about an API error. |
Cloud |
Describes a particular API error with an error code and a message. |
Name |
The name of the SKU supported by Azure AI Search. |
Quota |
Describes the quota usage for a particular SKU. |
CloudError
Contains information about an API error.
Name | Type | Description |
---|---|---|
error |
Describes a particular API error with an error code and a message. |
CloudErrorBody
Describes a particular API error with an error code and a message.
Name | Type | Description |
---|---|---|
code |
string |
An error code that describes the error condition more precisely than an HTTP status code. Can be used to programmatically handle specific error cases. |
details |
Contains nested errors that are related to this error. |
|
message |
string |
A message that describes the error in detail and provides debugging information. |
target |
string |
The target of the particular error (for example, the name of the property in error). |
Name
The name of the SKU supported by Azure AI Search.
Name | Type | Description |
---|---|---|
localizedValue |
string |
The localized string value for the SKU name. |
value |
string |
The SKU name supported by Azure AI Search. |
QuotaUsageResult
Describes the quota usage for a particular SKU.
Name | Type | Description |
---|---|---|
currentValue |
integer (int32) |
The currently used up value for the particular search SKU. |
id |
string |
The resource ID of the quota usage SKU endpoint for Microsoft.Search provider. |
limit |
integer (int32) |
The quota limit for the particular search SKU. |
name |
The name of the SKU supported by Azure AI Search. |
|
unit |
string |
The unit of measurement for the search SKU. |