getCloudPostgresqlBucketList

Prev Next

Available in VPC

Views Object Storage bucket lists available in Cloud DB for PostgreSQL.

Commands

The text of the command is as follows:

ncloud vpostgresql getCloudPostgresqlBucketList [regionCode] [cloudPostgresqlServerInstanceNo] [output]

Parameter

The following is a description on parameters.

Parameter Type Requirement status Description Restrictions
regionCode String N Region code
- regionCode can be obtained via the getRegionList action
- Default: selects the first region of the getRegionList search results
-
cloudPostgresqlServerInstanceNo String Y Cloud DB for PostgreSQL server instance number
- You can obtain cloudPostgresqlServerInstanceNo through the getCloudPostgresqlInstanceList action
- When entered, view Object Storage bucket lists accessible from the instance
-
output String N Format type of the response result
- options: xml | json
- default: json
-

Responses

Response data type

  • CloudPostgresqlBucketList type
CloudPostgresqlBucketList extends CommonResponse Description
private Integer totalRows; Total number of items viewed
private List<CloudPostgresqlBucket> cloudPostgresqlBucketList = new ArrayList<>(); Cloud DB for PostgreSQL bucket list
  • CloudPostgresqlBucket type
CloudPostgresqlBucket Description
private String bucketName; Cloud DB for PostgreSQL bucket

Examples

Request Examples

ncloud vpostgresql getCloudPostgresqlBucketList --regionCode KR --cloudPostgresqlServerInstanceNo ****891

Response examples

The following are examples of responses.

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

{
  "getCloudPostgresqlBucketListResponse": {
    "requestId": "40cb968e-72ef-42d3-adc3-e392e8f7cc99",
    "returnCode": "0",
    "returnMessage": "success",
    "totalRows": 2,
    "cloudPostgresqlBucketList": [
      {
        "bucketName": "bucket***"
      },
      {
        "bucketName": "bucket***"
      }
    ]
  }
}

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

<getCloudPostgresqlBucketListResponse>
    <requestId>40cb968e-72ef-42d3-adc3-e392e8f7cc99</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <totalRows>2</totalRows>
    <cloudPostgresqlBucketList>
        <cloudPostgresqlBucket>
            <bucketName>bucket***</bucketName>
        </cloudPostgresqlBucket>
        <cloudPostgresqlBucket>
            <bucketName>bucket***</bucketName>
        </cloudPostgresqlBucket>
    </cloudPostgresqlBucketList>
</getCloudPostgresqlBucketListResponse>