共用方式為


Private Link Scopes - Update Tags

匯報 現有的 PrivateLinkScope 標籤。 若要更新其他欄位,請使用 CreateOrUpdate 方法。

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}?api-version=2019-10-17-preview

URI 參數

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

string

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

scopeName
path True

string

Azure 監視器 PrivateLinkScope 資源的名稱。

subscriptionId
path True

string

目標訂用帳戶的標識碼。

api-version
query True

string

用於此作業的 API 版本。

要求本文

名稱 類型 Description
tags

object

資源標籤

回應

名稱 類型 Description
200 OK

AzureMonitorPrivateLinkScope

更新 Azure 監視器 PrivateLinkScope 的標籤成功。 PrivateLinkScope 標記會隨著 PrivateLinkScope 物件屬性的其餘部分更新並傳回。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

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

範圍

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

PrivateLinkScopeUpdateTagsOnly

範例要求

PATCH https://management.azure.com/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/privateLinkScopes/my-privatelinkscope?api-version=2019-10-17-preview

{
  "tags": {
    "Tag1": "Value1",
    "Tag2": "Value2"
  }
}

範例回覆

{
  "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/privateLinkScopes/my-privatelinkscope",
  "name": "my-privatelinkscope",
  "type": "Microsoft.Insights/privateLinkScopes",
  "location": "Global",
  "tags": {
    "Tag1": "Value1",
    "Tag2": "Value2"
  },
  "properties": {
    "provisioningState": "Succeeded"
  }
}

定義

名稱 Description
AzureMonitorPrivateLinkScope

Azure 監視器 PrivateLinkScope 定義。

PrivateEndpointConnection

私人端點連線

PrivateEndpointProperty

線上所屬的私人端點。

PrivateLinkServiceConnectionStateProperty

私人端點連線的狀態。

TagsResource

只保留資源的 Tags 的容器,允許使用者更新 PrivateLinkScope 實例上的標記。

AzureMonitorPrivateLinkScope

Azure 監視器 PrivateLinkScope 定義。

名稱 類型 Description
id

string

Azure 資源標識碼

location

string

資源位置

name

string

Azure 資源名稱

properties.privateEndpointConnections

PrivateEndpointConnection[]

私人端點連線的清單。

properties.provisioningState

string

此 PrivateLinkScope 的目前狀態:是否已在已定義的資源群組內布建。 使用者無法變更此值,但能夠從中讀取。 值包括布建、成功、已取消和失敗。

tags

object

資源標籤

type

string

Azure 資源類型

PrivateEndpointConnection

私人端點連線

名稱 類型 Description
id

string

Azure 資源標識碼

name

string

Azure 資源名稱

properties.privateEndpoint

PrivateEndpointProperty

線上所屬的私人端點。

properties.privateLinkServiceConnectionState

PrivateLinkServiceConnectionStateProperty

私人端點連線的連接狀態。

properties.provisioningState

string

私人端點連線的狀態。

type

string

Azure 資源類型

PrivateEndpointProperty

線上所屬的私人端點。

名稱 類型 Description
id

string

私人端點的資源標識碼。

PrivateLinkServiceConnectionStateProperty

私人端點連線的狀態。

名稱 類型 Description
actionsRequired

string

私人鏈接服務連線所需的動作。

description

string

私人鏈接服務連線描述。

status

string

私人鏈接服務連線狀態。

TagsResource

只保留資源的 Tags 的容器,允許使用者更新 PrivateLinkScope 實例上的標記。

名稱 類型 Description
tags

object

資源標籤