Private Endpoint Connections - Create Or Update
手动批准或拒绝专用终结点连接。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}?api-version=2021-06-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
cluster
|
path | True |
string |
群集的名称。 |
|
private
|
path | True |
string |
专用终结点连接的名称。 |
|
resource
|
path | True |
string |
资源组的名称。 |
|
subscription
|
path | True |
string |
唯一标识Microsoft Azure 订阅的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
|
api-version
|
query | True |
string |
HDInsight 客户端 API 版本。 |
请求正文
| 名称 | 必需 | 类型 | 说明 |
|---|---|---|---|
| properties.privateLinkServiceConnectionState | True |
专用链接服务连接状态。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
确定响应定义。 |
|
| 201 Created |
已创建响应定义 |
|
| Other Status Codes |
描述作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
Approve a private endpoint connection manually.
示例请求
PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HDInsight/clusters/cluster1/privateEndpointConnections/testprivateep.b3bf5fed-9b12-4560-b7d0-2abe1bba07e2?api-version=2021-06-01
{
"properties": {
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "update it from pending to approved.",
"actionsRequired": "None"
}
}
}
示例响应
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HDInsight/clusters/cluster1/privateEndpointConnections/testprivateep.b3bf5fed-9b12-4560-b7d0-2abe1bba07e2",
"name": "testprivateep.b3bf5fed-9b12-4560-b7d0-2abe1bba07e2",
"type": "Microsoft.HDInsight/clusters/privateEndpointConnections",
"properties": {
"privateEndpoint": {
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/privateEndpoints/testprivateep"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "update it from pending to approved.",
"actionsRequired": "None"
},
"linkIdentifier": "620815036",
"provisioningState": "Succeeded"
}
}
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HDInsight/clusters/cluster1/privateEndpointConnections/testprivateep.b3bf5fed-9b12-4560-b7d0-2abe1bba07e2",
"name": "testprivateep.b3bf5fed-9b12-4560-b7d0-2abe1bba07e2",
"type": "Microsoft.HDInsight/clusters/privateEndpointConnections",
"properties": {
"privateEndpoint": {
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/privateEndpoints/testprivateep"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "update it from pending to approved.",
"actionsRequired": "None"
},
"linkIdentifier": "620815036",
"provisioningState": "Succeeded"
}
}
定义
| 名称 | 说明 |
|---|---|
|
created |
创建资源的标识的类型。 |
|
Error |
描述错误响应的格式。 |
|
Private |
专用终结点。 |
|
Private |
专用终结点连接。 |
|
Private |
预配状态,仅出现在响应中。 |
|
Private |
专用链接服务连接状态。 |
|
Private |
具体的专用链接服务连接。 |
|
system |
与创建和上次修改资源相关的元数据。 |
createdByType
创建资源的标识的类型。
| 值 | 说明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorResponse
描述错误响应的格式。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
错误代码 |
| message |
string |
指示作失败的原因的错误消息。 |
PrivateEndpoint
专用终结点。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
专用终结点 ID。 |
PrivateEndpointConnection
专用终结点连接。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
资源的完全限定资源 ID。 示例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| name |
string |
资源的名称 |
| properties.linkIdentifier |
string |
链接标识符。 |
| properties.privateEndpoint |
专用终结点连接的专用终结点 |
|
| properties.privateLinkServiceConnectionState |
专用链接服务连接状态。 |
|
| properties.provisioningState |
预配状态,仅出现在响应中。 |
|
| systemData |
与创建和上次修改资源相关的元数据。 |
|
| type |
string |
资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
PrivateEndpointConnectionProvisioningState
预配状态,仅出现在响应中。
| 值 | 说明 |
|---|---|
| InProgress | |
| Updating | |
| Failed | |
| Succeeded | |
| Canceled | |
| Deleting |
PrivateLinkServiceConnectionState
专用链接服务连接状态。
| 名称 | 类型 | 说明 |
|---|---|---|
| actionsRequired |
string |
是否有进一步的操作。 |
| description |
string |
状态的可选说明。 |
| status |
具体的专用链接服务连接。 |
PrivateLinkServiceConnectionStatus
具体的专用链接服务连接。
| 值 | 说明 |
|---|---|
| Approved | |
| Rejected | |
| Pending | |
| Removed |
systemData
与创建和上次修改资源相关的元数据。
| 名称 | 类型 | 说明 |
|---|---|---|
| createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
| createdBy |
string |
创建资源的标识。 |
| createdByType |
创建资源的标识的类型。 |
|
| lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
| lastModifiedBy |
string |
上次修改资源的标识。 |
| lastModifiedByType |
上次修改资源的标识的类型。 |