Accounts - Add Root Collection Admin
이 계정과 연결된 루트 컬렉션에 대한 관리자를 추가합니다.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Purview/accounts/{accountName}/addRootCollectionAdmin?api-version=2021-12-01
URI 매개 변수
| Name | In(다음 안에) | 필수 | 형식 | Description |
|---|---|---|---|---|
|
account
|
path | True |
string minLength: 3maxLength: 63 pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ |
계정의 이름입니다. |
|
resource
|
path | True |
string |
리소스 그룹 이름입니다. |
|
subscription
|
path | True |
string |
구독 식별자 |
|
api-version
|
query | True |
string |
사용할 api 버전입니다. |
요청 본문
| Name | 형식 | Description |
|---|---|---|
| objectId |
string |
관리자의 개체 식별자를 가져오거나 설정합니다. |
응답
| Name | 형식 | Description |
|---|---|---|
| 200 OK |
성공 |
|
| Other Status Codes |
공급자로부터 받은 오류 응답입니다. |
보안
azure_auth
Azure Active Directory OAuth2 흐름.
형식:
oauth2
Flow:
implicit
권한 부여 URL:
https://login.microsoftonline.com/common/oauth2/authorize
범위
| Name | Description |
|---|---|
| user_impersonation | 사용자 계정 가장 |
예제
Accounts_AddRootCollectionAdmin
샘플 요청
POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.Purview/accounts/account1/addRootCollectionAdmin?api-version=2021-12-01
{
"objectId": "7e8de0e7-2bfc-4e1f-9659-2a5785e4356f"
}
샘플 응답
Date: Wed, 13 Sep 2017 18:04:32 GMT
x-ms-request-id: d5496da4-9c52-402f-b067-83cc9ddea888
X-Content-Type-Options: nosniff
x-ms-ratelimit-remaining-tenant-reads: 14999
x-ms-correlation-request-id: 25c78f97-0b0a-4fe9-ad39-883a482265cd
정의
| Name | Description |
|---|---|
|
Collection |
컬렉션 관리자 업데이트입니다. |
| Error |
오류를 가져오거나 설정합니다. |
|
Error |
기본 오류 모델 |
|
Error |
기본 오류 응답 모델 |
CollectionAdminUpdate
컬렉션 관리자 업데이트입니다.
| Name | 형식 | Description |
|---|---|---|
| objectId |
string |
관리자의 개체 식별자를 가져오거나 설정합니다. |
Error
오류를 가져오거나 설정합니다.
| Name | 형식 | Description |
|---|---|---|
| code |
string |
코드를 가져오거나 설정합니다. |
| details |
세부 정보를 가져오거나 설정합니다. |
|
| message |
string |
메시지를 가져오거나 설정합니다. |
| target |
string |
대상을 가져오거나 설정합니다. |
ErrorModel
기본 오류 모델
| Name | 형식 | Description |
|---|---|---|
| code |
string |
코드를 가져오거나 설정합니다. |
| details |
세부 정보를 가져오거나 설정합니다. |
|
| message |
string |
메시지를 가져오거나 설정합니다. |
| target |
string |
대상을 가져오거나 설정합니다. |
ErrorResponseModel
기본 오류 응답 모델
| Name | 형식 | Description |
|---|---|---|
| error |
오류를 가져오거나 설정합니다. |