서브계정 생성
    • PDF

    서브계정 생성

    • PDF

    Article Summary

    서브 계정을 생성합니다.

    API

    • POST /sub-accounts

    요청

    Body

    {
    	"active": "boolean",
    	"canAPIGatewayAccess": "boolean",
    	"canConsoleAccess": "boolean",
    	"consolePermitIps": [
    		"string"
    	],
    	"email": "string",
    	"loginId": "string",
    	"memo": "string",
    	"name": "string",
       	"needPasswordGenerate": "boolean",
    	"password": "string",
    	"useConsolePermitIp": "boolean",
            "useApiAllowSource": "boolean",
            "apiAllowSources": [
            {
                "type": "string",
                "source": "string"
            }
        ]
    }
    
    파라미터필수여부타입제약사항설명
    activeYbooleanSub Account 상태 (true: 활성, false: 비활성)
    canAPIGatewayAccessYboolean- API Gateway Access
    - Access Key를 생성하여 해당 키로 API Gateway에 등록된 API 사용 가능
    canConsoleAccessYboolean- Console Access
    - 서브 계정이 관리 콘솔에 접근할 수 있도록 설정
    consolePermitIpsNarray콘솔 접근 가능한 IP 대역 목록
    emailNstring이메일
    loginIdYstring최소 3자, 최대 60자로그인 아이디
    memoNstring최대 100bytes메모
    nameYstring최소 2자, 최대 30자이름
    needPasswordGenerateNboolean비밀번호 자동생성 필요 여부
    passwordNstringneedPasswordGenerate가 false 인 경우 필수비밀번호
    useConsolePermitIpNboolean콘솔 접근 시 IP 대역 제한을 사용 가능 (default: false)
    useApiAllowSourceNbooleanAPI 이용 시 접근 제한을 사용 가능
    apiAllowSourcesNarrayAPI 접근 가능한 목록
    apiAllowSources[].typeNstring접근 가능 소스의 타입 (IP, VPC)
    apiAllowSources[].sourceNstring접근 가능 소스 정보 (IP, InstanceNo)

    응답

    • 응답
    파라미터 명필수여부타입설명
    ProcessResultWithPasswordYProcessResultWithPassword처리 결과
    • 응답 예시 - 등록 성공
    {
        "success": true,
        "id": "subAccountId",
        "generatedPassword": "Pa$$w0rd"
    }
    

    에러

    아래 에러 코드는 이 액션(Action)에서 특징적으로 발생하는 에러입니다. 에러 응답 형식은 ErrorResponse를 참조해 주십시오.
    공통적으로 발생하는 에러에 대한 상세한 설명은 NAVER Cloud Platform API를 참고해 주십시오.

    HTTP status code에러 코드에러 메시지
    400120- 중복된 ID
    - 다른 ID 입력 필요
    4009015안전하지 않은 비밀번호
    4009010- 암호 형식이 잘못됨
    - 영문자, 숫자, 특수 문자 8~16자로 입력 필요

    이 문서가 도움이 되었습니까?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.