getRootPasswordServerInstanceList
    • PDF

    getRootPasswordServerInstanceList

    • PDF

    Article summary

    Can be used in a VPC environment.

    Overview

    Gets the list of root passwords using the login key of server instances (VM).
    If privateKey is not entered, the encrypted password of the corresponding server instance will be retrieved.

    Request

    Request parameter

    Parameter nameRequirement statusTypeRestrictionsDescription
    regionCodeNoString- Region code
    Determines the region of the server instance list to get the root account password from.
    regionCode can be obtained through the getRegionList action.
    Default: Selects the first region of the getRegionList search results.
    rootPasswordServerInstanceList.N.serverInstanceNoYesString- Server instance number
    serverInstanceNo can be obtained through the getServerInstanceList action.
    rootPasswordServerInstanceList.N.privateKeyNoString- Login key assigned to the server instance
    Enter the personal key (.pem) path or text of the created or imported login key
    Example 1: privateKey='file://PATH/KEY_NAME.pem' (the path starting with string "file://")
    Example 2: privateKey='https://URL/KEY_NAME.pem' (the path starting with string "http://" or "https://")
    - ex3) privateKey=\
    '-----BEGIN RSA PRIVATE KEY-----\
    ...KEY_CONTENT...\
    -----END RSA PRIVATE KEY-----'
    (personal key text, the string "\" (Unix line) or "^" (Windows line) is used for line break, depending on the environment.)
    responseFormatTypeNoString- Format type of the response result
    Options: xml | json
    Default: xml

    Response

    Response data type

    • RootPasswordServerInstanceList type
    RootPasswordServerInstanceList extends CommonResponse
    private Integer totalRows;
    private List<RootPasswordServerInstance> rootPasswordServerInstanceList = new ArrayList<>();
    RootPasswordServerInstance
    private String serverInstanceNo;
    private String rootPassword;

    Examples

    Request examples

    ncloud vserver getRootPasswordServerInstanceList --regionCode KR --rootPasswordServerInstanceList "serverInstanceNo=***4299, privateKey='file://PATH/KEY_NAME.pem'"
    
    ncloud vserver getRootPasswordServerInstanceList --regionCode KR --rootPasswordServerInstanceList "serverInstanceNo=***4299, privateKey='https://URL/KEY_NAME.pem'"
    
    ncloud vserver getRootPasswordServerInstanceList --regionCode KR --rootPasswordServerInstanceList "serverInstanceNo=***4299, privateKey=\
    '-----BEGIN RSA PRIVATE KEY-----\
    ...KEY_CONTENT...\
    -----END RSA PRIVATE KEY-----'"
    

    Response examples

    <getRootPasswordServerInstanceListResponse>
      <requestId></requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <rootPasswordServerInstanceList>
        <rootPasswordServerInstance>
          <serverInstanceNo>***4299</serverInstanceNo>
          <rootPassword>P3e7fLnd6=***</rootPassword>
        </rootPasswordServerInstance>
      </rootPasswordServerInstanceList>
    </getRootPasswordServerInstanceListResponse>
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.