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

Available Service Tiers - List By Workspace

获取工作区的可用服务层。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers?api-version=2020-08-01

URI 参数

名称 必需 类型 说明
resourceGroupName
path True

string

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

subscriptionId
path True

string

目标订阅的 ID。

workspaceName
path True

string

工作区的名称。

Regex pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$

api-version
query True

string

要用于此操作的 API 版本。

响应

名称 类型 说明
200 OK

AvailableServiceTier[]

正常响应定义。

安全性

azure_auth

Azure Active Directory OAuth2 流

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

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

AvailableServiceTiers

Sample Request

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/rg1/providers/Microsoft.OperationalInsights/workspaces/workspace1/availableServiceTiers?api-version=2020-08-01

Sample Response

[
  {
    "serviceTier": "PerNode",
    "enabled": true,
    "minimumRetention": 7,
    "maximumRetention": 30,
    "defaultRetention": 7
  },
  {
    "serviceTier": "CapacityReservation",
    "enabled": true,
    "minimumRetention": 30,
    "maximumRetention": 300,
    "defaultRetention": 30,
    "capacityReservationLevel": 200,
    "lastSkuUpdate": "2020-02-04T08:55:03.871Z"
  }
]

定义

名称 说明
AvailableServiceTier

服务层级详细信息。

SkuNameEnum

服务层级的名称。

AvailableServiceTier

服务层级详细信息。

名称 类型 说明
capacityReservationLevel

integer

容量预留级别(以每天 GB 为单位)。 为容量预留服务层级返回。

defaultRetention

integer

服务层级的默认保留期(以天为单位)。

enabled

boolean

如果为工作区启用了服务层级,则为 True。

lastSkuUpdate

string

上次更新工作区 SKU 的时间。 为容量预留服务层级返回。

maximumRetention

integer

服务层级的最大保留期(以天为单位)。

minimumRetention

integer

服务层级的最小保留期(以天为单位)。

serviceTier

SkuNameEnum

服务层级的名称。

SkuNameEnum

服务层级的名称。

名称 类型 说明
CapacityReservation

string

Free

string

PerGB2018

string

PerNode

string

Premium

string

Standalone

string

Standard

string