getRootPasswordServerInstanceList

Prev Next

VPC環境で利用できます。

概要

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

リクエスト

リクエストパラメータ

パラメータ名 要否 タイプ 制約事項 説明
regionCode No String - リージョンコード
rootアカウントのパスワードを照会するサーバインスタンスリストのリージョン(Region)を決定できる
regionCodeは、getRegionListアクションを通じて取得可能
デフォルト:getRegionList照会結果の最初のリージョンを選択
rootPasswordServerInstanceList.N.serverInstanceNo Yes String - サーバインスタンス番号
serverInstanceNoは、getServerInstanceListアクションを通じて取得できる
rootPasswordServerInstanceList.N.privateKey No String - サーバインスタンスに割り当てられたログインキー
作成するか、インポートしたログインキーの個人キー(.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系列)の文字を使用)
responseFormatType No String - レスポンス結果のフォーマットタイプ
オプション: 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'"
ncloud vserver getRootPasswordServerInstanceList --regionCode KR --rootPasswordServerInstanceList "serverInstanceNo=***4299, privateKey='https://URL/KEY_NAME.pem'"
ncloud vserver getRootPasswordServerInstanceList --regionCode KR --rootPasswordServerInstanceList "serverInstanceNo=***4299, privateKey=\
'-----BEGIN RSA PRIVATE KEY-----\
...KEY_CONTENT...\
-----END RSA PRIVATE KEY-----'"

レスポンス例

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