Usages - List
Get usages for the requested subscription
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{___location}/usages?api-version=2024-10-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
___location
|
path | True |
string |
Resource ___location. |
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. |
|
Other Status Codes |
Error response describing why the operation failed. |
Examples
Get Usages
Sample request
Sample response
{
"value": [
{
"name": {
"value": "AccountCount",
"localizedValue": "Cognitive Services total account limit"
},
"currentValue": 3,
"limit": 200,
"unit": "Count"
}
]
}
Definitions
Name | Description |
---|---|
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Metric |
A metric name. |
Quota |
Cognitive Services account quota usage status. |
Unit |
The unit of the metric. |
Usage |
The usage data for a usage request. |
Usage |
The response to a list usage request. |
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. |
MetricName
A metric name.
Name | Type | Description |
---|---|---|
localizedValue |
string |
The friendly name of the metric. |
value |
string |
The name of the metric. |
QuotaUsageStatus
Cognitive Services account quota usage status.
Value | Description |
---|---|
Blocked | |
InOverage | |
Included | |
Unknown |
UnitType
The unit of the metric.
Value | Description |
---|---|
Bytes | |
BytesPerSecond | |
Count | |
CountPerSecond | |
Milliseconds | |
Percent | |
Seconds |
Usage
The usage data for a usage request.
Name | Type | Description |
---|---|---|
currentValue |
number (double) |
Current value for this metric. |
limit |
number (double) |
Maximum value for this metric. |
name |
The name information for the metric. |
|
nextResetTime |
string |
Next reset time for current quota. |
quotaPeriod |
string |
The quota period used to summarize the usage values. |
status |
Cognitive Services account quota usage status. |
|
unit |
The unit of the metric. |
UsageListResult
The response to a list usage request.
Name | Type | Description |
---|---|---|
nextLink |
string |
The link used to get the next page of Usages. |
value |
Usage[] |
The list of usages for Cognitive Service account. |