Skip to main content Link Menu Expand (external link) Document Search Copy Copied

DescribeULHostInstance

Introduction

Get a list of lightweight application cloud hosts

Instructions

You can choose any of the following methods to initiate an API request:

Multilingual OpenSDK / Java /

CloudShell cloud command line

Definition

Common parameter

Parameter name Type   Required
Action string The corresponding API instruction name, the current API is DescribeULHostInstance Yes
PublicKey string The user’s public key, available from Console fetch Yes
Signature string According to the public key and API The user signature generated by the directive is found in Signature algorithm Yes

Request parameter

The parameter name Type Description Required
Region string See List of Regions and Availability Zones Yes
ProjectId string Project ID (example: org-04ibqy), This field, by default, is empty and is only required when the account is a Sub-Account No

Response field

Field name Type Description Required
RetCode int Returns a status code, with 0 for success and failure for non-0 Yes
Action string The name of the operation instruction Yes
Message string Returns an error message that provides detailed description information when RetCode is non-0 No
Bundles array[bundle] List of packages Yes

Bundle

Field name Type Description Required
BundleId string Package ID. No
CPU int Number of CPU cores. No
Memory int Memory size. Unit: MB. No
SysDiskSpace int System disk size. Unit: GB. No
Bandwidth int Internet bandwidth. Unit: Mbps. No
TrafficPacket int Traffic packet size. Unit: GB. No

Example

Example request

https://api.scloud.sg?Action=DescribeULHostInstance
&Region=vn-sng
&ProjectId=aoPMNqqb
&ULHostIds.N=YTKcvmGV
&Offset=7
&Limit=9

Example response

{
  "Action": "DescribeULHostInstanceResponse",
  "Message": "GmrflzlM",
  "RetCode": 0,
  "ULHostInstanceSets": [
    {
      "AutoRenew": "PyPNLqBH",
      "CPU": 1,
      "ChargeType": "hauEukUs",
      "CreateTime": 7,
      "DiskSet": [
        {
          "BackupType": "xHWomUhO",
          "DiskId": "MWvyrUwR",
          "DiskType": "IRrEynyl",
          "Drive": "RvmLbdKX",
          "Encrypted": "cNyCMNmT",
          "IsBoot": "tvSzSraj",
          "Name": "vsfpLPyr",
          "Size": 3,
          "Type": "UkyaHXBR"
        }
      ],
      "ExpireTime": 5,
      "IPSet": [
        {
          "Bandwidth": 2,
          "Default": "AnzSfoBi",
          "IP": "EOmBPJZd",
          "IPId": "vnrKbtka",
          "IPMode": "pWfqUmBy",
          "Mac": "DggLGvKF",
          "NetworkInterfaceId": "oTgcJktO",
          "SubnetId": "RfEGLEoc",
          "Type": "BVSGfRvP",
          "VPCId": "lrFLnZeF",
          "Weight": 9
        }
      ],
      "IsExpire": "dQxEsaLW",
      "Memory": 7,
      "Name": "jsqzqDEj",
      "Remark": "tJoNHAEH",
      "State": "CagCpoZQ",
      "Tag": "zQppWJxb",
      "ULHostId": "hcquybJV"
    }
  ]
}