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

Api Management Service Skus - List Available Service Skus

获取API 管理服务的可用 SKU
获取给定API 管理服务的所有可用 SKU

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus?api-version=2022-08-01

URI 参数

名称 必需 类型 说明
resourceGroupName
path True

string

资源组的名称。 此名称不区分大小写。

serviceName
path True

string

API 管理服务的名称。

正则表达式模式: ^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$

subscriptionId
path True

string

目标订阅的 ID。

api-version
query True

string

要用于此操作的 API 版本。

响应

名称 类型 说明
200 OK

ResourceSkuResults

成功。 响应描述 SKU 列表。

Other Status Codes

ErrorResponse

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

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

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

作用域

名称 说明
user_impersonation 模拟用户帐户

示例

ApiManagementListSKUs-Consumption
ApiManagementListSKUs-Dedicated

ApiManagementListSKUs-Consumption

示例请求

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/skus?api-version=2022-08-01

示例响应

{
  "value": [
    {
      "resourceType": "Microsoft.ApiManagement/service",
      "sku": {
        "name": "Consumption"
      },
      "capacity": null
    }
  ],
  "nextLink": null
}

ApiManagementListSKUs-Dedicated

示例请求

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/skus?api-version=2022-08-01

示例响应

{
  "value": [
    {
      "resourceType": "Microsoft.ApiManagement/service",
      "sku": {
        "name": "Developer"
      },
      "capacity": {
        "minimum": 1,
        "maximum": 1,
        "default": 1,
        "scaleType": "none"
      }
    },
    {
      "resourceType": "Microsoft.ApiManagement/service",
      "sku": {
        "name": "Basic"
      },
      "capacity": {
        "minimum": 1,
        "maximum": 2,
        "default": 1,
        "scaleType": "manual"
      }
    },
    {
      "resourceType": "Microsoft.ApiManagement/service",
      "sku": {
        "name": "Standard"
      },
      "capacity": {
        "minimum": 1,
        "maximum": 4,
        "default": 1,
        "scaleType": "automatic"
      }
    },
    {
      "resourceType": "Microsoft.ApiManagement/service",
      "sku": {
        "name": "Premium"
      },
      "capacity": {
        "minimum": 1,
        "maximum": 10,
        "default": 1,
        "scaleType": "automatic"
      }
    },
    {
      "resourceType": "Microsoft.ApiManagement/service",
      "sku": {
        "name": "Isolated"
      },
      "capacity": {
        "minimum": 1,
        "maximum": 1,
        "default": 1,
        "scaleType": "automatic"
      }
    }
  ],
  "nextLink": null
}

定义

名称 说明
ErrorFieldContract

错误字段协定。

ErrorResponse

错误响应。

ResourceSku

介绍可用的API 管理 SKU。

ResourceSkuCapacity

描述 SKU 的缩放信息。

ResourceSkuCapacityScaleType

适用于 SKU 的规模类型。

ResourceSkuResult

介绍可用的API 管理服务 SKU。

ResourceSkuResults

API 管理服务 SKU 操作响应。

SkuType

SKU 的名称。

ErrorFieldContract

错误字段协定。

名称 类型 说明
code

string

属性级错误代码。

message

string

属性级错误的可读表示形式。

target

string

属性名称。

ErrorResponse

错误响应。

名称 类型 说明
error.code

string

服务定义的错误代码。 此代码用作响应中指定的 HTTP 错误代码的子状态。

error.details

ErrorFieldContract[]

在发生验证错误的情况下,在请求中发送的无效字段列表。

error.message

string

错误的用户可读表示形式。

ResourceSku

介绍可用的API 管理 SKU。

名称 类型 说明
name

SkuType

SKU 的名称。

ResourceSkuCapacity

描述 SKU 的缩放信息。

名称 类型 说明
default

integer

默认容量。

maximum

integer

可设置的最大容量。

minimum

integer

最小容量。

scaleType

ResourceSkuCapacityScaleType

适用于 SKU 的规模类型。

ResourceSkuCapacityScaleType

适用于 SKU 的规模类型。

名称 类型 说明
automatic

string

支持的缩放类型自动。

manual

string

支持的缩放类型手册。

none

string

不支持缩放。

ResourceSkuResult

介绍可用的API 管理服务 SKU。

名称 类型 说明
capacity

ResourceSkuCapacity

指定API 管理单位数。

resourceType

string

SKU 适用的资源类型。

sku

ResourceSku

指定API 管理 SKU。

ResourceSkuResults

API 管理服务 SKU 操作响应。

名称 类型 说明
nextLink

string

用于提取下一页API 管理服务 SKU 的 URI。

value

ResourceSkuResult[]

可用于服务的 SKU 列表。

SkuType

SKU 的名称。

名称 类型 说明
Basic

string

Api 管理的基本 SKU。

Consumption

string

Api 管理的消耗 SKU。

Developer

string

Api 管理的开发人员 SKU。

Isolated

string

Api 管理的独立 SKU。

Premium

string

Api 管理的高级 SKU。

Standard

string

Api 管理的标准 SKU。