Classic/VPC 환경에서 이용 가능합니다.
Ncloud API 표준 규격을 적용한 API입니다.
Permission Set의 설명과 정책을 수정합니다.
기존 Permission Set이 전부 요청한 내용으로 교체됩니다. 기존 설명과 정책을 유지하려면 해당 내용도 포함하여 요청해 주십시오.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
| 메서드 | URI |
|---|---|
| PUT | /api/v2/permission-sets/{permissionSetId} |
요청 헤더
Ncloud Single Sign-On API에서 공통으로 사용하는 헤더에 대한 정보는 Ncloud Single Sign-On 요청 헤더를 참조해 주십시오.
요청 경로 파라미터
요청 경로 파라미터에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
permissionSetId |
String | Required | Permission Set 식별자
|
요청 바디
요청 바디에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
description |
String | Optional | Permission Set에 대한 설명
|
systemManagedPolicyIds |
Array | Conditional | 관리형 정책(System Managed) 식별자 목록
|
userCreatedPolicyNames |
Array | Conditional | 사용자 정의 정책(User Created) 이름 목록
|
요청 예시
요청 예시는 다음과 같습니다.
curl --location --request PUT 'https://sso.apigw.ntruss.com/api/v2/permission-sets/5e6f7081-5555-4ef0-8123-456789abcdef' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--data '{
"systemManagedPolicyIds": [
"8d9e0f10-8888-4123-9456-789abcdef012"
]
}'
응답
응답 형식을 설명합니다.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
permissionSetId |
String | Required | Permission Set 식별자
|
permissionSetName |
String | Required | Permission Set 이름 |
description |
String | Optional | Permission Set에 대한 설명 |
nrn |
String | Required | Permission Set NRN(Ncloud Resource Name) |
createdDateTime |
String | Required | Permission Set 생성 일시
|
systemManagedPolicies |
Array | Optional | 관리형 정책(System Managed) 목록: systemManagedPolicies |
userCreatedPolicies |
Array | Optional | 사용자 정의 정책(User Created) 목록: userCreatedPolicies |
accounts |
Array | Optional | 계정 목록: accounts |
systemManagedPolicies
systemManagedPolicies에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
policyId |
String | Optional | 관리형 정책(System Managed) 식별자
|
policyName |
String | Optional | 관리형 정책(System Managed) 이름 |
policyDescription |
String | Optional | 관리형 정책(System Managed) 설명 |
policyCreatedDateTime |
String | Optional | 관리형 정책(System Managed) 생성 일시
|
userCreatedPolicies
userCreatedPolicies에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
userCreatedPolicyName |
String | Optional | 사용자 정의 정책(User Created) 이름 |
accounts
accounts에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
accountName |
String | Optional | 계정 사용자 이름 |
accountAlias |
String | Optional | 계정 별칭 |
accountLoginId |
String | Optional | 계정 로그인 아이디 |
accountType |
String | Optional | 계정 유형
|
accountGroup |
String | Optional | 계정 그룹 |
accountMemberNo |
Integer | Optional | 계정 회원 번호(MemberNo) |
응답 상태 코드
응답 상태 코드에 대한 설명은 다음과 같습니다.
| HTTP 상태 코드 | 코드 | 메시지 | 설명 |
|---|---|---|---|
| 200 | - | - | Permission Set 상세 정보 |
| 400 | InvalidParameter |
The specified parameter is invalid. |
입력값 형식 오류 |
| 400 | ResourceLimitExceeded |
The request exceeds the resource limit. |
Permission Set당 추가할 수 있는 정책 수 초과 |
| 400 | InvalidState |
The request cannot be processed in the current state. |
대상 계정에 Permission Set의 사용자 정의 정책(User Created)이 존재하지 않음 |
| 404 | NotFound |
One or more of the resources in the request does not exist in the system. |
요청한 관리형 정책(System Managed) 중 존재하지 않는 정책 있음 |
| 404 | ResourceNotFound |
The specified resource could not be found. |
생성된 Tenant 없음 |
| 404 | PermissionSetNotFound |
The specified permission set could not be found. |
지정한 Permission Set이 존재하지 않음 |
Ncloud Single Sign-On API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Ncloud Single Sign-On 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
{
"permissionSetId": "5e6f7081-5555-4ef0-8123-456789abcdef",
"permissionSetName": "example-permissionset",
"description": "example description",
"nrn": "nrn:PUB:SSO::1234567:PermissionSet/5e6f7081-5555-4ef0-8123-456789abcdef",
"createdDateTime": "2025-01-02T09:00:00Z",
"systemManagedPolicies": [
{
"policyId": "8d9e0f10-8888-4123-9456-789abcdef012",
"policyName": "example-policy",
"policyDescription": "Permission to use all the features in Ncloud Single Sign-On",
"policyCreatedDateTime": "2025-01-02T09:00:00Z"
}
],
"userCreatedPolicies": [
{
"userCreatedPolicyName": "example-usercreatedpolicy"
}
],
"accounts": [
{
"accountName": "example-account",
"accountAlias": "example-account",
"accountLoginId": "user@example.com",
"accountType": "MASTER",
"accountGroup": "example-group",
"accountMemberNo": 1234567
}
]
}