ucloudstack

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Overview

Package ucloudstack include resources of ucloud ucloudstack product

See also

for detail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocateEIPRequest added in v0.13.0

type AllocateEIPRequest struct {
	request.CommonBase

	// 带宽,默认值1,默认范围1~100
	Bandwidth *int `required:"true"`

	// 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年;
	ChargeType *string `required:"true"`

	// 名称
	Name *string `required:"true"`

	// 线路。目前支持Bgp
	OperatorName *string `required:"true"`

	// 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。
	Quantity *int `required:"false"`
}

AllocateEIPRequest is request schema for AllocateEIP action

type AllocateEIPResponse added in v0.13.0

type AllocateEIPResponse struct {
	response.CommonBase

	// 申请的EIP的ID
	EIPID string

	// 返回信息描述。
	Message string
}

AllocateEIPResponse is response schema for AllocateEIP action

type AttachDiskRequest added in v0.13.0

type AttachDiskRequest struct {
	request.CommonBase

	// 硬盘ID
	DiskID *string `required:"true"`

	// 绑定的资源ID
	ResourceID *string `required:"true"`

	// 绑定的资源类型,枚举值:VM,标识虚拟机
	ResourceType *string `required:"true"`
}

AttachDiskRequest is request schema for AttachDisk action

type AttachDiskResponse added in v0.13.0

type AttachDiskResponse struct {
	response.CommonBase

	// 返回信息描述。
	Message string
}

AttachDiskResponse is response schema for AttachDisk action

type BindEIPRequest added in v0.13.0

type BindEIPRequest struct {
	request.CommonBase

	// 外网IP的ID
	EIPID *string `required:"true"`

	// 资源ID
	ResourceID *string `required:"true"`

	// 资源类型。VM:虚拟机, LB:负载均衡, NATGW:nat网关
	ResourceType *string `required:"true"`
}

BindEIPRequest is request schema for BindEIP action

type BindEIPResponse added in v0.13.0

type BindEIPResponse struct {
	response.CommonBase

	// 返回描述
	Message string
}

BindEIPResponse is response schema for BindEIP action

type CloneDiskRequest added in v0.13.0

type CloneDiskRequest struct {
	request.CommonBase

	// 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年;
	ChargeType *string `required:"true"`

	// 名称
	Name *string `required:"true"`

	// 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。
	Quantity *int `required:"false"`

	// 源硬盘ID
	SrcID *string `required:"true"`
}

CloneDiskRequest is request schema for CloneDisk action

type CloneDiskResponse added in v0.13.0

type CloneDiskResponse struct {
	response.CommonBase

	// 克隆出的硬盘ID
	DiskID string

	// 返回信息描述。
	Message string
}

CloneDiskResponse is response schema for CloneDisk action

type CreateDiskRequest added in v0.13.0

type CreateDiskRequest struct {
	request.CommonBase

	// 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年;
	ChargeType *string `required:"true"`

	// 磁盘大小
	DiskSpace *int `required:"true"`

	// 磁盘名称
	Name *string `required:"true"`

	// 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。
	Quantity *int `required:"false"`

	// 磁盘类型。例如:Normal,SSD
	SetType *string `required:"true"`
}

CreateDiskRequest is request schema for CreateDisk action

type CreateDiskResponse added in v0.13.0

type CreateDiskResponse struct {
	response.CommonBase

	// 创建的磁盘ID
	DiskID string

	// 返回信息描述。
	Message string
}

CreateDiskResponse is response schema for CreateDisk action

type CreateUserRequest added in v0.13.0

type CreateUserRequest struct {
	request.CommonBase

	// 账号密码。
	PassWord *string `required:"true"`

	// 账号邮箱。
	UserEmail *string `required:"true"`
}

CreateUserRequest is request schema for CreateUser action

type CreateUserResponse added in v0.13.0

type CreateUserResponse struct {
	response.CommonBase

	// 返回信息描述。
	Message string

	// 账户ID
	UserID int
}

CreateUserResponse is response schema for CreateUser action

type CreateVMInstanceRequest

type CreateVMInstanceRequest struct {
	request.CommonBase

	// 系统盘类型。枚举值:Normal,表示普通;SSD,表示SSD;
	BootDiskSetType *string `required:"true"`

	// CPU 个数,目前只能输入数据库配置指定规格参数,如:1核2048M、2核4096M、4核8192M、8核16384M、16核32768M。
	CPU *int `required:"true"`

	// 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年;
	ChargeType *string `required:"true"`

	// 数据盘类型。枚举值:Normal,表示普通;SSD,表示SSD;
	DataDiskSetType *string `required:"true"`

	// 数据盘大小,单位 GB。默认值为0。范围:【0,8000】,步长10。
	DataDiskSpace *int `required:"false"`

	// GPU 卡核心的占用个数。枚举值:【1,2,4】。GPU与CPU、内存大小关系:CPU个数>=4*GPU个数,同时内存与CPU规格匹配.
	GPU *int `required:"false"`

	// 镜像 ID。基础镜像 ID 或者自制镜像 ID。如:cn-image-centos-74。
	ImageID *string `required:"true"`

	// 指定内网IP。输入有效的指定内网 IP。默认为系统自动分配内网 IP。
	InternalIP *string `required:"false"`

	// 内网安全组 ID。输入“有效”状态的安全组的ID。
	LANSGID *string `required:"false"`

	// 内存大小,单位 M。目前只能输入数据库配置指定规格参数,如:1核2048M、2核4096M、4核8192M、8核16384M、16核32768M。
	Memory *int `required:"true"`

	// 虚拟机名称。可输入如:myVM。名称只能包含中英文、数字以及- _ .且1-30个字符。
	Name *string `required:"true"`

	// 密码。可输入如:ucloud.cn。密码长度限6-30个字符;需要同时包含两项或以上(大写字母/小写字母/数字/特殊符号);windows不能包含用户名(administrator)中超过2个连续字符的部分。
	Password *string `required:"true"`

	// 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。
	Quantity *int `required:"false"`

	// 子网 ID。
	SubnetID *string `required:"true"`

	// 机型。枚举值:Normal,表示普通;SSD,表示SSD;
	VMType *string `required:"true"`

	// VPC ID。
	VPCID *string `required:"true"`

	// 外网安全组 ID。输入“有效”状态的安全组的ID。
	WANSGID *string `required:"true"`
}

CreateVMInstanceRequest is request schema for CreateVMInstance action

type CreateVMInstanceResponse

type CreateVMInstanceResponse struct {
	response.CommonBase

	// 返回信息描述。
	Message string

	// 返回创建虚拟机的 ID 数组。
	VMID string
}

CreateVMInstanceResponse is response schema for CreateVMInstance action

type DeleteDiskRequest added in v0.13.0

type DeleteDiskRequest struct {
	request.CommonBase

	// 被删除的硬盘ID
	DiskID *string `required:"true"`
}

DeleteDiskRequest is request schema for DeleteDisk action

type DeleteDiskResponse added in v0.13.0

type DeleteDiskResponse struct {
	response.CommonBase

	// 返回信息描述。
	Message string
}

DeleteDiskResponse is response schema for DeleteDisk action

type DeleteVMInstanceRequest

type DeleteVMInstanceRequest struct {
	request.CommonBase

	// 虚拟机 ID。输入有效的虚拟机 ID。
	VMID *string `required:"true"`
}

DeleteVMInstanceRequest is request schema for DeleteVMInstance action

type DeleteVMInstanceResponse

type DeleteVMInstanceResponse struct {
	response.CommonBase

	// 返回信息描述。
	Message string
}

DeleteVMInstanceResponse is response schema for DeleteVMInstance action

type DescribeDiskRequest added in v0.13.0

type DescribeDiskRequest struct {
	request.CommonBase

	// 【数组】磁盘的 ID。输入有效的 ID。调用方式举例:DiskIDs.0=“one-id”、DiskIDs.1=“two-id”。
	DiskIDs []string `required:"false"`

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

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

DescribeDiskRequest is request schema for DescribeDisk action

type DescribeDiskResponse added in v0.13.0

type DescribeDiskResponse struct {
	response.CommonBase

	// 【数组】返回磁盘对象数组
	Infos []DiskInfo

	// 返回信息描述。
	Message string

	// 返回磁盘总个数。
	TotalCount int
}

DescribeDiskResponse is response schema for DescribeDisk action

type DescribeEIPRequest added in v0.13.0

type DescribeEIPRequest struct {
	request.CommonBase

	// 【数组】外网的 ID。输入有效的 ID。调用方式举例:EIPIDs.0=“one-id”、EIPIDs.1=“two-id”
	EIPIDs []string `required:"false"`

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

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

DescribeEIPRequest is request schema for DescribeEIP action

type DescribeEIPResponse added in v0.13.0

type DescribeEIPResponse struct {
	response.CommonBase

	// 外网IP数组
	Infos []EIPInfo

	// 返回信息描述
	Message string

	// 返回现有外网IP总数
	Totalcount int
}

DescribeEIPResponse is response schema for DescribeEIP action

type DescribeMetricRequest

type DescribeMetricRequest struct {
	request.CommonBase

	// 开始时间。使用unix时间戳
	BeginTime *string `required:"true"`

	// 结束时间。使用Unix时间戳
	EndTime *string `required:"true"`

	// 监控指标。获取虚拟机监控信息调用举例,MetricName.0="CPUUtilization"、MetricName.0="MemUsage"。虚拟机监控指标枚举值:BlockProcessCount,表示阻塞进程数;CPUUtilization,表示CPU使用率;DiskReadOps,表示磁盘读次数;DiskWriteOps,表示磁盘写次数;IORead,表示磁盘读吞吐;IOWrite,表示磁盘写吞吐;LoadAvg,表示平均负载1分钟;MemUsage,表示内存使用率;NetPacketIn,表示网卡入包量;NetPacketOut,表示网卡出包量;NICIn,表示网卡入带宽;NICOut,表示网卡出带宽;SpaceUsage,表示空间使用率;TCPConnectCount,表示TCP连接数;
	MetricName []string `required:"true"`

	// 资源ID
	ResourceID *string `required:"true"`
}

DescribeMetricRequest is request schema for DescribeMetric action

type DescribeMetricResponse

type DescribeMetricResponse struct {
	response.CommonBase

	// 返回信息列表
	Infos []MetricInfo

	// 返回信息描述
	Message string

	// 返回监控信息条数
	TotalCount int
}

DescribeMetricResponse is response schema for DescribeMetric action

type DescribeUserRequest added in v0.13.0

type DescribeUserRequest struct {
	request.CommonBase

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

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

	// 【数组】租户的 ID。输入有效的 ID。调用方式举例:UserIDs.0=123”、UserIDs.1=456
	UserIDs []int `required:"false"`
}

DescribeUserRequest is request schema for DescribeUser action

type DescribeUserResponse added in v0.13.0

type DescribeUserResponse struct {
	response.CommonBase

	// 【数组】返回租户对象数组
	Infos []UserInfo

	// 返回信息描述
	Message string

	// 返回现有租户总数
	TotalCount int
}

DescribeUserResponse is response schema for DescribeUser action

type DescribeVMInstanceRequest

type DescribeVMInstanceRequest struct {
	request.CommonBase

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

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

	// 子网 ID。输入“有效”状态的子网 ID。
	SubnetID *string `required:"false"`

	// 【数组】虚拟机的 ID。输入有效的 ID。调用方式举例:PrivateIp.0=“one-id”、PrivateIp.1=“two-id”。
	VMIDs []string `required:"false"`

	// VPC ID。输入“有效”状态的VPC ID。
	VPCID *string `required:"false"`
}

DescribeVMInstanceRequest is request schema for DescribeVMInstance action

type DescribeVMInstanceResponse

type DescribeVMInstanceResponse struct {
	response.CommonBase

	// 【数组】返回虚拟机对象数组
	Infos []VMInstanceInfo

	// 返回信息描述
	Message string

	// 返回虚拟机总个数
	TotalCount int
}

DescribeVMInstanceResponse is response schema for DescribeVMInstance action

type DetachDiskRequest added in v0.13.0

type DetachDiskRequest struct {
	request.CommonBase

	// 硬盘ID
	DiskID *string `required:"true"`

	// 绑定的资源ID
	ResourceID *string `required:"true"`
}

DetachDiskRequest is request schema for DetachDisk action

type DetachDiskResponse added in v0.13.0

type DetachDiskResponse struct {
	response.CommonBase

	// 返回信息描述。
	Message string
}

DetachDiskResponse is response schema for DetachDisk action

type DiskInfo added in v0.13.0

type DiskInfo struct {

	// 绑定资源ID
	AttachResourceID string

	// 硬盘计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年;
	ChargeType string

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

	// 硬盘ID
	DiskID string

	// 硬盘状态
	DiskStatus string

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

	// 名称
	Name string

	// 地域
	Region string

	// 备注
	Remark string

	// 磁盘类型。例如:Normal,SSD
	SetType string

	// 大小。单位GB
	Size int

	// 可用区
	Zone string
}

DiskInfo - 磁盘信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.

type EIPInfo added in v0.13.0

type EIPInfo struct {

	// 带宽大小
	Bandwidth int

	// 绑定资源ID
	BindResourceID string

	// 绑定资源类型
	BindResourceType string

	// 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年;
	ChargeType string

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

	// ID
	EIPID string

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

	// 外网IP
	IP string

	// 名称
	Name string

	// 线路
	OperatorName string

	// 地域
	Region string

	// 备注
	Remark string

	// 状态
	Status string

	// 可用区
	Zone string
}

EIPInfo - 外网IP信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.

type GetDiskPriceRequest added in v0.13.0

type GetDiskPriceRequest struct {
	request.CommonBase

	// 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年;
	ChargeType *string `required:"true"`

	// 磁盘大小
	DiskSpace *int `required:"true"`

	// 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。
	Quantity *int `required:"false"`

	// 磁盘类型
	SetType *string `required:"true"`
}

GetDiskPriceRequest is request schema for GetDiskPrice action

type GetDiskPriceResponse added in v0.13.0

type GetDiskPriceResponse struct {
	response.CommonBase

	// 价格信息
	Infos []PriceInfo

	// 返回信息描述。
	Message string
}

GetDiskPriceResponse is response schema for GetDiskPrice action

type GetEIPPriceRequest added in v0.13.0

type GetEIPPriceRequest struct {
	request.CommonBase

	// 带宽,默认值1,默认范围1~100
	Bandwidth *int `required:"true"`

	// 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年;
	ChargeType *string `required:"true"`

	// 线路。目前支持Bgp
	OpertatorName *string `required:"true"`

	// 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。
	Quantity *int `required:"false"`
}

GetEIPPriceRequest is request schema for GetEIPPrice action

type GetEIPPriceResponse added in v0.13.0

type GetEIPPriceResponse struct {
	response.CommonBase

	// 返回的价格信息
	Infos []PriceInfo

	// 返回信息描述
	Message string
}

GetEIPPriceResponse is response schema for GetEIPPrice action

type GetVMInstancePriceRequest added in v0.13.0

type GetVMInstancePriceRequest struct {
	request.CommonBase

	// 系统盘类型。枚举值:Normal,表示普通;SSD,表示SSD;
	BootDiskSetType *string `required:"true"`

	// CPU 个数,目前只能输入数据库配置指定规格参数,如:1核2048M、2核4096M、4核8192M、8核16384M、16核32768M。
	CPU *int `required:"true"`

	// 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年;
	ChargeType *string `required:"true"`

	// 数据盘类型。枚举值:Normal,表示普通;SSD,表示SSD;
	DataDiskSetType *string `required:"true"`

	// 数据盘大小,单位 GB。默认值为0。范围:【0,8000】,步长10。
	DataDiskSpace *int `required:"true"`

	// GPU 卡核心的占用个数。枚举值:【1,2,4】。GPU与CPU、内存大小关系:CPU个数>=4*GPU个数,同时内存与CPU规格匹配.
	GPU *int `required:"false"`

	// 镜像 ID。基础镜像 ID 或者自制镜像 ID。如:cn-image-centos-74。
	ImageID *string `required:"true"`

	// 内存大小,单位 M。目前只能输入数据库配置指定规格参数,如:1核2048M、2核4096M、4核8192M、8核16384M、16核32768M。
	Memory *int `required:"true"`

	// 系统类型。
	OSType *string `required:"true"`

	// 购买时长。默认值1。小时不生效,月范围【1,11】,年范围【1,5】。
	Quantity *int `required:"false"`

	// 机型。枚举值:Normal,表示普通;SSD,表示SSD;
	VMType *string `required:"true"`
}

GetVMInstancePriceRequest is request schema for GetVMInstancePrice action

type GetVMInstancePriceResponse added in v0.13.0

type GetVMInstancePriceResponse struct {
	response.CommonBase

	// 返回的价格信息
	Infos []PriceInfo

	// 返回信息描述。
	Message string
}

GetVMInstancePriceResponse is response schema for GetVMInstancePrice action

type LoginByPasswordRequest added in v0.13.0

type LoginByPasswordRequest struct {
	request.CommonBase

	// 密码
	Password *string `required:"true"`

	// 邮箱
	UserEmail *string `required:"true"`
}

LoginByPasswordRequest is request schema for LoginByPassword action

type LoginByPasswordResponse added in v0.13.0

type LoginByPasswordResponse struct {
	response.CommonBase

	//
	Message string
}

LoginByPasswordResponse is response schema for LoginByPassword action

type MetricInfo

type MetricInfo struct {

	// 监控值信息
	Infos []MetricSet

	// 监控指标。虚拟机的监控指标枚举值为:BlockProcessCount,表示阻塞进程数;CPUUtilization,表示CPU使用率;DiskReadOps,表示磁盘读次数;DiskWriteOps,表示磁盘写次数;IORead,表示磁盘读吞吐;IOWrite,表示磁盘写吞吐;LoadAvg,表示平均负载1分钟;MemUsage,表示内存使用率;NetPacketIn,表示网卡入包量;NetPacketOut,表示网卡出包量;NICIn,表示网卡入带宽;NICOut,表示网卡出带宽;SpaceUsage,表示空间使用率;TCPConnectCount,表示TCP连接数;
	MetricName string
}

MetricInfo - 监控信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.

type MetricSet

type MetricSet struct {

	// 监控时间
	Timestamp int

	// 监控值
	Value float64
}

MetricSet - 监控值

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.

type PriceInfo added in v0.13.0

type PriceInfo struct {

	// 计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年;
	ChargeType string

	// 价格
	Price float64
}

PriceInfo - 价格信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.

type RechargeRequest added in v0.13.0

type RechargeRequest struct {
	request.CommonBase

	// 充值金额。最少100,最大500000
	Amount *int `required:"true"`

	// 充值来源。INPOUR_FROM_ALIPAY:支付宝,INPOUR_FROM_OFFLINE:银行转账,INPOUR_FROM_SINPAY:新浪支付,INPOUR_FROM_WECHAT_PAY:微信转账。
	FromType *string `required:"true"`

	// 充值单号。充值方式为“账户余额”时为必要参数。
	SerialNo *string `required:"true"`

	// 租户的账户ID。
	UserID *int `required:"true"`
}

RechargeRequest is request schema for Recharge action

type RechargeResponse added in v0.13.0

type RechargeResponse struct {
	response.CommonBase

	// 返回信息描述。
	Message string
}

RechargeResponse is response schema for Recharge action

type ReleaseEIPRequest added in v0.13.0

type ReleaseEIPRequest struct {
	request.CommonBase

	// 外网IP的ID
	EIPID *string `required:"true"`
}

ReleaseEIPRequest is request schema for ReleaseEIP action

type ReleaseEIPResponse added in v0.13.0

type ReleaseEIPResponse struct {
	response.CommonBase

	// 返回状态描述
	Message string
}

ReleaseEIPResponse is response schema for ReleaseEIP action

type StartVMInstanceRequest added in v0.13.0

type StartVMInstanceRequest struct {
	request.CommonBase

	// 虚拟机 ID
	VMID *string `required:"true"`
}

StartVMInstanceRequest is request schema for StartVMInstance action

type StartVMInstanceResponse added in v0.13.0

type StartVMInstanceResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string
}

StartVMInstanceResponse is response schema for StartVMInstance action

type StopVMInstanceRequest

type StopVMInstanceRequest struct {
	request.CommonBase

	// 虚拟机 ID
	VMID *string `required:"true"`
}

StopVMInstanceRequest is request schema for StopVMInstance action

type StopVMInstanceResponse

type StopVMInstanceResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string

	// 虚拟机 ID
	VMID string
}

StopVMInstanceResponse is response schema for StopVMInstance action

type UCloudStackClient

type UCloudStackClient struct {
	*ucloud.Client
}

UCloudStackClient is the client of UCloudStack

func NewClient

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

NewClient will return a instance of UCloudStackClient

func (*UCloudStackClient) AllocateEIP added in v0.13.0

AllocateEIP - 申请UCloudStack外网IP

func (*UCloudStackClient) AttachDisk added in v0.13.0

AttachDisk - 绑定UClouStack硬盘

func (*UCloudStackClient) BindEIP added in v0.13.0

BindEIP - 绑定UCoudStack弹性IP

func (*UCloudStackClient) CloneDisk added in v0.13.0

CloneDisk - 克隆UCloudStack硬盘

func (*UCloudStackClient) CreateDisk added in v0.13.0

CreateDisk - 创建UCloudStack硬盘

func (*UCloudStackClient) CreateUser added in v0.13.0

CreateUser - 管理员添加账号

func (*UCloudStackClient) CreateVMInstance

CreateVMInstance - 创建UCloudStack虚拟机

func (*UCloudStackClient) DeleteDisk added in v0.13.0

DeleteDisk - 删除UCloudStack硬盘

func (*UCloudStackClient) DeleteVMInstance

DeleteVMInstance - 删除UCloudStack虚拟机

func (*UCloudStackClient) DescribeDisk added in v0.13.0

DescribeDisk - 获取UCloudStack硬盘信息

func (*UCloudStackClient) DescribeEIP added in v0.13.0

DescribeEIP - 获取UCloudStack外网IP的信息

func (*UCloudStackClient) DescribeMetric

DescribeMetric - 获取资源监控信息

func (*UCloudStackClient) DescribeUser added in v0.13.0

DescribeUser - 查询UcloudStack租户信息

func (*UCloudStackClient) DescribeVMInstance

DescribeVMInstance - 查询UCloudStack虚拟机

func (*UCloudStackClient) DetachDisk added in v0.13.0

DetachDisk - 解绑UClouStack硬盘

func (*UCloudStackClient) GetDiskPrice added in v0.13.0

GetDiskPrice - 获取UCloudStack硬盘价格

func (*UCloudStackClient) GetEIPPrice added in v0.13.0

GetEIPPrice - 获取UCloudStack弹性IP价格

func (*UCloudStackClient) GetVMInstancePrice added in v0.13.0

GetVMInstancePrice - 获取UCloudStack虚拟机价格

func (*UCloudStackClient) LoginByPassword added in v0.13.0

LoginByPassword - 登录账户

func (*UCloudStackClient) NewAllocateEIPRequest added in v0.13.0

func (c *UCloudStackClient) NewAllocateEIPRequest() *AllocateEIPRequest

NewAllocateEIPRequest will create request of AllocateEIP action.

func (*UCloudStackClient) NewAttachDiskRequest added in v0.13.0

func (c *UCloudStackClient) NewAttachDiskRequest() *AttachDiskRequest

NewAttachDiskRequest will create request of AttachDisk action.

func (*UCloudStackClient) NewBindEIPRequest added in v0.13.0

func (c *UCloudStackClient) NewBindEIPRequest() *BindEIPRequest

NewBindEIPRequest will create request of BindEIP action.

func (*UCloudStackClient) NewCloneDiskRequest added in v0.13.0

func (c *UCloudStackClient) NewCloneDiskRequest() *CloneDiskRequest

NewCloneDiskRequest will create request of CloneDisk action.

func (*UCloudStackClient) NewCreateDiskRequest added in v0.13.0

func (c *UCloudStackClient) NewCreateDiskRequest() *CreateDiskRequest

NewCreateDiskRequest will create request of CreateDisk action.

func (*UCloudStackClient) NewCreateUserRequest added in v0.13.0

func (c *UCloudStackClient) NewCreateUserRequest() *CreateUserRequest

NewCreateUserRequest will create request of CreateUser action.

func (*UCloudStackClient) NewCreateVMInstanceRequest

func (c *UCloudStackClient) NewCreateVMInstanceRequest() *CreateVMInstanceRequest

NewCreateVMInstanceRequest will create request of CreateVMInstance action.

func (*UCloudStackClient) NewDeleteDiskRequest added in v0.13.0

func (c *UCloudStackClient) NewDeleteDiskRequest() *DeleteDiskRequest

NewDeleteDiskRequest will create request of DeleteDisk action.

func (*UCloudStackClient) NewDeleteVMInstanceRequest

func (c *UCloudStackClient) NewDeleteVMInstanceRequest() *DeleteVMInstanceRequest

NewDeleteVMInstanceRequest will create request of DeleteVMInstance action.

func (*UCloudStackClient) NewDescribeDiskRequest added in v0.13.0

func (c *UCloudStackClient) NewDescribeDiskRequest() *DescribeDiskRequest

NewDescribeDiskRequest will create request of DescribeDisk action.

func (*UCloudStackClient) NewDescribeEIPRequest added in v0.13.0

func (c *UCloudStackClient) NewDescribeEIPRequest() *DescribeEIPRequest

NewDescribeEIPRequest will create request of DescribeEIP action.

func (*UCloudStackClient) NewDescribeMetricRequest

func (c *UCloudStackClient) NewDescribeMetricRequest() *DescribeMetricRequest

NewDescribeMetricRequest will create request of DescribeMetric action.

func (*UCloudStackClient) NewDescribeUserRequest added in v0.13.0

func (c *UCloudStackClient) NewDescribeUserRequest() *DescribeUserRequest

NewDescribeUserRequest will create request of DescribeUser action.

func (*UCloudStackClient) NewDescribeVMInstanceRequest

func (c *UCloudStackClient) NewDescribeVMInstanceRequest() *DescribeVMInstanceRequest

NewDescribeVMInstanceRequest will create request of DescribeVMInstance action.

func (*UCloudStackClient) NewDetachDiskRequest added in v0.13.0

func (c *UCloudStackClient) NewDetachDiskRequest() *DetachDiskRequest

NewDetachDiskRequest will create request of DetachDisk action.

func (*UCloudStackClient) NewGetDiskPriceRequest added in v0.13.0

func (c *UCloudStackClient) NewGetDiskPriceRequest() *GetDiskPriceRequest

NewGetDiskPriceRequest will create request of GetDiskPrice action.

func (*UCloudStackClient) NewGetEIPPriceRequest added in v0.13.0

func (c *UCloudStackClient) NewGetEIPPriceRequest() *GetEIPPriceRequest

NewGetEIPPriceRequest will create request of GetEIPPrice action.

func (*UCloudStackClient) NewGetVMInstancePriceRequest added in v0.13.0

func (c *UCloudStackClient) NewGetVMInstancePriceRequest() *GetVMInstancePriceRequest

NewGetVMInstancePriceRequest will create request of GetVMInstancePrice action.

func (*UCloudStackClient) NewLoginByPasswordRequest added in v0.13.0

func (c *UCloudStackClient) NewLoginByPasswordRequest() *LoginByPasswordRequest

NewLoginByPasswordRequest will create request of LoginByPassword action.

func (*UCloudStackClient) NewRechargeRequest added in v0.13.0

func (c *UCloudStackClient) NewRechargeRequest() *RechargeRequest

NewRechargeRequest will create request of Recharge action.

func (*UCloudStackClient) NewReleaseEIPRequest added in v0.13.0

func (c *UCloudStackClient) NewReleaseEIPRequest() *ReleaseEIPRequest

NewReleaseEIPRequest will create request of ReleaseEIP action.

func (*UCloudStackClient) NewStartVMInstanceRequest added in v0.13.0

func (c *UCloudStackClient) NewStartVMInstanceRequest() *StartVMInstanceRequest

NewStartVMInstanceRequest will create request of StartVMInstance action.

func (*UCloudStackClient) NewStopVMInstanceRequest

func (c *UCloudStackClient) NewStopVMInstanceRequest() *StopVMInstanceRequest

NewStopVMInstanceRequest will create request of StopVMInstance action.

func (*UCloudStackClient) NewUnBindEIPRequest added in v0.13.0

func (c *UCloudStackClient) NewUnBindEIPRequest() *UnBindEIPRequest

NewUnBindEIPRequest will create request of UnBindEIP action.

func (*UCloudStackClient) Recharge added in v0.13.0

Recharge - UCloudStack管理员给租户充值

func (*UCloudStackClient) ReleaseEIP added in v0.13.0

ReleaseEIP - 删除外网IP

func (*UCloudStackClient) StartVMInstance added in v0.13.0

StartVMInstance - 开启UCloudStack虚拟机

func (*UCloudStackClient) StopVMInstance

StopVMInstance - 关闭UCloudStack虚拟机

func (*UCloudStackClient) UnBindEIP added in v0.13.0

UnBindEIP - 解绑外网IP

type UnBindEIPRequest added in v0.13.0

type UnBindEIPRequest struct {
	request.CommonBase

	// 外网IP的ID
	EIPID *string `required:"true"`

	// 资源ID
	ResourceID *string `required:"true"`

	// 资源类型。VM:虚拟机, LB:负载均衡, NATGW:nat网关
	ResourceType *string `required:"true"`
}

UnBindEIPRequest is request schema for UnBindEIP action

type UnBindEIPResponse added in v0.13.0

type UnBindEIPResponse struct {
	response.CommonBase

	//
	Message string
}

UnBindEIPResponse is response schema for UnBindEIP action

type UserInfo added in v0.13.0

type UserInfo struct {

	// 账户余额
	Amount float64

	// 账户创建时间。时间戳
	CreateTime int

	// 租户名称
	Email string

	// 私钥
	PrivateKey string

	// 公钥
	PublicKey string

	// 用户状态。USER_STATUS_AVAILABLE:正常,USER_STATUS_FREEZE:冻结
	Status string

	// 更新时间。时间戳
	UpdateTime int

	// 租户ID.
	UserID int
}

UserInfo - 租户信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.

type VMDiskInfo

type VMDiskInfo struct {

	// 磁盘 ID
	DiskID string

	// 磁盘盘符
	Drive string

	// 是否是弹性磁盘。枚举值为:Y,表示是;N,表示否;
	IsElastic string

	// 磁盘名称
	Name string

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

	// 磁盘类型。枚举值:Boot,表示系统盘;Data,表示数据盘;
	Type string
}

VMDiskInfo - UCloudStack虚拟机磁盘信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.

type VMIPInfo

type VMIPInfo struct {

	// IP 值
	IP string

	// 网卡 ID
	InterfaceID string

	// 是否是弹性网卡。枚举值:Y,表示是;N,表示否;
	IsElastic string

	// MAC 地址值
	MAC string

	// 安全组 ID
	SGID string

	// 安全组名称
	SGName string

	// 子网 ID
	SubnetID string

	// 子网名称
	SubnetName string

	// IP 类型。枚举值:Private,表示内网;Public,表示外网;Physical,表示物理网;
	Type string

	// VPC ID
	VPCID string

	// VPC 名称
	VPCName string
}

VMIPInfo - UCloudStack虚拟机IP信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.

type VMInstanceInfo

type VMInstanceInfo struct {

	// CPU 个数
	CPU int

	// 虚拟机计费模式。枚举值:Dynamic,表示小时;Month,表示月;Year,表示年;
	ChargeType string

	// 虚拟机创建时间
	CreateTime int

	// 磁盘信息
	DiskInfos []VMDiskInfo

	// 虚拟机过期时间
	ExpireTime int

	// IP 信息
	IPInfos []VMIPInfo

	// 镜像 ID
	ImageID string

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

	// 虚拟机名称
	Name string

	// 操作系统名称
	OSName string

	// 操作系统类型
	OSType string

	// Region
	Region string

	// Region 别名
	RegionAlias string

	// 备注
	Remark string

	// 虚拟机状态。枚举值:Initializing,表示初始化;Starting,表示启动中;Restarting,表示重启中;Running,表示运行;Stopping,表示关机中;Stopped,表示关机;Deleted,表示已删除;Resizing,表示修改配置中;Terminating,表示销毁中;Terminated,表示已销毁;Migrating,表示迁移中;WaitReinstall,表示重装中;Reinstalling,表示重装中;Poweroffing,表示断电中;ChangeSGing,表示修改防火墙中;
	State string

	// 子网 ID
	SubnetID string

	// 子网 名称
	SubnetName string

	// 虚拟机 ID
	VMID string

	// 虚拟机类型
	VMType string

	// 虚拟机类型别名
	VMTypeAlias string

	// VPC ID
	VPCID string

	// VPC 名称
	VPCName string

	// Zone
	Zone string

	// Zone 别名
	ZoneAlias string
}

VMInstanceInfo - UCloudStack虚拟机信息

this model is auto created by ucloud code generater for open api, you can also see https://docs.ucloud.cn/api for detail.

Jump to

Keyboard shortcuts

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