Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

getRootPasswordServerInstanceList

Prev Next

概要

サーバrootアカウントのパスワードサーバインスタンスリスト照会

説明

サーバ(VM)のログインキーでrootアカウントのパスワードを照会します。

リクエストパラメータ

パラメータ名 必須 タイプ 制約事項 説明
rootPasswordServerInstanceList.serverInstanceNo Yes String サーバインスタンス番号
rootPasswordServerInstanceList.privateKey Yes String サーバを作成する時、適用したログインキー (認証キーが保存された経路を貰います。)
- 入力されたKey値はネットワークに伝送されません。
- ex) file://directory1/directory2/*.pem
- ex) https://kr.objectstorage.ncloud.com/bucket/penguin.pem

レスポンスデータタイプ

  • RootPasswordServerInstanceタイプ
RootPasswordServerInstance extends CommonResponse
private String serverInstanceNo;
private String rootPassword;

例示

呼び出し

ncloud server getRootPasswordServerInstanceList --rootPasswordServerInstanceList "serverInstanceNo=886621, privateKey='file:///C:/Users/USER/Desktop/private/key/penguin-beta.pem'" "serverInstanceNo=886624, privateKey='file:///C:/Users/USER/Desktop/private/key/penguin-beta.pem'"

レスポンス

{
  "getRootPasswordServerInstanceListResponse": {
    "requestId": "20bb8687-5f38-40be-bea3-03adab55f069",
    "returnCode": "0",
    "returnMessage": "success",
    "totalRows": 2,
    "rootPasswordServerInstanceList": [
      {
        "serverInstanceNo": "886621",
        "rootPassword": "N2T!FH93*hd"
      },
      {
        "serverInstanceNo": "886624",
        "rootPassword": "R78D55h9J#"
      }
    ]
  }
}
<?xml version="1.0" encoding="UTF-8" ?>
<getRootPasswordServerInstanceListResponse>
  <requestId>20bb8687-5f38-40be-bea3-03adab55f069</requestId>
  <returnCode>0</returnCode>
  <returnMessage>success</returnMessage>
  <totalRows>2</totalRows>
  <rootPasswordServerInstanceList>
    <serverInstanceNo>886621</serverInstanceNo>
    <rootPassword>N2T!FH93*hd</rootPassword>
  </rootPasswordServerInstanceList>
  <rootPasswordServerInstanceList>
    <serverInstanceNo>886624</serverInstanceNo>
    <rootPassword>R78D55h9J#</rootPassword>
  </rootPasswordServerInstanceList>
</getRootPasswordServerInstanceListResponse>