サブアカウントの個別照会
    • PDF

    サブアカウントの個別照会

    • PDF

    Article Summary

    サブアカウントを個別照会します。

    API

    • GET /sub-accounts/{subAccountId}

    リクエスト

    Path Variables

    パラメータ必須有無タイプ制限事項説明
    subAccountIdYStringSub Account Id

    レスポンス

    {
        "nrn": "string"
        "active": "boolean",
        "canAPIGatewayAccess": "boolean",
        "canConsoleAccess": "boolean",
        "consolePermitIps": [
            "string"
        ],
        "createTime": "string",
        "email": "string",
        "groups": [
            {
                "groupId": "string",
                "groupName": "string",
                "policies": [
                    {}
                ],
                "subAccounts": [
                    {}
                ]
            }
        ],
        "lastLoginTime": "string",
        "loginId": "string",
        "memo": "string",
        "modifiedTime": "string",
        "name": "string",
        "needPasswordReset": "boolean",
        "policies": [
            {
                "policyId": "string",
                "policyName": "string",
                "policyType": "string"
            }
        ],
        "subAccountNo": "integer",
        "subAccountId": "string",
        "useConsolePermitIp": "boolean",
        "useApiAllowSource": "boolean",
        "apiAllowSources": [
            {
                "type": "string",
                "source": "string"
            }
        ]
    }
    
    項目タイプ説明備考
    nrnstringNcloudのリソースを表現するための Naming Rule
    activebooleanSub Account状態(true: 有効、false: 無効)
    canAPIGatewayAccessboolean- API Gateway Access
    - Access Keyを作成し、当該キーで API Gatewayに登録された APIを使用可能
    canConsoleAccessboolean- Console Access
    - サブアカウントが管理コンソールにアクセスできるように設定
    consolePermitIpsarrayコンソールにアクセスできる IPアドレス帯域リスト
    createTimestring作成日時 2019-08-10T13:21:00Z
    emailstringメールアドレス
    groupsarrayサブアカウントが属するグループリスト
    groups.groupIdstringグループ ID
    groups.groupNamestringグループ名
    groups.policiesarrayグループに割り当てられたポリシーリスト
    groups.subAccountsarrayグループに属するサブアカウントリスト
    lastLoginTimestring最終アクセス日時 2019-08-10T13:21:00Z
    loginIdstringログイン ID
    memostringメモ(max: 100byte)
    modifiedTimestring最終変更日時 2019-08-10T13:21:00Z
    namestring名前
    needPasswordResetboolean- パスワード再設定の要否
    - 作成されたサブアカウントでログインすると、新しいパスワードに変更するように案内
    policiesarrayサブアカウントが付与されたポリシーリスト
    policies.policyIdstringポリシー ID
    policies.policyNamestringポリシー名
    policies.policyTypestringポリシータイプ(SYSTEM_MANAGED、USER_CREATED)
    subAccountNointegerサブアカウント No
    subAccountIdstringサブアカウント ID
    useConsolePermitIpbooleanコンソールアクセスの際に IPアドレス帯域制限の使用有無
    useApiAllowSourcebooleanAPI利用の際にアクセス制限を利用可能
    apiAllowSourcesarrayAPI利用の際にアクセス可能なリスト
    apiAllowSources[].typestringアクセス可能なソースタイプ(IP、VPC、VPC_SERVER)
    apiAllowSources[].sourcestringアクセス可能なソース情報(IP、InstanceNo)

    エラー

    以下のエラーコードは、このアクション(Action)で発生する特徴的なエラーです。エラーレスポンス形式は ErrorResponseをご参照ください。
    よく発生するエラーについての詳細は、NAVER Cloud Platform APIをご参照ください。

    HTTP status codeエラーコードエラーメッセージ
    40130存在しないアカウント

    この記事は役に立ちましたか?

    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.