ucloudstack

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 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 BindAlarmTemplateRequest added in v0.13.1

type BindAlarmTemplateRequest struct {
	request.CommonBase

	// 告警模板ID
	AlarmTemplateID *string `required:"true"`

	// 【数组】告警模板ID。调用方式举例:ResourceIDs.0=“one-id”、ResourceIDs.1=“two-id”。
	ResourceIDs []string `required:"true"`

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

BindAlarmTemplateRequest is request schema for BindAlarmTemplate action

type BindAlarmTemplateResponse added in v0.13.1

type BindAlarmTemplateResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string
}

BindAlarmTemplateResponse is response schema for BindAlarmTemplate 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 CreateSecurityGroupRequest added in v0.13.1

type CreateSecurityGroupRequest struct {
	request.CommonBase

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

	// 描述;
	Remark *string `required:"false"`

	// 【数组】安全组规则。输入有效的规则,调用方式举例:Rule.0=“TCP|23|0.0.0.0/0|ACCEPT|HIGH|1”、Rule.1=“TCP|55|0.0.0.0/0|ACCEPT|HIGH|1”
	Rule []string `required:"true"`
}

CreateSecurityGroupRequest is request schema for CreateSecurityGroup action

type CreateSecurityGroupResponse added in v0.13.1

type CreateSecurityGroupResponse struct {
	response.CommonBase

	// 返回信息描述;
	Message string

	// 创建的安全组ID
	SGID string
}

CreateSecurityGroupResponse is response schema for CreateSecurityGroup action

type CreateSecurityGroupRuleRequest added in v0.13.1

type CreateSecurityGroupRuleRequest struct {
	request.CommonBase

	// 【数组】安全组规则。输入有效的规则,调用方式举例:Rule.0=“TCP|23|0.0.0.0/0|ACCEPT|HIGH|1”、Rule.1=“TCP|55|0.0.0.0/0|ACCEPT|HIGH|1”
	Rules []string `required:"true"`

	// 安全组ID
	SGID *string `required:"true"`
}

CreateSecurityGroupRuleRequest is request schema for CreateSecurityGroupRule action

type CreateSecurityGroupRuleResponse added in v0.13.1

type CreateSecurityGroupRuleResponse struct {
	response.CommonBase

	// 返回信息描述;
	Message string

	// 创建的安全组规则ID
	SGRuleID string
}

CreateSecurityGroupRuleResponse is response schema for CreateSecurityGroupRule action

type CreateSubnetRequest added in v0.13.1

type CreateSubnetRequest struct {
	request.CommonBase

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

	// 网段。列如:10.0.0.0/16;
	Network *string `required:"true"`

	// 描述;
	Remark *string `required:"false"`

	// 所属VPCID
	VPCID *string `required:"true"`
}

CreateSubnetRequest is request schema for CreateSubnet action

type CreateSubnetResponse added in v0.13.1

type CreateSubnetResponse struct {
	response.CommonBase

	// 返回信息描述;
	Message string

	// 创建Subnet的ID;
	SubnetID string
}

CreateSubnetResponse is response schema for CreateSubnet 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,2,4,8,16,32,64等。
	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"`

	// 内存容量,如1024,2048,4096,8192,16384,32768,65535等。
	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 CreateVPCRequest added in v0.13.1

type CreateVPCRequest struct {
	request.CommonBase

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

	// 网段。例如:10.0.0.0/16;
	Network *string `required:"true"`

	// 描述;
	Remark *string `required:"false"`
}

CreateVPCRequest is request schema for CreateVPC action

type CreateVPCResponse added in v0.13.1

type CreateVPCResponse struct {
	response.CommonBase

	// 返回信息描述;
	Message string

	// 创建的VPCID;
	VPCID string
}

CreateVPCResponse is response schema for CreateVPC 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 DeleteSecurityGroupRequest added in v0.13.1

type DeleteSecurityGroupRequest struct {
	request.CommonBase

	// 安全组ID
	SGID *string `required:"true"`
}

DeleteSecurityGroupRequest is request schema for DeleteSecurityGroup action

type DeleteSecurityGroupResponse added in v0.13.1

type DeleteSecurityGroupResponse struct {
	response.CommonBase

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

DeleteSecurityGroupResponse is response schema for DeleteSecurityGroup action

type DeleteSecurityGroupRuleRequest added in v0.13.1

type DeleteSecurityGroupRuleRequest struct {
	request.CommonBase

	// 安全组ID
	SGID *string `required:"true"`

	// 安全组规则ID
	SGRuleID *string `required:"true"`
}

DeleteSecurityGroupRuleRequest is request schema for DeleteSecurityGroupRule action

type DeleteSecurityGroupRuleResponse added in v0.13.1

type DeleteSecurityGroupRuleResponse struct {
	response.CommonBase

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

DeleteSecurityGroupRuleResponse is response schema for DeleteSecurityGroupRule action

type DeleteSubnetRequest added in v0.13.1

type DeleteSubnetRequest struct {
	request.CommonBase

	// SubnetID
	SubnetID *string `required:"true"`
}

DeleteSubnetRequest is request schema for DeleteSubnet action

type DeleteSubnetResponse added in v0.13.1

type DeleteSubnetResponse struct {
	response.CommonBase

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

DeleteSubnetResponse is response schema for DeleteSubnet 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 DeleteVPCRequest added in v0.13.1

type DeleteVPCRequest struct {
	request.CommonBase

	// ID
	VPCID *string `required:"true"`
}

DeleteVPCRequest is request schema for DeleteVPC action

type DeleteVPCResponse added in v0.13.1

type DeleteVPCResponse struct {
	response.CommonBase

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

DeleteVPCResponse is response schema for DeleteVPC 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"`

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

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

	// 资源类型。VM:虚拟机;EIP:弹性IP
	ResourceType *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 DescribeSecurityGroupRequest added in v0.13.1

type DescribeSecurityGroupRequest struct {
	request.CommonBase

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

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

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

DescribeSecurityGroupRequest is request schema for DescribeSecurityGroup action

type DescribeSecurityGroupResponse added in v0.13.1

type DescribeSecurityGroupResponse struct {
	response.CommonBase

	// 安全组信息列表
	Infos []SGInfo

	// 返回信息描述;
	Message string

	// 安全组的总数
	TotalCount int
}

DescribeSecurityGroupResponse is response schema for DescribeSecurityGroup action

type DescribeSubnetRequest added in v0.13.1

type DescribeSubnetRequest struct {
	request.CommonBase

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

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

	// 【数组】子网 ID。调用方式举例:SubnetIDs.0=“one-id”、SubnetIDs.1=“two-id”
	SubnetIDs []string `required:"false"`

	// VPCID
	VPCID *string `required:"false"`
}

DescribeSubnetRequest is request schema for DescribeSubnet action

type DescribeSubnetResponse added in v0.13.1

type DescribeSubnetResponse struct {
	response.CommonBase

	// 子网信息列表
	Infos []SubnetInfo

	// 返回信息描述;
	Message string

	// 子网的总数
	TotalCount int
}

DescribeSubnetResponse is response schema for DescribeSubnet 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 DescribeVPCRequest added in v0.13.1

type DescribeVPCRequest struct {
	request.CommonBase

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

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

	// 【数组】VPC的 ID。调用方式举例:VPCIDs.0=“one-id”、VPCIDs.1=“two-id”
	VPCIDs []string `required:"false"`
}

DescribeVPCRequest is request schema for DescribeVPC action

type DescribeVPCResponse added in v0.13.1

type DescribeVPCResponse struct {
	response.CommonBase

	// VPC信息列表
	Infos []VPCInfo

	// 返回信息描述;
	Message string

	// VPC的总数
	TotalCount int
}

DescribeVPCResponse is response schema for DescribeVPC 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

	// 硬盘状态。Creating:创建中,BeingCloned:正在被克隆中,Unbound:已解绑,Unbounding:解绑中,Bounding:绑定中,Bound:已绑定,Upgrading:升级中,Deleting:删除中,Deleted:已删除,Releasing:销毁中,Released:已销毁
	DiskStatus string

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

	// 名称
	Name string

	// 地域
	Region string

	// 备注
	Remark string

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

	// 大小。单位GB
	Size int

	// 可用区
	Zone string
}

DiskInfo - 磁盘信息

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

	// 状态。Allocating:申请中,Free:未绑定,Bounding:绑定中,Bound:已绑定,Unbounding:解绑中,Deleted:已删除,Releasing:销毁中,Released:已销毁,BandwidthChanging:带宽修改中
	Status string

	// 可用区
	Zone string
}

EIPInfo - 外网IP信息

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 - 监控信息

type MetricSet

type MetricSet struct {

	// 监控时间
	Timestamp int

	// 监控值
	Value float64
}

MetricSet - 监控值

type ModifyEIPBandwidthRequest added in v0.13.1

type ModifyEIPBandwidthRequest struct {
	request.CommonBase

	// 调整后的带宽
	Bandwidth *int `required:"true"`

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

ModifyEIPBandwidthRequest is request schema for ModifyEIPBandwidth action

type ModifyEIPBandwidthResponse added in v0.13.1

type ModifyEIPBandwidthResponse struct {
	response.CommonBase

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

ModifyEIPBandwidthResponse is response schema for ModifyEIPBandwidth action

type ModifyNameAndRemarkRequest added in v0.13.1

type ModifyNameAndRemarkRequest struct {
	request.CommonBase

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

	// 描述;
	Remark *string `required:"false"`

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

ModifyNameAndRemarkRequest is request schema for ModifyNameAndRemark action

type ModifyNameAndRemarkResponse added in v0.13.1

type ModifyNameAndRemarkResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string
}

ModifyNameAndRemarkResponse is response schema for ModifyNameAndRemark action

type PriceInfo added in v0.13.0

type PriceInfo struct {

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

	// 价格
	Price float64
}

PriceInfo - 价格信息

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 ReinstallVMInstanceRequest added in v0.13.1

type ReinstallVMInstanceRequest struct {
	request.CommonBase

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

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

ReinstallVMInstanceRequest is request schema for ReinstallVMInstance action

type ReinstallVMInstanceResponse added in v0.13.1

type ReinstallVMInstanceResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string
}

ReinstallVMInstanceResponse is response schema for ReinstallVMInstance 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 ResetVMInstancePasswordRequest added in v0.13.1

type ResetVMInstancePasswordRequest struct {
	request.CommonBase

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

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

ResetVMInstancePasswordRequest is request schema for ResetVMInstancePassword action

type ResetVMInstancePasswordResponse added in v0.13.1

type ResetVMInstancePasswordResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string
}

ResetVMInstancePasswordResponse is response schema for ResetVMInstancePassword action

type ResizeVMConfigRequest added in v0.13.1

type ResizeVMConfigRequest struct {
	request.CommonBase

	// CPU 个数,如 1、2、4、8、16、32、64。
	CPU *int `required:"true"`

	// 内存容量,如 2048、4096、8192、16384、32768、65536、131072。
	Memory *int `required:"true"`

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

ResizeVMConfigRequest is request schema for ResizeVMConfig action

type ResizeVMConfigResponse added in v0.13.1

type ResizeVMConfigResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string
}

ResizeVMConfigResponse is response schema for ResizeVMConfig action

type RestartVMInstanceRequest added in v0.13.1

type RestartVMInstanceRequest struct {
	request.CommonBase

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

RestartVMInstanceRequest is request schema for RestartVMInstance action

type RestartVMInstanceResponse added in v0.13.1

type RestartVMInstanceResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string
}

RestartVMInstanceResponse is response schema for RestartVMInstance action

type SGInfo added in v0.13.1

type SGInfo struct {

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

	// 名称
	Name string

	// 地域
	Region string

	// 描述
	Remark string

	// 资源绑定数量
	ResourceCount int

	// 安全组规则。
	Rule []SGRuleInfo

	// 规则数量
	RuleCount int

	// 安全组ID
	SGID string

	// 状态。Creating:创建中,Updating:更新中,Available:有效,Deleted:已删除,Terminating:销毁中,Terminated:已销毁
	Status string

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

	// 可用区
	Zone string
}

SGInfo - 安全组信息

type SGRuleInfo added in v0.13.1

type SGRuleInfo struct {

	// 端口号
	DstPort string

	// 方向。1:入,0:出
	IsIn string

	// 优先级。HIGH:高,MEDIUM:中,LOW:低
	Priority string

	// 协议
	ProtocolType string

	// 动作。ACCEPT:接受,DROP:拒绝
	RuleAction string

	// 规则ID
	RuleID string

	// IP或者掩码/段形式。10.0.0.2,10.0.10.10/16
	SrcIP string
}

SGRuleInfo - 安全组规则信息

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 SubnetInfo added in v0.13.1

type SubnetInfo struct {

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

	// 名称
	Name string

	// 网段
	Network string

	// 地域
	Region string

	// 描述
	Remark string

	// 状态;Allocating:申请中,Available:有效,Deleting:删除中,Deleted:已删除
	State string

	// ID
	SubnetID string

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

	// 可用区
	Zone string
}

SubnetInfo - 子网信息

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

API: AllocateEIP

申请UCloudStack外网IP

func (*UCloudStackClient) AttachDisk added in v0.13.0

API: AttachDisk

绑定UClouStack硬盘

func (*UCloudStackClient) BindAlarmTemplate added in v0.13.1

API: BindAlarmTemplate

绑定告警模板

func (*UCloudStackClient) BindEIP added in v0.13.0

API: BindEIP

绑定UCoudStack外网IP

func (*UCloudStackClient) CloneDisk added in v0.13.0

API: CloneDisk

克隆UCloudStack硬盘

func (*UCloudStackClient) CreateDisk added in v0.13.0

API: CreateDisk

创建UCloudStack硬盘

func (*UCloudStackClient) CreateSecurityGroup added in v0.13.1

API: CreateSecurityGroup

创建安全组

func (*UCloudStackClient) CreateSecurityGroupRule added in v0.13.1

API: CreateSecurityGroupRule

创建安全组规则

func (*UCloudStackClient) CreateSubnet added in v0.13.1

API: CreateSubnet

创建子网

func (*UCloudStackClient) CreateUser added in v0.13.0

API: CreateUser

管理员添加账号

func (*UCloudStackClient) CreateVMInstance

API: CreateVMInstance

创建UCloudStack虚拟机

func (*UCloudStackClient) CreateVPC added in v0.13.1

API: CreateVPC

创建VPC

func (*UCloudStackClient) DeleteDisk added in v0.13.0

API: DeleteDisk

删除UCloudStack硬盘

func (*UCloudStackClient) DeleteSecurityGroup added in v0.13.1

API: DeleteSecurityGroup

删除安全组

func (*UCloudStackClient) DeleteSecurityGroupRule added in v0.13.1

API: DeleteSecurityGroupRule

删除安全组规则

func (*UCloudStackClient) DeleteSubnet added in v0.13.1

API: DeleteSubnet

删除子网

func (*UCloudStackClient) DeleteVMInstance

API: DeleteVMInstance

删除UCloudStack虚拟机

func (*UCloudStackClient) DeleteVPC added in v0.13.1

API: DeleteVPC

删除VPC

func (*UCloudStackClient) DescribeDisk added in v0.13.0

API: DescribeDisk

获取UCloudStack硬盘信息

func (*UCloudStackClient) DescribeEIP added in v0.13.0

API: DescribeEIP

获取UCloudStack外网IP的信息

func (*UCloudStackClient) DescribeMetric

API: DescribeMetric

获取资源监控信息

func (*UCloudStackClient) DescribeSecurityGroup added in v0.13.1

API: DescribeSecurityGroup

查询安全组信息

func (*UCloudStackClient) DescribeSubnet added in v0.13.1

API: DescribeSubnet

查询子网信息

func (*UCloudStackClient) DescribeUser added in v0.13.0

API: DescribeUser

查询UcloudStack租户信息

func (*UCloudStackClient) DescribeVMInstance

API: DescribeVMInstance

查询UCloudStack虚拟机

func (*UCloudStackClient) DescribeVPC added in v0.13.1

API: DescribeVPC

查询VPC信息

func (*UCloudStackClient) DetachDisk added in v0.13.0

API: DetachDisk

解绑UClouStack硬盘

func (*UCloudStackClient) GetDiskPrice added in v0.13.0

API: GetDiskPrice

获取UCloudStack硬盘价格

func (*UCloudStackClient) GetEIPPrice added in v0.13.0

API: GetEIPPrice

获取UCloudStack外网IP价格

func (*UCloudStackClient) GetVMInstancePrice added in v0.13.0

API: GetVMInstancePrice

获取UCloudStack虚拟机价格

func (*UCloudStackClient) LoginByPassword added in v0.13.0

API: LoginByPassword

登录账户

func (*UCloudStackClient) ModifyEIPBandwidth added in v0.13.1

API: ModifyEIPBandwidth

调整外网IP带宽

func (*UCloudStackClient) ModifyNameAndRemark added in v0.13.1

API: ModifyNameAndRemark

修改资源名称和备注

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) NewBindAlarmTemplateRequest added in v0.13.1

func (c *UCloudStackClient) NewBindAlarmTemplateRequest() *BindAlarmTemplateRequest

NewBindAlarmTemplateRequest will create request of BindAlarmTemplate 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) NewCreateSecurityGroupRequest added in v0.13.1

func (c *UCloudStackClient) NewCreateSecurityGroupRequest() *CreateSecurityGroupRequest

NewCreateSecurityGroupRequest will create request of CreateSecurityGroup action.

func (*UCloudStackClient) NewCreateSecurityGroupRuleRequest added in v0.13.1

func (c *UCloudStackClient) NewCreateSecurityGroupRuleRequest() *CreateSecurityGroupRuleRequest

NewCreateSecurityGroupRuleRequest will create request of CreateSecurityGroupRule action.

func (*UCloudStackClient) NewCreateSubnetRequest added in v0.13.1

func (c *UCloudStackClient) NewCreateSubnetRequest() *CreateSubnetRequest

NewCreateSubnetRequest will create request of CreateSubnet 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) NewCreateVPCRequest added in v0.13.1

func (c *UCloudStackClient) NewCreateVPCRequest() *CreateVPCRequest

NewCreateVPCRequest will create request of CreateVPC action.

func (*UCloudStackClient) NewDeleteDiskRequest added in v0.13.0

func (c *UCloudStackClient) NewDeleteDiskRequest() *DeleteDiskRequest

NewDeleteDiskRequest will create request of DeleteDisk action.

func (*UCloudStackClient) NewDeleteSecurityGroupRequest added in v0.13.1

func (c *UCloudStackClient) NewDeleteSecurityGroupRequest() *DeleteSecurityGroupRequest

NewDeleteSecurityGroupRequest will create request of DeleteSecurityGroup action.

func (*UCloudStackClient) NewDeleteSecurityGroupRuleRequest added in v0.13.1

func (c *UCloudStackClient) NewDeleteSecurityGroupRuleRequest() *DeleteSecurityGroupRuleRequest

NewDeleteSecurityGroupRuleRequest will create request of DeleteSecurityGroupRule action.

func (*UCloudStackClient) NewDeleteSubnetRequest added in v0.13.1

func (c *UCloudStackClient) NewDeleteSubnetRequest() *DeleteSubnetRequest

NewDeleteSubnetRequest will create request of DeleteSubnet action.

func (*UCloudStackClient) NewDeleteVMInstanceRequest

func (c *UCloudStackClient) NewDeleteVMInstanceRequest() *DeleteVMInstanceRequest

NewDeleteVMInstanceRequest will create request of DeleteVMInstance action.

func (*UCloudStackClient) NewDeleteVPCRequest added in v0.13.1

func (c *UCloudStackClient) NewDeleteVPCRequest() *DeleteVPCRequest

NewDeleteVPCRequest will create request of DeleteVPC 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) NewDescribeSecurityGroupRequest added in v0.13.1

func (c *UCloudStackClient) NewDescribeSecurityGroupRequest() *DescribeSecurityGroupRequest

NewDescribeSecurityGroupRequest will create request of DescribeSecurityGroup action.

func (*UCloudStackClient) NewDescribeSubnetRequest added in v0.13.1

func (c *UCloudStackClient) NewDescribeSubnetRequest() *DescribeSubnetRequest

NewDescribeSubnetRequest will create request of DescribeSubnet 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) NewDescribeVPCRequest added in v0.13.1

func (c *UCloudStackClient) NewDescribeVPCRequest() *DescribeVPCRequest

NewDescribeVPCRequest will create request of DescribeVPC 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) NewModifyEIPBandwidthRequest added in v0.13.1

func (c *UCloudStackClient) NewModifyEIPBandwidthRequest() *ModifyEIPBandwidthRequest

NewModifyEIPBandwidthRequest will create request of ModifyEIPBandwidth action.

func (*UCloudStackClient) NewModifyNameAndRemarkRequest added in v0.13.1

func (c *UCloudStackClient) NewModifyNameAndRemarkRequest() *ModifyNameAndRemarkRequest

NewModifyNameAndRemarkRequest will create request of ModifyNameAndRemark action.

func (*UCloudStackClient) NewRechargeRequest added in v0.13.0

func (c *UCloudStackClient) NewRechargeRequest() *RechargeRequest

NewRechargeRequest will create request of Recharge action.

func (*UCloudStackClient) NewReinstallVMInstanceRequest added in v0.13.1

func (c *UCloudStackClient) NewReinstallVMInstanceRequest() *ReinstallVMInstanceRequest

NewReinstallVMInstanceRequest will create request of ReinstallVMInstance action.

func (*UCloudStackClient) NewReleaseEIPRequest added in v0.13.0

func (c *UCloudStackClient) NewReleaseEIPRequest() *ReleaseEIPRequest

NewReleaseEIPRequest will create request of ReleaseEIP action.

func (*UCloudStackClient) NewResetVMInstancePasswordRequest added in v0.13.1

func (c *UCloudStackClient) NewResetVMInstancePasswordRequest() *ResetVMInstancePasswordRequest

NewResetVMInstancePasswordRequest will create request of ResetVMInstancePassword action.

func (*UCloudStackClient) NewResizeVMConfigRequest added in v0.13.1

func (c *UCloudStackClient) NewResizeVMConfigRequest() *ResizeVMConfigRequest

NewResizeVMConfigRequest will create request of ResizeVMConfig action.

func (*UCloudStackClient) NewRestartVMInstanceRequest added in v0.13.1

func (c *UCloudStackClient) NewRestartVMInstanceRequest() *RestartVMInstanceRequest

NewRestartVMInstanceRequest will create request of RestartVMInstance 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) NewUnbindAlarmTemplateRequest added in v0.13.1

func (c *UCloudStackClient) NewUnbindAlarmTemplateRequest() *UnbindAlarmTemplateRequest

NewUnbindAlarmTemplateRequest will create request of UnbindAlarmTemplate action.

func (*UCloudStackClient) NewUpdateSecurityGroupRuleRequest added in v0.13.1

func (c *UCloudStackClient) NewUpdateSecurityGroupRuleRequest() *UpdateSecurityGroupRuleRequest

NewUpdateSecurityGroupRuleRequest will create request of UpdateSecurityGroupRule action.

func (*UCloudStackClient) Recharge added in v0.13.0

API: Recharge

UCloudStack管理员给租户充值

func (*UCloudStackClient) ReinstallVMInstance added in v0.13.1

API: ReinstallVMInstance

重装系统,关机的虚拟机才可以重装系统

func (*UCloudStackClient) ReleaseEIP added in v0.13.0

API: ReleaseEIP

删除外网IP

func (*UCloudStackClient) ResetVMInstancePassword added in v0.13.1

API: ResetVMInstancePassword

重置虚拟机密码,主机必须开机才可以重置密码

func (*UCloudStackClient) ResizeVMConfig added in v0.13.1

API: ResizeVMConfig

修改虚拟机配置

func (*UCloudStackClient) RestartVMInstance added in v0.13.1

API: RestartVMInstance

重启虚拟机

func (*UCloudStackClient) StartVMInstance added in v0.13.0

API: StartVMInstance

开启UCloudStack虚拟机

func (*UCloudStackClient) StopVMInstance

API: StopVMInstance

关闭UCloudStack虚拟机

func (*UCloudStackClient) UnBindEIP added in v0.13.0

API: UnBindEIP

解绑外网IP

func (*UCloudStackClient) UnbindAlarmTemplate added in v0.13.1

API: UnbindAlarmTemplate

解绑告警模板

func (*UCloudStackClient) UpdateSecurityGroupRule added in v0.13.1

API: UpdateSecurityGroupRule

修改安全组规则

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 UnbindAlarmTemplateRequest added in v0.13.1

type UnbindAlarmTemplateRequest struct {
	request.CommonBase

	// 【数组】资源的 ID。调用方式举例:ResourceIDs.0=“one-id”、ResourceIDs.1=“two-id”。
	ResourceIDs []string `required:"true"`

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

UnbindAlarmTemplateRequest is request schema for UnbindAlarmTemplate action

type UnbindAlarmTemplateResponse added in v0.13.1

type UnbindAlarmTemplateResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string
}

UnbindAlarmTemplateResponse is response schema for UnbindAlarmTemplate action

type UpdateSecurityGroupRuleRequest added in v0.13.1

type UpdateSecurityGroupRuleRequest struct {
	request.CommonBase

	// 【数组】规则。输入有效的 规则。调用方式举例:Rules.0=“TCP|23|0.0.0.0/0|ACCEPT|HIGH|1”、Rules.1=“TCP|55|0.0.0.0/0|ACCEPT|HIGH|1”
	Rules []string `required:"true"`

	// 安全组ID
	SGID *string `required:"true"`
}

UpdateSecurityGroupRuleRequest is request schema for UpdateSecurityGroupRule action

type UpdateSecurityGroupRuleResponse added in v0.13.1

type UpdateSecurityGroupRuleResponse struct {
	response.CommonBase

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

UpdateSecurityGroupRuleResponse is response schema for UpdateSecurityGroupRule 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 - 租户信息

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虚拟机磁盘信息

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信息

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虚拟机信息

type VPCInfo added in v0.13.1

type VPCInfo struct {

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

	// 名称
	Name string

	// 地域。
	Region string

	// 描述
	Remark string

	// 状态;Allocating:申请中,Available:有效,Terminating:销毁中,Terminated:已销毁
	State string

	// 该VPC下拥有的子网数目
	SubnetCount int

	// 该VPC下子网信息。
	SubnetInfos []SubnetInfo

	// 修改时间,时间戳
	UpdateTime int

	// VPC的ID
	VPCID string

	// 可用区
	Zone string
}

VPCInfo - VPC信息

Jump to

Keyboard shortcuts

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