Postgres Instances - Update
更新 postgres 实例资源
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureArcData/postgresInstances/{postgresInstanceName}?api-version=2026-01-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
postgres
|
path | True |
string |
Postgres 实例名称 |
|
resource
|
path | True |
string |
Azure 资源组的名称 |
|
subscription
|
path | True |
string |
Azure订阅的ID |
|
api-version
|
query | True |
string |
请求所需的API版本 |
请求正文
| 名称 | 类型 | 说明 |
|---|---|---|
| properties |
Postgres 实例属性。 |
|
| tags |
object |
资源标记。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
OK |
|
| Other Status Codes |
错误响应: *** |
示例
Updates a postgres Instances tags.
示例请求
PATCH https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/postgresInstances/testpostgresInstance?api-version=2026-01-01
{
"tags": {
"mytag": "myval"
}
}
示例响应
{
"properties": {
"basicLoginInformation": {
"username": "username"
}
},
"location": "northeurope",
"extendedLocation": {
"type": "CustomLocation",
"name": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/arclocation"
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2020-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-01-02T17:18:19.1234567Z"
},
"tags": {
"mytag": "myval"
},
"sku": {
"name": "default",
"tier": "Hyperscale",
"dev": true
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureArcData/PostgresInstance/testpostgresInstance",
"name": "testpostgresInstance",
"type": "Microsoft.AzureArcData/PostgresInstance"
}
定义
| 名称 | 说明 |
|---|---|
|
Basic |
基本登录身份验证的用户名和密码。 |
|
created |
创建资源的标识的类型。 |
|
Error |
资源管理错误附加信息。 |
|
Error |
错误详细信息。 |
|
Error |
错误响应 |
|
Extended |
扩展位置的复杂类型。 |
|
Extended |
扩展位置的类型。 |
|
Postgres |
一个Postgres实例。 |
|
Postgres |
Postgres 实例属性。 |
|
Postgres |
The resource model definition representing SKU for Azure Database for PostgresSQL - Azure Arc |
|
Postgres |
如果服务具有多个层,则资源提供程序必须实现此字段。 |
|
Postgres |
Postgres 实例的更新。 |
|
system |
与创建和上次修改资源相关的元数据。 |
BasicLoginInformation
基本登录身份验证的用户名和密码。
| 名称 | 类型 | 说明 |
|---|---|---|
| password |
string |
登录密码。 |
| username |
string |
登录用户名。 |
createdByType
创建资源的标识的类型。
| 值 | 说明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorAdditionalInfo
资源管理错误附加信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| info |
object |
其他信息。 |
| type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalInfo |
错误附加信息。 |
|
| code |
string |
错误代码。 |
| details |
错误详细信息。 |
|
| message |
string |
错误消息。 |
| target |
string |
错误目标。 |
ErrorResponse
错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
ExtendedLocation
扩展位置的复杂类型。
| 名称 | 类型 | 说明 |
|---|---|---|
| name |
string |
扩展位置的名称。 |
| type |
扩展位置的类型。 |
ExtendedLocationTypes
扩展位置的类型。
| 值 | 说明 |
|---|---|
| CustomLocation |
PostgresInstance
一个Postgres实例。
| 名称 | 类型 | 说明 |
|---|---|---|
| extendedLocation |
资源的 extendedLocation。 |
|
| id |
string |
资源的完全限定的资源 ID。 示例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| location |
string |
资源所在的地理位置 |
| name |
string |
资源的名称 |
| properties |
null |
|
| sku |
资源 SKU。 |
|
| systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
| tags |
object |
资源标记。 |
| type |
string |
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
PostgresInstanceProperties
Postgres 实例属性。
| 名称 | 类型 | 说明 |
|---|---|---|
| admin |
string |
实例管理员 |
| basicLoginInformation |
基本身份验证的用户名和密码。 |
|
| dataControllerId |
string |
数据控制器 ID |
| k8sRaw |
object |
原始 kubernetes 信息 |
| lastUploadedDate |
string (date-time) |
Kubernetes 群集的上次上传日期。 默认为当前日期时间 |
| provisioningState |
string |
这是支持 Azure Arc 的 PostgreSQL 实例的配置状态。 |
PostgresInstanceSku
The resource model definition representing SKU for Azure Database for PostgresSQL - Azure Arc
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| capacity |
integer (int32) |
如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果资源无法横向扩展/缩小,则可能会省略此范围。 |
|
| dev |
boolean |
True |
是否启用开发/测试。 当开发字段设置为 true 时,资源用于开发/测试目的。 |
| family |
string |
如果服务具有不同代的硬件(对于同一 SKU,则可以在此处捕获)。 |
|
| name |
string |
SKU 的名称。 它通常是字母+数字代码 |
|
| size |
string |
SKU 大小。 当名称字段是层和其他一些值的组合时,这将是独立的代码。 |
|
| tier | Hyperscale |
如果服务具有多个层,则资源提供程序必须实现此字段。 |
PostgresInstanceSkuTier
如果服务具有多个层,则资源提供程序必须实现此字段。
| 值 | 说明 |
|---|---|
| Hyperscale |
PostgresInstanceUpdate
Postgres 实例的更新。
| 名称 | 类型 | 说明 |
|---|---|---|
| properties |
Postgres 实例属性。 |
|
| tags |
object |
资源标记。 |
systemData
与创建和上次修改资源相关的元数据。
| 名称 | 类型 | 说明 |
|---|---|---|
| createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
| createdBy |
string |
创建资源的标识。 |
| createdByType |
创建资源的标识的类型。 |
|
| lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
| lastModifiedBy |
string |
上次修改资源的标识。 |
| lastModifiedByType |
上次修改资源的标识的类型。 |