Available in VPC
Get the list of image product codes provided by Server.
Syntax
The getServerImageProductList syntax is as follows:
./ncloud vserver getServerImageProductList \
[--productCode <image-product-code>] \
[--exclusionProductCode <exclusion-image-product-code>] \
[--platformTypeCodeList <platform-type-code-list>] \
[--infraResourceDetailTypeCode <BM>] \
[--blockStorageSize <50|100>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running getServerImageProductList.
Optional options
These are the optional options for getServerImageProductList. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--productCode |
String | Optional | Server image product code to query |
--exclusionProductCode |
String | Optional | Server image product code to exclude |
--platformTypeCodeList |
List | Optional | Platform type code list
|
--infraResourceDetailTypeCode |
String | Optional | Infrastructure resource detailed type code
|
--blockStorageSize |
Integer | Optional | Block storage size (GB)
|
Common options
For information about the options common to all vserver subcommands, see Server (VPC) options.
Examples
If the request to retrieve the server image product list is successful, the identification information and platform information for each product are returned.
Command
The command example is as follows:
./ncloud vserver getServerImageProductList \
--platformTypeCodeList LNX64 \
--blockStorageSize 50 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"getServerImageProductListResponse": {
"totalRows": 4,
"productList": [
{
"productCode": "SW.VSVR.OS.LNX64.ROCKY.0808.B050",
"productName": "Rocky Linux 8.8",
"productType": {
"code": "LINUX",
"codeName": "Linux"
},
"productDescription": "Rocky Linux 8.8",
"infraResourceType": {
"code": "SW",
"codeName": "Software"
},
"cpuCount": 0,
"memorySize": 0,
"baseBlockStorageSize": 53687091200,
"platformType": {
"code": "LNX64",
"codeName": "Linux 64 Bit"
},
"osInformation": "Rocky Linux 8.8",
"dbKindCode": "",
"addBlockStorageSize": 0,
"generationCode": "G2"
},
{
"productCode": "SW.VSVR.OS.LNX64.ROCKY.0810.B050",
"productName": "Rocky Linux 8.10",
"productType": {
"code": "LINUX",
"codeName": "Linux"
},
"productDescription": "Rocky Linux 8.10",
"infraResourceType": {
"code": "SW",
"codeName": "Software"
},
"cpuCount": 0,
"memorySize": 0,
"baseBlockStorageSize": 53687091200,
"platformType": {
"code": "LNX64",
"codeName": "Linux 64 Bit"
},
"osInformation": "Rocky Linux 8.10",
"dbKindCode": "",
"addBlockStorageSize": 0,
"generationCode": "G2"
},
{
"productCode": "SW.VSVR.DBMS.LNX64.ROCKY.0808.TBERO.CEE7.B050",
"productName": "TiberoCEE-Rocky-8.8",
"productType": {
"code": "LINUX",
"codeName": "Linux"
},
"productDescription": "Rocky Linux 8.8 with Tibero 7 CEE (Cloud Enterprise Edition)",
"infraResourceType": {
"code": "SW",
"codeName": "Software"
},
"cpuCount": 0,
"memorySize": 0,
"baseBlockStorageSize": 53687091200,
"platformType": {
"code": "LNX64",
"codeName": "Linux 64 Bit"
},
"osInformation": "Rocky Linux 8.8 with Tibero 7 CEE (Cloud Enterprise Edition)",
"dbKindCode": "",
"addBlockStorageSize": 0,
"generationCode": "G2"
},
{
"productCode": "SW.VSVR.DBMS.LNX64.ROCKY.0808.TBERO.CSE7.B050",
"productName": "TiberoCSE-Rocky-8.8",
"productType": {
"code": "LINUX",
"codeName": "Linux"
},
"productDescription": "Rocky Linux 8.8 with Tibero 7 CSE (Cloud Standard Edition)",
"infraResourceType": {
"code": "SW",
"codeName": "Software"
},
"cpuCount": 0,
"memorySize": 0,
"baseBlockStorageSize": 53687091200,
"platformType": {
"code": "LNX64",
"codeName": "Linux 64 Bit"
},
"osInformation": "Rocky Linux 8.8 with Tibero 7 CSE (Cloud Standard Edition)",
"dbKindCode": "",
"addBlockStorageSize": 0,
"generationCode": "G2"
}
],
"requestId": "d4e5f6a7-b8c9-0123-defa-456789012345",
"returnCode": "0",
"returnMessage": "success"
}
}