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

AFD Profiles - List Resource Usage

检查给定 Azure Front Door 配置文件下终结点的配额和实际使用情况。

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/usages?api-version=2023-05-01

URI 参数

名称 必需 类型 说明
profileName
path True

string

资源组中唯一的 Azure Front Door Standard 或 Azure Front Door Premium 配置文件的名称。

resourceGroupName
path True

string

Azure 订阅中的资源组的名称。

Regex pattern: ^[-\w\._\(\)]+$

subscriptionId
path True

string

Azure 订阅 ID。

api-version
query True

string

要与客户端请求一起使用的 API 的版本。 当前版本为 2023-05-01。

响应

名称 类型 说明
200 OK

UsagesListResult

没问题。 请求已成功。

Other Status Codes

AfdErrorResponse

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

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

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

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

AFDProfiles_ListResourceUsage

Sample Request

POST https://management.azure.com/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/usages?api-version=2023-05-01

Sample Response

{
  "value": [
    {
      "unit": "Count",
      "currentValue": 0,
      "limit": 25,
      "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
      "name": {
        "value": "afdendpoint",
        "localizedValue": "afdendpoint"
      }
    }
  ]
}

定义

名称 说明
AfdErrorResponse

错误响应

ErrorAdditionalInfo

资源管理错误附加信息。

ErrorDetail

错误详细信息。

Usage

描述资源使用情况。

UsageName

用法名称。

UsagesListResult

列表使用情况操作响应。

UsageUnit

描述度量单位的枚举。

AfdErrorResponse

错误响应

名称 类型 说明
error

ErrorDetail

错误对象。

ErrorAdditionalInfo

资源管理错误附加信息。

名称 类型 说明
info

object

其他信息。

type

string

其他信息类型。

ErrorDetail

错误详细信息。

名称 类型 说明
additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误代码。

details

ErrorDetail[]

错误详细信息。

message

string

错误消息。

target

string

错误目标。

Usage

描述资源使用情况。

名称 类型 说明
currentValue

integer

使用情况的当前值。

id

string

资源标识符。

limit

integer

使用限制。

name

UsageName

用法类型的名称。

unit

UsageUnit

描述度量单位的枚举。

UsageName

用法名称。

名称 类型 说明
localizedValue

string

描述资源名称的本地化字符串。

value

string

描述资源名称的字符串。

UsagesListResult

列表使用情况操作响应。

名称 类型 说明
nextLink

string

用于获取下一组结果的 URL。

value

Usage[]

资源使用情况列表。

UsageUnit

描述度量单位的枚举。

名称 类型 说明
Count

string