Private Endpoint Connections - Update
更新专用终结点连接。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}?api-version=2025-01-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
private
|
path | True |
string |
专用终结点连接的名称。 |
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 名称不区分大小写。 |
resource
|
path | True |
string minLength: 1maxLength: 63 pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ |
托管群集资源的名称。 |
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
api-version
|
query | True |
string minLength: 1 |
用于此作的 API 版本。 |
请求正文
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
properties.privateLinkServiceConnectionState | True |
有关服务使用者与提供程序之间的连接状态的信息集合。 |
|
properties.privateEndpoint |
专用终结点的资源。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
已成功更新现有的专用终结点连接。 |
|
201 Created |
已成功创建新的专用终结点连接。 |
|
Other Status Codes |
描述作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Update Private Endpoint Connection
示例请求
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/privateEndpointConnections/privateendpointconnection1?api-version=2025-01-01
{
"properties": {
"privateLinkServiceConnectionState": {
"status": "Approved"
}
}
}
示例响应
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/managedCluster/clustername1/privateEndpointConnections/privateendpointconnection1",
"name": "privateendpointconnection1",
"type": "Microsoft.Network/privateLinkServices/privateEndpointConnections",
"properties": {
"privateEndpoint": {
"id": "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Network/privateEndpoints/pe2"
},
"privateLinkServiceConnectionState": {
"status": "Approved"
},
"provisioningState": "Succeeded"
}
}
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ContainerService/managedCluster/clustername1/privateEndpointConnections/privateendpointconnection1",
"name": "privateendpointconnection1",
"type": "Microsoft.Network/privateLinkServices/privateEndpointConnections",
"properties": {
"privateEndpoint": {
"id": "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Network/privateEndpoints/pe2"
},
"privateLinkServiceConnectionState": {
"status": "Approved"
},
"provisioningState": "Succeeded"
}
}
定义
名称 | 说明 |
---|---|
Cloud |
容器服务的错误响应。 |
Cloud |
容器服务的错误响应。 |
Connection |
专用链接服务连接状态。 |
Private |
连接所属的专用终结点。 |
Private |
专用终结点连接 |
Private |
当前预配状态。 |
Private |
专用链接服务连接的状态。 |
CloudError
容器服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
有关错误的详细信息。 |
CloudErrorBody
容器服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误的标识符。 代码是固定的,旨在以编程方式使用。 |
details |
有关错误的其他详细信息的列表。 |
|
message |
string |
描述错误的消息,旨在适合在用户界面中显示。 |
target |
string |
特定错误的目标。 例如,错误属性的名称。 |
ConnectionStatus
专用链接服务连接状态。
值 | 说明 |
---|---|
Approved | |
Disconnected | |
Pending | |
Rejected |
PrivateEndpoint
连接所属的专用终结点。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
专用终结点的资源 ID |
PrivateEndpointConnection
专用终结点连接
名称 | 类型 | 说明 |
---|---|---|
id |
string |
专用终结点连接的 ID。 |
name |
string |
专用终结点连接的名称。 |
properties.privateEndpoint |
专用终结点的资源。 |
|
properties.privateLinkServiceConnectionState |
有关服务使用者与提供程序之间的连接状态的信息集合。 |
|
properties.provisioningState |
当前预配状态。 |
|
type |
string |
资源类型。 |
PrivateEndpointConnectionProvisioningState
当前预配状态。
值 | 说明 |
---|---|
Canceled | |
Creating | |
Deleting | |
Failed | |
Succeeded |
PrivateLinkServiceConnectionState
专用链接服务连接的状态。
名称 | 类型 | 说明 |
---|---|---|
description |
string |
专用链接服务连接说明。 |
status |
专用链接服务连接状态。 |