Documentation Index

Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

getCloudMysqlImageProductList

Prev Next

Available in VPC

Get the list of image product codes provided by Cloud DB for MySQL.

Syntax

The getCloudMysqlImageProductList syntax is as follows:

./ncloud vmysql getCloudMysqlImageProductList \
    [--productCode <image-product-code>] \
    [--exclusionProductCode <exclusion-image-product-code>] \
    [--generationCode <G2|G3>] \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running getCloudMysqlImageProductList.

Optional options

These are the optional options for getCloudMysqlImageProductList. Options that are not specified will use their default values.

Options Type Required Description
--productCode String Optional Cloud DB for MySQL image product code to be searched
--exclusionProductCode String Optional Cloud DB for MySQL image product code to be excluded
--generationCode String Optional Generation code
  • G2 | G3

Common options

For information about the options common to all vmysql subcommands, see Cloud DB for MySQL (VPC) options.

Examples

If the request to retrieve the list of Cloud DB for MySQL image product codes is successful, the identification information and platform information for each product are returned.

Command

The command example is as follows:

./ncloud vmysql getCloudMysqlImageProductList \
    --productCode SW.VMYSL.OS.LNX64.ROCKY.0810.MYSQL.B050 \
    --exclusionProductCode SW.VMYSL.OS.LNX64.ROCKY.08.MYSQL.B050.G003 \
    --generationCode G2 \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "getCloudMysqlImageProductListResponse": {
    "totalRows": 5,
    "productList": [
      {
        "productCode": "SW.VMYSL.OS.LNX64.ROCKY.0810.MYSQL.B050",
        "productName": "MySQL",
        "productType": {
          "code": "LINUX",
          "codeName": "Linux"
        },
        "productDescription": "Rocky Linux 8.10 with MySQL",
        "infraResourceType": {
          "code": "SW",
          "codeName": "Software"
        },
        "baseBlockStorageSize": 53687091200,
        "platformType": {
          "code": "LNX64",
          "codeName": "Linux 64 Bit"
        },
        "osInformation": "Rocky Linux 8.10 with MySQL (64-bit)",
        "generationCode": "G2",
        "engineVersionCode": "8.4.6"
      },
      {
        "productCode": "SW.VMYSL.OS.LNX64.ROCKY.0810.MYSQL.B050",
        "productName": "MySQL",
        "productType": {
          "code": "LINUX",
          "codeName": "Linux"
        },
        "productDescription": "Rocky Linux 8.10 with MySQL",
        "infraResourceType": {
          "code": "SW",
          "codeName": "Software"
        },
        "baseBlockStorageSize": 53687091200,
        "platformType": {
          "code": "LNX64",
          "codeName": "Linux 64 Bit"
        },
        "osInformation": "Rocky Linux 8.10 with MySQL (64-bit)",
        "generationCode": "G2",
        "engineVersionCode": "8.0.45"
      },
      {
        "productCode": "SW.VMYSL.OS.LNX64.ROCKY.0810.MYSQL.B050",
        "productName": "MySQL",
        "productType": {
          "code": "LINUX",
          "codeName": "Linux"
        },
        "productDescription": "Rocky Linux 8.10 with MySQL",
        "infraResourceType": {
          "code": "SW",
          "codeName": "Software"
        },
        "baseBlockStorageSize": 53687091200,
        "platformType": {
          "code": "LNX64",
          "codeName": "Linux 64 Bit"
        },
        "osInformation": "Rocky Linux 8.10 with MySQL (64-bit)",
        "generationCode": "G2",
        "engineVersionCode": "8.0.42"
      },
      {
        "productCode": "SW.VMYSL.OS.LNX64.ROCKY.0810.MYSQL.B050",
        "productName": "MySQL",
        "productType": {
          "code": "LINUX",
          "codeName": "Linux"
        },
        "productDescription": "Rocky Linux 8.10 with MySQL",
        "infraResourceType": {
          "code": "SW",
          "codeName": "Software"
        },
        "baseBlockStorageSize": 53687091200,
        "platformType": {
          "code": "LNX64",
          "codeName": "Linux 64 Bit"
        },
        "osInformation": "Rocky Linux 8.10 with MySQL (64-bit)",
        "generationCode": "G2",
        "engineVersionCode": "8.0.40"
      },
      {
        "productCode": "SW.VMYSL.OS.LNX64.ROCKY.0810.MYSQL.B050",
        "productName": "MySQL",
        "productType": {
          "code": "LINUX",
          "codeName": "Linux"
        },
        "productDescription": "Rocky Linux 8.10 with MySQL",
        "infraResourceType": {
          "code": "SW",
          "codeName": "Software"
        },
        "baseBlockStorageSize": 53687091200,
        "platformType": {
          "code": "LNX64",
          "codeName": "Linux 64 Bit"
        },
        "osInformation": "Rocky Linux 8.10 with MySQL (64-bit)",
        "generationCode": "G2",
        "engineVersionCode": "8.0.36"
      }
    ],
    "requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "returnCode": "0",
    "returnMessage": "success"
  }
}