--- title: "getRootPassword" slug: "cli-vserver-server-getrootpassword" tags: ["Server", "VPC"] updated: 2026-09-17T10:11:00Z published: 2026-09-17T10:11:00Z canonical: "cli.ncloud-docs.com/cli-vserver-server-getrootpassword" --- > ## 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. # getRootPassword VPC環境で利用できます。 サーバインスタンス(VM)の認証キーを使用して管理者パスワードを照会します。 ## 構文 `getRootPassword`構文は次の通りです。 ``` ./ncloud vserver getRootPassword \ --serverInstanceNo \ --privateKey \ [--regionCode ] \ [--output ] ``` ## オプション `getRootPassword`の実行時に指定できるオプションについて説明します。 ### 必須オプション `getRootPassword`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--serverInstanceNo` | String | Required | サーバインスタンス番号 - [getServerInstanceList](/docs/ja/cli-vserver-server-getserverinstancelist)を参照 | | `--privateKey` | String | Required | 認証キー (秘密鍵) - 作成するか、外部から取得した PEMファイルの内容を入力 - 改行は`\n`を利用 - `file://`または`http(s)://`パス形式も対応 | ### 共通オプション `vserver`コマンドで共通して使用するオプションについては、[Server (VPC)のオプション](/docs/ja/cli-vserver#%EC%98%B5%EC%85%98)をご参照ください。 ## 例 管理者パスワードの照会リクエストが成功すると、復号化された管理者パスワードが返されます。 ### コマンド コマンドの例は次の通りです。 ``` ./ncloud vserver getRootPassword \ --serverInstanceNo 34567890 \ --privateKey "file://path/to/key.pem" \ --regionCode KR \ --output json ``` ### 出力 出力の例は次の通りです。 ``` { "getRootPasswordResponse": { "rootPassword": "", "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "returnCode": "0", "returnMessage": "success" } } ```