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

App Service Environments - List Capacities

获取应用服务环境的已用、可用和总辅助角色容量的说明。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/capacities/compute?api-version=2023-12-01

URI 参数

名称 必需 类型 说明
name
path True

string

应用服务环境的名称。

resourceGroupName
path True

string

资源所属的资源组的名称。

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

subscriptionId
path True

string

Azure 订阅 ID。 这是一个 GUID 格式的字符串, (例如 00000000-0000-0000-0000-0000000000000) 。

api-version
query True

string

API 版本

响应

名称 类型 说明
200 OK

StampCapacityCollection

确定

Other Status Codes

DefaultErrorResponse

App 服务错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 流

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

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

Get the used, available, and total worker capacity an App Service Environment.

Sample Request

GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/test-rg/providers/Microsoft.Web/hostingEnvironments/test-ase/capacities/compute?api-version=2023-12-01

Sample Response

{
  "value": [
    {
      "name": null,
      "availableCapacity": 0,
      "totalCapacity": 1,
      "unit": null,
      "computeMode": "Dedicated",
      "workerSize": null,
      "workerSizeId": 0,
      "excludeFromCapacityAllocation": false,
      "isApplicableForAllComputeModes": false,
      "siteMode": null,
      "isLinux": false
    },
    {
      "name": null,
      "availableCapacity": 0,
      "totalCapacity": 1,
      "unit": null,
      "computeMode": "Dedicated",
      "workerSize": null,
      "workerSizeId": 1,
      "excludeFromCapacityAllocation": false,
      "isApplicableForAllComputeModes": false,
      "siteMode": null,
      "isLinux": false
    },
    {
      "name": null,
      "availableCapacity": 0,
      "totalCapacity": 1,
      "unit": null,
      "computeMode": "Dedicated",
      "workerSize": null,
      "workerSizeId": 2,
      "excludeFromCapacityAllocation": false,
      "isApplicableForAllComputeModes": false,
      "siteMode": null,
      "isLinux": false
    }
  ],
  "nextLink": null
}

定义

名称 说明
ComputeModeOptions

共享/专用辅助角色。

DefaultErrorResponse

App 服务错误响应。

Details
Error

错误模型。

StampCapacity

标记容量信息。

StampCapacityCollection

标记容量的集合。

WorkerSizeOptions

计算机的大小。

ComputeModeOptions

共享/专用辅助角色。

名称 类型 说明
Dedicated

string

Dynamic

string

Shared

string

DefaultErrorResponse

App 服务错误响应。

名称 类型 说明
error

Error

错误模型。

Details

名称 类型 说明
code

string

标准化字符串,用于以编程方式标识错误。

message

string

详细的错误说明和调试信息。

target

string

详细的错误说明和调试信息。

Error

错误模型。

名称 类型 说明
code

string

标准化字符串,用于以编程方式标识错误。

details

Details[]

详细错误。

innererror

string

调试错误的详细信息。

message

string

详细的错误说明和调试信息。

target

string

详细的错误说明和调试信息。

StampCapacity

标记容量信息。

名称 类型 说明
availableCapacity

integer

可用容量 ( 计算机数、存储字节数等...) 。

computeMode

ComputeModeOptions

共享/专用辅助角色。

excludeFromCapacityAllocation

boolean

如果 true为 ,则包含基本应用。 基本应用不用于容量分配。

isApplicableForAllComputeModes

boolean

true 如果容量适用于所有应用,则为 ;否则为 false

isLinux

boolean

这是 Linux 标记容量吗?

name

string

标记的名称。

siteMode

string

共享或专用。

totalCapacity

integer

计算机的总容量 ( 数、存储字节数等...) 。

unit

string

单元的名称。

workerSize

WorkerSizeOptions

计算机的大小。

workerSizeId

integer

计算机的大小 ID:0 - 小型 1 - 中 2 - 大型

StampCapacityCollection

标记容量的集合。

名称 类型 说明
nextLink

string

链接到下一页资源。

value

StampCapacity[]

资源集合。

WorkerSizeOptions

计算机的大小。

名称 类型 说明
D1

string

D2

string

D3

string

Default

string

Large

string

LargeV3

string

Medium

string

MediumV3

string

NestedSmall

string

NestedSmallLinux

string

Small

string

SmallV3

string