Private Link Scopes - Update Tags
更新现有的 PrivateLinkScope 标记。 若要更新其他字段,请使用 CreateOrUpdate 方法。
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}?api-version=2025-01-13
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 名称不区分大小写。 |
scope
|
path | True |
string pattern: [a-zA-Z0-9-_\.]+ |
Azure Arc PrivateLinkScope 资源的名称。 |
subscription
|
path | True |
string minLength: 1 |
目标订阅的 ID。 |
api-version
|
query | True |
string minLength: 1 |
用于此作的 API 版本。 |
请求正文
名称 | 类型 | 说明 |
---|---|---|
tags |
object |
资源标记 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
更新 Azure Arc PrivateLinkScope 的标记成功。 使用 PrivateLinkScope 对象属性的其余部分更新并返回 PrivateLinkScope 标记。 |
|
Other Status Codes |
描述作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
PrivateLinkScopeUpdateTagsOnly
示例请求
PATCH https://management.azure.com/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.HybridCompute/privateLinkScopes/my-privatelinkscope?api-version=2025-01-13
{
"tags": {
"Tag1": "Value1",
"Tag2": "Value2"
}
}
示例响应
{
"id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.hybridcompute/privateLinkScopes/my-privatelinkscope",
"name": "my-privatelinkscope",
"type": "Microsoft.HybridCompute/privateLinkScopes",
"location": "westus",
"tags": {
"Tag1": "Value1",
"Tag2": "Value2"
},
"properties": {
"privateLinkScopeId": "e5dc51d3-92ed-4d7e-947a-775ea79b4919",
"provisioningState": "Succeeded",
"publicNetworkAccess": "Disabled",
"privateEndpointConnections": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/myPrivateLinkScope/privateEndpointConnections/private-endpoint-connection-name",
"name": "private-endpoint-connection-name",
"type": "Microsoft.HybridCompute/privateLinkScopes/privateEndpointConnections",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/55555555-6666-7777-8888-999999999999/resourceGroups/Default-Network/providers/Microsoft.Network/privateEndpoints/private-endpoint-name"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Auto-approved",
"actionsRequired": "None"
}
}
}
]
}
}
定义
名称 | 说明 |
---|---|
created |
创建资源的标识的类型。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Hybrid |
Azure Arc PrivateLinkScope 定义。 |
Hybrid |
定义 Azure Arc PrivateLinkScope 资源的属性。 |
Private |
与专用链接范围关联的专用终结点连接的数据模型 |
Private |
专用终结点连接的属性。 |
Private |
连接所属的专用终结点。 |
Private |
专用终结点连接的状态。 |
Public |
用于确定 Azure Arc 代理是否可以使用公共 Azure Arc 服务终结点的网络访问策略。 默认为禁用(仅通过专用链接访问 Azure Arc 服务)。 |
system |
与创建和上次修改资源相关的元数据。 |
Tags |
只保存资源的标记的容器,允许用户更新 PrivateLinkScope 实例上的标记。 |
createdByType
创建资源的标识的类型。
值 | 说明 |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
HybridComputePrivateLinkScope
Azure Arc PrivateLinkScope 定义。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
Azure 资源 ID |
location |
string |
资源位置 |
name |
string |
Azure 资源名称 |
properties |
定义 Azure Arc PrivateLinkScope 资源的属性。 |
|
systemData |
与此资源相关的系统元数据。 |
|
tags |
object |
资源标记 |
type |
string |
Azure 资源类型 |
HybridComputePrivateLinkScopeProperties
定义 Azure Arc PrivateLinkScope 资源的属性。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
privateEndpointConnections |
关联的专用终结点连接的集合。 |
||
privateLinkScopeId |
string |
专用链接范围的 Guid ID。 |
|
provisioningState |
string |
此 PrivateLinkScope 的当前状态:是否已在已定义的资源组中预配。 用户无法更改此值,但可以从中读取此值。 值将包括预配、成功、取消和失败。 |
|
publicNetworkAccess | Disabled |
指示与专用链接范围关联的计算机是否可以使用公共 Azure Arc 服务终结点。 |
PrivateEndpointConnectionDataModel
与专用链接范围关联的专用终结点连接的数据模型
名称 | 类型 | 说明 |
---|---|---|
id |
string |
专用终结点的 ARM 资源 ID。 |
name |
string |
专用终结点的名称。 |
properties |
专用终结点连接属性。 |
|
type |
string |
Azure 资源类型 |
PrivateEndpointConnectionProperties
专用终结点连接的属性。
名称 | 类型 | 说明 |
---|---|---|
groupIds |
string[] |
组 ID 的列表。 |
privateEndpoint |
连接所属的专用终结点。 |
|
privateLinkServiceConnectionState |
专用终结点连接的连接状态。 |
|
provisioningState |
string |
专用终结点连接的状态。 |
PrivateEndpointProperty
连接所属的专用终结点。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
专用终结点的资源 ID。 |
PrivateLinkServiceConnectionStateProperty
专用终结点连接的状态。
名称 | 类型 | 说明 |
---|---|---|
actionsRequired |
string |
专用链接服务连接所需的作。 |
description |
string |
专用链接服务连接说明。 |
status |
string |
专用链接服务连接状态。 |
PublicNetworkAccessType
用于确定 Azure Arc 代理是否可以使用公共 Azure Arc 服务终结点的网络访问策略。 默认为禁用(仅通过专用链接访问 Azure Arc 服务)。
值 | 说明 |
---|---|
Disabled |
不允许 Azure Arc 代理通过公共(Internet)终结点与 Azure Arc 服务通信。 代理必须使用专用链接。 |
Enabled |
允许 Azure Arc 代理通过公共(Internet)和专用终结点与 Azure Arc 服务通信。 |
systemData
与创建和上次修改资源相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识的类型。 |
|
lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识的类型。 |
TagsResource
只保存资源的标记的容器,允许用户更新 PrivateLinkScope 实例上的标记。
名称 | 类型 | 说明 |
---|---|---|
tags |
object |
资源标记 |