你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Endpoints - List Resource Usage
检查给定终结点下异地筛选器和自定义域的配额和使用情况。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/checkResourceUsage?api-version=2024-02-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
endpoint
|
path | True |
string |
配置文件下全局唯一的终结点的名称。 |
profile
|
path | True |
string |
资源组中唯一的 CDN 配置文件的名称。 |
resource
|
path | True |
string |
Azure 订阅中资源组的名称。 Regex pattern: |
subscription
|
path | True |
string |
Azure 订阅 ID。 |
api-version
|
query | True |
string |
要与客户端请求一起使用的 API 的版本。 当前版本为 2024-02-01。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
没问题。 请求已成功。 |
|
Other Status Codes |
描述操作失败原因的 CDN 错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流。
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Endpoints_ListResourceUsage
Sample Request
POST https://management.azure.com/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/checkResourceUsage?api-version=2024-02-01
Sample Response
{
"value": [
{
"resourceType": "customdomain",
"unit": "count",
"currentValue": 1,
"limit": 20
},
{
"resourceType": "geofilter",
"unit": "count",
"currentValue": 0,
"limit": 25
}
]
}
定义
名称 | 说明 |
---|---|
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Resource |
检查资源使用情况 API 的输出。 |
Resource |
检查资源使用情况 API 的输出。 |
Resource |
用法的单位。 例如计数。 |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
ResourceUsage
检查资源使用情况 API 的输出。
名称 | 类型 | 说明 |
---|---|---|
currentValue |
integer |
指定资源类型的实际使用情况值。 |
limit |
integer |
指定资源类型的配额。 |
resourceType |
string |
提供其使用情况的资源类型。 |
unit |
用法的单位。 例如计数。 |
ResourceUsageListResult
检查资源使用情况 API 的输出。
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
用于获取下一组自定义域对象的 URL(如果有)。 |
value |
资源使用情况列表。 |
ResourceUsageUnit
用法的单位。 例如计数。
名称 | 类型 | 说明 |
---|---|---|
count |
string |