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

Instance Pools - Update

更新实例池。

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}?api-version=2023-08-01

URI 参数

名称 必需 类型 说明
instancePoolName
path True

string

要更新的实例池的名称。

resourceGroupName
path True

string

包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。

subscriptionId
path True

string

标识 Azure 订阅的订阅 ID。

api-version
query True

string

要用于请求的 API 版本。

请求正文

名称 必需 类型 说明
properties.licenseType True

InstancePoolLicenseType

许可证类型。 可能的值为“LicenseIncluded”(包括 SQL 许可证的价格)和“BasePrice”(不含 SQL 许可证价格)。

properties.subnetId True

string

要在其中放置此实例池的子网的资源 ID。

properties.vCores True

integer (int32)

属于此实例池的 vCore 计数。

properties.maintenanceConfigurationId

string (arm-id)

指定要应用于此托管实例的维护配置 ID。

sku

Sku

SKU 的名称和层。

tags

object

资源标记。

响应

名称 类型 说明
200 OK

InstancePool

已成功更新实例池。

202 Accepted

接受

标头

Location: string

Other Status Codes

ErrorResponse

错误响应: ***

  • 400 MismatchingResourceGroupNameWithUrl - 提供的资源组名称与 URL 中的名称不匹配。

  • 400 MismatchingSubscriptionWithUrl - 提供的订阅与 URL 中的订阅不匹配。

  • 400 InvalidMinimalTlsVersion - 最低 TLS 版本无效。

  • 400 InvalidResourceId - 资源标识符无效。

  • 400 InvalidParameterValue - 为参数提供无效值。

  • 400 DeleteOfManagedInstanceIsDisabled - 禁用托管实例的删除作。

  • 400 CustomMaintenanceWindowIsDisabled - 未启用自定义维护时段。

  • 400 MICantBeMovedFromOrToInstancePool - 无法将现有托管实例移动到托管实例池。

  • 400 InvalidResourceRequestBody - 请求正文中的资源或资源属性为空或无效。

  • 404 OperationIdNotFound - ID作不存在。

  • 409 CannotCancelOperation - 管理作处于无法取消的状态。

  • 409 OperationCancelled -作已被用户取消。

  • 409 OperationInterrupted - 无法完成资源上的作,因为它被同一资源上的另一个作中断。

  • 429 SubscriptionTooManyCreateUpdateRequests - 请求超出可用资源可以处理的最大请求数。

  • 429 SubscriptionTooManyRequests - 请求超出可用资源可以处理的最大请求数。

  • 500 OperationTimedOut -作超时并自动回滚。 请重试该作。

  • 503 TooManyRequests - 请求超出可用资源可以处理的最大请求数。

示例

Patch an instance pool

示例请求

PATCH https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP?api-version=2023-08-01

{
  "tags": {
    "x": "y"
  }
}

示例响应

{
  "sku": {
    "name": "GP_Gen5",
    "tier": "GeneralPurpose",
    "family": "Gen5"
  },
  "properties": {
    "subnetId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Network/virtualNetwork/myvnet/subnets/mysubnet1",
    "vCores": 8,
    "licenseType": "LicenseIncluded",
    "maintenanceConfigurationId": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_JapanEast_MI_1"
  },
  "location": "japaneast",
  "tags": {
    "x": "y"
  },
  "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/instancePools/testIP",
  "name": "testIP",
  "type": "Microsoft.Sql/instancePools"
}
Location: https://management.azure.com/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/japaneast/instancepoolazureasyncoperation/00000000-1111-2222-3333-444444444444?api-version=2022-11-01-preview

定义

名称 说明
ErrorAdditionalInfo

资源管理错误附加信息。

ErrorDetail

错误详细信息。

ErrorResponse

错误响应

InstancePool

Azure SQL 实例池。

InstancePoolLicenseType

许可证类型。 可能的值为“LicenseIncluded”(包括 SQL 许可证的价格)和“BasePrice”(不含 SQL 许可证价格)。

InstancePoolUpdate

实例池的更新。

Sku

ARM 资源 SKU。

ErrorAdditionalInfo

资源管理错误附加信息。

名称 类型 说明
info

object

其他信息。

type

string

其他信息类型。

ErrorDetail

错误详细信息。

名称 类型 说明
additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误代码。

details

ErrorDetail[]

错误详细信息。

message

string

错误消息。

target

string

错误目标。

ErrorResponse

错误响应

名称 类型 说明
error

ErrorDetail

错误对象。

InstancePool

Azure SQL 实例池。

名称 类型 说明
id

string

资源 ID。

location

string

资源位置。

name

string

资源名称。

properties.dnsZone

string

托管实例池位于的 Dns 区域。

properties.licenseType

InstancePoolLicenseType

许可证类型。 可能的值为“LicenseIncluded”(包括 SQL 许可证的价格)和“BasePrice”(不含 SQL 许可证价格)。

properties.maintenanceConfigurationId

string (arm-id)

指定要应用于此托管实例的维护配置 ID。

properties.subnetId

string

要在其中放置此实例池的子网的资源 ID。

properties.vCores

integer (int32)

属于此实例池的 vCore 计数。

sku

Sku

SKU 的名称和层。

tags

object

资源标记。

type

string

资源类型。

InstancePoolLicenseType

许可证类型。 可能的值为“LicenseIncluded”(包括 SQL 许可证的价格)和“BasePrice”(不含 SQL 许可证价格)。

说明
LicenseIncluded
BasePrice

InstancePoolUpdate

实例池的更新。

名称 类型 说明
properties.dnsZone

string

托管实例池位于的 Dns 区域。

properties.licenseType

InstancePoolLicenseType

许可证类型。 可能的值为“LicenseIncluded”(包括 SQL 许可证的价格)和“BasePrice”(不含 SQL 许可证价格)。

properties.maintenanceConfigurationId

string (arm-id)

指定要应用于此托管实例的维护配置 ID。

properties.subnetId

string

要在其中放置此实例池的子网的资源 ID。

properties.vCores

integer (int32)

属于此实例池的 vCore 计数。

sku

Sku

SKU 的名称和层。

tags

object

资源标记。

Sku

ARM 资源 SKU。

名称 类型 说明
capacity

integer (int32)

特定 SKU 的容量。

family

string

如果服务具有不同代的硬件(对于同一 SKU,则可以在此处捕获)。

name

string

SKU 的名称,通常为字母 + 数字代码,例如 P3。

size

string

特定 SKU 的大小

tier

string

特定 SKU 的层或版本,例如基本 SKU、高级版。