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

Location Based Performance Tier - List

列出给定订阅中指定位置的所有性能层。

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DBforPostgreSQL/locations/{locationName}/performanceTiers?api-version=2017-12-01

URI 参数

名称 必需 类型 说明
locationName
path True

string

位置的名称。

subscriptionId
path True

string

目标订阅的 ID。

api-version
query True

string

要用于此操作的 API 版本。

响应

名称 类型 说明
200 OK

PerformanceTierListResult

确定

Other Status Codes

CloudError

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

安全性

azure_auth

Azure Active Directory OAuth2 流

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

作用域

名称 说明
user_impersonation 模拟用户帐户

示例

PerformanceTiersList

示例请求

GET https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/WestUS/performanceTiers?api-version=2017-12-01

示例响应

{
  "value": [
    {
      "id": "Basic",
      "minStorageMB": 5120,
      "maxStorageMB": 2097152,
      "minBackupRetentionDays": 7,
      "maxBackupRetentionDays": 35,
      "minLargeStorageMB": 0,
      "maxLargeStorageMB": 0,
      "serviceLevelObjectives": [
        {
          "edition": "Basic",
          "vCore": 1,
          "hardwareGeneration": "Gen5",
          "minStorageMB": 5120,
          "maxStorageMB": 1048576,
          "minBackupRetentionDays": 7,
          "maxBackupRetentionDays": 35,
          "id": "B_Gen5_1"
        },
        {
          "edition": "Basic",
          "vCore": 2,
          "hardwareGeneration": "Gen5",
          "minStorageMB": 5120,
          "maxStorageMB": 1048576,
          "minBackupRetentionDays": 7,
          "maxBackupRetentionDays": 35,
          "id": "B_Gen5_2"
        }
      ]
    },
    {
      "id": "GeneralPurpose",
      "minStorageMB": 5120,
      "maxStorageMB": 16777216,
      "minBackupRetentionDays": 7,
      "maxBackupRetentionDays": 35,
      "minLargeStorageMB": 0,
      "maxLargeStorageMB": 16777216,
      "serviceLevelObjectives": [
        {
          "edition": "GeneralPurpose",
          "vCore": 2,
          "hardwareGeneration": "Gen5",
          "minStorageMB": 5120,
          "maxStorageMB": 2097152,
          "minBackupRetentionDays": 7,
          "maxBackupRetentionDays": 35,
          "id": "GP_Gen5_2"
        },
        {
          "edition": "GeneralPurpose",
          "vCore": 4,
          "hardwareGeneration": "Gen5",
          "minStorageMB": 5120,
          "maxStorageMB": 2097152,
          "minBackupRetentionDays": 7,
          "maxBackupRetentionDays": 35,
          "id": "GP_Gen5_4"
        },
        {
          "edition": "GeneralPurpose",
          "vCore": 8,
          "hardwareGeneration": "Gen5",
          "minStorageMB": 5120,
          "maxStorageMB": 2097152,
          "minBackupRetentionDays": 7,
          "maxBackupRetentionDays": 35,
          "id": "GP_Gen5_8"
        },
        {
          "edition": "GeneralPurpose",
          "vCore": 16,
          "hardwareGeneration": "Gen5",
          "minStorageMB": 5120,
          "maxStorageMB": 2097152,
          "minBackupRetentionDays": 7,
          "maxBackupRetentionDays": 35,
          "id": "GP_Gen5_16"
        },
        {
          "edition": "GeneralPurpose",
          "vCore": 32,
          "hardwareGeneration": "Gen5",
          "minStorageMB": 5120,
          "maxStorageMB": 2097152,
          "minBackupRetentionDays": 7,
          "maxBackupRetentionDays": 35,
          "id": "GP_Gen5_32"
        },
        {
          "edition": "GeneralPurpose",
          "vCore": 32,
          "hardwareGeneration": "Gen5",
          "minStorageMB": 5120,
          "maxStorageMB": 2097152,
          "minBackupRetentionDays": 7,
          "maxBackupRetentionDays": 35,
          "id": "GP_Gen5_64"
        }
      ]
    },
    {
      "id": "MemoryOptimized",
      "minStorageMB": 5120,
      "maxStorageMB": 16777216,
      "minBackupRetentionDays": 7,
      "maxBackupRetentionDays": 35,
      "minLargeStorageMB": 0,
      "maxLargeStorageMB": 16777216,
      "serviceLevelObjectives": [
        {
          "edition": "MemoryOptimized",
          "vCore": 2,
          "hardwareGeneration": "Gen5",
          "minStorageMB": 5120,
          "maxStorageMB": 2097152,
          "minBackupRetentionDays": 7,
          "maxBackupRetentionDays": 35,
          "id": "MO_Gen5_2"
        },
        {
          "edition": "MemoryOptimized",
          "vCore": 4,
          "hardwareGeneration": "Gen5",
          "minStorageMB": 5120,
          "maxStorageMB": 2097152,
          "minBackupRetentionDays": 7,
          "maxBackupRetentionDays": 35,
          "id": "MO_Gen5_4"
        },
        {
          "edition": "MemoryOptimized",
          "vCore": 8,
          "hardwareGeneration": "Gen5",
          "minStorageMB": 5120,
          "maxStorageMB": 2097152,
          "minBackupRetentionDays": 7,
          "maxBackupRetentionDays": 35,
          "id": "MO_Gen5_8"
        },
        {
          "edition": "MemoryOptimized",
          "vCore": 16,
          "hardwareGeneration": "Gen5",
          "minStorageMB": 5120,
          "maxStorageMB": 2097152,
          "minBackupRetentionDays": 7,
          "maxBackupRetentionDays": 35,
          "id": "MO_Gen5_16"
        },
        {
          "edition": "MemoryOptimized",
          "vCore": 32,
          "hardwareGeneration": "Gen5",
          "minStorageMB": 5120,
          "maxStorageMB": 2097152,
          "minBackupRetentionDays": 7,
          "maxBackupRetentionDays": 35,
          "id": "MO_Gen5_32"
        }
      ]
    }
  ]
}

定义

名称 说明
CloudError

Batch 服务的错误响应。

ErrorAdditionalInfo

资源管理错误附加信息。

ErrorResponse

错误响应

PerformanceTierListResult

性能层列表。

PerformanceTierProperties

性能层属性

PerformanceTierServiceLevelObjectives

性能层的服务级别目标。

CloudError

Batch 服务的错误响应。

名称 类型 说明
error

ErrorResponse

错误响应
对所有 Azure 资源管理器 API 的常见错误响应,可返回失败操作的错误详细信息。 (这也遵循 OData 错误响应格式。)

ErrorAdditionalInfo

资源管理错误附加信息。

名称 类型 说明
info

object

其他信息。

type

string

其他信息类型。

ErrorResponse

错误响应

名称 类型 说明
additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误代码。

details

ErrorResponse[]

错误详细信息。

message

string

错误消息。

target

string

错误目标。

PerformanceTierListResult

性能层列表。

名称 类型 说明
value

PerformanceTierProperties[]

性能层列表

PerformanceTierProperties

性能层属性

名称 类型 说明
id

string

性能层的 ID。

maxBackupRetentionDays

integer

性能层版本的最大备份保留期(以天为单位)

maxLargeStorageMB

integer

服务器允许的最大存储。

maxStorageMB

integer

服务器允许的最大存储。

minBackupRetentionDays

integer

性能层版本的最小备份保留期(以天为单位)

minLargeStorageMB

integer

服务器允许的最大存储。

minStorageMB

integer

服务器允许的最大存储。

serviceLevelObjectives

PerformanceTierServiceLevelObjectives[]

与性能层关联的服务级别目标

PerformanceTierServiceLevelObjectives

性能层的服务级别目标。

名称 类型 说明
edition

string

性能层的版本。

hardwareGeneration

string

与服务级别目标关联的硬件生成

id

string

服务级别目标的 ID。

maxBackupRetentionDays

integer

性能层版本的最大备份保留期(以天为单位)

maxStorageMB

integer

服务器允许的最大存储。

minBackupRetentionDays

integer

性能层版本的最小备份保留期(以天为单位)

minStorageMB

integer

服务器允许的最大存储。

vCore

integer

与服务级别目标关联的 vCore