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

Quotas - Get

返回请求的计算配额。
获取现有计算配额。

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute.Admin/locations/{location}/quotas/{quotaName}?api-version=2018-02-09

URI 参数

名称 必需 类型 说明
location
path True

string

资源的位置。

quotaName
path True

string

配额的名称。

subscriptionId
path True

string

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

api-version
query True

string

要用于此操作的 API 版本。

响应

名称 类型 说明
200 OK

Quota

确定

安全性

azure_auth

授权使用 Azure Active Directory OAuth2 流。

类型: oauth2
流向: implicit
授权 URL: https://login.microsoftonline.com/common/oauth2/authorize

作用域

名称 说明
user_impersonation 模拟用户帐户

示例

Get an existing Compute Quota.

示例请求

GET https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Compute.Admin/locations/local/quotas/testQuotaCreateUpdateDelete?api-version=2018-02-09

示例响应

{
  "id": "/subscriptions/8158498d-27b1-4ccf-9aa1-de0f925731e6/providers/Microsoft.Compute.Admin/locations/local/quotas/testQuotaCreateUpdateDelete",
  "name": "testQuotaCreateUpdateDelete",
  "type": "Microsoft.Compute.Admin/quotas",
  "location": "local",
  "properties": {
    "virtualMachineCount": 1,
    "coresLimit": 1,
    "availabilitySetCount": 1,
    "vmScaleSetCount": 1,
    "maxAllocationStandardManagedDisksAndSnapshots": 1024,
    "maxAllocationPremiumManagedDisksAndSnapshots": 1024
  }
}

定义

Quota

保存用于控制资源分配的计算配额信息。

名称 类型 说明
id

string

资源的 ID。

location

string

资源的位置。

name

string

资源的名称。

properties.availabilitySetCount

integer

允许的最大可用性集数。

properties.coresLimit

integer

允许的最大核心数。

properties.maxAllocationPremiumManagedDisksAndSnapshots

integer

允许的最高高级类型托管磁盘和快照数。

properties.maxAllocationStandardManagedDisksAndSnapshots

integer

允许的最大标准类型托管磁盘和快照数。

properties.virtualMachineCount

integer

允许的最大虚拟机数。

properties.vmScaleSetCount

integer

允许的最大规模集数。

type

string

资源类型。