getCloudPostgresqlDatabaseList
    • PDF

    getCloudPostgresqlDatabaseList

    • PDF

    Article Summary

    Available in VPC

    Views the list of Cloud DB for PostgreSQL database.

    Commands

    The text of the command is as follows:

    ncloud vpostgresql getCloudPostgresqlDatabaseList [regionCode] [cloudPostgresqlInstanceNo] [output]
    

    Parameter

    The following is a description on parameters.

    ParameterTypeRequirement statusDescriptionRestrictions
    regionCodeStringNRegion code
    - regionCode can be obtained via the getRegionList action
    - Default: selects the first region of the getRegionList search results
    -
    cloudPostgresqlInstanceNoStringYCloud DB for PostgreSQL instance number
    - cloudPostgresqlInstanceNo can be obtained via the getCloudPostgresqlInstanceList action
    -
    outputStringNFormat type of the response result
    - options: xml | json
    - default: json
    -

    Responses

    Response data type

    • CloudPostgresqlDatabaseList type
    CloudPostgresqlDatabaseList extends CommonResponseDescription
    private Integer totalRows;Total number of items viewed
    private List<CloudPostgresqlDatabase> cloudPostgresqlDatabaseList = new ArrayList<>();Cloud DB for PostgreSQL database list
    • CloudPostgresqlDatabase type
    CloudPostgresqlDatabaseDescription
    private String databaseName;Database name
    private String owner;User ID of the database owner

    Examples

    Describes examples of recalls and responses.

    Recall examples

    The following are examples of recalls.

    ncloud vpostgresql getCloudPostgresqlDatabaseList --regionCode KR --cloudPostgresqlInstanceNo ****890
    

    Response examples

    The following are examples of responses.

    If the response shows that format type (output) is json

    {
      "getCloudPostgresqlDatabaseListResponse": {
        "requestId": "32993542-96c8-4899-91d8-3a273960b79c",
        "returnCode": 0,
        "returnMessage": "success",
        "totalRows": 1,
        "cloudPostgresqlDatabaseList": [
          {
            "databaseName": "pgtest",
            "owner": "testuser"
          }
        ]
      }
    }
    

    If the response shows that format type (output) is xml

    <getCloudPostgresqlDatabaseListResponse>
      <requestId>32993542-96c8-4899-91d8-3a273960b79c</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <cloudPostgresqlDatabaseList>
        <cloudPostgresqlDatabase>
          <databaseName>pgtest</databaseName>
          <owner>testuser</owner>
        </cloudPostgresqlDatabase>
      </cloudPostgresqlDatabaseList>
    </getCloudPostgresqlDatabaseListResponse>
    

    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.