MENU
      getServerProductList

        getServerProductList


        Article summary

        Overview

        Get the server product list.

        Description

        To create a server instance (VM), you must select and create a server product (server specifications).
        Therefore, we provide an API that allows you to query server products.

        Request parameters

        Parameter nameRequiredTypeRestrictionsDescription
        exclusionProductCodeNoStringMin: 1, Max: 20Enter the product code to exclude from the list
        productCodeNoStringMin: 1, Max: 20Enter the product code to query from the list
        Use when querying one item
        generationCodeNoStringMin: 1, Max: 20Enter the product generation code to query from the list [either G1 or G2]
        serverImageProductCodeConditionalStringMin: 1, Max: 20Server image product code
        The server specifications that can be created vary depending on the server image product
        Either one of two parameters, serverImageProductCode or memberServerImageNo, is required.
        It can be obtained through the getServerImageProdutList action
        regionNoNoStringYou can obtain the status where input is possible through the getRegionList action
        zoneNoNoStringYou can determine the zone in which the product list will be queried
        You can obtain it through the getZoneList action
        Default: Select the first zone of the Region
        memberServerImageNoConditionalStringMember server image number
        Able to query the creation specifications for EOL OS
        Either one of two parameters, serverImageProductCode or memberServerImageNo, is required.
        When both serverImageProductCode and memberServerImageNo are entered, use memberServerImageNo to query
        It can be obtained through the getMemberServerImageList action

        Response data type

        • ProductList type
        ProductList extends CommonResponse
        private Integer totalRows;
        private List<Product> productList = new ArrayList<Product>();
        Product
        private String productCode;
        private String generationCode;
        private String productName;
        private CommonCode productType;
        private String productDescription;
        private CommonCode infraResourceType;
        private CommonCode infraResourceDetailType;
        private Integer cpuCount;
        private Long memorySize;
        private Long baseBlockStorageSize;
        private CommonCode platformType;
        private String osInformation;
        private CommonCode diskType;
        private String dbKindCode
        private Long addBlockStorageSize;

        Examples

        Call

        ncloud server getServerProductList --serverImageProductCode SPSW0LINUX000043 --productCode SPSVRSSD00000009
        Plain text

        Response

        {
          "getServerProductListResponse": {
            "requestId": "16996ca6-0f2d-46fa-aca4-4903a5aad3e2",
            "returnCode": "0",
            "returnMessage": "success",
            "productList": [
              {
                "productCode": "SPSVRSSD00000009",
                "generationCode": "G1",
                "productName": "vCPU 16EA, Memory 16GB, [SSD]Disk 50GB",
                "productType": {
                  "code": "STAND",
                  "codeName": "Standard"
                },
                "productDescription": "vCPU 16EA, Memory 16GB, [SSD]Disk 50GB",
                "infraResourceType": {
                  "code": "SVR",
                  "codeName": "Server"
                },
                "cpuCount": 16,
                "memorySize": 17179869184,
                "baseBlockStorageSize": 53687091200,
                "osInformation": "",
                "diskType": {
                  "code": "NET",
                  "codeName": "Network Storage"
                },
                "dbKindCode": "",
                "addBlockStorageSize": 0
              }
            ],
            "totalRows": 1
          }
        }
        JSON
        <getServerProductListResponse>
          <requestId>6a17f564-8af2-44fe-b416-1c9ce7b2d200</requestId>
          <returnCode>0</returnCode>
          <returnMessage>success</returnMessage>
          <productList>
            <product>
              <productCode>SPSVRSSD00000009</productCode>
              <generationCode>G1</generationCode>
              <productName>vCPU 16EA, Memory 16GB, [SSD]Disk 50GB</productName>
              <productType>
                <code>STAND</code>
                <codeName>Standard</codeName>
              </productType>
              <productDescription>vCPU 16EA, Memory 16GB, [SSD]Disk 50GB</productDescription>
              <infraResourceType>
                <code>SVR</code>
                <codeName>Server</codeName>
              </infraResourceType>
              <cpuCount>16</cpuCount>
              <memorySize>17179869184</memorySize>
              <baseBlockStorageSize>53687091200</baseBlockStorageSize>
              <osInformation></osInformation>
              <diskType>
                <code>NET</code>
                <codeName>Network Storage</codeName>
              </diskType>
              <dbKindCode></dbKindCode>
              <addBlockStorageSize>0</addBlockStorageSize>
            </product>
          </productList>
          <totalRows>1</totalRows>
        </getServerProductListResponse>
        XML

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.