uphost

package
v0.22.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package uphost include resources of ucloud uphost product

See also

for detail.

Index

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 CreatePHostParamNetworkInterface added in v0.22.3

type CreatePHostParamNetworkInterface struct {

	//
	EIP *CreatePHostParamNetworkInterfaceEIP `required:"false"`
}

CreatePHostParamNetworkInterface is request schema for complex param

type CreatePHostParamNetworkInterfaceEIP added in v0.22.3

type CreatePHostParamNetworkInterfaceEIP struct {

	// 【若绑定EIP,此参数必填】弹性IP的外网带宽, 单位为Mbps. 共享带宽模式必须指定0M带宽, 非共享带宽模式必须指定非0Mbps带宽. 各地域非共享带宽的带宽范围如下: 流量计费[1-300],带宽计费[1-800]
	Bandwidth *string `required:"false"`

	// 当前EIP代金券id。请通过DescribeCoupon接口查询,或登录用户中心查看。
	CouponId *string `required:"false"`

	// 【若绑定EIP,此参数必填】弹性IP的线路。枚举值: 国际: International BGP: Bgp 各地域允许的线路参数如下: cn-sh1: Bgp cn-sh2: Bgp cn-gd: Bgp cn-bj1: Bgp cn-bj2: Bgp hk: International us-ca: International th-bkk: International kr-seoul:International us-ws:International ge-fra:International sg:International tw-kh:International.其他海外线路均为 International
	OperatorName *string `required:"false"`

	// 弹性IP的计费模式. 枚举值: "Traffic", 流量计费; "Bandwidth", 带宽计费; "ShareBandwidth",共享带宽模式. "Free":免费带宽模式,默认为 "Bandwidth"
	PayMode *string `required:"false"`

	// 绑定的共享带宽Id,仅当PayMode为ShareBandwidth时有效
	ShareBandwidthId *string `required:"false"`
}

CreatePHostParamNetworkInterfaceEIP is request schema for complex param

type CreatePHostRequest

type CreatePHostRequest struct {
	request.CommonBase

	// 短期促销活动时所需参数
	ActivityId *int `required:"false"`

	// 计费模式,枚举值为: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"`

	//
	NetworkInterface []CreatePHostParamNetworkInterface `required:"false"`

	// 密码(密码需使用base64进行编码)
	Password *string `required:"true"`

	// 购买时长,1-10个月或1-10年;默认值为1。月付时,此参数传0,代表购买至月末,1代表整月。
	Quantity *string `required:"false"`

	// 本地盘和裸金属1.0需要的参数。Raid配置,默认Raid10  支持:Raid0、Raid1、Raid5、Raid10,NoRaid
	Raid *string `required:"false"`

	// 物理机备注,默认为空
	Remark *string `required:"false"`

	// 短期促销活动时所需参数
	RuleId *int `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

	// 请求版本。仅支持v2,不传或传其他值表示请求旧版本
	APIVersion *string `required:"false"`

	// 具体机型。若不填写,则返回全部机型
	Type *string `required:"false"`
}

DescribeBaremetalMachineTypeRequest is request schema for DescribeBaremetalMachineType action

type DescribeBaremetalMachineTypeResponse added in v0.21.8

type DescribeBaremetalMachineTypeResponse struct {
	response.CommonBase

	// 机型列表,模型:PHostCloudMachineTypeSetV2,仅在入参Version=v2时返回
	MachineTypes []PHostCloudMachineTypeSetV2
}

DescribeBaremetalMachineTypeResponse is response schema for DescribeBaremetalMachineType action

type DescribePHostImageRequest

type DescribePHostImageRequest struct {
	request.CommonBase

	// 机器的网络集群,MachineType传是必须传,默认25G
	Cluster *string `required:"false"`

	// 镜像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

	// 请求版本。仅支持v2,不传或传其他值表示请求旧版本
	APIVersion *string `required:"false"`

	// 具体机型。若不填写,则返回全部机型
	Type *string `required:"false"`
}

DescribePHostMachineTypeRequest is request schema for DescribePHostMachineType action

type DescribePHostMachineTypeResponse added in v0.21.8

type DescribePHostMachineTypeResponse struct {
	response.CommonBase

	// 机型列表,模型:PHostCloudMachineTypeSetV2,仅在入参Version=v2时返回
	MachineTypes []PHostCloudMachineTypeSetV2
}

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 PHostCPUSetV2 added in v0.22.8

type PHostCPUSetV2 struct {

	// CPU核数
	CoreCount int

	// CPU个数
	Count int

	// CPU主频
	Frequency string

	// CPU型号
	Model string
}

PHostCPUSetV2 - 裸金属磁盘信息V2版本

type PHostCloudMachineTypeSetV2 added in v0.22.8

type PHostCloudMachineTypeSetV2 struct {

	// CPU信息
	CPU PHostCPUSetV2

	// 集群名。枚举值:千兆网络集群:1G;万兆网络集群:10G;智能网卡网络:25G;
	Cluster string

	// 组件信息
	Components []PHostComponentSet

	// 磁盘信息
	Disks []PHostDiskSetV2

	// GPU信息
	GpuInfo PHostGpuInfoV2

	// 是否是裸金属机型
	IsBaremetal bool

	// 是否是GPU机型
	IsGpu bool

	// 是否需要加新机型标记
	IsNew bool

	// 内存大小,单位MB
	Memory int

	// 通常获取到的都是可售卖的
	OnSale bool

	// 参考价格。字典类型,default:为默认价格;cn-wlcb-01:乌兰察布A可用区价格
	Price string

	// 是否支持做Raid。枚举值:可以:Yes;不可以:No
	RaidSupported string

	// 适用场景。例如:ai表示AI学习场景;
	Scene []string

	// 库存数量
	Stock int

	// 库存状态。枚举值:有库存:Available;无库存:SoldOut
	StockStatus string

	// 物理云主机机型别名
	Type string

	// 机型所在可用区
	Zone string
}

PHostCloudMachineTypeSetV2 - 裸金属云盘的MachineTypeSet V2版本

type PHostComponentSet added in v0.21.8

type PHostComponentSet struct {

	// 组件数量
	Count int

	// 组件名称
	Name string
}

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 PHostDiskSetV2 added in v0.22.8

type PHostDiskSetV2 struct {

	// 磁盘类型
	DiskType int

	// IO性能
	IoCap int

	// 磁盘名
	Name string

	// 数量
	Number int

	// Raid级别
	RaidLevel int

	// 空间大小
	Space int

	// 转换单位
	UnitSize int
}

PHostDiskSetV2 - 裸金属磁盘信息V2版本

type PHostGpuInfoV2 added in v0.22.8

type PHostGpuInfoV2 struct {

	// GPU数量
	Count int

	// GPU显存大小
	Memory string

	// GPU名称,例如:NVIDIA_V100S
	Name string

	// GPU性能指标
	Performance string
}

PHostGpuInfoV2 - 裸金属Gpu信息V2版本

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 string

	// 镜像描述
	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 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

	// 裸金属机型字段。枚举值:Normal=>正常、ImageMaking=>镜像制作中。
	BootDiskState 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

	// RDMA集群id,仅云盘裸金属返回该值;其他类型物理云主机返回""。当物理机的此值与RSSD云盘的RdmaClusterId相同时,RSSD可以挂载到这台物理机。
	RdmaClusterId string

	// 物理机备注
	Remark string

	// 物理机序列号
	SN string

	// 业务组
	Tag string

	// 可用区,参见 [可用区列表](../summary/regionlist.html)
	Zone string
}

PHostSet - DescribePHost

type PHostTagSet

type PHostTagSet struct {

	// 业务组名称
	Tag string

	// 该业务组中包含的主机个数
	TotalCount int
}

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

type UPHostClient struct {
	*ucloud.Client
}

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

API: CreatePHostImage

创建裸金属2.0用户自定义镜像

func (*UPHostClient) DescribeBaremetalMachineType added in v0.21.8

API: DescribeBaremetalMachineType

获取裸金属机型的详细描述信息

func (*UPHostClient) DescribePHost

func (c *UPHostClient) DescribePHost(req *DescribePHostRequest) (*DescribePHostResponse, error)

API: DescribePHost

获取物理机详细信息

func (*UPHostClient) DescribePHostImage

API: DescribePHostImage

获取物理云主机镜像列表

func (*UPHostClient) DescribePHostMachineType added in v0.21.8

API: DescribePHostMachineType

获取物理云机型的详细描述信息

func (*UPHostClient) DescribePHostTags

API: DescribePHostTags

获取物理机tag列表(业务组)

func (*UPHostClient) GetPHostDiskUpgradePrice added in v0.21.8

API: GetPHostDiskUpgradePrice

获取物理云裸金属挂载磁盘的升级价格

func (*UPHostClient) GetPHostPrice

func (c *UPHostClient) GetPHostPrice(req *GetPHostPriceRequest) (*GetPHostPriceResponse, error)

API: GetPHostPrice

获取物理机价格列表

func (*UPHostClient) GetPhostDiskUpgradePrice added in v0.21.8

API: GetPhostDiskUpgradePrice

获取物理云裸金属挂载磁盘的升级价格

func (*UPHostClient) ModifyPHostImageInfo added in v0.21.33

API: ModifyPHostImageInfo

修改自定义镜像名称和备注

func (*UPHostClient) ModifyPHostInfo

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

API: ResetPHostPassword

重置裸金属实例的管理员密码

func (*UPHostClient) ResizePHostAttachedDisk added in v0.21.8

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

API: TerminatePHostImage

删除裸金属2.0用户自定义镜像

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL