Documentation ¶
Overview ¶
Package uphost include resources of ucloud uphost product
See also
- API: https://docs.ucloud.cn/api/uphost-api/index
- Product: https://www.ucloud.cn/site/product/uphost.html
for detail.
Index ¶
- type CreatePHostImageRequest
- type CreatePHostImageResponse
- type CreatePHostParamDisks
- type CreatePHostRequest
- type CreatePHostResponse
- type DescribeBaremetalMachineTypeRequest
- type DescribeBaremetalMachineTypeResponse
- type DescribePHostImageRequest
- type DescribePHostImageResponse
- type DescribePHostMachineTypeRequest
- type DescribePHostMachineTypeResponse
- type DescribePHostRequest
- type DescribePHostResponse
- type DescribePHostTagsRequest
- type DescribePHostTagsResponse
- type GetPHostDiskUpgradePriceRequest
- type GetPHostDiskUpgradePriceResponse
- type GetPHostPriceParamDisks
- type GetPHostPriceRequest
- type GetPHostPriceResponse
- type GetPhostDiskUpgradePriceRequest
- type GetPhostDiskUpgradePriceResponse
- type ModifyPHostImageInfoRequest
- type ModifyPHostImageInfoResponse
- type ModifyPHostInfoRequest
- type ModifyPHostInfoResponse
- type PHostCPUSet
- type PHostCloudMachineTypeSet
- type PHostClusterSet
- type PHostComponentSet
- type PHostDescDiskSet
- type PHostDiskSet
- type PHostIPSet
- type PHostImageSet
- type PHostMachineTypeSet
- type PHostPriceSet
- type PHostSet
- type PHostTagSet
- type PoweroffPHostRequest
- type PoweroffPHostResponse
- type RebootPHostRequest
- type RebootPHostResponse
- type ReinstallPHostRequest
- type ReinstallPHostResponse
- type ResetPHostPasswordRequest
- type ResetPHostPasswordResponse
- type ResizePHostAttachedDiskRequest
- type ResizePHostAttachedDiskResponse
- type StartPHostRequest
- type StartPHostResponse
- type StopPHostRequest
- type StopPHostResponse
- type TerminatePHostImageRequest
- type TerminatePHostImageResponse
- type TerminatePHostRequest
- type TerminatePHostResponse
- type UPHostClient
- func (c *UPHostClient) CreatePHost(req *CreatePHostRequest) (*CreatePHostResponse, error)
- func (c *UPHostClient) CreatePHostImage(req *CreatePHostImageRequest) (*CreatePHostImageResponse, error)
- func (c *UPHostClient) DescribeBaremetalMachineType(req *DescribeBaremetalMachineTypeRequest) (*DescribeBaremetalMachineTypeResponse, error)
- func (c *UPHostClient) DescribePHost(req *DescribePHostRequest) (*DescribePHostResponse, error)
- func (c *UPHostClient) DescribePHostImage(req *DescribePHostImageRequest) (*DescribePHostImageResponse, error)
- func (c *UPHostClient) DescribePHostMachineType(req *DescribePHostMachineTypeRequest) (*DescribePHostMachineTypeResponse, error)
- func (c *UPHostClient) DescribePHostTags(req *DescribePHostTagsRequest) (*DescribePHostTagsResponse, error)
- func (c *UPHostClient) GetPHostDiskUpgradePrice(req *GetPHostDiskUpgradePriceRequest) (*GetPHostDiskUpgradePriceResponse, error)
- func (c *UPHostClient) GetPHostPrice(req *GetPHostPriceRequest) (*GetPHostPriceResponse, error)
- func (c *UPHostClient) GetPhostDiskUpgradePrice(req *GetPhostDiskUpgradePriceRequest) (*GetPhostDiskUpgradePriceResponse, error)
- func (c *UPHostClient) ModifyPHostImageInfo(req *ModifyPHostImageInfoRequest) (*ModifyPHostImageInfoResponse, error)
- func (c *UPHostClient) ModifyPHostInfo(req *ModifyPHostInfoRequest) (*ModifyPHostInfoResponse, error)
- func (c *UPHostClient) NewCreatePHostImageRequest() *CreatePHostImageRequest
- func (c *UPHostClient) NewCreatePHostRequest() *CreatePHostRequest
- func (c *UPHostClient) NewDescribeBaremetalMachineTypeRequest() *DescribeBaremetalMachineTypeRequest
- func (c *UPHostClient) NewDescribePHostImageRequest() *DescribePHostImageRequest
- func (c *UPHostClient) NewDescribePHostMachineTypeRequest() *DescribePHostMachineTypeRequest
- func (c *UPHostClient) NewDescribePHostRequest() *DescribePHostRequest
- func (c *UPHostClient) NewDescribePHostTagsRequest() *DescribePHostTagsRequest
- func (c *UPHostClient) NewGetPHostDiskUpgradePriceRequest() *GetPHostDiskUpgradePriceRequest
- func (c *UPHostClient) NewGetPHostPriceRequest() *GetPHostPriceRequest
- func (c *UPHostClient) NewGetPhostDiskUpgradePriceRequest() *GetPhostDiskUpgradePriceRequest
- func (c *UPHostClient) NewModifyPHostImageInfoRequest() *ModifyPHostImageInfoRequest
- func (c *UPHostClient) NewModifyPHostInfoRequest() *ModifyPHostInfoRequest
- func (c *UPHostClient) NewPoweroffPHostRequest() *PoweroffPHostRequest
- func (c *UPHostClient) NewRebootPHostRequest() *RebootPHostRequest
- func (c *UPHostClient) NewReinstallPHostRequest() *ReinstallPHostRequest
- func (c *UPHostClient) NewResetPHostPasswordRequest() *ResetPHostPasswordRequest
- func (c *UPHostClient) NewResizePHostAttachedDiskRequest() *ResizePHostAttachedDiskRequest
- func (c *UPHostClient) NewStartPHostRequest() *StartPHostRequest
- func (c *UPHostClient) NewStopPHostRequest() *StopPHostRequest
- func (c *UPHostClient) NewTerminatePHostImageRequest() *TerminatePHostImageRequest
- func (c *UPHostClient) NewTerminatePHostRequest() *TerminatePHostRequest
- func (c *UPHostClient) PoweroffPHost(req *PoweroffPHostRequest) (*PoweroffPHostResponse, error)
- func (c *UPHostClient) RebootPHost(req *RebootPHostRequest) (*RebootPHostResponse, error)
- func (c *UPHostClient) ReinstallPHost(req *ReinstallPHostRequest) (*ReinstallPHostResponse, error)
- func (c *UPHostClient) ResetPHostPassword(req *ResetPHostPasswordRequest) (*ResetPHostPasswordResponse, error)
- func (c *UPHostClient) ResizePHostAttachedDisk(req *ResizePHostAttachedDiskRequest) (*ResizePHostAttachedDiskResponse, error)
- func (c *UPHostClient) StartPHost(req *StartPHostRequest) (*StartPHostResponse, error)
- func (c *UPHostClient) StopPHost(req *StopPHostRequest) (*StopPHostResponse, error)
- func (c *UPHostClient) TerminatePHost(req *TerminatePHostRequest) (*TerminatePHostResponse, error)
- func (c *UPHostClient) TerminatePHostImage(req *TerminatePHostImageRequest) (*TerminatePHostImageResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePHostImageRequest ¶ added in v0.21.33
type CreatePHostImageRequest struct { request.CommonBase // 镜像描述 ImageDescription *string `required:"false"` // 镜像名称 ImageName *string `required:"true"` // UPHost实例ID PHostId *string `required:"true"` }
CreatePHostImageRequest is request schema for CreatePHostImage action
type CreatePHostImageResponse ¶ added in v0.21.33
type CreatePHostImageResponse struct { response.CommonBase // 镜像ID ImageId string }
CreatePHostImageResponse is response schema for CreatePHostImage action
type CreatePHostParamDisks ¶ added in v0.21.8
type CreatePHostParamDisks struct { // 裸金属机型参数->云盘代金券id。不适用于系统盘。请通过DescribeCoupon接口查询,或登录用户中心查看 CouponId *string `required:"false"` // 裸金属机型参数->是否是系统盘。枚举值: True,是系统盘。 False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 IsBoot *string `required:"false"` // 裸金属机型参数->磁盘大小,单位GB,必须是10GB的整数倍。系统盘20-500GB,数据盘单块盘20-32000GB。 Size *int `required:"false"` // 裸金属机型参数->磁盘类型:枚举值:CLOUD_RSSD Type *string `required:"false"` }
CreatePHostParamDisks is request schema for complex param
type CreatePHostRequest ¶
type CreatePHostRequest struct { request.CommonBase // 计费模式,枚举值为:year, 按年付费; month,按月付费;默认为按月付费 ChargeType *string `required:"false"` // 网络环境,可选千兆:1G ,万兆:10G, 默认1G。智能网卡可以选择25G。 Cluster *string `required:"false"` // 【该字段已废弃,请谨慎使用】 Count *int `required:"false" deprecated:"true"` // 代金券 CouponId *string `required:"false"` // Disks []CreatePHostParamDisks `required:"false"` // ImageId,可以通过接口 [DescribePHostImage](api/uphost-api/describe_phost_image.html)获取 ImageId *string `required:"true"` // 物理机名称,默认为phost Name *string `required:"false"` // 密码(密码需使用base64进行编码) Password *string `required:"true"` // 购买时长,1-10个月或1-10年;默认值为1。月付时,此参数传0,代表购买至月末,1代表整月。 Quantity *string `required:"false"` // Raid配置,默认Raid10 支持:Raid0、Raid1、Raid5、Raid10,NoRaid Raid *string `required:"false"` // 物理机备注,默认为空 Remark *string `required:"false"` // 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 [DescribeFirewall](api/unet-api/describe_firewall.html)。 SecurityGroupId *string `required:"false"` // 子网ID,不填为默认,VPC2.0下需要填写此字段。 SubnetId *string `required:"false"` // 业务组,默认为default Tag *string `required:"false"` // 物理机类型,默认为:db-2(基础型-SAS-V3) Type *string `required:"false"` // VPC ID,不填为默认,VPC2.0下需要填写此字段。 VPCId *string `required:"false"` // 指定内网ip创建 VpcIp *string `required:"false"` }
CreatePHostRequest is request schema for CreatePHost action
type CreatePHostResponse ¶
type CreatePHostResponse struct { response.CommonBase // PHost的资源ID数组 PHostId []string }
CreatePHostResponse is response schema for CreatePHost action
type DescribeBaremetalMachineTypeRequest ¶ added in v0.21.8
type DescribeBaremetalMachineTypeRequest struct { request.CommonBase // 具体机型。若不填写,则返回全部机型 Type *string `required:"false"` }
DescribeBaremetalMachineTypeRequest is request schema for DescribeBaremetalMachineType action
type DescribeBaremetalMachineTypeResponse ¶ added in v0.21.8
type DescribeBaremetalMachineTypeResponse struct { response.CommonBase // 机型列表,模型:PHostCloudMachineTypeSet MachineTypes []PHostCloudMachineTypeSet }
DescribeBaremetalMachineTypeResponse is response schema for DescribeBaremetalMachineType action
type DescribePHostImageRequest ¶
type DescribePHostImageRequest struct { request.CommonBase // 镜像ID ImageId []string `required:"false"` // 镜像类别,枚举值,Base是基础镜像;Custom是自制镜像。 ImageType *string `required:"false"` // 返回数据长度,默认为20 Limit *int `required:"false"` // 机器型号,只支持当前zone的展示机型 MachineType *string `required:"false"` // 数据偏移量,默认为0 Offset *int `required:"false"` }
DescribePHostImageRequest is request schema for DescribePHostImage action
type DescribePHostImageResponse ¶
type DescribePHostImageResponse struct { response.CommonBase // 镜像列表 PHostImageSet ImageSet []PHostImageSet // 满足条件的镜像总数 TotalCount int }
DescribePHostImageResponse is response schema for DescribePHostImage action
type DescribePHostMachineTypeRequest ¶ added in v0.21.8
type DescribePHostMachineTypeRequest struct { request.CommonBase // 具体机型。若不填写,则返回全部机型 Type *string `required:"false"` }
DescribePHostMachineTypeRequest is request schema for DescribePHostMachineType action
type DescribePHostMachineTypeResponse ¶ added in v0.21.8
type DescribePHostMachineTypeResponse struct { response.CommonBase // 机型列表,模型:PHostMachineTypeSet MachineTypes []PHostMachineTypeSet }
DescribePHostMachineTypeResponse is response schema for DescribePHostMachineType action
type DescribePHostRequest ¶
type DescribePHostRequest struct { request.CommonBase // 返回数据长度,默认为20 Limit *int `required:"false"` // 数据偏移量,默认为0 Offset *int `required:"false"` // PHost资源ID,若为空,则返回当前Region所有PHost。 PHostId []string `required:"false"` // 要挂载的云盘id,过滤返回能被UDiskId挂载的云主机。目前主要针对rssd云盘使用 UDiskIdForAttachment *string `required:"false"` // ULB使用参数,获取同VPC下机器信息。 VPCId *string `required:"false"` }
DescribePHostRequest is request schema for DescribePHost action
type DescribePHostResponse ¶
type DescribePHostResponse struct { response.CommonBase // PHost资源列表,参见 PHostSet PHostSet []PHostSet // 满足条件的PHost总数 TotalCount int }
DescribePHostResponse is response schema for DescribePHost action
type DescribePHostTagsRequest ¶
type DescribePHostTagsRequest struct {
request.CommonBase
}
DescribePHostTagsRequest is request schema for DescribePHostTags action
type DescribePHostTagsResponse ¶
type DescribePHostTagsResponse struct { response.CommonBase // 具体参见 PHostTagSet TagSet []PHostTagSet // Tag的个数 TotalCount int }
DescribePHostTagsResponse is response schema for DescribePHostTags action
type GetPHostDiskUpgradePriceRequest ¶ added in v0.21.8
type GetPHostDiskUpgradePriceRequest struct { request.CommonBase // 磁盘大小,单位GB,必须是10GB的整数倍。系统盘20-500GB,数据盘单块盘20-32000GB。 DiskSpace *int `required:"true"` // UPHost实例ID。 PHostId *string `required:"true"` // 是否重装价格获取。复用此接口。扩容只能增加云盘大小。重装不限制。枚举值:true/false ReinstallTag *bool `required:"false"` // 磁盘 ID。获取扩容价格必填(只能扩不能减);重装时候不需要填(根据所选盘大小决定) UDiskId *string `required:"false"` }
GetPHostDiskUpgradePriceRequest is request schema for GetPHostDiskUpgradePrice action
type GetPHostDiskUpgradePriceResponse ¶ added in v0.21.8
type GetPHostDiskUpgradePriceResponse struct { response.CommonBase // 升价差价原价。精度为小数点后2位。 OriginalPrice float64 // 升级差价。精度为小数点后2位。 Price float64 }
GetPHostDiskUpgradePriceResponse is response schema for GetPHostDiskUpgradePrice action
type GetPHostPriceParamDisks ¶ added in v0.21.8
type GetPHostPriceParamDisks struct { // 裸金属机型参数->枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。 IsBoot *string `required:"false"` // 裸金属机型参数->磁盘大小,单位GB,必须是10GB的整数倍。系统盘20-500GB。数据盘是20-32000G。 Size *string `required:"false"` // 裸金属机型参数->磁盘类型:枚举值:CLOUD_RSSD Type *string `required:"false"` }
GetPHostPriceParamDisks is request schema for complex param
type GetPHostPriceRequest ¶
type GetPHostPriceRequest struct { request.CommonBase // 计费模式,枚举值为: Year/Month ChargeType *string `required:"true"` // 网络环境,可选千兆:1G ;万兆:10G;25G网络:25G。 Cluster *string `required:"false"` // 购买数量,范围[1-5] Count *int `required:"true"` // Disks []GetPHostPriceParamDisks `required:"false"` // 购买时长,1-10个月或1-10年;默认值为1。月付时,此参数传0,代表购买至月末,1代表整月。 Quantity *int `required:"true"` // 默认为:DB(数据库型),可以通过接口 [DescribePHostMachineType](api/uphost-api/describe_phost_machine_type.html)获取 Type *string `required:"false"` }
GetPHostPriceRequest is request schema for GetPHostPrice action
type GetPHostPriceResponse ¶
type GetPHostPriceResponse struct { response.CommonBase // 价格列表 见 PHostPriceSet PriceSet []PHostPriceSet }
GetPHostPriceResponse is response schema for GetPHostPrice action
type GetPhostDiskUpgradePriceRequest ¶ added in v0.21.8
type GetPhostDiskUpgradePriceRequest struct { request.CommonBase // 磁盘ID。 DiskId *string `required:"true"` // 裸金属机型参数->磁盘大小,单位GB,必须是10GB的整数倍。系统盘20-500GB,数据盘单块盘20-32000GB。 DiskSpace *int `required:"true"` // UPHost实例ID。 PHostId *string `required:"true"` }
GetPhostDiskUpgradePriceRequest is request schema for GetPhostDiskUpgradePrice action
type GetPhostDiskUpgradePriceResponse ¶ added in v0.21.8
type GetPhostDiskUpgradePriceResponse struct { response.CommonBase // 升级差价。精度为小数点后2位。 Price float64 }
GetPhostDiskUpgradePriceResponse is response schema for GetPhostDiskUpgradePrice action
type ModifyPHostImageInfoRequest ¶ added in v0.21.33
type ModifyPHostImageInfoRequest struct { request.CommonBase // 镜像ID ImageId *string `required:"true"` // 镜像名称 Name *string `required:"false"` // 备注 Remark *string `required:"false"` }
ModifyPHostImageInfoRequest is request schema for ModifyPHostImageInfo action
type ModifyPHostImageInfoResponse ¶ added in v0.21.33
type ModifyPHostImageInfoResponse struct { response.CommonBase // 镜像ID ImageId string }
ModifyPHostImageInfoResponse is response schema for ModifyPHostImageInfo action
type ModifyPHostInfoRequest ¶
type ModifyPHostInfoRequest struct { request.CommonBase // 物理机名称,默认不更改 Name *string `required:"false"` // 物理机资源ID PHostId *string `required:"true"` // 物理机备注,默认不更改 Remark *string `required:"false"` // 业务组,默认不更改 Tag *string `required:"false"` }
ModifyPHostInfoRequest is request schema for ModifyPHostInfo action
type ModifyPHostInfoResponse ¶
type ModifyPHostInfoResponse struct { response.CommonBase // PHost 的资源ID PHostId string }
ModifyPHostInfoResponse is response schema for ModifyPHostInfo action
type PHostCPUSet ¶
type PHostCPUSet struct { // CPU核数 CoreCount int // CPU个数 Count int // CPU主频 Frequence float64 // CPU型号 Model string }
PHostCPUSet - DescribePHost
type PHostCloudMachineTypeSet ¶ added in v0.21.8
type PHostCloudMachineTypeSet struct { // CPU信息 CPU PHostCPUSet // 集群库存信息 Clusters []PHostClusterSet // 其他组件信息 Components PHostComponentSet // 内存大小,单位MB Memory int // 物理云主机机型别名,全网唯一。 Type string }
PHostCloudMachineTypeSet - 裸金属云盘的MachineTypeSet
type PHostClusterSet ¶ added in v0.21.8
type PHostClusterSet struct { // 集群名。枚举值:千兆网络集群:1G;万兆网络集群:10G;智能网卡网络:25G; Name string // 库存状态。枚举值:有库存:Available;无库存:SoldOut StockStatus string }
PHostClusterSet - 物理云主机集群库存信息
type PHostComponentSet ¶ added in v0.21.8
PHostComponentSet - GetPHostTypeInfo
type PHostDescDiskSet ¶ added in v0.21.8
type PHostDescDiskSet struct { // 磁盘数量 Count int // 裸金属机型参数:磁盘ID DiskId string // 裸金属机型参数:磁盘盘符 Drive string // 磁盘IO性能,单位MB/s(待废弃) IOCap int // 裸金属机型参数:是否是启动盘。True/False IsBoot string // 磁盘名称,sys/data Name string // 单盘大小,单位GB Space int // 磁盘属性 Type string }
PHostDescDiskSet - DescribePHost(包括传统和裸金属1、裸金属2)
type PHostDiskSet ¶
type PHostDiskSet struct { // 磁盘数量 Count int // 磁盘IO性能,单位MB/s(待废弃) IOCap int // 磁盘名称,sys/data Name string // 单盘大小,单位GB Space int // 磁盘属性 Type string }
PHostDiskSet - GetPHostTypeInfo
type PHostIPSet ¶
type PHostIPSet struct { // IP对应带宽,单位Mb,内网IP不显示带宽信息 Bandwidth int // IP地址, IPAddr string // IP资源ID(内网IP无资源ID)(待废弃) IPId string // MAC地址 MACAddr string // 国际: Internation, BGP: BGP, 内网: Private OperatorName string // 子网ID SubnetId string // VPC ID VPCId string }
PHostIPSet - DescribePHost
type PHostImageSet ¶
type PHostImageSet struct { // 裸金属2.0参数。镜像创建时间。 CreateTime int // 镜像描述 ImageDescription string // 镜像ID ImageId string // 镜像名称 ImageName string // 裸金属2.0参数。镜像大小。 ImageSize int // 枚举值:Base=>基础镜像,Custom=>自制镜像。 ImageType string // 操作系统名称 OsName string // 操作系统类型 OsType string // 裸金属2.0参数。镜像当前状态。 State string // 支持的机型 Support []string // 当前版本 Version string }
PHostImageSet - DescribePHostImage
type PHostMachineTypeSet ¶ added in v0.21.8
type PHostMachineTypeSet struct { // CPU信息 CPU PHostCPUSet // 集群库存信息 Clusters []PHostClusterSet // 其他组件信息 Components PHostComponentSet // 磁盘信息 Disks []PHostDiskSet // 内存大小,单位MB Memory int // 是否支持Raid。枚举值:支持:YES;不支持:NO RaidSupported string // 物理云主机机型别名,全网唯一。 Type string }
PHostMachineTypeSet - 物理云主机机型列表
type PHostPriceSet ¶
type PHostPriceSet struct { // Year/Month ChargeType string // 原价格, 单位:元, 保留小数点后两位有效数字 OriginalPrice float64 // 价格, 单位:元, 保留小数点后两位有效数字 Price float64 // 枚举值:phost=>为主机价格,如果是云盘包括了系统盘价格。cloudDisk=>所有数据盘价格,只是裸金属机型才返回此参数。 Product string }
PHostPriceSet - GetPHostPrice
type PHostSet ¶
type PHostSet struct { // 自动续费 AutoRenew string // CPU信息,见 PHostCPUSet CPUSet PHostCPUSet // 计费模式,枚举值为: Year,按年付费; Month,按月付费;默认为月付 ChargeType string // 网络环境。枚举值:千兆:1G ,万兆:10G Cluster string // 组件信息(暂不支持) Components string // 创建时间 CreateTime int // 磁盘信息,见 PHostDescDiskSet DiskSet []PHostDescDiskSet // 到期时间 ExpireTime int // IP信息,见 PHostIPSet IPSet []PHostIPSet // 镜像名称 ImageName string // 是否支持紧急登录 IsSupportKVM string // 内存大小,单位:MB Memory int // 物理机名称 Name string // 操作系统类型 OSType string // 操作系统名称 OSname string // PHost资源ID PHostId string // 物理机类型,参见DescribePHostMachineType返回值 PHostType string // 物理云主机状态。枚举值:\\ > 初始化:Initializing; \\ > 启动中:Starting; \\ > 运行中:Running;\\ > 关机中:Stopping; \\ > 安装失败:InstallFailed; \\ > 重启中:Rebooting;\\ > 关机:Stopped; \\ > 迁移中(裸金属云盘):Migrating PMStatus string // 物理云产品类型,枚举值:LocalDisk=>代表传统本地盘机型, CloudDisk=>云盘裸金属机型 PhostClass string // 电源状态,on 或 off PowerState string // 是否支持Raid。枚举值:Yes:支持;No:不支持。 RaidSupported string // 物理机备注 Remark string // 物理机序列号 SN string // 业务组 Tag string // 可用区,参见 [可用区列表](../summary/regionlist.html) Zone string }
PHostSet - DescribePHost
type PHostTagSet ¶
PHostTagSet - DescribePHostTags
type PoweroffPHostRequest ¶
type PoweroffPHostRequest struct { request.CommonBase // PHost资源ID PHostId *string `required:"true"` }
PoweroffPHostRequest is request schema for PoweroffPHost action
type PoweroffPHostResponse ¶
type PoweroffPHostResponse struct { response.CommonBase // PHost 的资源ID PHostId string }
PoweroffPHostResponse is response schema for PoweroffPHost action
type RebootPHostRequest ¶
type RebootPHostRequest struct { request.CommonBase // PHost资源ID PHostId *string `required:"true"` }
RebootPHostRequest is request schema for RebootPHost action
type RebootPHostResponse ¶
type RebootPHostResponse struct { response.CommonBase // PHost 的资源ID PHostId string }
RebootPHostResponse is response schema for RebootPHost action
type ReinstallPHostRequest ¶
type ReinstallPHostRequest struct { request.CommonBase // 裸金属机型参数->系统盘大小。 单位:GB, 范围[20,500], 步长:10 BootDiskSpace *int `required:"false"` // 镜像Id,参考镜像列表,默认使用原镜像 ImageId *string `required:"false"` // 物理机名称,默认不更改 Name *string `required:"false"` // PHost资源ID PHostId *string `required:"true"` // 密码 Password *string `required:"true"` // 不保留数据盘重装,可选Raid Raid *string `required:"false"` // 物理机备注,默认为不更改。 Remark *string `required:"false"` // 是否保留数据盘,保留:Yes,不报留:No, 默认:Yes ReserveDisk *string `required:"false"` // 业务组,默认不更改。 Tag *string `required:"false"` }
ReinstallPHostRequest is request schema for ReinstallPHost action
type ReinstallPHostResponse ¶
type ReinstallPHostResponse struct { response.CommonBase // PHost 的资源ID PHostId string }
ReinstallPHostResponse is response schema for ReinstallPHost action
type ResetPHostPasswordRequest ¶ added in v0.21.8
type ResetPHostPasswordRequest struct { request.CommonBase // 裸金属实例ID PHostId *string `required:"true"` // PHost新密码(密码格式使用BASE64编码) Password *string `required:"true"` }
ResetPHostPasswordRequest is request schema for ResetPHostPassword action
type ResetPHostPasswordResponse ¶ added in v0.21.8
type ResetPHostPasswordResponse struct { response.CommonBase // 裸金属实例ID PHostId string }
ResetPHostPasswordResponse is response schema for ResetPHostPassword action
type ResizePHostAttachedDiskRequest ¶ added in v0.21.8
type ResizePHostAttachedDiskRequest struct { request.CommonBase // 裸金属机型参数->磁盘大小,单位GB,必须是10GB的整数倍。系统盘20-500GB,数据盘单块盘20-32000GB。 DiskSpace *int `required:"false"` // UPHost实例ID。 PHostId *string `required:"false"` // 磁盘ID。 UDiskId *string `required:"false"` }
ResizePHostAttachedDiskRequest is request schema for ResizePHostAttachedDisk action
type ResizePHostAttachedDiskResponse ¶ added in v0.21.8
type ResizePHostAttachedDiskResponse struct { response.CommonBase // 改配成功的磁盘id UDiskId string }
ResizePHostAttachedDiskResponse is response schema for ResizePHostAttachedDisk action
type StartPHostRequest ¶
type StartPHostRequest struct { request.CommonBase // PHost资源ID PHostId *string `required:"true"` }
StartPHostRequest is request schema for StartPHost action
type StartPHostResponse ¶
type StartPHostResponse struct { response.CommonBase // PHost 的资源ID PHostId string }
StartPHostResponse is response schema for StartPHost action
type StopPHostRequest ¶ added in v0.21.33
type StopPHostRequest struct { request.CommonBase // PHost资源ID PHostId *string `required:"true"` }
StopPHostRequest is request schema for StopPHost action
type StopPHostResponse ¶ added in v0.21.33
type StopPHostResponse struct { response.CommonBase // PHost 的资源ID PHostId string }
StopPHostResponse is response schema for StopPHost action
type TerminatePHostImageRequest ¶ added in v0.21.33
type TerminatePHostImageRequest struct { request.CommonBase // 自制镜像ID ImageId *string `required:"true"` }
TerminatePHostImageRequest is request schema for TerminatePHostImage action
type TerminatePHostImageResponse ¶ added in v0.21.33
type TerminatePHostImageResponse struct { response.CommonBase // 自制镜像ID ImageId string }
TerminatePHostImageResponse is response schema for TerminatePHostImage action
type TerminatePHostRequest ¶
type TerminatePHostRequest struct { request.CommonBase // PHost资源ID PHostId *string `required:"true"` // 是否释放绑定的EIP。true: 解绑EIP后,并释放;其他值或不填:解绑EIP。 ReleaseEIP *bool `required:"false"` // 裸金属机型参数->删除主机时是否同时删除挂载的数据盘。默认为false。 ReleaseUDisk *bool `required:"false"` }
TerminatePHostRequest is request schema for TerminatePHost action
type TerminatePHostResponse ¶
type TerminatePHostResponse struct { response.CommonBase // PHost 的资源ID PHostId string }
TerminatePHostResponse is response schema for TerminatePHost action
type UPHostClient ¶
UPHostClient is the client of UPHost
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *UPHostClient
NewClient will return a instance of UPHostClient
func (*UPHostClient) CreatePHost ¶
func (c *UPHostClient) CreatePHost(req *CreatePHostRequest) (*CreatePHostResponse, error)
API: CreatePHost
指定数据中心,根据资源使用量创建指定数量的UPHost物理云主机实例。
func (*UPHostClient) CreatePHostImage ¶ added in v0.21.33
func (c *UPHostClient) CreatePHostImage(req *CreatePHostImageRequest) (*CreatePHostImageResponse, error)
API: CreatePHostImage
创建裸金属2.0用户自定义镜像
func (*UPHostClient) DescribeBaremetalMachineType ¶ added in v0.21.8
func (c *UPHostClient) DescribeBaremetalMachineType(req *DescribeBaremetalMachineTypeRequest) (*DescribeBaremetalMachineTypeResponse, error)
API: DescribeBaremetalMachineType
获取裸金属机型的详细描述信息
func (*UPHostClient) DescribePHost ¶
func (c *UPHostClient) DescribePHost(req *DescribePHostRequest) (*DescribePHostResponse, error)
API: DescribePHost
获取物理机详细信息
func (*UPHostClient) DescribePHostImage ¶
func (c *UPHostClient) DescribePHostImage(req *DescribePHostImageRequest) (*DescribePHostImageResponse, error)
API: DescribePHostImage
获取物理云主机镜像列表
func (*UPHostClient) DescribePHostMachineType ¶ added in v0.21.8
func (c *UPHostClient) DescribePHostMachineType(req *DescribePHostMachineTypeRequest) (*DescribePHostMachineTypeResponse, error)
API: DescribePHostMachineType
获取物理云机型的详细描述信息
func (*UPHostClient) DescribePHostTags ¶
func (c *UPHostClient) DescribePHostTags(req *DescribePHostTagsRequest) (*DescribePHostTagsResponse, error)
API: DescribePHostTags
获取物理机tag列表(业务组)
func (*UPHostClient) GetPHostDiskUpgradePrice ¶ added in v0.21.8
func (c *UPHostClient) GetPHostDiskUpgradePrice(req *GetPHostDiskUpgradePriceRequest) (*GetPHostDiskUpgradePriceResponse, error)
API: GetPHostDiskUpgradePrice
获取物理云裸金属挂载磁盘的升级价格
func (*UPHostClient) GetPHostPrice ¶
func (c *UPHostClient) GetPHostPrice(req *GetPHostPriceRequest) (*GetPHostPriceResponse, error)
API: GetPHostPrice
获取物理机价格列表
func (*UPHostClient) GetPhostDiskUpgradePrice ¶ added in v0.21.8
func (c *UPHostClient) GetPhostDiskUpgradePrice(req *GetPhostDiskUpgradePriceRequest) (*GetPhostDiskUpgradePriceResponse, error)
API: GetPhostDiskUpgradePrice
获取物理云裸金属挂载磁盘的升级价格
func (*UPHostClient) ModifyPHostImageInfo ¶ added in v0.21.33
func (c *UPHostClient) ModifyPHostImageInfo(req *ModifyPHostImageInfoRequest) (*ModifyPHostImageInfoResponse, error)
API: ModifyPHostImageInfo
修改自定义镜像名称和备注
func (*UPHostClient) ModifyPHostInfo ¶
func (c *UPHostClient) ModifyPHostInfo(req *ModifyPHostInfoRequest) (*ModifyPHostInfoResponse, error)
API: ModifyPHostInfo
更改物理机信息
func (*UPHostClient) NewCreatePHostImageRequest ¶ added in v0.21.33
func (c *UPHostClient) NewCreatePHostImageRequest() *CreatePHostImageRequest
NewCreatePHostImageRequest will create request of CreatePHostImage action.
func (*UPHostClient) NewCreatePHostRequest ¶
func (c *UPHostClient) NewCreatePHostRequest() *CreatePHostRequest
NewCreatePHostRequest will create request of CreatePHost action.
func (*UPHostClient) NewDescribeBaremetalMachineTypeRequest ¶ added in v0.21.8
func (c *UPHostClient) NewDescribeBaremetalMachineTypeRequest() *DescribeBaremetalMachineTypeRequest
NewDescribeBaremetalMachineTypeRequest will create request of DescribeBaremetalMachineType action.
func (*UPHostClient) NewDescribePHostImageRequest ¶
func (c *UPHostClient) NewDescribePHostImageRequest() *DescribePHostImageRequest
NewDescribePHostImageRequest will create request of DescribePHostImage action.
func (*UPHostClient) NewDescribePHostMachineTypeRequest ¶ added in v0.21.8
func (c *UPHostClient) NewDescribePHostMachineTypeRequest() *DescribePHostMachineTypeRequest
NewDescribePHostMachineTypeRequest will create request of DescribePHostMachineType action.
func (*UPHostClient) NewDescribePHostRequest ¶
func (c *UPHostClient) NewDescribePHostRequest() *DescribePHostRequest
NewDescribePHostRequest will create request of DescribePHost action.
func (*UPHostClient) NewDescribePHostTagsRequest ¶
func (c *UPHostClient) NewDescribePHostTagsRequest() *DescribePHostTagsRequest
NewDescribePHostTagsRequest will create request of DescribePHostTags action.
func (*UPHostClient) NewGetPHostDiskUpgradePriceRequest ¶ added in v0.21.8
func (c *UPHostClient) NewGetPHostDiskUpgradePriceRequest() *GetPHostDiskUpgradePriceRequest
NewGetPHostDiskUpgradePriceRequest will create request of GetPHostDiskUpgradePrice action.
func (*UPHostClient) NewGetPHostPriceRequest ¶
func (c *UPHostClient) NewGetPHostPriceRequest() *GetPHostPriceRequest
NewGetPHostPriceRequest will create request of GetPHostPrice action.
func (*UPHostClient) NewGetPhostDiskUpgradePriceRequest ¶ added in v0.21.8
func (c *UPHostClient) NewGetPhostDiskUpgradePriceRequest() *GetPhostDiskUpgradePriceRequest
NewGetPhostDiskUpgradePriceRequest will create request of GetPhostDiskUpgradePrice action.
func (*UPHostClient) NewModifyPHostImageInfoRequest ¶ added in v0.21.33
func (c *UPHostClient) NewModifyPHostImageInfoRequest() *ModifyPHostImageInfoRequest
NewModifyPHostImageInfoRequest will create request of ModifyPHostImageInfo action.
func (*UPHostClient) NewModifyPHostInfoRequest ¶
func (c *UPHostClient) NewModifyPHostInfoRequest() *ModifyPHostInfoRequest
NewModifyPHostInfoRequest will create request of ModifyPHostInfo action.
func (*UPHostClient) NewPoweroffPHostRequest ¶
func (c *UPHostClient) NewPoweroffPHostRequest() *PoweroffPHostRequest
NewPoweroffPHostRequest will create request of PoweroffPHost action.
func (*UPHostClient) NewRebootPHostRequest ¶
func (c *UPHostClient) NewRebootPHostRequest() *RebootPHostRequest
NewRebootPHostRequest will create request of RebootPHost action.
func (*UPHostClient) NewReinstallPHostRequest ¶
func (c *UPHostClient) NewReinstallPHostRequest() *ReinstallPHostRequest
NewReinstallPHostRequest will create request of ReinstallPHost action.
func (*UPHostClient) NewResetPHostPasswordRequest ¶ added in v0.21.8
func (c *UPHostClient) NewResetPHostPasswordRequest() *ResetPHostPasswordRequest
NewResetPHostPasswordRequest will create request of ResetPHostPassword action.
func (*UPHostClient) NewResizePHostAttachedDiskRequest ¶ added in v0.21.8
func (c *UPHostClient) NewResizePHostAttachedDiskRequest() *ResizePHostAttachedDiskRequest
NewResizePHostAttachedDiskRequest will create request of ResizePHostAttachedDisk action.
func (*UPHostClient) NewStartPHostRequest ¶
func (c *UPHostClient) NewStartPHostRequest() *StartPHostRequest
NewStartPHostRequest will create request of StartPHost action.
func (*UPHostClient) NewStopPHostRequest ¶ added in v0.21.33
func (c *UPHostClient) NewStopPHostRequest() *StopPHostRequest
NewStopPHostRequest will create request of StopPHost action.
func (*UPHostClient) NewTerminatePHostImageRequest ¶ added in v0.21.33
func (c *UPHostClient) NewTerminatePHostImageRequest() *TerminatePHostImageRequest
NewTerminatePHostImageRequest will create request of TerminatePHostImage action.
func (*UPHostClient) NewTerminatePHostRequest ¶
func (c *UPHostClient) NewTerminatePHostRequest() *TerminatePHostRequest
NewTerminatePHostRequest will create request of TerminatePHost action.
func (*UPHostClient) PoweroffPHost ¶
func (c *UPHostClient) PoweroffPHost(req *PoweroffPHostRequest) (*PoweroffPHostResponse, error)
API: PoweroffPHost
断电物理云主机
func (*UPHostClient) RebootPHost ¶
func (c *UPHostClient) RebootPHost(req *RebootPHostRequest) (*RebootPHostResponse, error)
API: RebootPHost
重启物理机
func (*UPHostClient) ReinstallPHost ¶
func (c *UPHostClient) ReinstallPHost(req *ReinstallPHostRequest) (*ReinstallPHostResponse, error)
API: ReinstallPHost
重装物理机操作系统
func (*UPHostClient) ResetPHostPassword ¶ added in v0.21.8
func (c *UPHostClient) ResetPHostPassword(req *ResetPHostPasswordRequest) (*ResetPHostPasswordResponse, error)
API: ResetPHostPassword
重置裸金属实例的管理员密码
func (*UPHostClient) ResizePHostAttachedDisk ¶ added in v0.21.8
func (c *UPHostClient) ResizePHostAttachedDisk(req *ResizePHostAttachedDiskRequest) (*ResizePHostAttachedDiskResponse, error)
API: ResizePHostAttachedDisk
修改裸金属物理云已经挂载的云盘容量大小
func (*UPHostClient) StartPHost ¶
func (c *UPHostClient) StartPHost(req *StartPHostRequest) (*StartPHostResponse, error)
API: StartPHost
启动物理机
func (*UPHostClient) StopPHost ¶ added in v0.21.33
func (c *UPHostClient) StopPHost(req *StopPHostRequest) (*StopPHostResponse, error)
API: StopPHost
关闭物理机
func (*UPHostClient) TerminatePHost ¶
func (c *UPHostClient) TerminatePHost(req *TerminatePHostRequest) (*TerminatePHostResponse, error)
API: TerminatePHost
删除物理云主机
func (*UPHostClient) TerminatePHostImage ¶ added in v0.21.33
func (c *UPHostClient) TerminatePHostImage(req *TerminatePHostImageRequest) (*TerminatePHostImageResponse, error)
API: TerminatePHostImage
删除裸金属2.0用户自定义镜像