ucloudstack

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 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"`

	// 指定IP
	IP *string `required:"false"`

	// IP版本,默认值IPv4,支持值:IPv4\IPv6
	IPVersion *string `required:"false"`

	// 名称
	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 AttachNICRequest added in v0.16.4

type AttachNICRequest struct {
	request.CommonBase

	// 网卡ID
	NICID *string `required:"true"`

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

AttachNICRequest is request schema for AttachNIC action

type AttachNICResponse added in v0.16.4

type AttachNICResponse struct {
	response.CommonBase

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

AttachNICResponse is response schema for AttachNIC 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 BindPhysicalIPRequest added in v0.16.1

type BindPhysicalIPRequest struct {
	request.CommonBase

	// 物理IP的ID
	PhysicalIPID *string `required:"true"`

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

	// 资源类型。VM:虚拟机
	ResourceType *string `required:"true"`
}

BindPhysicalIPRequest is request schema for BindPhysicalIP action

type BindPhysicalIPResponse added in v0.16.1

type BindPhysicalIPResponse struct {
	response.CommonBase

	// 返回描述
	Message string
}

BindPhysicalIPResponse is response schema for BindPhysicalIP action

type BindSecurityGroupRequest added in v0.16.1

type BindSecurityGroupRequest struct {
	request.CommonBase

	// 网卡ID
	NICID *string `required:"false"`

	// 绑定的资源ID。调用方式举例:ResourceID=“one-id”。
	ResourceID *string `required:"true"`

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

BindSecurityGroupRequest is request schema for BindSecurityGroup action

type BindSecurityGroupResponse added in v0.16.1

type BindSecurityGroupResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string
}

BindSecurityGroupResponse is response schema for BindSecurityGroup action

type BindVSInfo added in v0.16.2

type BindVSInfo struct {

	// LB ID
	LBID string

	// LB名称
	LBName string

	// VS的端口
	Port int

	// VS的协议
	Protocol string

	// VS ID
	VSID string
}

BindVSInfo - 证书绑定的vs信息

type CertificateInfo added in v0.16.2

type CertificateInfo struct {

	// 证书内容
	CertificateContent string

	// 证书ID
	CertificateID string

	// 证书类型,枚举值["ServerCrt","CACrt"]
	CertificateType string

	// 主域名
	CommonName string

	// 创建时间(平台创建时间)
	CreateTime int

	// 证书内容的过期时间
	ExpireTime int

	// 证书指纹
	Fingerprint string

	// 证书名
	Name string

	// 私钥内容
	Privatekey string

	// 地域
	Region string

	// 证书描述
	Remark string

	// 备域名
	SubjectAlternativeNames []string

	// 关联的vs的信息
	VSInfos []BindVSInfo

	// 可用区
	Zone string
}

CertificateInfo - 证书信息

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 CreateCertificateRequest added in v0.16.2

type CreateCertificateRequest struct {
	request.CommonBase

	// 证书内容
	Certificate *string `required:"true"`

	// 证书类型,枚举值["ServerCrt","CACrt"]。分别表示服务器证书和CA证书。只有在双向认证的时候才需要CA证书
	CertificateType *string `required:"true"`

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

	// 私钥内容,服务器证书必传,CA证书不用传递
	PrivateKey *string `required:"false"`

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

CreateCertificateRequest is request schema for CreateCertificate action

type CreateCertificateResponse added in v0.16.2

type CreateCertificateResponse struct {
	response.CommonBase

	// 证书ID
	CertificateID string

	// 错误描述
	Message string
}

CreateCertificateResponse is response schema for CreateCertificate action

type CreateCustomImageRequest added in v0.16.1

type CreateCustomImageRequest struct {
	request.CommonBase

	// 镜像描述。
	ImageDescription *string `required:"false"`

	// 镜像名称
	ImageName *string `required:"true"`

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

CreateCustomImageRequest is request schema for CreateCustomImage action

type CreateCustomImageResponse added in v0.16.1

type CreateCustomImageResponse struct {
	response.CommonBase

	// 创建的自制镜像ID
	ImageID string

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

CreateCustomImageResponse is response schema for CreateCustomImage 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 CreateLBRequest added in v0.16.1

type CreateLBRequest struct {
	request.CommonBase

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

	// 外网IP的ID,创建外网LB时为必需
	EIPID *string `required:"false"`

	// 枚举值。LAN:内网,WAN:外网
	LBType *string `required:"true"`

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

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

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

	// 安全组ID,创建外网LB时为必需
	SGID *string `required:"false"`

	// LB 实例所在的子网 ID 。
	SubnetID *string `required:"true"`

	// 运行负载均衡实例的主机机型。枚举值:如 Normal ,表示普通机型; SSD,表示 SSD 机型。(机型由平台管理员修改和指定,可参考获取主机机型接口)
	VMType *string `required:"true"`

	// LB实例所在的 VPC ID 。
	VPCID *string `required:"true"`
}

CreateLBRequest is request schema for CreateLB action

type CreateLBResponse added in v0.16.1

type CreateLBResponse struct {
	response.CommonBase

	// 返回创建的负载均衡ID
	LBID string

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

CreateLBResponse is response schema for CreateLB action

type CreateNATGWRequest added in v0.16.1

type CreateNATGWRequest struct {
	request.CommonBase

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

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

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

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

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

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

	// NAT网关实例所在的子网 ID
	SubnetID *string `required:"true"`

	// 运行NAT网关实例的主机机型。枚举值:如 Normal ,表示普通机型; SSD,表示 SSD 机型。(机型由平台管理员修改和指定,可参考获取主机机型接口)
	VMType *string `required:"true"`

	// NAT网关实例所在的 VPC ID
	VPCID *string `required:"true"`
}

CreateNATGWRequest is request schema for CreateNATGW action

type CreateNATGWResponse added in v0.16.1

type CreateNATGWResponse struct {
	response.CommonBase

	// 返回信息描述。
	Message string

	// 返回创建的NAT网关ID
	NATGWID string
}

CreateNATGWResponse is response schema for CreateNATGW action

type CreateNATGWRuleRequest added in v0.16.1

type CreateNATGWRuleRequest struct {
	request.CommonBase

	// 绑定的虚拟机资源ID
	BindResourceID *string `required:"true"`

	// NAT网关ID
	NATGWID *string `required:"true"`

	// NAT的类型。枚举值:SNAT,DNAT
	NATGWType *string `required:"true"`
}

CreateNATGWRuleRequest is request schema for CreateNATGWRule action

type CreateNATGWRuleResponse added in v0.16.1

type CreateNATGWRuleResponse struct {
	response.CommonBase

	// 返回信息描述。
	Message string

	// 白名单ID
	RuleID string
}

CreateNATGWRuleResponse is response schema for CreateNATGWRule action

type CreateNICRequest added in v0.16.4

type CreateNICRequest struct {
	request.CommonBase

	// 指定IP
	IP *string `required:"false"`

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

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

	// Subnet ID
	SubnetID *string `required:"true"`

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

CreateNICRequest is request schema for CreateNIC action

type CreateNICResponse added in v0.16.4

type CreateNICResponse struct {
	response.CommonBase

	// 返回信息描述。
	Message string

	// 创建的网卡 ID
	NICID string
}

CreateNICResponse is response schema for CreateNIC action

type CreatePhysicalIPRequest added in v0.16.1

type CreatePhysicalIPRequest struct {
	request.CommonBase

	// 物理IP名称,限制字符长度30
	Name *string `required:"true"`

	// 物理IP线路
	OperatorName *string `required:"true"`

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

CreatePhysicalIPRequest is request schema for CreatePhysicalIP action

type CreatePhysicalIPResponse added in v0.16.1

type CreatePhysicalIPResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string

	// 返回创建的物理IP的ID
	PhysicalIPID string
}

CreatePhysicalIPResponse is response schema for CreatePhysicalIP action

type CreateRSRequest added in v0.16.1

type CreateRSRequest struct {
	request.CommonBase

	// 服务节点的资源 ID ,仅支持添加与 LB 相同 VPC 的虚拟机资源
	BindResourceID *string `required:"true"`

	// 负载均衡ID
	LBID *string `required:"true"`

	// 服务节点暴露的服务端口号
	Port *int `required:"true"`

	// VServer的ID
	VSID *string `required:"true"`

	// 服务节点的权重
	Weight *int `required:"true"`
}

CreateRSRequest is request schema for CreateRS action

type CreateRSResponse added in v0.16.1

type CreateRSResponse struct {
	response.CommonBase

	// 返回信息描述。
	Message string

	// 返回创建的RSID
	RSID string
}

CreateRSResponse is response schema for CreateRS 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 CreateSnapshotRequest added in v0.16.1

type CreateSnapshotRequest struct {
	request.CommonBase

	// 硬盘ID,输入“有效”状态的ID
	DiskID *string `required:"true"`

	// 快照名称,限制字符长度30
	Name *string `required:"true"`

	// 描述,限制字符长度100
	Remark *string `required:"false"`
}

CreateSnapshotRequest is request schema for CreateSnapshot action

type CreateSnapshotResponse added in v0.16.1

type CreateSnapshotResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string

	// 创建的快照ID
	SnapshotID string
}

CreateSnapshotResponse is response schema for CreateSnapshot 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

	// 带宽
	Bandwidth *string `required:"false"`

	// 系统盘类型。枚举值: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"`

	// 外网IP版本,默认IPv4
	IPVersion *string `required:"false"`

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

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

	// 指定外网IP
	InternetIP *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"`

	// 线路
	OperatorName *string `required:"false"`

	// 密码。可输入如: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

	// 返回创建数据盘的 ID
	DiskID string

	// 返回创建外网IP的 ID
	EIPID string

	// 返回信息描述。
	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 CreateVSPolicyRequest added in v0.16.1

type CreateVSPolicyRequest struct {
	request.CommonBase

	// 内容转发规则关联的请求域名,值可为空,即代表仅匹配路径。域名和路径至少需要指定一项,且域名和路径的组合在一个 VServer 中必须唯一。
	Domain *string `required:"false"`

	// 负载均衡ID
	LBID *string `required:"true"`

	// 内容转发规则关联的请求访问路径,如 "/" 。域名和路径至少需要指定一项,且域名和路径的组合在一个 VServer 中必须唯一。
	Path *string `required:"false"`

	// 【数组】内容转发规则应用的服务节点的 ID,来源于 VServer 中添加的服务节点。调用方式举例:RSIDs.0=“one-id”、RSIDs.1=“two-id”。
	RSIDs []string `required:"true"`

	// VServer的ID
	VSID *string `required:"true"`
}

CreateVSPolicyRequest is request schema for CreateVSPolicy action

type CreateVSPolicyResponse added in v0.16.1

type CreateVSPolicyResponse struct {
	response.CommonBase

	// 返回信息描述。
	Message string

	// 返回创建的内容转发规则ID
	PolicyID string
}

CreateVSPolicyResponse is response schema for CreateVSPolicy action

type CreateVSRequest added in v0.16.1

type CreateVSRequest struct {
	request.CommonBase

	// CA证书ID,用于验证客户端证书的签名,仅当VServer监听协议为 HTTPS 且 SSLMode 为双向认证时有效。
	CACertificateID *string `required:"false"`

	// HTTP 健康检查时校验请求的 HOST 字段中的域名。当健康检查类型为端口检查时,该值为空。
	Domain *string `required:"false"`

	// 健康检查类型,枚举值,Port:端口,Path:域名。TCP和UDP协议只支持Port类型。
	HealthcheckType *string `required:"true"`

	// 负载均衡的连接空闲超时时间,单位为秒,默认值为 60s 。
	KeepaliveTimeout *int `required:"false"`

	// 负载均衡ID
	LBID *string `required:"true"`

	// HTTP 健康检查的路径,健康检查类型为 HTTP 检查时为必填项。当健康检查类型为端口检查时,该值为空。
	Path *string `required:"false"`

	// 会话保持KEY,会话保持类型为Manual时为必填项,仅当 VServer 协议为 HTTP 时有效。
	PersistenceKey *string `required:"false"`

	// 会话保持类型。枚举值:None:关闭;Auto:自动生成;Manual:手动生成 。当协议为 TCP 时,该值不生效,会话保持和选择的调度算法相关;当协议为 UDP 时 Auto 表示开启会话保持 。
	PersistenceType *string `required:"false"`

	// VServer 的监听端口。端口范围为 1~65535 ,其中 323、9102、9103、9104、9105、60909、60910 被系统占用。
	Port *int `required:"true"`

	// VServer 的监听协议。枚举值:支持 TCP、UDP、HTTP、HTTPS 四种协议转发。
	Protocol *string `required:"true"`

	// SSL认证模式,HTTPS协议下必传,取值范围["simplex","duplex"]分别表示单向认证和双向认证。
	SSLMode *string `required:"false"`

	// 负载均衡的调度算法。枚举值:wrr:加权轮训;least_conn:最小连接数;hash:原地址,四层lb使用。ip_hash:七层lb使用
	Scheduler *string `required:"true"`

	// 服务器证书ID,用于证明服务器的身份,仅当 VServer监听协议为 HTTPS时有效。
	ServerCertificateID *string `required:"false"`
}

CreateVSRequest is request schema for CreateVS action

type CreateVSResponse added in v0.16.1

type CreateVSResponse struct {
	response.CommonBase

	// 返回信息描述。
	Message string

	// 返回创建的VSID
	VSID string
}

CreateVSResponse is response schema for CreateVS action

type DeleteCertificateRequest added in v0.16.2

type DeleteCertificateRequest struct {
	request.CommonBase

	// 证书ID
	CertificateID *string `required:"true"`
}

DeleteCertificateRequest is request schema for DeleteCertificate action

type DeleteCertificateResponse added in v0.16.2

type DeleteCertificateResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string
}

DeleteCertificateResponse is response schema for DeleteCertificate action

type DeleteCustomImageRequest added in v0.16.1

type DeleteCustomImageRequest struct {
	request.CommonBase

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

DeleteCustomImageRequest is request schema for DeleteCustomImage action

type DeleteCustomImageResponse added in v0.16.1

type DeleteCustomImageResponse struct {
	response.CommonBase

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

DeleteCustomImageResponse is response schema for DeleteCustomImage 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 DeleteLBRequest added in v0.16.1

type DeleteLBRequest struct {
	request.CommonBase

	// 负载均衡ID
	LBID *string `required:"true"`
}

DeleteLBRequest is request schema for DeleteLB action

type DeleteLBResponse added in v0.16.1

type DeleteLBResponse struct {
	response.CommonBase

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

DeleteLBResponse is response schema for DeleteLB action

type DeleteNATGWRequest added in v0.16.1

type DeleteNATGWRequest struct {
	request.CommonBase

	// NAT网关ID
	NATGWID *string `required:"true"`
}

DeleteNATGWRequest is request schema for DeleteNATGW action

type DeleteNATGWResponse added in v0.16.1

type DeleteNATGWResponse struct {
	response.CommonBase

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

DeleteNATGWResponse is response schema for DeleteNATGW action

type DeleteNATGWRuleRequest added in v0.16.1

type DeleteNATGWRuleRequest struct {
	request.CommonBase

	// nat网关ID
	NATGWID *string `required:"true"`

	// 白名单ID
	RuleID *string `required:"true"`
}

DeleteNATGWRuleRequest is request schema for DeleteNATGWRule action

type DeleteNATGWRuleResponse added in v0.16.1

type DeleteNATGWRuleResponse struct {
	response.CommonBase

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

DeleteNATGWRuleResponse is response schema for DeleteNATGWRule action

type DeleteNICRequest added in v0.16.4

type DeleteNICRequest struct {
	request.CommonBase

	// 被删除的网卡 ID
	NICID *string `required:"true"`
}

DeleteNICRequest is request schema for DeleteNIC action

type DeleteNICResponse added in v0.16.4

type DeleteNICResponse struct {
	response.CommonBase

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

DeleteNICResponse is response schema for DeleteNIC action

type DeletePhysicalIPRequest added in v0.16.1

type DeletePhysicalIPRequest struct {
	request.CommonBase

	// 物理IP的ID
	PhysicalIPID *string `required:"true"`
}

DeletePhysicalIPRequest is request schema for DeletePhysicalIP action

type DeletePhysicalIPResponse added in v0.16.1

type DeletePhysicalIPResponse struct {
	response.CommonBase

	// 返回状态描述
	Message string
}

DeletePhysicalIPResponse is response schema for DeletePhysicalIP action

type DeleteRSRequest added in v0.16.1

type DeleteRSRequest struct {
	request.CommonBase

	// 负载均衡ID
	LBID *string `required:"true"`

	// RServer的ID
	RSID *string `required:"true"`

	// VServer的ID
	VSID *string `required:"true"`
}

DeleteRSRequest is request schema for DeleteRS action

type DeleteRSResponse added in v0.16.1

type DeleteRSResponse struct {
	response.CommonBase

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

DeleteRSResponse is response schema for DeleteRS 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 DeleteSnapshotRequest added in v0.16.1

type DeleteSnapshotRequest struct {
	request.CommonBase

	// 快照ID
	SnapshotID *string `required:"true"`
}

DeleteSnapshotRequest is request schema for DeleteSnapshot action

type DeleteSnapshotResponse added in v0.16.1

type DeleteSnapshotResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string
}

DeleteSnapshotResponse is response schema for DeleteSnapshot 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 DeleteVSPolicyRequest added in v0.16.1

type DeleteVSPolicyRequest struct {
	request.CommonBase

	// 负载均衡ID
	LBID *string `required:"true"`

	// 内容转发规则ID
	PolicyID *string `required:"true"`

	// VServer的ID
	VSID *string `required:"true"`
}

DeleteVSPolicyRequest is request schema for DeleteVSPolicy action

type DeleteVSPolicyResponse added in v0.16.1

type DeleteVSPolicyResponse struct {
	response.CommonBase

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

DeleteVSPolicyResponse is response schema for DeleteVSPolicy action

type DeleteVSRequest added in v0.16.1

type DeleteVSRequest struct {
	request.CommonBase

	// VServer 监听器所属的负载均衡 ID
	LBID *string `required:"true"`

	// 负载均衡VServer监听器ID
	VSID *string `required:"true"`
}

DeleteVSRequest is request schema for DeleteVS action

type DeleteVSResponse added in v0.16.1

type DeleteVSResponse struct {
	response.CommonBase

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

DeleteVSResponse is response schema for DeleteVS action

type DescribeCertificateRequest added in v0.16.2

type DescribeCertificateRequest struct {
	request.CommonBase

	// 证书ID列表
	CertificateIDs []string `required:"false"`

	// 证书类型,枚举值["ServerCrt","CACrt"]。分别表示服务器证书和CA证书。
	CertificateType *string `required:"false"`

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

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

DescribeCertificateRequest is request schema for DescribeCertificate action

type DescribeCertificateResponse added in v0.16.2

type DescribeCertificateResponse struct {
	response.CommonBase

	// [数组]证书对象数组
	Infos []CertificateInfo

	// 返回信息描述
	Message string

	// 证书总个数
	TotalCount int
}

DescribeCertificateResponse is response schema for DescribeCertificate 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"`

	// 硬盘用途类型,默认空返回虚拟机所有硬盘,支持值:Boot(系统盘)、Data(数据盘)
	DiskType *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"`

	// 版本,支持IPv4、IPv6
	IPVersion *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 DescribeImageRequest added in v0.16.1

type DescribeImageRequest struct {
	request.CommonBase

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

	// 镜像类型。枚举值:Base(基础镜像,平台默认提供的镜像),Custom(自制镜像,通过虚拟机导出的镜像) 。若该值为空,默认查询所有镜像。
	ImageType *string `required:"false"`

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

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

DescribeImageRequest is request schema for DescribeImage action

type DescribeImageResponse added in v0.16.1

type DescribeImageResponse struct {
	response.CommonBase

	// 操作名称
	Action string

	// 【数组】返回镜像对象数组
	Infos []ImageInfo

	// 返回信息描述。
	Message string

	// 返回码
	RetCode int

	// 返回镜像的总个数。
	TotalCount int
}

DescribeImageResponse is response schema for DescribeImage action

type DescribeLBRequest added in v0.16.1

type DescribeLBRequest struct {
	request.CommonBase

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

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

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

	// 子网ID
	SubnetID *string `required:"false"`

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

DescribeLBRequest is request schema for DescribeLB action

type DescribeLBResponse added in v0.16.1

type DescribeLBResponse struct {
	response.CommonBase

	// 【数组】返回负载均衡对象数组
	Infos []LBInfo

	// 返回信息描述。
	Message string

	// 返回负载均衡总个数。
	TotalCount int
}

DescribeLBResponse is response schema for DescribeLB 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 DescribeNATGWRequest added in v0.16.1

type DescribeNATGWRequest struct {
	request.CommonBase

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

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

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

DescribeNATGWRequest is request schema for DescribeNATGW action

type DescribeNATGWResponse added in v0.16.1

type DescribeNATGWResponse struct {
	response.CommonBase

	// 【数组】返回nat网关对象数组
	Infos []NATGWInfo

	// 返回信息描述。
	Message string

	// 返回NAT网关总个数
	TotalCount int
}

DescribeNATGWResponse is response schema for DescribeNATGW action

type DescribeNATGWRuleRequest added in v0.16.1

type DescribeNATGWRuleRequest struct {
	request.CommonBase

	// 【数组】NAT网关白名单资源ID。调用方式举例:NATGWRules.0=“one-id”、NATGWRules.1=“two-id”。
	BindResourceIDs []string `required:"false"`

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

	// NAT网关ID
	NATGWID *string `required:"true"`

	// NAT类型。枚举值:SNAT,DNAT
	NATGWType *string `required:"true"`

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

	// 【数组】NAT网关白名单ID。调用方式举例:NATGWRules.0=“one-id”、NATGWRules.1=“two-id”。
	RuleIDs []string `required:"false"`
}

DescribeNATGWRuleRequest is request schema for DescribeNATGWRule action

type DescribeNATGWRuleResponse added in v0.16.1

type DescribeNATGWRuleResponse struct {
	response.CommonBase

	// 【数组】返回nat网关白名单对象数组
	Infos []NATGWRuleInfo

	// 返回信息描述。
	Message string

	// 返回NAT网关白名单资源总个数。
	TotalCount int
}

DescribeNATGWRuleResponse is response schema for DescribeNATGWRule action

type DescribeNICRequest added in v0.16.4

type DescribeNICRequest struct {
	request.CommonBase

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

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

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

DescribeNICRequest is request schema for DescribeNIC action

type DescribeNICResponse added in v0.16.4

type DescribeNICResponse struct {
	response.CommonBase

	// 【数组】返回网卡对象数组
	Infos []NICInfo

	// 返回信息描述。
	Message string

	// 返回网卡总个数。
	TotalCount int
}

DescribeNICResponse is response schema for DescribeNIC action

type DescribeOPLogsRequest added in v0.16.2

type DescribeOPLogsRequest struct {
	request.CommonBase

	// 开始时间
	BeginTime *int `required:"true"`

	// 结束时间
	EndTime *int `required:"true"`

	// 是否操作成功
	IsSuccess *string `required:"false"`

	//
	Limit *int `required:"false"`

	//
	Offset *int `required:"false"`

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

	// 资源类型
	ResourceType *string `required:"false"`
}

DescribeOPLogsRequest is request schema for DescribeOPLogs action

type DescribeOPLogsResponse added in v0.16.2

type DescribeOPLogsResponse struct {
	response.CommonBase

	//
	Infos []OPLogInfo

	// 错误信息
	Message string

	// 总数
	TotalCount int
}

DescribeOPLogsResponse is response schema for DescribeOPLogs action

type DescribePhysicalIPRequest added in v0.16.1

type DescribePhysicalIPRequest struct {
	request.CommonBase

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

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

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

DescribePhysicalIPRequest is request schema for DescribePhysicalIP action

type DescribePhysicalIPResponse added in v0.16.1

type DescribePhysicalIPResponse struct {
	response.CommonBase

	// 物理IP数组
	Infos []PhysicalIPInfo

	// 返回信息描述
	Message string

	// 返回现有物理IP总数
	TotalCount int
}

DescribePhysicalIPResponse is response schema for DescribePhysicalIP action

type DescribeRSRequest added in v0.16.1

type DescribeRSRequest struct {
	request.CommonBase

	// 负载均衡ID
	LBID *string `required:"true"`

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

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

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

	// VServer的ID
	VSID *string `required:"false"`
}

DescribeRSRequest is request schema for DescribeRS action

type DescribeRSResponse added in v0.16.1

type DescribeRSResponse struct {
	response.CommonBase

	// 【数组】返回VServer对象数组
	Infos []RSInfo

	// 返回信息描述。
	Message string

	// 返回该负载均衡下VServer的总个数。
	TotalCount int
}

DescribeRSResponse is response schema for DescribeRS action

type DescribeRecycledResourceRequest added in v0.16.1

type DescribeRecycledResourceRequest struct {
	request.CommonBase

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

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

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

DescribeRecycledResourceRequest is request schema for DescribeRecycledResource action

type DescribeRecycledResourceResponse added in v0.16.1

type DescribeRecycledResourceResponse struct {
	response.CommonBase

	// 【数组】返回资源对象数组
	Infos []RecycledResourceInfo

	// 返回回收站资源的总个数
	TotalCount int
}

DescribeRecycledResourceResponse is response schema for DescribeRecycledResource 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 DescribeStorageTypeRequest added in v0.16.1

type DescribeStorageTypeRequest struct {
	request.CommonBase
}

DescribeStorageTypeRequest is request schema for DescribeStorageType action

type DescribeStorageTypeResponse added in v0.16.1

type DescribeStorageTypeResponse struct {
	response.CommonBase

	// 存储类型的信息列表
	Infos []StorageTypeInfo

	// 返回信息描述;
	Message string

	// 存储类型的总数
	TotalCount int
}

DescribeStorageTypeResponse is response schema for DescribeStorageType 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 DescribeVMTypeRequest added in v0.16.1

type DescribeVMTypeRequest struct {
	request.CommonBase
}

DescribeVMTypeRequest is request schema for DescribeVMType action

type DescribeVMTypeResponse added in v0.16.1

type DescribeVMTypeResponse struct {
	response.CommonBase

	// 主机机型的信息列表
	Infos []VMTypeInfo

	// 返回信息描述;
	Message string

	// 主机机型的总数
	TotalCount int
}

DescribeVMTypeResponse is response schema for DescribeVMType 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 DescribeVSPolicyRequest added in v0.16.1

type DescribeVSPolicyRequest struct {
	request.CommonBase

	// 负载均衡ID
	LBID *string `required:"true"`

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

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

	// 【数组】七层负载均衡内容转发规则的 ID。调用方式举例:PolicyIDs.0=“one-id”、PolicyIDs.1=“two-id”
	PolicyIDs []string `required:"false"`

	// VServerID
	VSID *string `required:"false"`
}

DescribeVSPolicyRequest is request schema for DescribeVSPolicy action

type DescribeVSPolicyResponse added in v0.16.1

type DescribeVSPolicyResponse struct {
	response.CommonBase

	// 【数组】返回内容分转发规则对象数组
	Infos []VSPolicyInfo

	// 返回信息描述。
	Message string

	// 返回内容转发规则的总个数。
	TotalCount int
}

DescribeVSPolicyResponse is response schema for DescribeVSPolicy action

type DescribeVSRequest added in v0.16.1

type DescribeVSRequest struct {
	request.CommonBase

	// 负载均衡ID
	LBID *string `required:"true"`

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

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

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

DescribeVSRequest is request schema for DescribeVS action

type DescribeVSResponse added in v0.16.1

type DescribeVSResponse struct {
	response.CommonBase

	// 【数组】返回VServer对象数组
	Infos []VSInfo

	// 返回信息描述。
	Message string

	// 返回当前负载均衡 VServer 总个数。
	TotalCount int
}

DescribeVSResponse is response schema for DescribeVS 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 DetachNICRequest added in v0.16.4

type DetachNICRequest struct {
	request.CommonBase

	// 网卡ID
	NICID *string `required:"true"`

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

DetachNICRequest is request schema for DetachNIC action

type DetachNICResponse added in v0.16.4

type DetachNICResponse struct {
	response.CommonBase

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

DetachNICResponse is response schema for DetachNIC action

type DisableRSRequest added in v0.16.1

type DisableRSRequest struct {
	request.CommonBase

	// 负载均衡ID
	LBID *string `required:"true"`

	// RServer的ID
	RSID *string `required:"true"`

	// VServer的ID
	VSID *string `required:"true"`
}

DisableRSRequest is request schema for DisableRS action

type DisableRSResponse added in v0.16.1

type DisableRSResponse struct {
	response.CommonBase

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

DisableRSResponse is response schema for DisableRS 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:已销毁;Snapshoting(快照中);Rollbacking(回滚中)
	DiskStatus string

	// 硬盘用途类型,Boot(系统盘)、Data(数据盘)
	DiskType 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

	// IP版本,支持值:IPv4\IPv6
	IPVersion 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 EnableRSRequest added in v0.16.1

type EnableRSRequest struct {
	request.CommonBase

	// 负载均衡ID
	LBID *string `required:"true"`

	// RServer的ID
	RSID *string `required:"true"`

	// VServer的ID
	VSID *string `required:"true"`
}

EnableRSRequest is request schema for EnableRS action

type EnableRSResponse added in v0.16.1

type EnableRSResponse struct {
	response.CommonBase

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

EnableRSResponse is response schema for EnableRS action

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 ImageInfo added in v0.16.1

type ImageInfo struct {

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

	// 镜像ID
	ImageID string

	// 镜像状态。枚举类型:Making(创建中),Available(可用),Unavailable(不可用),Terminating(销毁中),Used(被使用中),Deleting(删除中),Deleted(已删除), Uploading(导入中)
	ImageStatus string

	// 镜像类型。枚举类型:Base(基础镜像),Custom(自制镜像)。
	ImageType string

	// 镜像名称
	Name string

	// 镜像系统发行版本。例如:Centos, Ubuntu, Windows等
	OSDistribution string

	// 系统名称。例如:CentOS 7.4 x86_64
	OSName string

	// 系统类型。例如:Linux, Windows,Kylin
	OSType string

	// 地域
	Region string

	// 架构名称。例如:x86_64
	SetArch string

	// 可用区
	Zone string
}

ImageInfo - 镜像信息

type LBInfo added in v0.16.1

type LBInfo struct {

	// 告警模板ID
	AlarmTemplateID string

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

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

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

	// 负载均衡ID
	LBID string

	// 状态。Creating:创建中,Running:运行中,Deleting:删除中,Deleted:已删除
	LBStatus string

	// 负载均衡类型,枚举值,WAN:外网负载均衡,LAN:内网负载均衡。
	LBType string

	// 名称
	Name string

	// 负载均衡的内网 IP 地址,当LB为外网类型时,该值为空。
	PrivateIP string

	// 负载均衡的外网 IP 地址,当LB为内网类型时,该值为空。
	PublicIP string

	// 地域
	Region string

	// 描述
	Remark string

	// 安全组 ID ,当LB为内网类型时,该值为空。
	SGID string

	// 子网ID
	SubnetID string

	// VPCID
	VPCID string

	// VServer的数量
	VSCount int

	// 可用区
	Zone string
}

LBInfo - 负载均衡信息

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 NATGWInfo added in v0.16.1

type NATGWInfo struct {

	// 告警模板ID
	AlarmTemplateID string

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

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

	// 虚拟IP
	EIP string

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

	// NAT网关ID
	NATGWID string

	// 状态。Creating:创建中, Running:运行中, Deleting:删除中, Deleted:已删除
	NATGWStatus string

	// 名称
	Name string

	// 地域
	Region string

	// 备注
	Remark string

	// NAT网关绑定的安全组ID
	SGID string

	// NAT网关实例所在的子网 ID
	SubnetID string

	// NAT网关实例所在的 VPC ID
	VPCID string

	// 可用区
	Zone string
}

NATGWInfo - NAT网关信息

type NATGWRuleInfo added in v0.16.1

type NATGWRuleInfo struct {

	// 绑定的资源ID
	BindResourceID string

	// 绑定资源的类型
	BindResourceType string

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

	// 白名单资源的内网IP地址
	IP string

	// NAT网关ID
	NATGWID string

	// nat网关类型
	NATGWType string

	// 添加的白名单资源名称
	Name string

	// 白名单ID
	RuleID string

	// 状态。Bounding:绑定中,Bound:已绑定,Unbounding:解绑中,Unbound:已解绑
	RuleStatus string
}

NATGWRuleInfo - NAT网关关联的白名单资源信息

type NICInfo added in v0.16.4

type NICInfo struct {

	// 绑定资源ID
	BindResourceID string

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

	// IP
	IP string

	// mac 地址
	MAC string

	// 网卡ID
	NICID string

	// 网卡状态。枚举值。Creating:创建中,Free:未绑定,Unbounding:解绑中,Bounding:绑定中,Bound:已绑定,BindSGing:绑定安全组中,UnbindSGing:解绑安全组中,UpdateSGing:更新安全组中,Deleting:删除中,Deleted:已删除,Releasing:销毁中,Released:已销毁
	NICStatus string

	// 名称
	Name string

	// 地域
	Region string

	// 备注
	Remark string

	// 安全组ID
	SGID string

	// Subnet ID
	SubnetID string

	// VPC ID
	VPCID string

	// 可用区
	Zone string
}

NICInfo - 网卡信息

type OPLogInfo added in v0.16.2

type OPLogInfo struct {

	// 创建时间
	CreateTime int

	// 是否操作成功, Yes, No
	IsSuccess string

	// 日志ID
	OPLogsID string

	// API
	OPName string

	// 操作时间
	OPTime int

	// 错误信息
	OpMessage string

	//
	Region string

	// 资源ID
	ResourceID string

	// 资源类型
	ResourceType int

	// 状态码
	RetCode int

	// 账号邮箱
	UserEmail string

	//
	Zone string
}

OPLogInfo - 操作日志

type PhysicalIPInfo added in v0.16.1

type PhysicalIPInfo struct {

	// 绑定资源ID
	BindResourceID string

	// 绑定资源类型
	BindResourceType string

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

	// 物理IP
	IP string

	// 名称
	Name string

	// 线路
	OperatorName string

	// 物理IP的ID
	PhysicalIPID string

	// 地域
	Region string

	// 备注
	Remark string

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

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

	// 可用区
	Zone string
}

PhysicalIPInfo - 物理IP信息

type PoweroffVMInstanceRequest added in v0.16.1

type PoweroffVMInstanceRequest struct {
	request.CommonBase

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

PoweroffVMInstanceRequest is request schema for PoweroffVMInstance action

type PoweroffVMInstanceResponse added in v0.16.1

type PoweroffVMInstanceResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string
}

PoweroffVMInstanceResponse is response schema for PoweroffVMInstance action

type PriceInfo added in v0.13.0

type PriceInfo struct {

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

	// 价格
	Price float64
}

PriceInfo - 价格信息

type RSInfo added in v0.16.1

type RSInfo struct {

	// 绑定的资源ID
	BindResourceID string

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

	// 服务节点的内网 IP 地址
	IP string

	// 服务节点所属的负载均衡 ID
	LBID string

	// 服务节点的资源名称
	Name string

	// 服务节点暴露的服务端口号
	Port int

	// 服务节点的 ID
	RSID string

	// 节点模式。枚举值,Enabling:开启中,Enable:已启用,Disabling:禁用中,Disable:已禁用
	RSMode string

	// RSStatus 的描述修改为:状态,枚举值,Creating:创建中,Inactive:无效,Active:有效,Updating:更新中,Deleting:删除中,Deleted:已删除。其中有效代表节点服务健康,无效代表节点服务异常。
	RSStatus string

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

	// 服务节点所属的 VServer ID
	VSID string

	// 服务节点的权重
	Weight int
}

RSInfo - 转发规则关联的服务节点信息

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 RecycledResourceInfo added in v0.16.1

type RecycledResourceInfo struct {

	// 创建时间
	CreateTime int

	// 删除时间
	DeleteTime int

	// 描述
	Description string

	// 过期时间
	ExpireTime int

	// 是否自动销户
	IsAutoTerminated bool

	// 名称
	Name string

	// 地域
	Region string

	// 资源ID
	ResourceID string

	// 资源类型:VM:虚拟机,Disk:硬盘,EIP:外网IP,PIP:物理IP,MySQL:数据库,Redis:缓存
	ResourceType string

	// 资源状态
	Status string

	// 销毁时间
	WillTerminateTime int

	// 可用区
	Zone string
}

RecycledResourceInfo - 回收站资源信息

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 RenewResourceRequest added in v0.16.1

type RenewResourceRequest struct {
	request.CommonBase

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

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

RenewResourceRequest is request schema for RenewResource action

type RenewResourceResponse added in v0.16.1

type RenewResourceResponse struct {
	response.CommonBase

	// 返回描述信息
	Message string
}

RenewResourceResponse is response schema for RenewResource 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 RollbackResourceRequest added in v0.16.1

type RollbackResourceRequest struct {
	request.CommonBase

	// 待恢复的资源ID
	ResourceID *string `required:"true"`
}

RollbackResourceRequest is request schema for RollbackResource action

type RollbackResourceResponse added in v0.16.1

type RollbackResourceResponse struct {
	response.CommonBase

	// 返回描述信息
	Message string
}

RollbackResourceResponse is response schema for RollbackResource action

type RollbackSnapshotRequest added in v0.16.1

type RollbackSnapshotRequest struct {
	request.CommonBase

	// 对应的云硬盘 ID;
	DiskID *string `required:"true"`

	// 快照ID
	SnapshotID *string `required:"true"`
}

RollbackSnapshotRequest is request schema for RollbackSnapshot action

type RollbackSnapshotResponse added in v0.16.1

type RollbackSnapshotResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string
}

RollbackSnapshotResponse is response schema for RollbackSnapshot 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 StorageTypeInfo added in v0.16.1

type StorageTypeInfo struct {

	// 地域
	Region string

	// 架构
	SetArch string

	// 存储类型
	StorageType string

	// 存储类型别名
	StorageTypeAlias string

	// 可用区
	Zone string
}

StorageTypeInfo - 存储类型信息

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 TerminateResourceRequest added in v0.16.1

type TerminateResourceRequest struct {
	request.CommonBase

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

TerminateResourceRequest is request schema for TerminateResource action

type TerminateResourceResponse added in v0.16.1

type TerminateResourceResponse struct {
	response.CommonBase

	// 返回描述信息
	Message string
}

TerminateResourceResponse is response schema for TerminateResource 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

API: AllocateEIP

申请外网IP

func (*UCloudStackClient) AttachDisk added in v0.13.0

API: AttachDisk

绑定硬盘

func (*UCloudStackClient) AttachNIC added in v0.16.4

API: AttachNIC

绑定UCloudStack网卡

func (*UCloudStackClient) BindAlarmTemplate added in v0.13.1

API: BindAlarmTemplate

绑定告警模板

func (*UCloudStackClient) BindEIP added in v0.13.0

API: BindEIP

绑定UCoudStack外网IP

func (*UCloudStackClient) BindPhysicalIP added in v0.16.1

API: BindPhysicalIP

绑定物理 IP ,被绑定的资源必须处于运行中或有效状态。

func (*UCloudStackClient) BindSecurityGroup added in v0.16.1

API: BindSecurityGroup

绑定安全组

func (*UCloudStackClient) CloneDisk added in v0.13.0

API: CloneDisk

克隆硬盘

func (*UCloudStackClient) CreateCertificate added in v0.16.2

API: CreateCertificate

创建证书

func (*UCloudStackClient) CreateCustomImage added in v0.16.1

API: CreateCustomImage

创建自制镜像

func (*UCloudStackClient) CreateDisk added in v0.13.0

API: CreateDisk

创建硬盘

func (*UCloudStackClient) CreateLB added in v0.16.1

API: CreateLB

创建负载均衡

func (*UCloudStackClient) CreateNATGW added in v0.16.1

API: CreateNATGW

创建NAT网关

func (*UCloudStackClient) CreateNATGWRule added in v0.16.1

API: CreateNATGWRule

添加NAT网关白名单

func (*UCloudStackClient) CreateNIC added in v0.16.4

API: CreateNIC

创建网卡

func (*UCloudStackClient) CreatePhysicalIP added in v0.16.1

API: CreatePhysicalIP

创建物理 IP ,需确保平台已配置物理 IP 线路相关信息及物理网络联通性。

func (*UCloudStackClient) CreateRS added in v0.16.1

API: CreateRS

为负载均衡的 VServer 添加后端服务节点。

func (*UCloudStackClient) CreateSecurityGroup added in v0.13.1

API: CreateSecurityGroup

创建安全组

func (*UCloudStackClient) CreateSecurityGroupRule added in v0.13.1

API: CreateSecurityGroupRule

创建安全组规则

func (*UCloudStackClient) CreateSnapshot added in v0.16.1

API: CreateSnapshot

创建硬盘快照

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

创建虚拟机

func (*UCloudStackClient) CreateVPC added in v0.13.1

API: CreateVPC

创建VPC

func (*UCloudStackClient) CreateVS added in v0.16.1

API: CreateVS

创建负载均衡VServer

func (*UCloudStackClient) CreateVSPolicy added in v0.16.1

API: CreateVSPolicy

创建七层负载均衡内容转发规则,仅当 VServer 的监听协议为 HTTP 时有效。

func (*UCloudStackClient) DeleteCertificate added in v0.16.2

API: DeleteCertificate

删除证书

func (*UCloudStackClient) DeleteCustomImage added in v0.16.1

API: DeleteCustomImage

删除自制镜像

func (*UCloudStackClient) DeleteDisk added in v0.13.0

API: DeleteDisk

删除硬盘

func (*UCloudStackClient) DeleteLB added in v0.16.1

API: DeleteLB

删除负载均衡

func (*UCloudStackClient) DeleteNATGW added in v0.16.1

API: DeleteNATGW

删除NAT网关

func (*UCloudStackClient) DeleteNATGWRule added in v0.16.1

API: DeleteNATGWRule

删除NAT网关白名单

func (*UCloudStackClient) DeleteNIC added in v0.16.4

API: DeleteNIC

删除网卡

func (*UCloudStackClient) DeletePhysicalIP added in v0.16.1

API: DeletePhysicalIP

删除物理IP

func (*UCloudStackClient) DeleteRS added in v0.16.1

API: DeleteRS

移除负载均衡的单个服务节点

func (*UCloudStackClient) DeleteSecurityGroup added in v0.13.1

API: DeleteSecurityGroup

删除安全组

func (*UCloudStackClient) DeleteSecurityGroupRule added in v0.13.1

API: DeleteSecurityGroupRule

删除安全组规则

func (*UCloudStackClient) DeleteSnapshot added in v0.16.1

API: DeleteSnapshot

删除快照,仅支持状态为正常的快照进行删除操作。

func (*UCloudStackClient) DeleteSubnet added in v0.13.1

API: DeleteSubnet

删除子网

func (*UCloudStackClient) DeleteVMInstance

API: DeleteVMInstance

删除虚拟机

func (*UCloudStackClient) DeleteVPC added in v0.13.1

API: DeleteVPC

删除VPC

func (*UCloudStackClient) DeleteVS added in v0.16.1

API: DeleteVS

删除VServer

func (*UCloudStackClient) DeleteVSPolicy added in v0.16.1

API: DeleteVSPolicy

删除七层负载均衡内容转发规则,仅当 VServer 的监听协议为 HTTP 时有效。

func (*UCloudStackClient) DescribeCertificate added in v0.16.2

API: DescribeCertificate

查询证书

func (*UCloudStackClient) DescribeDisk added in v0.13.0

API: DescribeDisk

获取硬盘信息

func (*UCloudStackClient) DescribeEIP added in v0.13.0

API: DescribeEIP

获取外网IP的信息

func (*UCloudStackClient) DescribeImage added in v0.16.1

API: DescribeImage

获取镜像信息,包括默认镜像和自制镜像。

func (*UCloudStackClient) DescribeLB added in v0.16.1

API: DescribeLB

获取负载均衡信息

func (*UCloudStackClient) DescribeMetric

API: DescribeMetric

获取资源监控信息

func (*UCloudStackClient) DescribeNATGW added in v0.16.1

API: DescribeNATGW

获取NAT网关信息

func (*UCloudStackClient) DescribeNATGWRule added in v0.16.1

API: DescribeNATGWRule

获取NAT网关白名单信息

func (*UCloudStackClient) DescribeNIC added in v0.16.4

API: DescribeNIC

获取网卡信息

func (*UCloudStackClient) DescribeOPLogs added in v0.16.2

API: DescribeOPLogs

查询操作日志

func (*UCloudStackClient) DescribePhysicalIP added in v0.16.1

API: DescribePhysicalIP

获取物理IP信息

func (*UCloudStackClient) DescribeRS added in v0.16.1

API: DescribeRS

获取负载均衡服务的服务节点信息

func (*UCloudStackClient) DescribeRecycledResource added in v0.16.1

API: DescribeRecycledResource

查询回收站资源

func (*UCloudStackClient) DescribeSecurityGroup added in v0.13.1

API: DescribeSecurityGroup

查询安全组信息

func (*UCloudStackClient) DescribeStorageType added in v0.16.1

API: DescribeStorageType

查询存储类型

func (*UCloudStackClient) DescribeSubnet added in v0.13.1

API: DescribeSubnet

查询子网信息

func (*UCloudStackClient) DescribeUser added in v0.13.0

API: DescribeUser

查询租户信息

func (*UCloudStackClient) DescribeVMInstance

API: DescribeVMInstance

查询虚拟机

func (*UCloudStackClient) DescribeVMType added in v0.16.1

API: DescribeVMType

查询主机机型

func (*UCloudStackClient) DescribeVPC added in v0.13.1

API: DescribeVPC

查询VPC信息

func (*UCloudStackClient) DescribeVS added in v0.16.1

API: DescribeVS

获取负载均衡 VServer 信息

func (*UCloudStackClient) DescribeVSPolicy added in v0.16.1

API: DescribeVSPolicy

获取七层负载均衡内容转发规则信息,仅当 VServer 的监听协议为 HTTP 时有效。

func (*UCloudStackClient) DetachDisk added in v0.13.0

API: DetachDisk

解绑UClouStack硬盘

func (*UCloudStackClient) DetachNIC added in v0.16.4

API: DetachNIC

解绑UClouStack网卡

func (*UCloudStackClient) DisableRS added in v0.16.1

API: DisableRS

禁用负载均衡的单个服务节点

func (*UCloudStackClient) EnableRS added in v0.16.1

API: EnableRS

启用负载均衡的单个服务节点

func (*UCloudStackClient) GetDiskPrice added in v0.13.0

API: GetDiskPrice

获取硬盘价格

func (*UCloudStackClient) GetEIPPrice added in v0.13.0

API: GetEIPPrice

获取外网IP价格

func (*UCloudStackClient) GetVMInstancePrice added in v0.13.0

API: GetVMInstancePrice

获取虚拟机价格

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) NewAttachNICRequest added in v0.16.4

func (c *UCloudStackClient) NewAttachNICRequest() *AttachNICRequest

NewAttachNICRequest will create request of AttachNIC 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) NewBindPhysicalIPRequest added in v0.16.1

func (c *UCloudStackClient) NewBindPhysicalIPRequest() *BindPhysicalIPRequest

NewBindPhysicalIPRequest will create request of BindPhysicalIP action.

func (*UCloudStackClient) NewBindSecurityGroupRequest added in v0.16.1

func (c *UCloudStackClient) NewBindSecurityGroupRequest() *BindSecurityGroupRequest

NewBindSecurityGroupRequest will create request of BindSecurityGroup action.

func (*UCloudStackClient) NewCloneDiskRequest added in v0.13.0

func (c *UCloudStackClient) NewCloneDiskRequest() *CloneDiskRequest

NewCloneDiskRequest will create request of CloneDisk action.

func (*UCloudStackClient) NewCreateCertificateRequest added in v0.16.2

func (c *UCloudStackClient) NewCreateCertificateRequest() *CreateCertificateRequest

NewCreateCertificateRequest will create request of CreateCertificate action.

func (*UCloudStackClient) NewCreateCustomImageRequest added in v0.16.1

func (c *UCloudStackClient) NewCreateCustomImageRequest() *CreateCustomImageRequest

NewCreateCustomImageRequest will create request of CreateCustomImage action.

func (*UCloudStackClient) NewCreateDiskRequest added in v0.13.0

func (c *UCloudStackClient) NewCreateDiskRequest() *CreateDiskRequest

NewCreateDiskRequest will create request of CreateDisk action.

func (*UCloudStackClient) NewCreateLBRequest added in v0.16.1

func (c *UCloudStackClient) NewCreateLBRequest() *CreateLBRequest

NewCreateLBRequest will create request of CreateLB action.

func (*UCloudStackClient) NewCreateNATGWRequest added in v0.16.1

func (c *UCloudStackClient) NewCreateNATGWRequest() *CreateNATGWRequest

NewCreateNATGWRequest will create request of CreateNATGW action.

func (*UCloudStackClient) NewCreateNATGWRuleRequest added in v0.16.1

func (c *UCloudStackClient) NewCreateNATGWRuleRequest() *CreateNATGWRuleRequest

NewCreateNATGWRuleRequest will create request of CreateNATGWRule action.

func (*UCloudStackClient) NewCreateNICRequest added in v0.16.4

func (c *UCloudStackClient) NewCreateNICRequest() *CreateNICRequest

NewCreateNICRequest will create request of CreateNIC action.

func (*UCloudStackClient) NewCreatePhysicalIPRequest added in v0.16.1

func (c *UCloudStackClient) NewCreatePhysicalIPRequest() *CreatePhysicalIPRequest

NewCreatePhysicalIPRequest will create request of CreatePhysicalIP action.

func (*UCloudStackClient) NewCreateRSRequest added in v0.16.1

func (c *UCloudStackClient) NewCreateRSRequest() *CreateRSRequest

NewCreateRSRequest will create request of CreateRS 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) NewCreateSnapshotRequest added in v0.16.1

func (c *UCloudStackClient) NewCreateSnapshotRequest() *CreateSnapshotRequest

NewCreateSnapshotRequest will create request of CreateSnapshot 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) NewCreateVSPolicyRequest added in v0.16.1

func (c *UCloudStackClient) NewCreateVSPolicyRequest() *CreateVSPolicyRequest

NewCreateVSPolicyRequest will create request of CreateVSPolicy action.

func (*UCloudStackClient) NewCreateVSRequest added in v0.16.1

func (c *UCloudStackClient) NewCreateVSRequest() *CreateVSRequest

NewCreateVSRequest will create request of CreateVS action.

func (*UCloudStackClient) NewDeleteCertificateRequest added in v0.16.2

func (c *UCloudStackClient) NewDeleteCertificateRequest() *DeleteCertificateRequest

NewDeleteCertificateRequest will create request of DeleteCertificate action.

func (*UCloudStackClient) NewDeleteCustomImageRequest added in v0.16.1

func (c *UCloudStackClient) NewDeleteCustomImageRequest() *DeleteCustomImageRequest

NewDeleteCustomImageRequest will create request of DeleteCustomImage action.

func (*UCloudStackClient) NewDeleteDiskRequest added in v0.13.0

func (c *UCloudStackClient) NewDeleteDiskRequest() *DeleteDiskRequest

NewDeleteDiskRequest will create request of DeleteDisk action.

func (*UCloudStackClient) NewDeleteLBRequest added in v0.16.1

func (c *UCloudStackClient) NewDeleteLBRequest() *DeleteLBRequest

NewDeleteLBRequest will create request of DeleteLB action.

func (*UCloudStackClient) NewDeleteNATGWRequest added in v0.16.1

func (c *UCloudStackClient) NewDeleteNATGWRequest() *DeleteNATGWRequest

NewDeleteNATGWRequest will create request of DeleteNATGW action.

func (*UCloudStackClient) NewDeleteNATGWRuleRequest added in v0.16.1

func (c *UCloudStackClient) NewDeleteNATGWRuleRequest() *DeleteNATGWRuleRequest

NewDeleteNATGWRuleRequest will create request of DeleteNATGWRule action.

func (*UCloudStackClient) NewDeleteNICRequest added in v0.16.4

func (c *UCloudStackClient) NewDeleteNICRequest() *DeleteNICRequest

NewDeleteNICRequest will create request of DeleteNIC action.

func (*UCloudStackClient) NewDeletePhysicalIPRequest added in v0.16.1

func (c *UCloudStackClient) NewDeletePhysicalIPRequest() *DeletePhysicalIPRequest

NewDeletePhysicalIPRequest will create request of DeletePhysicalIP action.

func (*UCloudStackClient) NewDeleteRSRequest added in v0.16.1

func (c *UCloudStackClient) NewDeleteRSRequest() *DeleteRSRequest

NewDeleteRSRequest will create request of DeleteRS 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) NewDeleteSnapshotRequest added in v0.16.1

func (c *UCloudStackClient) NewDeleteSnapshotRequest() *DeleteSnapshotRequest

NewDeleteSnapshotRequest will create request of DeleteSnapshot 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) NewDeleteVSPolicyRequest added in v0.16.1

func (c *UCloudStackClient) NewDeleteVSPolicyRequest() *DeleteVSPolicyRequest

NewDeleteVSPolicyRequest will create request of DeleteVSPolicy action.

func (*UCloudStackClient) NewDeleteVSRequest added in v0.16.1

func (c *UCloudStackClient) NewDeleteVSRequest() *DeleteVSRequest

NewDeleteVSRequest will create request of DeleteVS action.

func (*UCloudStackClient) NewDescribeCertificateRequest added in v0.16.2

func (c *UCloudStackClient) NewDescribeCertificateRequest() *DescribeCertificateRequest

NewDescribeCertificateRequest will create request of DescribeCertificate 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) NewDescribeImageRequest added in v0.16.1

func (c *UCloudStackClient) NewDescribeImageRequest() *DescribeImageRequest

NewDescribeImageRequest will create request of DescribeImage action.

func (*UCloudStackClient) NewDescribeLBRequest added in v0.16.1

func (c *UCloudStackClient) NewDescribeLBRequest() *DescribeLBRequest

NewDescribeLBRequest will create request of DescribeLB action.

func (*UCloudStackClient) NewDescribeMetricRequest

func (c *UCloudStackClient) NewDescribeMetricRequest() *DescribeMetricRequest

NewDescribeMetricRequest will create request of DescribeMetric action.

func (*UCloudStackClient) NewDescribeNATGWRequest added in v0.16.1

func (c *UCloudStackClient) NewDescribeNATGWRequest() *DescribeNATGWRequest

NewDescribeNATGWRequest will create request of DescribeNATGW action.

func (*UCloudStackClient) NewDescribeNATGWRuleRequest added in v0.16.1

func (c *UCloudStackClient) NewDescribeNATGWRuleRequest() *DescribeNATGWRuleRequest

NewDescribeNATGWRuleRequest will create request of DescribeNATGWRule action.

func (*UCloudStackClient) NewDescribeNICRequest added in v0.16.4

func (c *UCloudStackClient) NewDescribeNICRequest() *DescribeNICRequest

NewDescribeNICRequest will create request of DescribeNIC action.

func (*UCloudStackClient) NewDescribeOPLogsRequest added in v0.16.2

func (c *UCloudStackClient) NewDescribeOPLogsRequest() *DescribeOPLogsRequest

NewDescribeOPLogsRequest will create request of DescribeOPLogs action.

func (*UCloudStackClient) NewDescribePhysicalIPRequest added in v0.16.1

func (c *UCloudStackClient) NewDescribePhysicalIPRequest() *DescribePhysicalIPRequest

NewDescribePhysicalIPRequest will create request of DescribePhysicalIP action.

func (*UCloudStackClient) NewDescribeRSRequest added in v0.16.1

func (c *UCloudStackClient) NewDescribeRSRequest() *DescribeRSRequest

NewDescribeRSRequest will create request of DescribeRS action.

func (*UCloudStackClient) NewDescribeRecycledResourceRequest added in v0.16.1

func (c *UCloudStackClient) NewDescribeRecycledResourceRequest() *DescribeRecycledResourceRequest

NewDescribeRecycledResourceRequest will create request of DescribeRecycledResource action.

func (*UCloudStackClient) NewDescribeSecurityGroupRequest added in v0.13.1

func (c *UCloudStackClient) NewDescribeSecurityGroupRequest() *DescribeSecurityGroupRequest

NewDescribeSecurityGroupRequest will create request of DescribeSecurityGroup action.

func (*UCloudStackClient) NewDescribeStorageTypeRequest added in v0.16.1

func (c *UCloudStackClient) NewDescribeStorageTypeRequest() *DescribeStorageTypeRequest

NewDescribeStorageTypeRequest will create request of DescribeStorageType 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) NewDescribeVMTypeRequest added in v0.16.1

func (c *UCloudStackClient) NewDescribeVMTypeRequest() *DescribeVMTypeRequest

NewDescribeVMTypeRequest will create request of DescribeVMType action.

func (*UCloudStackClient) NewDescribeVPCRequest added in v0.13.1

func (c *UCloudStackClient) NewDescribeVPCRequest() *DescribeVPCRequest

NewDescribeVPCRequest will create request of DescribeVPC action.

func (*UCloudStackClient) NewDescribeVSPolicyRequest added in v0.16.1

func (c *UCloudStackClient) NewDescribeVSPolicyRequest() *DescribeVSPolicyRequest

NewDescribeVSPolicyRequest will create request of DescribeVSPolicy action.

func (*UCloudStackClient) NewDescribeVSRequest added in v0.16.1

func (c *UCloudStackClient) NewDescribeVSRequest() *DescribeVSRequest

NewDescribeVSRequest will create request of DescribeVS action.

func (*UCloudStackClient) NewDetachDiskRequest added in v0.13.0

func (c *UCloudStackClient) NewDetachDiskRequest() *DetachDiskRequest

NewDetachDiskRequest will create request of DetachDisk action.

func (*UCloudStackClient) NewDetachNICRequest added in v0.16.4

func (c *UCloudStackClient) NewDetachNICRequest() *DetachNICRequest

NewDetachNICRequest will create request of DetachNIC action.

func (*UCloudStackClient) NewDisableRSRequest added in v0.16.1

func (c *UCloudStackClient) NewDisableRSRequest() *DisableRSRequest

NewDisableRSRequest will create request of DisableRS action.

func (*UCloudStackClient) NewEnableRSRequest added in v0.16.1

func (c *UCloudStackClient) NewEnableRSRequest() *EnableRSRequest

NewEnableRSRequest will create request of EnableRS 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) 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) NewPoweroffVMInstanceRequest added in v0.16.1

func (c *UCloudStackClient) NewPoweroffVMInstanceRequest() *PoweroffVMInstanceRequest

NewPoweroffVMInstanceRequest will create request of PoweroffVMInstance 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) NewRenewResourceRequest added in v0.16.1

func (c *UCloudStackClient) NewRenewResourceRequest() *RenewResourceRequest

NewRenewResourceRequest will create request of RenewResource 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) NewRollbackResourceRequest added in v0.16.1

func (c *UCloudStackClient) NewRollbackResourceRequest() *RollbackResourceRequest

NewRollbackResourceRequest will create request of RollbackResource action.

func (*UCloudStackClient) NewRollbackSnapshotRequest added in v0.16.1

func (c *UCloudStackClient) NewRollbackSnapshotRequest() *RollbackSnapshotRequest

NewRollbackSnapshotRequest will create request of RollbackSnapshot 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) NewTerminateResourceRequest added in v0.16.1

func (c *UCloudStackClient) NewTerminateResourceRequest() *TerminateResourceRequest

NewTerminateResourceRequest will create request of TerminateResource action.

func (*UCloudStackClient) NewUnBindEIPRequest added in v0.13.0

func (c *UCloudStackClient) NewUnBindEIPRequest() *UnBindEIPRequest

NewUnBindEIPRequest will create request of UnBindEIP action.

func (*UCloudStackClient) NewUnBindSecurityGroupRequest added in v0.16.1

func (c *UCloudStackClient) NewUnBindSecurityGroupRequest() *UnBindSecurityGroupRequest

NewUnBindSecurityGroupRequest will create request of UnBindSecurityGroup action.

func (*UCloudStackClient) NewUnbindAlarmTemplateRequest added in v0.13.1

func (c *UCloudStackClient) NewUnbindAlarmTemplateRequest() *UnbindAlarmTemplateRequest

NewUnbindAlarmTemplateRequest will create request of UnbindAlarmTemplate action.

func (*UCloudStackClient) NewUnbindPhysicalIPRequest added in v0.16.1

func (c *UCloudStackClient) NewUnbindPhysicalIPRequest() *UnbindPhysicalIPRequest

NewUnbindPhysicalIPRequest will create request of UnbindPhysicalIP action.

func (*UCloudStackClient) NewUpdateAlarmTemplateRuleRequest added in v0.16.1

func (c *UCloudStackClient) NewUpdateAlarmTemplateRuleRequest() *UpdateAlarmTemplateRuleRequest

NewUpdateAlarmTemplateRuleRequest will create request of UpdateAlarmTemplateRule action.

func (*UCloudStackClient) NewUpdateRSRequest added in v0.16.1

func (c *UCloudStackClient) NewUpdateRSRequest() *UpdateRSRequest

NewUpdateRSRequest will create request of UpdateRS action.

func (*UCloudStackClient) NewUpdateSecurityGroupRuleRequest added in v0.13.1

func (c *UCloudStackClient) NewUpdateSecurityGroupRuleRequest() *UpdateSecurityGroupRuleRequest

NewUpdateSecurityGroupRuleRequest will create request of UpdateSecurityGroupRule action.

func (*UCloudStackClient) NewUpdateVSPolicyRequest added in v0.16.1

func (c *UCloudStackClient) NewUpdateVSPolicyRequest() *UpdateVSPolicyRequest

NewUpdateVSPolicyRequest will create request of UpdateVSPolicy action.

func (*UCloudStackClient) NewUpdateVSRequest added in v0.16.1

func (c *UCloudStackClient) NewUpdateVSRequest() *UpdateVSRequest

NewUpdateVSRequest will create request of UpdateVS action.

func (*UCloudStackClient) NewUpgradeDiskRequest added in v0.16.1

func (c *UCloudStackClient) NewUpgradeDiskRequest() *UpgradeDiskRequest

NewUpgradeDiskRequest will create request of UpgradeDisk action.

func (*UCloudStackClient) PoweroffVMInstance added in v0.16.1

API: PoweroffVMInstance

断电虚拟机,可能导致丢失数据甚至损坏操作系统,仅适用于虚拟机死机及级端测试场景。

func (*UCloudStackClient) Recharge added in v0.13.0

API: Recharge

管理员给租户充值

func (*UCloudStackClient) ReinstallVMInstance added in v0.13.1

API: ReinstallVMInstance

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

func (*UCloudStackClient) ReleaseEIP added in v0.13.0

API: ReleaseEIP

删除外网IP

func (*UCloudStackClient) RenewResource added in v0.16.1

API: RenewResource

续费回收站资源

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) RollbackResource added in v0.16.1

API: RollbackResource

恢复回收站资源

func (*UCloudStackClient) RollbackSnapshot added in v0.16.1

API: RollbackSnapshot

将某个快照内的数据回滚到原云硬盘,仅支持正常状态的快照进行回滚操作,回滚时硬盘必须处于未绑定或其挂载的主机为关机状态。

func (*UCloudStackClient) StartVMInstance added in v0.13.0

API: StartVMInstance

开启虚拟机

func (*UCloudStackClient) StopVMInstance

API: StopVMInstance

关闭虚拟机

func (*UCloudStackClient) TerminateResource added in v0.16.1

API: TerminateResource

销毁资源

func (*UCloudStackClient) UnBindEIP added in v0.13.0

API: UnBindEIP

解绑外网IP

func (*UCloudStackClient) UnBindSecurityGroup added in v0.16.1

API: UnBindSecurityGroup

解绑安全组

func (*UCloudStackClient) UnbindAlarmTemplate added in v0.13.1

API: UnbindAlarmTemplate

解绑告警模板

func (*UCloudStackClient) UnbindPhysicalIP added in v0.16.1

API: UnbindPhysicalIP

解绑物理IP

func (*UCloudStackClient) UpdateAlarmTemplateRule added in v0.16.1

API: UpdateAlarmTemplateRule

更新告警模板规则

func (*UCloudStackClient) UpdateRS added in v0.16.1

API: UpdateRS

修改负载均衡的服务节点

func (*UCloudStackClient) UpdateSecurityGroupRule added in v0.13.1

API: UpdateSecurityGroupRule

修改安全组规则

func (*UCloudStackClient) UpdateVS added in v0.16.1

API: UpdateVS

修改负载均衡VServer

func (*UCloudStackClient) UpdateVSPolicy added in v0.16.1

API: UpdateVSPolicy

更新七层负载均衡内容转发规则,仅当 VServer 的监听协议为 HTTP 时有效。

func (*UCloudStackClient) UpgradeDisk added in v0.16.1

API: UpgradeDisk

升级硬盘

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 UnBindSecurityGroupRequest added in v0.16.1

type UnBindSecurityGroupRequest struct {
	request.CommonBase

	// 解绑的资源ID。调用方式举例:ResourceID=“one-id”。
	ResourceID *string `required:"true"`

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

UnBindSecurityGroupRequest is request schema for UnBindSecurityGroup action

type UnBindSecurityGroupResponse added in v0.16.1

type UnBindSecurityGroupResponse struct {
	response.CommonBase

	// 返回信息描述
	Message string
}

UnBindSecurityGroupResponse is response schema for UnBindSecurityGroup action

type UnbindAlarmTemplateRequest added in v0.13.1

type UnbindAlarmTemplateRequest 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:弹性网卡
	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 UnbindPhysicalIPRequest added in v0.16.1

type UnbindPhysicalIPRequest struct {
	request.CommonBase

	// 物理IP的ID
	PhysicalIPID *string `required:"true"`

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

	// 资源类型。VM:虚拟机
	ResourceType *string `required:"true"`
}

UnbindPhysicalIPRequest is request schema for UnbindPhysicalIP action

type UnbindPhysicalIPResponse added in v0.16.1

type UnbindPhysicalIPResponse struct {
	response.CommonBase

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

UnbindPhysicalIPResponse is response schema for UnbindPhysicalIP action

type UpdateAlarmTemplateRuleRequest added in v0.16.1

type UpdateAlarmTemplateRuleRequest struct {
	request.CommonBase

	// 瘦脸策略
	AlarmStrategy *string `required:"true"`

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

	// 告警规则ID
	AlarmTemplateRuleID *string `required:"true"`

	// 对比方式
	Compare *string `required:"true"`

	// 通知组ID
	ContactGroupID *string `required:"true"`

	// 监控指标名称
	MetricName *string `required:"true"`

	// 资源类型
	ResourceType *string `required:"true"`

	// 告警阈值
	Threshold *string `required:"true"`

	// 连续触发次数
	TriggerCount *string `required:"true"`
}

UpdateAlarmTemplateRuleRequest is request schema for UpdateAlarmTemplateRule action

type UpdateAlarmTemplateRuleResponse added in v0.16.1

type UpdateAlarmTemplateRuleResponse struct {
	response.CommonBase

	// 返回描述信息
	Message string
}

UpdateAlarmTemplateRuleResponse is response schema for UpdateAlarmTemplateRule action

type UpdateRSRequest added in v0.16.1

type UpdateRSRequest struct {
	request.CommonBase

	// VServer 监听器所属的负载均衡 ID
	LBID *string `required:"true"`

	// 端口号
	Port *int `required:"false"`

	// RServer的ID
	RSID *string `required:"true"`

	// RServer所属的VServer的ID
	VSID *string `required:"true"`

	// 权重
	Weight *int `required:"false"`
}

UpdateRSRequest is request schema for UpdateRS action

type UpdateRSResponse added in v0.16.1

type UpdateRSResponse struct {
	response.CommonBase

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

UpdateRSResponse is response schema for UpdateRS 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 UpdateVSPolicyRequest added in v0.16.1

type UpdateVSPolicyRequest struct {
	request.CommonBase

	// 内容转发规则关联的请求域名,值可为空,即代表仅匹配路径。
	Domain *string `required:"false"`

	// 负载均衡ID
	LBID *string `required:"true"`

	// 内容转发规则关联的请求访问路径,如 "/" 。
	Path *string `required:"false"`

	// 内容转发规则ID
	PolicyID *string `required:"true"`

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

	// VServer的ID
	VSID *string `required:"true"`
}

UpdateVSPolicyRequest is request schema for UpdateVSPolicy action

type UpdateVSPolicyResponse added in v0.16.1

type UpdateVSPolicyResponse struct {
	response.CommonBase

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

UpdateVSPolicyResponse is response schema for UpdateVSPolicy action

type UpdateVSRequest added in v0.16.1

type UpdateVSRequest struct {
	request.CommonBase

	// CA证书ID,用于验证客户端证书的签名,仅当VServer监听协议为 HTTPS 且 SSLMode 为双向认证时有效。
	CACertificateID *string `required:"false"`

	// HTTP 健康检查时校验请求的 HOST 字段中的域名。当健康检查类型为端口检查时,该值为空。
	Domain *string `required:"false"`

	// 负载均衡的健康检查类型。枚举值:Port:端口检查;Path: HTTP检查 。仅当 VServer 协议类型为 HTTP 时,才可进行 HTTP 检查。
	HealthcheckType *string `required:"false"`

	// 负载均衡的连接空闲超时时间,单位为秒,默认值为 60s 。当 VServer 协议为 UDP 时,该值为空。
	KeepaliveTimeout *int `required:"false"`

	// VServer 监听器所属的负载均衡 ID
	LBID *string `required:"true"`

	// HTTP 健康检查的路径,健康检查类型为 HTTP 检查时为必填项。当健康检查类型为端口检查时,该值为空。
	Path *string `required:"false"`

	// 会话保持KEY,会话保持类型为Manual时为必填项,仅当 VServer 协议为 HTTP 时有效。
	PersistenceKey *string `required:"false"`

	// 会话保持类型。枚举值:None:关闭;Auto:自动生成;Manual:手动生成 。当协议为 TCP 时,该值不生效,会话保持和选择的调度算法相关;当协议为 UDP 时 Auto 表示开启会话保持 。
	PersistenceType *string `required:"false"`

	// VServer 监听端口
	Port *int `required:"false"`

	// SSL认证模式,HTTPS协议下必传,取值范围["simplex","duplex"]分别表示单向认证和双向认证。
	SSLMode *string `required:"false"`

	// 负载均衡的调度算法。枚举值:wrr:加权轮训;least_conn:最小连接数;hash:原地址,四层lb使用。ip_hash:七层lb使用
	Scheduler *string `required:"false"`

	// 服务器证书ID,用于证明服务器的身份,仅当 VServer监听协议为 HTTPS 时有效。
	ServerCertificateID *string `required:"false"`

	// 需要更新的VSID
	VSID *string `required:"true"`
}

UpdateVSRequest is request schema for UpdateVS action

type UpdateVSResponse added in v0.16.1

type UpdateVSResponse struct {
	response.CommonBase

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

UpdateVSResponse is response schema for UpdateVS action

type UpgradeDiskRequest added in v0.16.1

type UpgradeDiskRequest struct {
	request.CommonBase

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

	// 硬盘升级后的容量, 不能小于原硬盘容量,单位为 GB 。
	DiskSpace *int `required:"true"`
}

UpgradeDiskRequest is request schema for UpgradeDisk action

type UpgradeDiskResponse added in v0.16.1

type UpgradeDiskResponse struct {
	response.CommonBase

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

UpgradeDiskResponse is response schema for UpgradeDisk 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

	// IP版本,支持值:IPv4\IPv6
	IPVersion 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 VMTypeInfo added in v0.16.1

type VMTypeInfo struct {

	// 地域
	Region string

	// 架构
	SetArch string

	// 机型
	VMType string

	// 机型别名
	VMTypeAlias string

	// 可用区
	Zone string
}

VMTypeInfo - 主机机型信息

type VPCInfo added in v0.13.1

type VPCInfo struct {

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

	// 名称
	Name string

	// 网段,比如10.0.0.0/16
	Network 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信息

type VSInfo added in v0.16.1

type VSInfo struct {

	// 告警模板ID
	AlarmTemplateID string

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

	// HTTP 健康检查时校验请求的 HOST 字段中的域名。当健康检查类型为端口检查时,该值为空。
	Domain string

	// 负载均衡的健康检查类型。枚举值:Port:端口检查;Path: HTTP检查 。
	HealthcheckType string

	// 负载均衡的连接空闲超时时间,单位为秒,默认值为 60s 。当 VServer 协议为 UDP 时,该值为空。
	KeepaliveTimeout int

	// VServer 所属的负载均衡 ID
	LBID string

	// HTTP 健康检查的路径。当健康检查类型为端口检查时,该值为空。
	Path string

	// 会话保持KEY,仅当 VServer 协议为 HTTP 且会话保持为手动时有效。
	PersistenceKey string

	// 会话保持类型。枚举值:None:关闭;Auto:自动生成;Manual:手动生成 。当协议为 TCP 时,该值为空;当协议为 UDP 时 Auto 表示开启会话保持 。
	PersistenceType string

	// 端口
	Port int

	// 协议
	Protocol string

	// 健康检查状态,枚举值,Empty:全部异常,Parts:部分异常,All:正常
	RSHealthStatus string

	// 前 VServer 中已添加的服务节点信息。
	RSInfos []RSInfo

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

	// VServer的ID
	VSID string

	// 转发规则 Policy 的规则信息
	VSPolicyInfos []VSPolicyInfo

	// VServer 的资源状态。枚举值,Available:可用,Updating:更新中,Deleted:已删除 。
	VSStatus string
}

VSInfo - RServer信息

type VSPolicyInfo added in v0.16.1

type VSPolicyInfo struct {

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

	// 内容转发规则关联的请求域名,值可为空,即代表仅匹配路径。
	Domain string

	// 负载均衡ID
	LBID string

	// 内容转发规则关联的请求访问路径,如 "/" 。
	Path string

	// 内容转发规则ID
	PolicyID string

	// 状态,枚举值,Available:有效,Deleted:已删除
	PolicyStatus string

	// 转发规则关联的服务节点信息
	RSInfos []RSInfo

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

	// VServerID
	VSID string
}

VSPolicyInfo - 内容转发规则信息

Jump to

Keyboard shortcuts

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