Docs
api
Physical Cloud Host(UPHost)
DescribePHostImage

Obtain Physical Machine Image - DescribePHostImage

Overview

Get Physical Cloud Host Image List

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribePHostImage.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
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 ListYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
ImageTypestringImage Category, enumeration values, Base is the basic image; Custom is the self-made image.No
ImageId.NstringImage IDNo
OffsetintData offset, default is 0No
LimitintReturn data length, default is 20No
MachineTypestringMachine model, only supports the display of models in the current zone.No
ClusterstringThe network cluster of the machine, MachineType transmission is mandatory, default is 25G.No

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
TotalCountintTotal number of images that meet the conditionsNo
ImageSetarray[PHostImageSet]Image List PHostImageSetNo

Data Model

PHostImageSet

Field NameTypeDescription InformationRequired
ImageIdstringImage IDNo
ImageNamestringImage NameNo
OsNamestringOperating System NameNo
OsTypestringOperating System TypeNo
Supportarray[string]Supported Machine TypesNo
VersionstringCurrent VersionNo
ImageTypestringEnumeration values: Base=>Basic Image, Custom=>Custom Image.No
CreateTimestringBareMetal 2.0 Parameters. Image creation time.No
StatestringBareMetal 2.0 Parameters. Current status of the image.No
ImageSizeintBareMetal 2.0 parameters. Image size.No
ImageDescriptionstringImage DescriptionNo

Example

Request Example

https://api.dezai.com/?Action=DescribePHostImage
&Region=lPknnhFJ
&Zone=BkUzrVGH
&ProjectId=tLfmjwpi
&ImageType=Ajlqqiqf
&ImageId.n=hmIDkOMO
&Offset=7
&Limit=1
&MachineType=QxVNPRCH
&Cluster=DkUhdXDD

Response Example

{
  "Action": "DescribePHostImageResponse",
  "ImageSet": [
    {
      "ImageId": "jMonPUZs",
      "ImageName": "zZHLkcpk",
      "OsName": "ICNxbWaj",
      "OsType": "KinGDoGa",
      "Support": [
        "rVxQDlcE"
      ],
      "Version": "EtexDjJR"
    }
  ],
  "RetCode": 0,
  "TotalCount": 5
}