共用方式為


Private Endpoint Connections - Update

更新私人端點連線。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}?api-version=2026-01-01

URI 參數

名稱 位於 必要 類型 Description
privateEndpointConnectionName
path True

string

私人端點連線的名稱。

resourceGroupName
path True

string

minLength: 1
maxLength: 90

資源群組的名稱。 名稱不區分大小寫。

resourceName
path True

string

minLength: 1
maxLength: 63
pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$

受管理叢集資源的名稱。

subscriptionId
path True

string (uuid)

目標訂用帳戶的標識碼。 此值必須是 UUID。

api-version
query True

string

minLength: 1

用於此作業的 API 版本。

要求本文

名稱 必要 類型 Description
properties.privateLinkServiceConnectionState True

PrivateLinkServiceConnectionState

關於服務 consumer 與提供者之間連結狀態的資訊彙集。

properties.privateEndpoint

PrivateEndpoint

私人端點的資源。

回應

名稱 類型 Description
200 OK

PrivateEndpointConnection

資源 'PrivateEndpointConnection' 更新作業成功

201 Created

PrivateEndpointConnection

資源 'PrivateEndpointConnection' 建立作業成功

Other Status Codes

ErrorResponse

未預期的錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow.

類型: oauth2
Flow: implicit
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize

範圍

名稱 Description
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=2026-01-01

{
  "properties": {
    "privateLinkServiceConnectionState": {
      "status": "Approved"
    }
  }
}

範例回覆

{
  "name": "privateendpointconnection1",
  "type": "Microsoft.Network/privateLinkServices/privateEndpointConnections",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedCluster/clustername1/privateEndpointConnections/privateendpointconnection1",
  "properties": {
    "privateEndpoint": {
      "id": "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Network/privateEndpoints/pe2"
    },
    "privateLinkServiceConnectionState": {
      "status": "Approved"
    },
    "provisioningState": "Succeeded"
  }
}
{
  "name": "privateendpointconnection1",
  "type": "Microsoft.Network/privateLinkServices/privateEndpointConnections",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedCluster/clustername1/privateEndpointConnections/privateendpointconnection1",
  "properties": {
    "privateEndpoint": {
      "id": "/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Network/privateEndpoints/pe2"
    },
    "privateLinkServiceConnectionState": {
      "status": "Approved"
    },
    "provisioningState": "Succeeded"
  }
}

定義

名稱 Description
ConnectionStatus

私人鏈接服務連線狀態。

createdByType

建立資源的身分識別類型。

ErrorAdditionalInfo

資源管理錯誤其他資訊。

ErrorDetail

錯誤詳細數據。

ErrorResponse

錯誤回應

PrivateEndpoint

線上所屬的私人端點。

PrivateEndpointConnection

私人端點連線

PrivateEndpointConnectionProvisioningState

目前的布建狀態。

PrivateLinkServiceConnectionState

私人鏈接服務連線的狀態。

systemData

與建立和上次修改資源相關的元數據。

ConnectionStatus

私人鏈接服務連線狀態。

Description
Pending

連線正在等待批准。

Approved

連線已通過。

Rejected

連線被拒。

Disconnected

連線已斷線。

createdByType

建立資源的身分識別類型。

Description
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

資源管理錯誤其他資訊。

名稱 類型 Description
info

object

其他資訊。

type

string

其他信息類型。

ErrorDetail

錯誤詳細數據。

名稱 類型 Description
additionalInfo

ErrorAdditionalInfo[]

錯誤其他資訊。

code

string

錯誤碼。

details

ErrorDetail[]

錯誤詳情

message

string

錯誤訊息。

target

string

錯誤目標。

ErrorResponse

錯誤回應

名稱 類型 Description
error

ErrorDetail

error 物件。

PrivateEndpoint

線上所屬的私人端點。

名稱 類型 Description
id

string

私人端點的資源標識碼

PrivateEndpointConnection

私人端點連線

名稱 類型 Description
id

string (arm-id)

資源的完整資源標識碼。 例如 “/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}”

name

string

資源的名稱

properties.privateEndpoint

PrivateEndpoint

私人端點的資源。

properties.privateLinkServiceConnectionState

PrivateLinkServiceConnectionState

關於服務 consumer 與提供者之間連結狀態的資訊彙集。

properties.provisioningState

PrivateEndpointConnectionProvisioningState

目前的布建狀態。

systemData

systemData

Azure Resource Manager 包含 createdBy 與 modifiedBy 資訊的元資料。

type

string

資源的類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts”

PrivateEndpointConnectionProvisioningState

目前的布建狀態。

Description
Canceled

私有端點連線配置被取消。

Creating

私有端點連線正在建立中。

Deleting

私人端點連線正在被刪除。

Failed

私有端點連線配置失敗。

Succeeded

私有端點連線配置成功。

PrivateLinkServiceConnectionState

私人鏈接服務連線的狀態。

名稱 類型 Description
description

string

私人鏈接服務連線描述。

status

ConnectionStatus

私人鏈接服務連線狀態。

systemData

與建立和上次修改資源相關的元數據。

名稱 類型 Description
createdAt

string (date-time)

資源建立的時間戳(UTC)。

createdBy

string

建立資源的身分識別。

createdByType

createdByType

建立資源的身分識別類型。

lastModifiedAt

string (date-time)

上次修改的資源時間戳 (UTC)

lastModifiedBy

string

上次修改資源的身分識別。

lastModifiedByType

createdByType

上次修改資源的身分識別類型。