getRootPasswordServerInstanceList

Prev Next

Overview

Get the password of the root account in the form of a list by using the login key of a server (VM).

Request

Request parameters

Parameter name Required Type Restrictions Description
rootPasswordServerInstanceList.N Yes List<String> List of objects for querying the server root password
rootPasswordServerInstanceList.N.serverInstanceNo Yes String - Server instance number list to query
serverInstanceNo can be obtained through the getServerInstanceList action.
rootPasswordServerInstanceList.N.privateKey No String Since the login key content must be passed as is, \n must be added. - Login key assigned to the server instance
Enter the personal key text of the created or imported login key.
It can be obtained through the server's login key file (.pem).
Since the login key content must be passed as is, "\n" must be added. URL encoding is required when using the GET method.
responseFormatType No String - Format type of the response result
Options: xml | json
Default: xml

Response

Response body

Examples

Request example

  • This API only allows the POST method.

Examples

Response example

<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>

Errors

Errors that may occur while using this action are listed below. For more information about common errors, see NAVER Cloud Platform API.

HTTP Response Code Return code Return message
400 24001 Invalid authentication key. Please check authentication key or input type and try again.