docs
api
UHost(UHost)
DescribeAvailableInstanceTypes

Obtain information on all machine types available/sold out in a certain region - DescribeAvailableInstanceTypes

Overview

DescribeAvailableInstanceTypes

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeAvailableInstanceTypes.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ZonestringAvailability Zone. See Availability Zone ListNo
ProjectIdstringProject ID. If not filled in, the default project will be used. Sub-accounts must fill this in.No
MachineTypes.NstringDesignated Machine Type ListNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
AvailableInstanceTypesarray[AvailableInstanceTypes]AvailableInstanceTypesYes
StatusstringIs the current region available for sale?No

Data Model

AvailableInstanceTypes

Field NameTypeDescription InformationRequired
ZonestringAvailability Zone InformationNo
NamestringModel Name: Speedy O Type|O, Speedy Shared Type|OM, Speedy Memory Type|OMEM, Speedy PRO Type|OPRO, General N Type|N, High Frequency C Type|C and GPU G Type|G, etc.No
StatusstringMachine Status: Available|Normal, Public Test|Beta, Sold Out|Soldout, Hidden|HiddenNo
CpuPlatformsCpuPlatformsSupported CPU platforms, and returns classified according to Intel, AMD, and Ampere.No
Disksarray[Disks]Disk Information. The main categories of disks are as follows: Cloud Disk|cloudDisk, Normal Local Disk|normalLocalDisk, and SSD Local Disk|ssdLocalDisk.

Among them, Cloud Disk mainly includes Normal Cloud Disk|CLOUD_NORMAL, SSD Cloud Disk|CLOUD_SSD, and RSSD Cloud Disk|CLOUD_RSSD. Normal Local Disk only includes Normal Local Disk|LOCAL_NORMAL. SSD Local Disk only includes SSD Local Disk|LOCAL_SSD.

MinimalSize is the minimum value of the disk. If this field is not present, the minimum value can be taken from the base image Size value (20G for Linux, 40G for Windows). MaximalSize is the maximum value of the disk.

InstantResize indicates whether the system disk allows expansion. If it is a local disk, expansion is not allowed, and InstantResize is false.

Features are the services supported by the disk: Data Ark|DATAARK, Snapshot Service|SNAPSHOT, Encrypted Disk|Encrypted.
No
MachineSizesarray[MachineSizes]GPU, CPU, and memory information. Gpu refers to the specifications that GPU can support, while Cpu and Memory refer to the specifications that CPU and memory can support respectively. If it is not a GPU model, GPU is 0.

MinimalCpuPlatform represents that this CPU and memory specification can only be supported on the listed CPU platforms.
No
Featuresarray[Features]Features supported by the virtual machine. The currently supported features are Network Enhancement|NetCapability and Hot Upgrade|Hotplug.

Network Enhancement is divided into Off|Normal, Network Enhancement 1.0|Super, and Network Enhancement 2.0|Ultra.

Name is the name of the supported feature, Modes are the available mode categories, and RelatedToImageFeature is the tag on the image that supports this feature. For example, if the Features field returned by DescribeImage contains HotPlug, it means that the image supports hot upgrades.

MinimalCpuPlatform indicates that this feature is only supported by the listed CPU platforms and above.
No
MachineClassstringDistinguish whether it is a GPU model: GPU model|GPU, non-GPU model|Normal.No
GraphicsMemoryGraphicsMemoryThe metric of GPU's video memory, value is the value, the unit is GB.No
PerformancePerformanceThe performance indicator of the GPU, where 'value' is the value, and the unit is TFlops.No

CpuPlatforms

Field NameTypeDescription InformationRequired
Intelarray[string]Return the CPU platform information of Intel, for example: Intel: ['Intel/CascadeLake','Intel/CascadelakeR','Intel/IceLake']
No
Amdarray[string]Return the CPU platform information of AMD, for example: AMD: ['Amd/Epyc2']
No
Amperearray[string]Return the CPU platform information of Arm, for example: Ampere: ['Ampere/Altra']No

Disks

Field NameTypeDescription InformationRequired
NamestringDisk medium category information, the main categories of disks are as follows: Cloud Disk|cloudDisk, Normal Local Disk|normalLocalDisk and SSD Local Disk|ssdLocalDisk.No
BootDiskarray[BootDiskInfo]System Disk InformationNo
DataDiskarray[DataDiskInfo]Data Disk InformationNo

MachineSizes

Field NameTypeDescription InformationRequired
GpuintGpu refers to the specifications that GPU can support, namely the number of GPU cores. For non-GPU models, Gpu is 0.No
Collectionarray[Collection]Specifications supported by CPU and memoryNo

Features

Field NameTypeDescription InformationRequired
NamestringSupported feature names. Currently supported features are Network Enhancement|NetCapability, Hot Upgrade|Hotplug.No
Modesarray[FeatureModes]Available mode categoriesNo

GraphicsMemory

Field NameTypeDescription InformationRequired
ValueintValue, unit is GBNo
RateintInteractive display parameters, can be ignoredNo

Performance

Field NameTypeDescription InformationRequired
ValuefloatValue, the unit is TFlopsNo
RateintInteractive display parameters, can be ignoredNo

FeatureModes

Field NameTypeDescription InformationRequired
NamestringPattern|Feature NameNo
RelatedToImageFeaturearray[string]For the tag that supports this feature on the image. For example, the field 'Features' returned by 'DescribeImage' contains 'HotPlug', which indicates that the image supports hot upgrades.No
MinimalCpuPlatformarray[string]This feature is only supported by the CPU platforms and above that are listed.No

Collection

Field NameTypeDescription InformationRequired
CpuintCPU SpecificationsNo
Memoryarray[int]Memory SpecificationNo
MinimalCpuPlatformarray[string]CPU and memory specifications can only be supported on the listed CPU platforms.No

BootDiskInfo

Field NameTypeDescription InformationRequired
NamestringSystem disk category, including ordinary cloud disk|CLOUD_NORMAL, SSD cloud disk|CLOUD_SSD and RSSD cloud disk|CLOUD_RSSD. The ordinary local disk only includes ordinary local disk|LOCAL_NORMAL. The SSD local disk only includes SSD local disk|LOCAL_SSD.No
InstantResizebooleanWhether the system disk allows expansion. If it is a local disk, expansion is not allowed, InstantResize is set to false.No
MaximalSizeintMaximalSize is the maximum value of the diskNo
Featuresarray[string]Services Supported by DiskNo

DataDiskInfo

Field NameTypeDescription InformationRequired
MinimalSizeintMinimum disk size. If this field is not present, the minimum value defaults to the base image size (20G for Linux, 40G for Windows).No
NamestringData disk types, including ordinary cloud disk|CLOUD_NORMAL, SSD cloud disk|CLOUD_SSD and RSSD cloud disk|CLOUD_RSSD. The ordinary local disk only includes ordinary local disk|LOCAL_NORMAL. The SSD local disk only includes SSD local disk|LOCAL_SSD.No
MaximalSizeintMaximalSize is the maximum value of the diskNo
Featuresarray[string]Services Supported by Data DiskNo

Example

Request Example

https://api.surfercloud.com/?Action=DescribeAvailableInstanceTypes
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=qOkTGfWf
&MachineTypes.N=STscCopU

Response Example

{
  "Action": "DescribeAvailableInstanceTypesResponse",
  "AvailableInstanceTypes": "sNSlnDFQ",
  "RetCode": 0,
  "Status": "UGBTxoLj"
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved