Documentation Index

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

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

getRootPassword

Prev Next

서버 인스턴스(VM)의 인증키를 사용하여 관리자 비밀번호를 조회합니다.

구문

getRootPassword 구문은 다음과 같습니다.

./ncloud vserver getRootPassword \
    --serverInstanceNo <server-instance-no> \
    --privateKey <private-key> \
    [--regionCode <FKR>] \
    [--output <json|xml>]

옵션

getRootPassword 실행 시 지정할 수 있는 옵션을 설명합니다.

필수 옵션

getRootPassword의 필수 옵션입니다.

옵션 타입 필수 여부 설명
--serverInstanceNo String Required 서버 인스턴스 번호
--privateKey String Required 인증키 (비공개키)
  • 생성하거나 외부에서 가져온 PEM 파일 내용 입력
  • 줄바꿈은 \n으로 표기
  • file:// 또는 http(s):// 경로 형식도 지원

공통 옵션

vserver 명령에서 공통으로 사용하는 옵션에 대한 정보는 Server 옵션을 참조해 주십시오.

예시

관리자 비밀번호 조회 요청이 성공하면 복호화된 관리자 비밀번호가 반환됩니다.

명령

명령 예시는 다음과 같습니다.

./ncloud vserver getRootPassword \
    --serverInstanceNo 34567890 \
    --privateKey "file://path/to/key.pem" \
    --regionCode FKR \
    --output json

출력

출력 예시는 다음과 같습니다.

{
  "getRootPasswordResponse": {
    "rootPassword": "<root-password-redacted>",
    "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "returnCode": "0",
    "returnMessage": "success"
  }
}