Microsoft.CognitiveServices (stable:2024-10-01)

2025/03/21 • 1 updated methods

Usages_List (updated)
Description Get usages for the requested subscription
Reference Link ¶

⚶ Changes

{
  "#id": "Usages_List",
  "$parameters": {
    "@removed_bc1b6f74842646f3adbde7daf279b147": {
      "#name": "$filter",
      "Description": "An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).",
      "Required": false,
      "Type": "string"
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/usages
{
subscriptionId: string ,
api-version: string ,
location: string ,
}

⚐ Response (200)

{
nextLink: string ,
value:
[
{
unit: enum ,
name:
{
value: string ,
localizedValue: string ,
}
,
quotaPeriod: string ,
limit: number ,
currentValue: number ,
nextResetTime: string ,
status: enum ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}