サブアカウントの作成
    • PDF

    サブアカウントの作成

    • PDF

    Article Summary

    サブアカウントを作成します。

    API

    • POST /sub-accounts

    リクエスト

    Body

    {
    	"active": "boolean",
    	"canAPIGatewayAccess": "boolean",
    	"canConsoleAccess": "boolean",
    	"email": "string",
    	"loginId": "string",
    	"memo": "string",
    	"name": "string",
    	"needPasswordReset": "boolean",
    	"needPasswordGenerate": "boolean",
    	"password": "string",
    	"isMfaMandatory": "boolean",
    	"useConsolePermitIp": "boolean",
    	"consolePermitIps": [
    		"string"
    	],
    	"useApiAllowSource": "boolean",
    	"apiAllowSources": [
    		{
    			"type": "string",
    			"source": "string"
    		}
    	]
    }
    
    パラメータ必須有無タイプ制限事項説明
    activeYbooleanSub Account状態(true: 有効、false: 無効)
    canAPIGatewayAccessYboolean- API Gateway Access
    - Access Keyを作成し、当該キーで API Gatewayに登録された APIを使用可能
    canConsoleAccessYboolean- Console Access
    - サブアカウントが管理コンソールにアクセスできるように設定
    emailNstringメールアドレス
    loginIdYstring最小3文字、最大60文字ログイン ID
    memoNstring最大300bytesメモ
    nameYstring最小2文字、最大30文字名前
    needPasswordResetYboolean- パスワード再設定の要否
    - 作成されたサブアカウントでログインすると、新しいパスワードに変更するように案内
    needPasswordGenerateNbooleanパスワードの自動作成の要否
    passwordNstringneedPasswordGenerateが falseの場合に必須パスワード
    isMfaMandatoryNboolean2段階認証の必須有無(true: 必須、false: 任意)
    useConsolePermitIpNbooleanコンソールアクセスの際に IPアドレス帯域制限を利用可能(default: false)
    consolePermitIpsNarrayコンソールにアクセスできる IPアドレス帯域リスト
    useApiAllowSourceNbooleanAPI利用の際にアクセス制限を利用可能
    apiAllowSourcesNarrayAPIアクセス可能なリスト
    apiAllowSources[].typeNstringアクセス可能なソースタイプ(IP、VPC、VPC_SERVER)
    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.