다음을 통해 공유


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 In(다음 안에) 필수 형식 Description
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 버전입니다.

요청 본문

Name 형식 Description
properties.linkedResourceId

string

범위가 지정된 Azure Monitor 리소스의 리소스 ID입니다.

응답

Name 형식 Description
200 OK

ScopedResource

프라이빗 링크 scope 새 Azure Monitor 범위 리소스를 만들거나 업데이트했습니다.

201 Created

ScopedResource

프라이빗 링크 scope 새 Azure Monitor 범위 리소스를 만들었습니다.

202 Accepted

수락됨

보안

azure_auth

Azure Active Directory OAuth2 Flow

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

Scopes

Name Description
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

프라이빗 링크 범위 리소스

Name 형식 Description
id

string

Azure 리소스 ID

name

string

Azure 리소스 이름

properties.linkedResourceId

string

범위가 지정된 Azure Monitor 리소스의 리소스 ID입니다.

properties.provisioningState

string

프라이빗 엔드포인트 연결의 상태입니다.

type

string

Azure 리소스 종류