getRootPassword
    • PDF

    getRootPassword

    • PDF

    Article Summary

    VPC環境で利用できます。

    概要

    サーバインスタンス(VM)のログインキーを利用してrootアカウントのパスワードを照会します。
    privateKeyを入力しないと、該当するサーバインスタンスの暗号化されたパスワードを照会します。

    リクエスト

    リクエストパラメータ

    パラメータ名要否タイプ制約事項説明
    regionCodeNoString- リージョンコード
    rootアカウントのパスワードを照会するサーバインスタンスのリージョン(Region)を決定できる
    regionCodeは、getRegionListアクションを通じて取得可能
    デフォルト:getRegionList照会結果の最初のリージョンを選択
    serverInstanceNoYesString- サーバインスタンス番号
    serverInstanceNoは、getServerInstanceListアクションを通じて取得できる
    privateKeyNoString- サーバインスタンスに割り当てられたログインキー
    作成するか、インポートしたログインキーの個人キー(.pem)パスまたはテキストを入力
    例1) --privateKey "file://PATH/KEY_NAME.pem" ("file://"文字列で始まるパス)
    例2) --privateKey "https://URL/KEY_NAME.pem" ("http://"または"https://"文字列で始まるパス)
    ex3) --privateKey \
    "-----BEGIN RSA PRIVATE KEY-----\
    ...KEY_CONTENT...\
    -----END RSA PRIVATE KEY-----"
    (個人キーテキスト。改行する時の環境に応じて、「\」(Unix系列)または「^」(Windows系列)の文字を使用)
    responseFormatTypeNoString- レスポンス結果のフォーマットタイプ
    オプション: xml | json
    デフォルト: xml

    レスポンス

    レスポンスデータのタイプ

    • RootPasswordタイプ
    RootPassword extends CommonResponse
    private String rootPassword;

    リクエスト例

    ncloud vserver getRootPassword --regionCode KR --serverInstanceNo ***4299 --privateKey "file://PATH/KEY_NAME.pem"
    
    ncloud vserver getRootPassword --regionCode KR --serverInstanceNo ***4299 --privateKey "https://URL/KEY_NAME.pem"
    
    ncloud vserver getRootPassword --regionCode KR --serverInstanceNo ***4299 --privateKey \
    "-----BEGIN RSA PRIVATE KEY-----\
    ...KEY_CONTENT...\
    -----END RSA PRIVATE KEY-----"
    

    レスポンス例

    <getRootPasswordResponse>
      <requestId></requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <rootPassword>P3e7fLnd6=***</rootPassword>
    </getRootPasswordResponse>
    

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

    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.