Virtual Endpoints - Update
更新灵活服务器的一对虚拟终结点。
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/virtualendpoints/{virtualEndpointName}?api-version=2024-08-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 此名称不区分大小写。 |
server
|
path | True |
string minLength: 3maxLength: 63 pattern: ^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)* |
服务器的名称。 |
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
virtual
|
path | True |
string minLength: 3maxLength: 63 pattern: ^[A-Za-z0-9][A-Za-z0-9-]{0,62}(? |
虚拟终端节点的基本名称。 |
api-version
|
query | True |
string minLength: 1 |
用于此操作的 API 版本。 |
请求正文
名称 | 类型 | 说明 |
---|---|---|
properties.endpointType |
虚拟终端节点的终端节点类型。 |
|
properties.members |
string[] |
其中一个虚拟终结点可以引用的灵活服务器列表。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
好的 |
|
202 Accepted |
已接受 标头 Location: string |
|
Other Status Codes |
描述作失败的原因的错误响应。 |
安全性
azure_auth
Microsoft Entra OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Update a pair of virtual endpoints for a flexible server.
示例请求
PATCH https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver/virtualendpoints/examplebasename?api-version=2024-08-01
{
"properties": {
"endpointType": "ReadWrite",
"members": [
"exampleprimaryserver"
]
}
}
示例响应
{
"properties": {
"endpointType": "ReadWrite",
"members": [
"exampleprimaryserver"
],
"virtualEndpoints": [
"examplebasename.reader.postgres.database.azure.com",
"examplebasename.writer.postgres.database.azure.com"
]
},
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/exampleresourcegroup/providers/Microsoft.DBforPostgreSQL/flexibleServers/exampleserver/virtualEndpoints/examplebasename",
"name": "examplebasename",
"type": "Microsoft.DBforPostgreSQL/flexibleServers/virtualEndpoints"
}
Azure-AsyncOperation: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/azureAsyncOperation/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2024-08-01
Location: https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforPostgreSQL/locations/southeastasia/operationResults/e276a03a-1770-4549-86f5-0edffae8997c?api-version=2024-08-01
定义
名称 | 说明 |
---|---|
created |
创建资源的标识的类型。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
system |
与创建和上次修改资源相关的元数据。 |
Virtual |
灵活服务器的一对虚拟终结点。 |
Virtual |
灵活服务器的一对虚拟终结点。 |
Virtual |
虚拟终端节点的终端节点类型。 |
createdByType
创建资源的标识的类型。
值 | 说明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
systemData
与创建和上次修改资源相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识的类型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识的类型。 |
VirtualEndpointResource
灵活服务器的一对虚拟终结点。
名称 | 类型 | 说明 |
---|---|---|
id |
string (arm-id) |
资源的完全限定资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
name |
string |
资源的名称 |
properties.endpointType |
虚拟终端节点的终端节点类型。 |
|
properties.members |
string[] |
其中一个虚拟终结点可以引用的灵活服务器列表。 |
properties.virtualEndpoints |
string[] |
灵活服务器的虚拟终结点列表。 |
systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
type |
string |
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
VirtualEndpointResourceForPatch
灵活服务器的一对虚拟终结点。
名称 | 类型 | 说明 |
---|---|---|
properties.endpointType |
虚拟终端节点的终端节点类型。 |
|
properties.members |
string[] |
其中一个虚拟终结点可以引用的灵活服务器列表。 |
properties.virtualEndpoints |
string[] |
灵活服务器的虚拟终结点列表。 |
VirtualEndpointType
虚拟终端节点的终端节点类型。
值 | 说明 |
---|---|
ReadWrite |