你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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 参数

名称 必需 类型 说明
resourceGroupName
path True

string

minLength: 1
maxLength: 90

资源组的名称。 名称不区分大小写。

scopeName
path True

string

pattern: [a-zA-Z0-9-_\.]+

Azure Arc PrivateLinkScope 资源的名称。

subscriptionId
path True

string

minLength: 1

目标订阅的 ID。

api-version
query True

string

minLength: 1

用于此作的 API 版本。

请求正文

名称 类型 说明
tags

object

资源标记

响应

名称 类型 说明
200 OK

HybridComputePrivateLinkScope

更新 Azure Arc PrivateLinkScope 的标记成功。 使用 PrivateLinkScope 对象属性的其余部分更新并返回 PrivateLinkScope 标记。

Other Status Codes

ErrorResponse

描述作失败的原因的错误响应。

安全性

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"
          }
        }
      }
    ]
  }
}

定义

名称 说明
createdByType

创建资源的标识的类型。

ErrorAdditionalInfo

资源管理错误附加信息。

ErrorDetail

错误详细信息。

ErrorResponse

错误响应

HybridComputePrivateLinkScope

Azure Arc PrivateLinkScope 定义。

HybridComputePrivateLinkScopeProperties

定义 Azure Arc PrivateLinkScope 资源的属性。

PrivateEndpointConnectionDataModel

与专用链接范围关联的专用终结点连接的数据模型

PrivateEndpointConnectionProperties

专用终结点连接的属性。

PrivateEndpointProperty

连接所属的专用终结点。

PrivateLinkServiceConnectionStateProperty

专用终结点连接的状态。

PublicNetworkAccessType

用于确定 Azure Arc 代理是否可以使用公共 Azure Arc 服务终结点的网络访问策略。 默认为禁用(仅通过专用链接访问 Azure Arc 服务)。

systemData

与创建和上次修改资源相关的元数据。

TagsResource

只保存资源的标记的容器,允许用户更新 PrivateLinkScope 实例上的标记。

createdByType

创建资源的标识的类型。

说明
Application
Key
ManagedIdentity
User

ErrorAdditionalInfo

资源管理错误附加信息。

名称 类型 说明
info

object

其他信息。

type

string

其他信息类型。

ErrorDetail

错误详细信息。

名称 类型 说明
additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误代码。

details

ErrorDetail[]

错误详细信息。

message

string

错误消息。

target

string

错误目标。

ErrorResponse

错误响应

名称 类型 说明
error

ErrorDetail

错误对象。

HybridComputePrivateLinkScope

Azure Arc PrivateLinkScope 定义。

名称 类型 说明
id

string

Azure 资源 ID

location

string

资源位置

name

string

Azure 资源名称

properties

HybridComputePrivateLinkScopeProperties

定义 Azure Arc PrivateLinkScope 资源的属性。

systemData

systemData

与此资源相关的系统元数据。

tags

object

资源标记

type

string

Azure 资源类型

HybridComputePrivateLinkScopeProperties

定义 Azure Arc PrivateLinkScope 资源的属性。

名称 类型 默认值 说明
privateEndpointConnections

PrivateEndpointConnectionDataModel[]

关联的专用终结点连接的集合。

privateLinkScopeId

string

专用链接范围的 Guid ID。

provisioningState

string

此 PrivateLinkScope 的当前状态:是否已在已定义的资源组中预配。 用户无法更改此值,但可以从中读取此值。 值将包括预配、成功、取消和失败。

publicNetworkAccess

PublicNetworkAccessType

Disabled

指示与专用链接范围关联的计算机是否可以使用公共 Azure Arc 服务终结点。

PrivateEndpointConnectionDataModel

与专用链接范围关联的专用终结点连接的数据模型

名称 类型 说明
id

string

专用终结点的 ARM 资源 ID。

name

string

专用终结点的名称。

properties

PrivateEndpointConnectionProperties

专用终结点连接属性。

type

string

Azure 资源类型

PrivateEndpointConnectionProperties

专用终结点连接的属性。

名称 类型 说明
groupIds

string[]

组 ID 的列表。

privateEndpoint

PrivateEndpointProperty

连接所属的专用终结点。

privateLinkServiceConnectionState

PrivateLinkServiceConnectionStateProperty

专用终结点连接的连接状态。

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

createdByType

创建资源的标识的类型。

lastModifiedAt

string (date-time)

上次修改的资源时间戳(UTC)

lastModifiedBy

string

上次修改资源的标识。

lastModifiedByType

createdByType

上次修改资源的标识的类型。

TagsResource

只保存资源的标记的容器,允许用户更新 PrivateLinkScope 实例上的标记。

名称 类型 说明
tags

object

资源标记