getCloudMysqlImageProductList

Prev Next

Available in VPC

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

Request

The following describes the request format for the endpoint. The request format is as follows:

Method URI
GET, POST /getCloudMysqlImageProductList

Request headers

For headers common to all Cloud DB for MySQL (VPC) APIs, see Cloud DB for MySQL (VPC) request headers.

Request parameter

The following describes the parameters.

Field Type Required Description
regionCode String Optional Region code
  • Region code to view the Cloud DB for MySQL image product code list for
  • Check through getRegionList
  • First Region of the getRegionList query result (default)
productCode String Optional Filter by Cloud DB for MySQL image product code
exclusionProductCode String Optional Filter by excluding Cloud DB for MySQL image product code
generationCode String Optional Filter by generation code
  • G2 | G3
responseFormatType String Optional Format of the response result
  • xml (default) | json

Request example

The following is a sample request.

curl --location --request GET 'https://ncloud.apigw.ntruss.com/vmysql/v2/getCloudMysqlImageProductList
?regionCode=KR
&productCode=SW.VDBAS.DBAAS.LNX64.CNTOS.0708.MYSQL.5732.B050
&exclusionProductCode=SW.VDBAS.DBAAS.LNX64.CNTOS.0708.MYSQL.5729.B050
&generationCode=G2'
--header 'x-ncp-apigw-timestamp: {Timestamp}' 
--header 'x-ncp-iam-access-key: {Access Key}' 
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'

Response

The following describes the response format.

Response body

See CloudDbProductList for the response body.

Response status codes

For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.

Response example

The following is a sample response.

  • If responseFormatType=json
{
    "getCloudMysqlImageProductListResponse": {
        "totalRows": 1,
        "productList": [
            {
                "productCode": "SW.VDBAS.DBAAS.LNX64.CNTOS.0708.MYSQL.8025.B050",
                "productName": "mysql(8.0.25)",
                "productType": {
                    "code": "LINUX",
                    "codeName": "Linux"
                },
                "productDescription": "CentOS 7.8 with MySQL 8.0.25",
                "infraResourceType": {
                    "code": "SW",
                    "codeName": "Software"
                },
                "baseBlockStorageSize": 53687091200,
                "platformType": {
                    "code": "LNX64",
                    "codeName": "Linux 64 Bit"
                },
                "osInformation": "CentOS 7.8 with MySQL 8.0.25 (64-bit)",
                "generationCode": "G2",
                "engineVersionCode": "MYSQL8.0.25"
            }
        ],
        "requestId": "b0fc99ba-****-****-****-10b4af985d1e",
        "returnCode": "0",
        "returnMessage": "success"
    }
}
  • If responseFormatType=xml (default)
<?xml version="1.0" encoding="UTF-8"?>
<getCloudMysqlImageProductListResponse>
    <requestId>b0fc99ba-****-****-****-10b4af985d1e</requestId>
    <returnCode>0</returnCode>
    <returnMessage>success</returnMessage>
    <totalRows>1</totalRows>
    <productList>
        <product>
            <productCode>SW.VDBAS.DBAAS.LNX64.CNTOS.0708.MYSQL.8025.B050</productCode>
            <productName>mysql(8.0.25)</productName>
            <productType>
                <code>LINUX</code>
                <codeName>Linux</codeName>
            </productType>
            <productDescription>CentOS 7.8 with MySQL 8.0.25</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 MySQL 8.0.25 (64-bit)</osInformation>
            <generationCode>G2</generationCode>
            <engineVersionCode>MYSQL8.0.25</engineVersionCode>
        </product>
    </productList>
</getCloudMysqlImageProductListResponse>