Querying Saleable Instance SKUs in Batches
Function
Query instance SKUs in batches.
The API returns the specifications of all available instances of the tenant.
Query the SKU information of a specific offering based on the query parameter.
URI
GET /v1/instances/sku
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        type  | 
      
        Yes  | 
      
        String  | 
      
        Type of the SKU to be queried. Currently, only general cloud terminal SKUs can be queried. 0: Query the general cloud terminal SKU.  | 
     
Request Parameters
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        x-auth-token  | 
      
        Yes  | 
      
        String  | 
      
        IAM token information of the tenant.  | 
     
Response Parameters
Status code: 200
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        error_code  | 
      
        String  | 
      
        Response code.  | 
     
| 
        error_msg  | 
      
        String  | 
      
        Response.  | 
     
| 
        data  | 
      
        SkuSpecBaseResponse object  | 
      
        Response body.  | 
     
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        bandInfo  | 
      
        bandInfo object  | 
      
        Bandwidth information.  | 
     
| 
        skuSpecResponseList  | 
      
        Array of skuSpecResponseList objects  | 
      
        Instance specifications in different regions.  | 
     
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        cbcSkuId  | 
      
        String  | 
      
        Bandwidth SKU ID, corresponding to bandSkuId in the subscription API.  | 
     
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        skuResponses  | 
      
        Array of skuResponses objects  | 
      
        Instance specifications.  | 
     
| 
        regionId  | 
      
        String  | 
      
        Region ID.  | 
     
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        type  | 
      
        String  | 
      
        SKU specification types: ENTERPRISE or PROFESSIONAL.  | 
     
| 
        cbcSkuId  | 
      
        String  | 
      
        SKU ID of the instance, corresponding to the subscribed instanceSkuId.  | 
     
| 
        name  | 
      
        String  | 
      
        Flavor name.  | 
     
| 
        calcSpec  | 
      
        String  | 
      
        CPU | Memory specifications.  | 
     
| 
        storageSpec  | 
      
        String  | 
      
        Storage specifications.  | 
     
| 
        specDesc  | 
      
        String  | 
      
        Specification description.  | 
     
| 
        bandSize  | 
      
        String  | 
      
        Bandwidth size of the instance. The return value is a character string, for example, "2,4,8," indicating that three types of bandwidth are available.  | 
     
| 
        chargeMode  | 
      
        Integer  | 
      
        Billing mode. 0: yearly/monthly 1: pay-per-use 2: yearly/monthly and pay-per-use  | 
     
| 
        maxResolution  | 
      
        String  | 
      
        Highest resolution.  | 
     
| 
        poolInfo  | 
      
        poolInfo object  | 
      
        Resource pool information, including the primary key ID of the SKU data record, resource pool ID, and AOSP version of the resource pool.  | 
     
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        aosp  | 
      
        Array of aosp objects  | 
      
        Resource pool specifications.  | 
     
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        version  | 
      
        String  | 
      
        AOSP version.  | 
     
| 
        resPoolId  | 
      
        String  | 
      
        Resource pool ID.  | 
     
| 
        id  | 
      
        Integer  | 
      
        Primary key ID of the data in the SKU table.  | 
     
| 
        network  | 
      
        String  | 
      
        Network type. The value can be EIP or ADN.  | 
     
| 
        enable  | 
      
        Boolean  | 
      
        Enabled or not. The value can be true or false.  | 
     
Status code: 400
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        error_code  | 
      
        String  | 
      
        0: successful. KOOPHONE.API.1000: The request parameter is incorrect. Check whether the type in the request parameter is correct. KOOPHONE.API.1001: Insufficient instance permissions. KOOPHONE.API.9999: Internal service error.  | 
     
| 
        error_msg  | 
      
        String  | 
      
        Error message.  | 
     
Example Requests
/v1/instances/sku
Example Responses
Status code: 200
Returned parameters of the SKU API.
{
  "data" : {
    "bandInfo" : {
      "id" : "62",
      "cbcSkuId" : "kp.bandwidth"
    },
    "skuSpecResponseList" : [ {
      "skuResponses" : [ {
        "type" : "PROFESSIONAL",
        "cbcSkuId" : "kp.professional.xlarge.32g.2",
        "name" : "sku_1_xiahui",
        "calcSpec" : "4vCPUs | 8GB",
        "storageSpec" : "32GB",
        "specDesc" : "Professional | 4 vCPUs | 8 GB | 32 GB storage | Maximum resolution: 720p (imperceptible)",
        "specDescEn" : "Professional | 4 Core | 8GB | 32GB Storage | 720P Max Output",
        "bandSize" : "4,6",
        "poolInfo" : {
          "aosp" : [ {
            "version" : "AOSP9",
            "resPoolId" : "1600087199176311111",
            "id" : "40",
            "network" : "ADN",
            "enable" : true
          } ]
        },
        "nestInfo" : [ {
          "bandSize" : 6,
          "sceneType" : "CLOUD_PHONE",
          "network" : "EIP",
          "storageDesc" : "1.2T",
          "sceneDesc" : "Applicable to light office scenarios.",
          "sceneDescEn" : "Lightweight Office",
          "tags" : "Self-use and Office",
          "tagsEn" : "Personal Use,Business"
        }, {
          "bandSize" : 4,
          "sceneType" : "CLOUD_PHONE",
          "network" : "EIP",
          "storageDesc" : "1.2T",
          "sceneDesc" : "Applicable to light office scenarios-2.",
          "sceneDescEn" : "Lightweight Office",
          "tagsEn" : "Personal Use,Business"
        } ],
        "chargeMode" : 2,
        "maxResolution" : "720p (imperceptible)"
      }, {
        "type" : "ENTERPRISE",
        "cbcSkuId" : "kp.enterprise.xlarge.32g.2",
        "name" : "sku_basic_app",
        "calcSpec" : "4vCPUs | 8GB",
        "storageSpec" : "32GB",
        "specDesc" : "Instances available for subscription.",
        "specDescEn" : "Professional | 4 Core | 8GB | 32GB Storage | 720P Max Output",
        "bandSize" : "4",
        "poolInfo" : {
          "aosp" : [ {
            "version" : "AOSP9",
            "resPoolId" : "1600087199176322222",
            "id" : "58",
            "network" : "ADN",
            "enable" : true
          } ]
        },
        "nestInfo" : [ ],
        "chargeMode" : 2,
        "maxResolution" : "720p"
      } ],
      "regionId" : "cn-north-7"
    }, {
      "skuResponses" : [ {
        "type" : "PROFESSIONAL",
        "cbcSkuId" : "kp.professional.xlarge.32g.2",
        "name" : "sku_1",
        "calcSpec" : "4vCPUs | 8GB",
        "storageSpec" : "32GB",
        "specDesc" : "Professional | 4 vCPUs | 8 GB | 32 GB storage | Maximum resolution: 720p",
        "specDescEn" : "Professional | 4 Core | 8GB | 32GB Storage | 720P Max Output",
        "bandSize" : "4,8",
        "poolInfo" : {
          "aosp" : [ {
            "version" : "AOSP9",
            "resPoolId" : "1600087199176333333",
            "id" : "43",
            "network" : "ADN",
            "enable" : true
          } ]
        },
        "chargeMode" : 2,
        "maxResolution" : "720p"
      } ],
      "regionId" : "cn-north-208"
    }, {
      "skuResponses" : [ {
        "type" : "PROFESSIONAL",
        "cbcSkuId" : "kp.professional.xlarge.32g.2",
        "name" : "sku_xingneng_ceshi",
        "calcSpec" : "4vCPUs | 8GB",
        "storageSpec" : "32GB",
        "specDesc" : "Professional | 4 vCPUs | 8 GB | 32 GB storage | Maximum resolution: 720p",
        "specDescEn" : "Professional | 4 Core | 8GB | 32GB Storage | 720P Max Output",
        "bandSize" : "4,8",
        "poolInfo" : {
          "aosp" : [ {
            "version" : "AOSP9",
            "resPoolId" : "9223372036854774444",
            "id" : "50",
            "network" : "ADN",
            "enable" : true
          } ]
        },
        "nestInfo" : [ {
          "bandSize" : 8,
          "sceneType" : "CLOUD_PHONE",
          "network" : "EIP",
          "storageDesc" : "1.2T",
          "sceneDesc" : "Applicable to light office scenarios.",
          "sceneDescEn" : "Lightweight Office",
          "tags" : "Self-use and Office",
          "tagsEn" : "Personal Use,Business"
        }, {
          "bandSize" : 4,
          "sceneType" : "CLOUD_PHONE",
          "network" : "EIP",
          "storageDesc" : "1.2T",
          "sceneDesc" : "Applicable to light office scenarios-2.",
          "sceneDescEn" : "Lightweight Office",
          "tagsEn" : "Personal Use,Business"
        } ],
        "chargeMode" : 2,
        "maxResolution" : "720p"
      } ],
      "regionId" : "cn-southwest-252"
    } ]
  },
  "error_code" : "0",
  "error_msg" : "return sku messages success"
}
 Status Codes
| 
        Status Code  | 
      
        Description  | 
     
|---|---|
| 
        200  | 
      
        Returned parameters of the SKU API.  | 
     
| 
        400  | 
      
        Error message.  | 
     
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot