你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Usages - List

按位置列出资源使用配额。

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/usages?api-version=2023-02-01

URI 参数

名称 必需 类型 说明
location
path True

string

位置,如“eastus”

subscriptionId
path True

string

获取唯一标识 Microsoft Azure 订阅的订阅 ID。 此订阅 ID 是每个服务调用的 URI 的一部分。

api-version
query True

string

客户端 API 版本。

响应

名称 类型 说明
200 OK

SignalRUsageList

成功。 响应描述指定区域中订阅的使用配额。

Other Status Codes

ErrorResponse

描述操作失败原因的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 流

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

Usages_List

Sample Request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SignalRService/locations/eastus/usages?api-version=2023-02-01

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SignalRService/locations/eastus/usages/Usage1",
      "currentValue": 0,
      "limit": 100,
      "name": {
        "value": "Usage1",
        "localizedValue": "Usage1"
      },
      "unit": "Count"
    },
    {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SignalRService/locations/eastus/usages/Usage2",
      "currentValue": 0,
      "limit": 100,
      "name": {
        "value": "Usage2",
        "localizedValue": "Usage2"
      },
      "unit": "Count"
    }
  ],
  "nextLink": "https://management.azure.com/subscriptions/subid/providers/Microsoft.SignalRService/...pathToMoreResults..."
}

定义

名称 说明
ErrorAdditionalInfo

资源管理错误附加信息。

ErrorDetail

错误详细信息。

ErrorResponse

错误响应

SignalRUsage

描述资源的特定使用情况的对象。

SignalRUsageList

对象,其中包含资源使用情况的数组和下一个集的可能链接。

SignalRUsageName

包含名称和本地化值的可本地化 String 对象。

ErrorAdditionalInfo

资源管理错误附加信息。

名称 类型 说明
info

object

其他信息。

type

string

其他信息类型。

ErrorDetail

错误详细信息。

名称 类型 说明
additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误代码。

details

ErrorDetail[]

错误详细信息。

message

string

错误消息。

target

string

错误目标。

ErrorResponse

错误响应

名称 类型 说明
error

ErrorDetail

错误对象。

SignalRUsage

描述资源的特定使用情况的对象。

名称 类型 说明
currentValue

integer

使用配额的当前值。

id

string

完全限定的 ARM 资源 ID

limit

integer

使用配额允许的最大值。 如果没有限制,则此值将为 -1。

name

SignalRUsageName

包含名称和本地化值的可本地化 String 对象。

unit

string

表示使用配额的单位。 可能的值包括:Count、Bytes、Seconds、Percent、CountPerSecond、BytesPerSecond。

SignalRUsageList

对象,其中包含资源使用情况的数组和下一个集的可能链接。

名称 类型 说明
nextLink

string

客户端用于提取每个服务器端分页) (下一页的 URL。 它目前为 null,已添加供将来使用。

value

SignalRUsage[]

资源使用情况列表

SignalRUsageName

包含名称和本地化值的可本地化 String 对象。

名称 类型 说明
localizedValue

string

用法的本地化名称。

value

string

用法的标识符。