你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Usages - List By Automation Account
检索帐户 ID 的用法。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/usages?api-version=2023-11-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
automation
|
path | True |
string |
自动化帐户的名称。 |
resource
|
path | True |
string |
Azure 资源组的名称。 Regex pattern: |
subscription
|
path | True |
string |
获取唯一标识 Microsoft Azure 订阅的订阅凭据。 此订阅 ID 是每个服务调用的 URI 的一部分。 |
api-version
|
query | True |
string |
客户端 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定 |
|
Other Status Codes |
描述操作失败原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Get usages of an automation account
Sample Request
GET https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount11/usages?api-version=2023-11-01
Sample Response
{
"value": [
{
"name": {
"value": "AccountUsage",
"localizedValue": "AccountUsage"
},
"unit": "Minute",
"currentValue": 0,
"limit": 500,
"throttleStatus": "NotThrottled"
},
{
"name": {
"value": "SubscriptionUsage",
"localizedValue": "SubscriptionUsage"
},
"unit": "Minute",
"currentValue": 429,
"limit": 500,
"throttleStatus": "NotThrottled"
},
{
"name": {
"value": "DscSubscriptionUsage",
"localizedValue": "DscSubscriptionUsage"
},
"unit": "Count",
"currentValue": 8,
"limit": 5,
"throttleStatus": "ThrottledAtSubscriptionLevel"
}
]
}
定义
名称 | 说明 |
---|---|
Error |
操作失败的错误响应 |
Usage |
用法的定义。 |
Usage |
使用计数器名称的定义。 |
Usage |
获取使用情况操作的响应模型。 |
ErrorResponse
操作失败的错误响应
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码 |
message |
string |
指示操作失败原因的错误消息。 |
Usage
用法的定义。
名称 | 类型 | 说明 |
---|---|---|
currentValue |
number |
获取或设置当前使用值。 |
id |
string |
获取或设置资源的 ID。 |
limit |
integer |
获取或设置最大限制。 -1 不限 |
name |
获取或设置使用计数器名称。 |
|
throttleStatus |
string |
获取或设置限制状态。 |
unit |
string |
获取或设置使用单位名称。 |
UsageCounterName
使用计数器名称的定义。
名称 | 类型 | 说明 |
---|---|---|
localizedValue |
string |
获取或设置本地化的使用计数器名称。 |
value |
string |
获取或设置使用计数器名称。 |
UsageListResult
获取使用情况操作的响应模型。
名称 | 类型 | 说明 |
---|---|---|
value |
Usage[] |
获取或设置使用情况。 |