次の方法で共有


Private Link Scoped Resources - Create Or Update

指定された名前のプライベート エンドポイント接続を承認または拒否します。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/scopedResources/{name}?api-version=2019-10-17-preview

URI パラメーター

名前 / 必須 説明
name
path True

string

スコープ付きリソース オブジェクトの名前。

resourceGroupName
path True

string

リソース グループの名前。 名前の大文字と小文字は区別されます。

scopeName
path True

string

Azure Monitor PrivateLinkScope リソースの名前。

subscriptionId
path True

string

ターゲット サブスクリプションの ID。

api-version
query True

string

この操作に使用する API バージョン。

要求本文

名前 説明
properties.linkedResourceId

string

スコープ指定された Azure Monitor リソースのリソース ID。

応答

名前 説明
200 OK

ScopedResource

プライベート リンク スコープで新しい Azure Monitor スコープ リソースを正常に作成または更新しました。

201 Created

ScopedResource

プライベート リンク スコープに新しい Azure Monitor スコープ リソースが正常に作成されました。

202 Accepted

同意

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

Sample Request

PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/scopedResources/scoped-resource-name?api-version=2019-10-17-preview

{
  "properties": {
    "linkedResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component"
  }
}

Sample Response

{
  "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/scopedResources/scoped-resource-name",
  "name": "scoped-resource-name",
  "type": "Microsoft.Insights/privateLinkScopes/scopedResources",
  "properties": {
    "linkedResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component",
    "provisioningState": "Succeeded"
  }
}
{
  "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/privateLinkScopes/MyPrivateLinkScope/scopedResources/scoped-resource-name",
  "name": "scoped-resource-name",
  "type": "Microsoft.Insights/privateLinkScopes/scopedResources",
  "properties": {
    "linkedResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component",
    "provisioningState": "Succeeded"
  }
}

定義

ScopedResource

プライベート リンク スコープ リソース

名前 説明
id

string

Azure リソース ID

name

string

Azure リソース名

properties.linkedResourceId

string

スコープ指定された Azure Monitor リソースのリソース ID。

properties.provisioningState

string

プライベート エンドポイント接続の状態。

type

string

Azure リソースタイプ