MENU
      getRootPasswordServerInstanceList
        • PDF

        getRootPasswordServerInstanceList

        • PDF

        記事の要約

        VPC環境で利用できます。

        概要

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

        リクエスト

        リクエストパラメータ

        パラメータ名要否タイプ制約事項説明
        regionCodeNoString- リージョンコード
        rootアカウントのパスワードを照会するサーバインスタンスリストのリージョン(Region)を決定できる
        regionCodeは、getRegionListアクションを通じて取得可能
        デフォルト:getRegionList照会結果の最初のリージョンを選択
        rootPasswordServerInstanceList.N.serverInstanceNoYesString- サーバインスタンス番号
        serverInstanceNoは、getServerInstanceListアクションを通じて取得できる
        rootPasswordServerInstanceList.N.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

        レスポンス

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

        • RootPasswordServerInstanceListタイプ
        RootPasswordServerInstanceList extends CommonResponse
        private Integer totalRows;
        private List<RootPasswordServerInstance> rootPasswordServerInstanceList = new ArrayList<>();
        RootPasswordServerInstance
        private String serverInstanceNo;
        private String rootPassword;

        リクエスト例

        ncloud vserver getRootPasswordServerInstanceList --regionCode KR --rootPasswordServerInstanceList "serverInstanceNo=***4299, privateKey='file://PATH/KEY_NAME.pem'"
        Plain text
        ncloud vserver getRootPasswordServerInstanceList --regionCode KR --rootPasswordServerInstanceList "serverInstanceNo=***4299, privateKey='https://URL/KEY_NAME.pem'"
        Plain text
        ncloud vserver getRootPasswordServerInstanceList --regionCode KR --rootPasswordServerInstanceList "serverInstanceNo=***4299, privateKey=\
        '-----BEGIN RSA PRIVATE KEY-----\
        ...KEY_CONTENT...\
        -----END RSA PRIVATE KEY-----'"
        Plain text

        レスポンス例

        <getRootPasswordServerInstanceListResponse>
          <requestId></requestId>
          <returnCode>0</returnCode>
          <returnMessage>success</returnMessage>
          <totalRows>1</totalRows>
          <rootPasswordServerInstanceList>
            <rootPasswordServerInstance>
              <serverInstanceNo>***4299</serverInstanceNo>
              <rootPassword>P3e7fLnd6=***</rootPassword>
            </rootPasswordServerInstance>
          </rootPasswordServerInstanceList>
        </getRootPasswordServerInstanceListResponse>
        XML

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

        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.