--- title: "getRootPassword" slug: "cli-server-getrootpassword" updated: 2026-09-17T10:11:03Z published: 2026-09-17T10:11:03Z canonical: "cli.ncloud-docs.com/cli-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 ## 概要 サーバのrootアカウントのパスワード照会 ## 説明 サーバ(VM)のログインキーでrootアカウントのパスワードを照会します。 ## リクエストパラメータ | パラメータ名 | 必須 | タイプ | 制約事項 | 説明 | | --- | --- | --- | --- | --- | | serverInstanceNo | Yes | String | | rootパスワードを照会するサーバのインスタンス番号 | | privateKey | Yes | String | | サーバを作成する時、適用したログインキー (認証キーが保存された経路を貰います。) * 入力されたKey値はネットワークに伝送されません。 ex) file://directory1/directory2/*.pem ex) https://kr.objectstorage.ncloud.com/bucket/penguin.pem | ## レスポンスデータタイプ - RootPasswordタイプ | RootPassword extends CommonResponse | | --- | | private String rootPassword; | ## 例示 ### 呼び出し ``` ncloud server getRootPassword --serverInstanceNo 475081 --privateKey file:///C:/Users/Naver/.ncloud/penguin.pem ``` ``` ncloud server getRootPassword --serverInstanceNo 475081 --privateKey https://kr.objectstorage.ncloud.com/chungsoo/penguin.pem ``` ``` ncloud server getRootPassword --serverInstanceNo 475081 --privateKey "-----BEGIN RSA PRIVATE KEY----- MIIG5AIBAAKCAYEA1LgE/8sxb8ueSrwXzHp0vgrJHgNz+XwWpvQIK0Xx0j/5IWez ************************************************ ************************************************ +5/QANMPYF94e8xtIpblYh965zNGI0h5TzjR3QOX2qKSBsriQ0Xw+A== -----END RSA PRIVATE KEY-----" ``` ### レスポンス ``` { "getRootPasswordResponse": { "requestId": "f76f5042-cd8f-4ad2-b2fe-be556bbb6bfb", "returnCode": 0, "returnMessage": "success", "rootPassword": "A7TFYc+hRy" } } ``` ``` f76f5042-cd8f-4ad2-b2fe-be556bbb6bfb 0 success A7TFYc+hRy ```