ucompshare

package
v0.22.44 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package ucompshare include resources of ucloud ucompshare product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {

	// 外网带宽。单位:Mbps。
	Bandwidth int

	// 套餐ID。
	BundleId string

	// CPU核数。
	CPU int

	// 内存大小。单位:MB。
	Memory int

	// 系统盘大小。单位:GB。
	SysDiskSpace int

	// 流量包大小。单位:GB。
	TrafficPacket int
}

Bundle - 轻量应用云主机套餐

type CompShareInstanceSet added in v0.22.42

type CompShareInstanceSet struct {

	// 是否自动续费,自动续费:“Yes”,不自动续费:“No”
	AutoRenew string

	// 虚拟CPU核数,单位: 个
	CPU int

	// 计费模式,枚举值为: Year,按年付费; Month,按月付费; Dynamic,按时付费;Postpay,按需付费
	ChargeType string

	// 用于镜像计费的Id
	CompShareImageBillId string

	// 镜像Id
	CompShareImageId string

	// 镜像名称
	CompShareImageName string

	// 镜像来源
	CompShareImageOwnerAlias string

	// 镜像价格
	CompShareImagePrice float64

	// 镜像状态
	CompShareImageStatus string

	// 镜像类型- System 系统镜像- App 应用镜像- Custom 自制镜像- Community 社区镜像
	CompShareImageType string

	// CPU架构。"x86_64"/"i386"等
	CpuArch string

	// CPU平台。如"Intel/Auto"、"Amd/Auto"等等
	CpuPlatform string

	// 创建时间
	CreateTime int

	// 详情见UHostDiskSet
	DiskSet []UHostDiskSet

	// 过期时间
	ExpireTime int

	// GPU个数
	GPU int

	// GPU类型。如: "4090"
	GpuType string

	// GPU显存信息
	GraphicsMemory GraphicsMemory

	// 详情见UHostIPSet
	IPSet []UHostIPSet

	// 主机价格
	InstancePrice float64

	// 实例类型。"UHost": 普通主机;"Container": 容器主机
	InstanceType string

	// 是否过期。Yes:已过期;No:未过期
	IsExpire string

	// 机型信息
	MachineType string

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

	// 实例名称
	Name string

	// 虚机镜像的名称
	OsName string

	// 虚机镜像操作系统类型。"Linux"\"Windows"
	OsType string

	// 主机密码。由Base64编码
	Password string

	// 实例备注
	Remark string

	// 软件地址
	Softwares []SoftwareAddr

	// SSH登录命令
	SshLoginCommand string

	// 实例状态,枚举值:\\ >初始化: Initializing; \\ >启动中: Starting; \\> 运行中: Running; \\> 关机中: Stopping; \\ >关机: Stopped \\ >安装失败: Install Fail; \\ >重启中: Rebooting; \\ >升级改配中: Resizing; \\ > 未知(空字符串,获取状态超时或出错):
	State string

	// 此实例是否支持无卡开机
	SupportWithoutGpuStart bool

	// 实例业务组
	Tag string

	// 总的数据盘存储空间
	TotalDiskSpace int

	// 实例Id
	UHostId string

	// 无卡配置规格,详情见:WithoutGpuSpecInfo
	WithoutGpuSpec WithoutGpuSpec

	// 可用区
	Zone string
}

CompShareInstanceSet - 算力平台实例详情

type CreateCompShareInstanceParamDisks added in v0.22.42

type CreateCompShareInstanceParamDisks struct {

	// 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
	IsBoot *bool `required:"true"`

	// 磁盘大小,单位GB。请参考[[api:uhost-api:disk_type|磁盘类型]]。
	Size *int `required:"true"`

	// 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。
	Type *string `required:"true"`
}

CreateCompShareInstanceParamDisks is request schema for complex param

type CreateCompShareInstanceRequest added in v0.22.42

type CreateCompShareInstanceRequest struct {
	request.CommonBase

	// 虚拟CPU核数。可选参数:1-64(具体机型与CPU的对应关系参照控制台)。默认值: 4。
	CPU *int `required:"true"`

	// 计费模式。枚举值为: \\ > Month,按月付费;\\ > Day,按天付费;\\ > Dynamic,按小时预付费 \\ > Postpay,按小时后付费(支持关机不收费,目前仅部分可用区支持,请联系您的客户经理) \\ > Spot计费为抢占式实例(内测阶段) \\ 默认为月付
	ChargeType *string `required:"false"`

	// 镜像ID
	CompShareImageId *string `required:"true"`

	//
	Disks []CreateCompShareInstanceParamDisks `required:"false"`

	// GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关)
	GPU *int `required:"true"`

	// GPU类型,枚举值["K80", "P40", "V100", "T4","T4A", "T4S","2080Ti","2080Ti-4C","1080Ti", "T4/4", "MI100", "V100S",2080","2080TiS","2080TiPro","3090","A100"],MachineType为G时必填
	GpuType *string `required:"true"`

	// 主机登陆模式。密码(默认选项): Password
	LoginMode *string `required:"false"`

	// 云主机机型(V2.0),在本字段和字段UHostType中,仅需要其中1个字段即可。枚举值["N", "C", "G", "O", "OS", "OM", "OPRO", "OMAX", "O.BM", "O.EPC"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。
	MachineType *string `required:"true"`

	// 内存大小。单位:MB。范围 :[1024, 262144],取值为1024的倍数(可选范围参考控制台)。默认值:8192
	Memory *int `required:"true"`

	// 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake", "Intel/CascadelakeR", "Intel/IceLake", "Amd/Epyc2", "Amd/Auto","Ampere/Auto","Ampere/Altra"],默认值是"Intel/Auto"。
	MinimalCpuPlatform *string `required:"false"`

	// 实例名称
	Name *string `required:"false"`

	// UHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx。
	Password *string `required:"false"`

	// 购买时长。默认:值 1。按小时购买(Dynamic/Postpay)时无需此参数。 月付时,此参数传0,代表购买至月末。
	Quantity *int `required:"false"`

	// 防火墙Id
	SecurityGroupId *string `required:"false"`
}

CreateCompShareInstanceRequest is request schema for CreateCompShareInstance action

type CreateCompShareInstanceResponse added in v0.22.42

type CreateCompShareInstanceResponse struct {
	response.CommonBase

	// UHost实例Id集合
	UHostIds []string
}

CreateCompShareInstanceResponse is response schema for CreateCompShareInstance action

type CreateULHostInstanceRequest

type CreateULHostInstanceRequest struct {
	request.CommonBase

	// 套餐ID。如:"ulh.c1m1s40b30t800"
	BundleId *string `required:"true"`

	// 计费模式。枚举值: \\ > Year,按年付费; \\ > Month,按月付费;默认:Month
	ChargeType *string `required:"false"`

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

	// 镜像ID。 请通过 [DescribeImage](describe_image.html)获取
	ImageId *string `required:"true"`

	// 轻量应用主机名称。默认:套餐ID。请遵照[[api:uhost-api:specification|字段规范]]设定实例名称。
	Name *string `required:"false"`

	// ULHost密码。请遵照[[api:uhost-api:specification|字段规范]]设定密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64
	Password *string `required:"true"`

	// 购买时长。默认:1。不支持购买到月末
	Quantity *int `required:"false"`

	// 防火墙ID,默认:Web推荐防火墙。如何查询SecurityGroupId请参见 [DescribeFirewall](api/unet-api/describe_firewall.html)。
	SecurityGroupId *string `required:"false"`

	// 子网 ID。默认为当前地域的默认子网。
	SubnetId *string `required:"false"`

	// VPC ID。默认为当前地域的默认VPC。
	VPCId *string `required:"false"`
}

CreateULHostInstanceRequest is request schema for CreateULHostInstance action

type CreateULHostInstanceResponse

type CreateULHostInstanceResponse struct {
	response.CommonBase

	// 错误信息
	Message string

	// 实例ID
	ULHostId string
}

CreateULHostInstanceResponse is response schema for CreateULHostInstance action

type DescribeCompShareInstanceRequest added in v0.22.42

type DescribeCompShareInstanceRequest struct {
	request.CommonBase

	// 返回数据长度,默认为20,最大100
	Limit *int `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`

	// 【数组】UHost主机的资源ID,例如UHostIds.0代表希望获取信息 的主机1,UHostIds.1代表主机2。 如果不传入,则返回当前Region 所有符合条件的UHost实例。
	UHostIds []string `required:"false"`

	// 无卡GPU
	WithoutGpu *bool `required:"false"`
}

DescribeCompShareInstanceRequest is request schema for DescribeCompShareInstance action

type DescribeCompShareInstanceResponse added in v0.22.42

type DescribeCompShareInstanceResponse struct {
	response.CommonBase

	// UHostInstance总数
	TotalCount int

	// 云主机实例列表,每项参数可见下面 UHostInstanceSet
	UHostSet []CompShareInstanceSet
}

DescribeCompShareInstanceResponse is response schema for DescribeCompShareInstance action

type DescribeULHostBundlesRequest

type DescribeULHostBundlesRequest struct {
	request.CommonBase
}

DescribeULHostBundlesRequest is request schema for DescribeULHostBundles action

type DescribeULHostBundlesResponse

type DescribeULHostBundlesResponse struct {
	response.CommonBase

	// 套餐列表
	Bundles []Bundle

	// 错误信息
	Message string
}

DescribeULHostBundlesResponse is response schema for DescribeULHostBundles action

type DescribeULHostInstanceRequest

type DescribeULHostInstanceRequest struct {
	request.CommonBase

	// 返回数据长度,默认为20,最大100
	Limit *int `required:"false"`

	// 列表起始位置偏移量,默认为0
	Offset *int `required:"false"`

	// 【数组】轻量应用云主机ID。
	ULHostIds []string `required:"false"`
}

DescribeULHostInstanceRequest is request schema for DescribeULHostInstance action

type DescribeULHostInstanceResponse

type DescribeULHostInstanceResponse struct {
	response.CommonBase

	// 错误信息
	Message string

	// 实例列表
	ULHostInstanceSets []ULHostInstanceSet
}

DescribeULHostInstanceResponse is response schema for DescribeULHostInstance action

type ExclusiveUTPInfo added in v0.22.42

type ExclusiveUTPInfo struct {

	// 当前周期剩余流量
	AvailableSize int

	// 创建时间
	CreateTime int

	// 当前周期超出限额的流量
	ExcessSize int

	// 上次重置时间
	LastResetTime int

	// 下次重置时间
	NextResetTime int

	// 当前周期总流量
	TotalSize int

	// 当前周期已使用流量
	UsedSize int
}

ExclusiveUTPInfo - 流量包详情

type GetULHostInstancePriceRequest

type GetULHostInstancePriceRequest struct {
	request.CommonBase

	// 套餐ID
	BundleId *string `required:"true"`

	// 获取指定计费模式的价格。枚举值:\\ > Year,按年付费; \\ > Month。未指定时,返回所有计费模式价格
	ChargeType *string `required:"false"`

	// 购买台数,范围[1,5]。默认:1
	Count *int `required:"false"`

	// 购买时长。默认: 1。不支持购买到月末
	Quantity *int `required:"false"`
}

GetULHostInstancePriceRequest is request schema for GetULHostInstancePrice action

type GetULHostInstancePriceResponse

type GetULHostInstancePriceResponse struct {
	response.CommonBase

	// 错误信息
	Message string

	//
	PriceSet []ULHostPriceSet
}

GetULHostInstancePriceResponse is response schema for GetULHostInstancePrice action

type GetULHostRenewPriceRequest

type GetULHostRenewPriceRequest struct {
	request.CommonBase

	// 计费类型。支持:Year/Month;默认:Month
	ChargeType *string `required:"false"`

	// ULHost实例ID
	ULHostId *string `required:"true"`
}

GetULHostRenewPriceRequest is request schema for GetULHostRenewPrice action

type GetULHostRenewPriceResponse

type GetULHostRenewPriceResponse struct {
	response.CommonBase

	//
	PriceSet []ULHostPriceSet
}

GetULHostRenewPriceResponse is response schema for GetULHostRenewPrice action

type GraphicsMemory added in v0.22.42

type GraphicsMemory struct {

	// 交互展示参数,可忽略
	Rate int

	// 值,单位是GB
	Value int
}

GraphicsMemory - GPU的显存指标

type ModifyULHostAttributeRequest

type ModifyULHostAttributeRequest struct {
	request.CommonBase

	// 名称。和Remark至少选择一个进行修改
	Name *string `required:"false"`

	// 备注。和Name至少选择一个进行修改
	Remark *string `required:"false"`

	// ULHost实例Id
	ULHostId *string `required:"true"`
}

ModifyULHostAttributeRequest is request schema for ModifyULHostAttribute action

type ModifyULHostAttributeResponse

type ModifyULHostAttributeResponse struct {
	response.CommonBase

	// 错误信息
	Message string

	// ULHost实例Id
	ULHostId string
}

ModifyULHostAttributeResponse is response schema for ModifyULHostAttribute action

type PoweroffULHostInstanceRequest

type PoweroffULHostInstanceRequest struct {
	request.CommonBase

	// ULHost实例ID
	ULHostId *string `required:"true"`
}

PoweroffULHostInstanceRequest is request schema for PoweroffULHostInstance action

type PoweroffULHostInstanceResponse

type PoweroffULHostInstanceResponse struct {
	response.CommonBase

	// ULHost实例ID
	ULHostId string
}

PoweroffULHostInstanceResponse is response schema for PoweroffULHostInstance action

type RebootCompShareInstanceRequest added in v0.22.42

type RebootCompShareInstanceRequest struct {
	request.CommonBase

	// 实例Id
	UHostId *string `required:"true"`
}

RebootCompShareInstanceRequest is request schema for RebootCompShareInstance action

type RebootCompShareInstanceResponse added in v0.22.42

type RebootCompShareInstanceResponse struct {
	response.CommonBase

	// 实例Id
	UHostId string
}

RebootCompShareInstanceResponse is response schema for RebootCompShareInstance action

type RebootULHostInstanceRequest

type RebootULHostInstanceRequest struct {
	request.CommonBase

	// ULHost实例ID
	ULHostId *string `required:"true"`
}

RebootULHostInstanceRequest is request schema for RebootULHostInstance action

type RebootULHostInstanceResponse

type RebootULHostInstanceResponse struct {
	response.CommonBase

	// ULHost实例ID
	ULHostId string
}

RebootULHostInstanceResponse is response schema for RebootULHostInstance action

type ReinstallCompShareInstanceRequest added in v0.22.42

type ReinstallCompShareInstanceRequest struct {
	request.CommonBase

	// 镜像Id
	CompShareImageId *string `required:"true"`

	// 实例的新密码
	Password *string `required:"false"`

	// 实例Id
	UHostId *string `required:"true"`
}

ReinstallCompShareInstanceRequest is request schema for ReinstallCompShareInstance action

type ReinstallCompShareInstanceResponse added in v0.22.42

type ReinstallCompShareInstanceResponse struct {
	response.CommonBase

	// 实例Id
	UHostId string
}

ReinstallCompShareInstanceResponse is response schema for ReinstallCompShareInstance action

type ReinstallULHostInstanceRequest

type ReinstallULHostInstanceRequest struct {
	request.CommonBase

	// 镜像Id。暂不支持使用自定义镜像重装
	ImageId *string `required:"true"`

	// 登陆密码。密码需使用base64进行编码,举例如下:# echo -n Password1 | base64UGFzc3dvcmQx
	Password *string `required:"true"`

	// 实例Id
	ULHostId *string `required:"true"`
}

ReinstallULHostInstanceRequest is request schema for ReinstallULHostInstance action

type ReinstallULHostInstanceResponse

type ReinstallULHostInstanceResponse struct {
	response.CommonBase

	// 错误信息
	Message string

	// 实例Id
	ULHostId string
}

ReinstallULHostInstanceResponse is response schema for ReinstallULHostInstance action

type ResetCompShareInstancePasswordRequest added in v0.22.42

type ResetCompShareInstancePasswordRequest struct {
	request.CommonBase

	// 新密码。需经Base64编码
	Password *string `required:"true"`

	// 实例Id
	UHostId *string `required:"true"`
}

ResetCompShareInstancePasswordRequest is request schema for ResetCompShareInstancePassword action

type ResetCompShareInstancePasswordResponse added in v0.22.42

type ResetCompShareInstancePasswordResponse struct {
	response.CommonBase

	// 实例Id
	UHostId string
}

ResetCompShareInstancePasswordResponse is response schema for ResetCompShareInstancePassword action

type ResetULHostInstancePasswordRequest

type ResetULHostInstancePasswordRequest struct {
	request.CommonBase

	// ULHost新密码(密码格式使用BASE64编码)
	Password *string `required:"true"`

	// ULHost实例ID
	ULHostId *string `required:"true"`
}

ResetULHostInstancePasswordRequest is request schema for ResetULHostInstancePassword action

type ResetULHostInstancePasswordResponse

type ResetULHostInstancePasswordResponse struct {
	response.CommonBase

	// ULHost实例ID
	ULHostId string
}

ResetULHostInstancePasswordResponse is response schema for ResetULHostInstancePassword action

type SoftwareAddr added in v0.22.42

type SoftwareAddr struct {

	// 软件名称
	Name string

	// 软件地址
	URL string
}

SoftwareAddr -

type StartCompShareInstanceRequest added in v0.22.42

type StartCompShareInstanceRequest struct {
	request.CommonBase

	// 实例Id
	UHostId *string `required:"true"`
}

StartCompShareInstanceRequest is request schema for StartCompShareInstance action

type StartCompShareInstanceResponse added in v0.22.42

type StartCompShareInstanceResponse struct {
	response.CommonBase

	// 实例Id
	UHostId string
}

StartCompShareInstanceResponse is response schema for StartCompShareInstance action

type StartULHostInstanceRequest

type StartULHostInstanceRequest struct {
	request.CommonBase

	// ULHost实例ID
	ULHostId *string `required:"true"`
}

StartULHostInstanceRequest is request schema for StartULHostInstance action

type StartULHostInstanceResponse

type StartULHostInstanceResponse struct {
	response.CommonBase

	// ULHost实例ID
	ULHostId string
}

StartULHostInstanceResponse is response schema for StartULHostInstance action

type StopCompShareInstanceRequest added in v0.22.42

type StopCompShareInstanceRequest struct {
	request.CommonBase

	// 实例Id
	UHostId *string `required:"true"`
}

StopCompShareInstanceRequest is request schema for StopCompShareInstance action

type StopCompShareInstanceResponse added in v0.22.42

type StopCompShareInstanceResponse struct {
	response.CommonBase

	// 实例Id
	UHostId string
}

StopCompShareInstanceResponse is response schema for StopCompShareInstance action

type StopULHostInstanceRequest

type StopULHostInstanceRequest struct {
	request.CommonBase

	// ULHost实例ID。
	ULHostId *string `required:"true"`
}

StopULHostInstanceRequest is request schema for StopULHostInstance action

type StopULHostInstanceResponse

type StopULHostInstanceResponse struct {
	response.CommonBase

	// ULHost实例ID
	ULHostId string
}

StopULHostInstanceResponse is response schema for StopULHostInstance action

type TerminateCompShareInstanceRequest added in v0.22.42

type TerminateCompShareInstanceRequest struct {
	request.CommonBase

	// 虚机资源id
	UHostId *string `required:"true"`
}

TerminateCompShareInstanceRequest is request schema for TerminateCompShareInstance action

type TerminateCompShareInstanceResponse added in v0.22.42

type TerminateCompShareInstanceResponse struct {
	response.CommonBase

	// 虚机资源id
	UHostId string
}

TerminateCompShareInstanceResponse is response schema for TerminateCompShareInstance action

type TerminateULHostInstanceRequest

type TerminateULHostInstanceRequest struct {
	request.CommonBase

	// 删除主机时是否同时删除挂载的数据盘。默认为false。
	ReleaseUDisk *bool `required:"false"`

	// ULHost资源Id
	ULHostId *string `required:"true"`
}

TerminateULHostInstanceRequest is request schema for TerminateULHostInstance action

type TerminateULHostInstanceResponse

type TerminateULHostInstanceResponse struct {
	response.CommonBase

	// 用于判断主机删除时是否进入回收站。放入回收站:"Yes", 彻底删除:“No”。
	InRecycle string

	// ULHost 实例 Id
	ULHostId string
}

TerminateULHostInstanceResponse is response schema for TerminateULHostInstance action

type UCompShareClient

type UCompShareClient struct {
	*ucloud.Client
}

UCompShareClient is the client of UCompShare

func NewClient

func NewClient(config *ucloud.Config, credential *auth.Credential) *UCompShareClient

NewClient will return a instance of UCompShareClient

func (*UCompShareClient) CreateCompShareInstance added in v0.22.42

API: CreateCompShareInstance

创建轻量级算力平台主机资源

func (*UCompShareClient) CreateULHostInstance

API: CreateULHostInstance

创建轻量应用云主机

func (*UCompShareClient) DescribeCompShareInstance added in v0.22.42

API: DescribeCompShareInstance

获取用户所有地域下主机资源信息列表

func (*UCompShareClient) DescribeULHostBundles

API: DescribeULHostBundles

获取轻量应用云主机套餐列表

func (*UCompShareClient) DescribeULHostInstance

API: DescribeULHostInstance

获取轻量应用云主机列表

func (*UCompShareClient) GetULHostInstancePrice

API: GetULHostInstancePrice

获取轻量应用云主机套餐价格

func (*UCompShareClient) GetULHostRenewPrice

API: GetULHostRenewPrice

获取主机续费价格

func (*UCompShareClient) ModifyULHostAttribute

API: ModifyULHostAttribute

修改指定ULHost实例属性信息,包含名称和备注

func (*UCompShareClient) NewCreateCompShareInstanceRequest added in v0.22.42

func (c *UCompShareClient) NewCreateCompShareInstanceRequest() *CreateCompShareInstanceRequest

NewCreateCompShareInstanceRequest will create request of CreateCompShareInstance action.

func (*UCompShareClient) NewCreateULHostInstanceRequest

func (c *UCompShareClient) NewCreateULHostInstanceRequest() *CreateULHostInstanceRequest

NewCreateULHostInstanceRequest will create request of CreateULHostInstance action.

func (*UCompShareClient) NewDescribeCompShareInstanceRequest added in v0.22.42

func (c *UCompShareClient) NewDescribeCompShareInstanceRequest() *DescribeCompShareInstanceRequest

NewDescribeCompShareInstanceRequest will create request of DescribeCompShareInstance action.

func (*UCompShareClient) NewDescribeULHostBundlesRequest

func (c *UCompShareClient) NewDescribeULHostBundlesRequest() *DescribeULHostBundlesRequest

NewDescribeULHostBundlesRequest will create request of DescribeULHostBundles action.

func (*UCompShareClient) NewDescribeULHostInstanceRequest

func (c *UCompShareClient) NewDescribeULHostInstanceRequest() *DescribeULHostInstanceRequest

NewDescribeULHostInstanceRequest will create request of DescribeULHostInstance action.

func (*UCompShareClient) NewGetULHostInstancePriceRequest

func (c *UCompShareClient) NewGetULHostInstancePriceRequest() *GetULHostInstancePriceRequest

NewGetULHostInstancePriceRequest will create request of GetULHostInstancePrice action.

func (*UCompShareClient) NewGetULHostRenewPriceRequest

func (c *UCompShareClient) NewGetULHostRenewPriceRequest() *GetULHostRenewPriceRequest

NewGetULHostRenewPriceRequest will create request of GetULHostRenewPrice action.

func (*UCompShareClient) NewModifyULHostAttributeRequest

func (c *UCompShareClient) NewModifyULHostAttributeRequest() *ModifyULHostAttributeRequest

NewModifyULHostAttributeRequest will create request of ModifyULHostAttribute action.

func (*UCompShareClient) NewPoweroffULHostInstanceRequest

func (c *UCompShareClient) NewPoweroffULHostInstanceRequest() *PoweroffULHostInstanceRequest

NewPoweroffULHostInstanceRequest will create request of PoweroffULHostInstance action.

func (*UCompShareClient) NewRebootCompShareInstanceRequest added in v0.22.42

func (c *UCompShareClient) NewRebootCompShareInstanceRequest() *RebootCompShareInstanceRequest

NewRebootCompShareInstanceRequest will create request of RebootCompShareInstance action.

func (*UCompShareClient) NewRebootULHostInstanceRequest

func (c *UCompShareClient) NewRebootULHostInstanceRequest() *RebootULHostInstanceRequest

NewRebootULHostInstanceRequest will create request of RebootULHostInstance action.

func (*UCompShareClient) NewReinstallCompShareInstanceRequest added in v0.22.42

func (c *UCompShareClient) NewReinstallCompShareInstanceRequest() *ReinstallCompShareInstanceRequest

NewReinstallCompShareInstanceRequest will create request of ReinstallCompShareInstance action.

func (*UCompShareClient) NewReinstallULHostInstanceRequest

func (c *UCompShareClient) NewReinstallULHostInstanceRequest() *ReinstallULHostInstanceRequest

NewReinstallULHostInstanceRequest will create request of ReinstallULHostInstance action.

func (*UCompShareClient) NewResetCompShareInstancePasswordRequest added in v0.22.42

func (c *UCompShareClient) NewResetCompShareInstancePasswordRequest() *ResetCompShareInstancePasswordRequest

NewResetCompShareInstancePasswordRequest will create request of ResetCompShareInstancePassword action.

func (*UCompShareClient) NewResetULHostInstancePasswordRequest

func (c *UCompShareClient) NewResetULHostInstancePasswordRequest() *ResetULHostInstancePasswordRequest

NewResetULHostInstancePasswordRequest will create request of ResetULHostInstancePassword action.

func (*UCompShareClient) NewStartCompShareInstanceRequest added in v0.22.42

func (c *UCompShareClient) NewStartCompShareInstanceRequest() *StartCompShareInstanceRequest

NewStartCompShareInstanceRequest will create request of StartCompShareInstance action.

func (*UCompShareClient) NewStartULHostInstanceRequest

func (c *UCompShareClient) NewStartULHostInstanceRequest() *StartULHostInstanceRequest

NewStartULHostInstanceRequest will create request of StartULHostInstance action.

func (*UCompShareClient) NewStopCompShareInstanceRequest added in v0.22.42

func (c *UCompShareClient) NewStopCompShareInstanceRequest() *StopCompShareInstanceRequest

NewStopCompShareInstanceRequest will create request of StopCompShareInstance action.

func (*UCompShareClient) NewStopULHostInstanceRequest

func (c *UCompShareClient) NewStopULHostInstanceRequest() *StopULHostInstanceRequest

NewStopULHostInstanceRequest will create request of StopULHostInstance action.

func (*UCompShareClient) NewTerminateCompShareInstanceRequest added in v0.22.42

func (c *UCompShareClient) NewTerminateCompShareInstanceRequest() *TerminateCompShareInstanceRequest

NewTerminateCompShareInstanceRequest will create request of TerminateCompShareInstance action.

func (*UCompShareClient) NewTerminateULHostInstanceRequest

func (c *UCompShareClient) NewTerminateULHostInstanceRequest() *TerminateULHostInstanceRequest

NewTerminateULHostInstanceRequest will create request of TerminateULHostInstance action.

func (*UCompShareClient) PoweroffULHostInstance

API: PoweroffULHostInstance

直接关闭UHost实例电源,无需等待实例正常关闭。

func (*UCompShareClient) RebootCompShareInstance added in v0.22.42

API: RebootCompShareInstance

重启轻量算力平台实例

func (*UCompShareClient) RebootULHostInstance

API: RebootULHostInstance

重新启动UHost实例。

func (*UCompShareClient) ReinstallCompShareInstance added in v0.22.42

API: ReinstallCompShareInstance

重装算力平台实例

func (*UCompShareClient) ReinstallULHostInstance

API: ReinstallULHostInstance

重装轻量应用云主机

func (*UCompShareClient) ResetCompShareInstancePassword added in v0.22.42

API: ResetCompShareInstancePassword

重置算力平台实例密码

func (*UCompShareClient) ResetULHostInstancePassword

API: ResetULHostInstancePassword

重置轻量应用云主机管理员密码。

func (*UCompShareClient) StartCompShareInstance added in v0.22.42

API: StartCompShareInstance

启动算力平台实例

func (*UCompShareClient) StartULHostInstance

API: StartULHostInstance

启动处于关闭状态的UHost实例。

func (*UCompShareClient) StopCompShareInstance added in v0.22.42

API: StopCompShareInstance

关闭算力平台实例

func (*UCompShareClient) StopULHostInstance

API: StopULHostInstance

指停止处于运行状态的ULHost实例

func (*UCompShareClient) TerminateCompShareInstance added in v0.22.42

API: TerminateCompShareInstance

删除轻量算力共享平台虚机实例

func (*UCompShareClient) TerminateULHostInstance

API: TerminateULHostInstance

删除指定数据中心的ULHost实例。

type UHostDiskSet added in v0.22.42

type UHostDiskSet struct {

	// 磁盘ID
	DiskId string

	// 磁盘类型。请参考[[api:uhost-api:disk_type|磁盘类型]]。
	DiskType string

	// 磁盘盘符
	Drive string

	// "true": 加密盘 "false":非加密盘
	Encrypted string

	// 是否是系统盘。枚举值:\\ > True,是系统盘 \\ > False,是数据盘(默认)。Disks数组中有且只能有一块盘是系统盘。
	IsBoot string

	// UDisk名字(仅当磁盘是UDisk时返回)
	Name string

	// 磁盘大小,单位: GB
	Size int

	// 【建议不再使用】磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
	Type string
}

UHostDiskSet -

type UHostIPSet

type UHostIPSet struct {

	// IP对应的带宽, 单位: Mb  (内网IP不显示带宽信息)
	Bandwidth int

	// 内网 Private 类型下,表示是否为默认网卡。true: 是默认网卡;其他值:不是。
	Default string

	// IP地址
	IP string

	// 外网IP资源ID 。(内网IP无对应的资源ID)
	IPId string

	// IPv4/IPv6;
	IPMode string

	// 内网 Private 类型下,当前网卡的Mac。
	Mac string

	// 弹性网卡为默认网卡时,返回对应的 ID 值
	NetworkInterfaceId string

	// IP地址对应的子网 ID。(北京一不支持,字段返回为空)
	SubnetId string

	// 国际: Internation,BGP: Bgp,内网: Private
	Type string

	// IP地址对应的VPC ID。(北京一不支持,字段返回为空)
	VPCId string

	// 当前EIP的权重。权重最大的为当前的出口IP。
	Weight int
}

UHostIPSet -

type ULHostDiskSet

type ULHostDiskSet struct {

	// 磁盘Id
	DiskId string

	// 磁盘类型。如:"CLOUD_RSSD"、"CLOUD_SSD"
	DiskType string

	// 磁盘盘符。系统盘:"vda"
	Drive string

	// 是否为系统盘。是:"True";否:"False"
	IsBoot string

	// 磁盘大小。单位:GB
	Size int

	// 磁盘类型。系统盘:"Boot";数据盘:"Data"
	Type string
}

ULHostDiskSet - 轻量应用主机的磁盘信息

type ULHostInstanceSet

type ULHostInstanceSet struct {

	// 【数组】镜像包含的应用列表。
	Apps []string

	// 是否自动续费。枚举值:Yes/No
	AutoRenew string

	// CPU核数。
	CPU int

	// 计费模式。枚举值:Month/Year
	ChargeType string

	// 创建时间。Unix时间戳
	CreateTime int

	// 磁盘信息
	DiskSet []ULHostDiskSet

	// 流量包详情信息
	EIPExclusiveUTPInfo ExclusiveUTPInfo

	// 过期时间。Unix时间戳
	ExpireTime int

	// IP信息
	IPSet []UHostIPSet

	// 镜像Id。
	ImageId string

	// 镜像名称。
	ImageName string

	// 是否过期。枚举值:Yes/No
	IsExpire string

	// 内存。单位:MB
	Memory int

	// 实例名称。默认套餐Id
	Name string

	// 备注。
	Remark string

	// 实例状态。枚举值:\\ >初始化: Initializing; \\ >启动中: Starting; \\> 运行中: Running; \\> 关机中: Stopping; \\ >关机: Stopped \\ >安装失败: Install Fail; \\ >重启中: Rebooting; \\ > 未知(空字符串,获取状态超时或出错):""
	State string

	// 业务组。
	Tag string

	// 实例Id。
	ULHostId string

	// 可用区。
	Zone string
}

ULHostInstanceSet - 轻量应用云主机详情

type ULHostPriceSet

type ULHostPriceSet struct {

	// 计费模式
	ChargeType string

	// 原价
	OriginalPrice float64

	// 价格
	Price float64
}

ULHostPriceSet - 轻量应用主机价格详情

type WithoutGpuSpec added in v0.22.42

type WithoutGpuSpec struct {

	// cpu
	Cpu int

	// gpu
	Gpu int

	// 内存
	Memory int
}

WithoutGpuSpec - 无卡云主机规格信息

Jump to

Keyboard shortcuts

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