The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
Available in VPC
Get the list of Cloud DB for PostgreSQL product codes.
Commands
The command statement is as follows:
ncloud vpostgresql getCloudPostgresqlImageProductList [regionCode] [productCode] [exclusionProductCode] [generationCode] [output]
Parameter
The following describes the parameters.
| Parameter | Type | Required | Description | Restrictions |
|---|---|---|---|---|
| regionCode | String | N | Region code
|
- |
| productCode | String | N | Cloud DB for PostgreSQL image product code to query
|
- |
| exclusionProductCode | String | N | Cloud DB for PostgreSQL image product code to exclude
|
- |
| generationCode | String | N | Generation code
|
- |
| output | String | N | Respond result's format type
|
- |
Response
Response data type
- ProductList type
| ProductList extends CommonResponse | Description |
|---|---|
| private Integer totalRows; | Total number of lists searched |
| private List<Product> productList = new ArrayList<>(); | List of products |
- Product type
| Product | Description |
|---|---|
| private String productCode; | Product code managed by NAVER Cloud Platform, which defines server specifications or server OS |
| private String productName; | Product name |
| private CommonCode productType; | Product type |
| private String productDescription; | Product description |
| private CommonCode infraResourceType; | Infrastructure resource type |
| private CommonCode infraResourceDetailType; | Detailed infrastructure resource type |
| private Integer cpuCount; | Number of CPUs |
| private Long memorySize; | Memory size |
| private Long baseBlockStorageSize; | Default block storage size |
| private CommonCode platformType; | Platform type |
| private String osInformation; | OS information |
| private CommonCode diskType; | Disk type |
| private String dbKindCode; | DB type code |
| private Long addBlockStorageSize; | Added block storage size |
| private String generationCode; | Generation code |
Examples
It describes call and response examples.
Call examples
The following is a call example.
ncloud vpostgresql getCloudPostgresqlImageProductList --regionCode KR
Response example
The response example is as follows:
When the response result format type (output) is JSON
{
"getCloudPostgresqlImageProductListResponse": {
"requestId": "15607e06-e159-40d6-a6e3-00d9f7ba167c",
"returnCode": 0,
"returnMessage": "success",
"totalRows": 3,
"productList": [
{
"productCode": "SW.VPGSL.OS.LNX64.CNTOS.0708.PGSQL.133.B050",
"productName": "PostgreSQL 13.3",
"productType": {
"code": "LINUX",
"codeName": "Linux"
},
"productDescription": "CentOS 7.8 with PostgreSQL 13.3",
"infraResourceType": {
"code": "SW",
"codeName": "Software"
},
"baseBlockStorageSize": 53687091200,
"platformType": {
"code": "LNX64",
"codeName": "Linux 64 Bit"
},
"osInformation": "CentOS 7.8 with PostgreSQL 13.3 (64-bit)",
"generationCode": "G2"
},
{
"productCode": "SW.VPGSL.OS.LNX64.CNTOS.0708.PGSQL.137.B050",
"productName": "PostgreSQL 13.7",
"productType": {
"code": "LINUX",
"codeName": "Linux"
},
"productDescription": "CentOS 7.8 with PostgreSQL 13.7",
"infraResourceType": {
"code": "SW",
"codeName": "Software"
},
"baseBlockStorageSize": 53687091200,
"platformType": {
"code": "LNX64",
"codeName": "Linux 64 Bit"
},
"osInformation": "CentOS 7.8 with PostgreSQL 13.7 (64-bit)",
"generationCode": "G2"
},
{
"productCode": "SW.VPGSL.OS.LNX64.CNTOS.0708.PGSQL.1310.B050",
"productName": "PostgreSQL 13.10",
"productType": {
"code": "LINUX",
"codeName": "Linux"
},
"productDescription": "CentOS 7.8 with PostgreSQL 13.10",
"infraResourceType": {
"code": "SW",
"codeName": "Software"
},
"baseBlockStorageSize": 53687091200,
"platformType": {
"code": "LNX64",
"codeName": "Linux 64 Bit"
},
"osInformation": "CentOS 7.8 with PostgreSQL 13.10 (64-bit)",
"generationCode": "G2"
}
]
}
}
When the response result format type (output) is XML
<getCloudPostgresqlImageProductListResponse>
<requestId>15607e06-e159-40d6-a6e3-00d9f7ba167c</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>3</totalRows>
<productList>
<product>
<productCode>SW.VPGSL.OS.LNX64.CNTOS.0708.PGSQL.133.B050</productCode>
<productName>PostgreSQL 13.3</productName>
<productType>
<code>LINUX</code>
<codeName>Linux</codeName>
</productType>
<productDescription>CentOS 7.8 with PostgreSQL 13.3</productDescription>
<infraResourceType>
<code>SW</code>
<codeName>Software</codeName>
</infraResourceType>
<baseBlockStorageSize>53687091200</baseBlockStorageSize>
<platformType>
<code>LNX64</code>
<codeName>Linux 64 Bit</codeName>
</platformType>
<osInformation>CentOS 7.8 with PostgreSQL 13.3 (64-bit)</osInformation>
<generationCode>G2</generationCode>
</product>
<product>
<productCode>SW.VPGSL.OS.LNX64.CNTOS.0708.PGSQL.137.B050</productCode>
<productName>PostgreSQL 13.7</productName>
<productType>
<code>LINUX</code>
<codeName>Linux</codeName>
</productType>
<productDescription>CentOS 7.8 with PostgreSQL 13.7</productDescription>
<infraResourceType>
<code>SW</code>
<codeName>Software</codeName>
</infraResourceType>
<baseBlockStorageSize>53687091200</baseBlockStorageSize>
<platformType>
<code>LNX64</code>
<codeName>Linux 64 Bit</codeName>
</platformType>
<osInformation>CentOS 7.8 with PostgreSQL 13.7 (64-bit)</osInformation>
<generationCode>G2</generationCode>
</product>
<product>
<productCode>SW.VPGSL.OS.LNX64.CNTOS.0708.PGSQL.1310.B050</productCode>
<productName>PostgreSQL 13.10</productName>
<productType>
<code>LINUX</code>
<codeName>Linux</codeName>
</productType>
<productDescription>CentOS 7.8 with PostgreSQL 13.10</productDescription>
<infraResourceType>
<code>SW</code>
<codeName>Software</codeName>
</infraResourceType>
<baseBlockStorageSize>53687091200</baseBlockStorageSize>
<platformType>
<code>LNX64</code>
<codeName>Linux 64 Bit</codeName>
</platformType>
<osInformation>CentOS 7.8 with PostgreSQL 13.10 (64-bit)</osInformation>
<generationCode>G2</generationCode>
</product>
</productList>
</getCloudPostgresqlImageProductListResponse>