model

package
v0.1.97 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddServerGroupMemberRequest

type AddServerGroupMemberRequest struct {

	// 云服务器组ID。
	ServerGroupId string `json:"server_group_id"`

	Body *AddServerGroupMemberRequestBody `json:"body,omitempty"`
}

AddServerGroupMemberRequest Request Object

func (AddServerGroupMemberRequest) String

type AddServerGroupMemberRequestBody

type AddServerGroupMemberRequestBody struct {
	AddMember *ServerGroupMember `json:"add_member"`
}

AddServerGroupMemberRequestBody This is a auto create Body Object

func (AddServerGroupMemberRequestBody) String

type AddServerGroupMemberResponse

type AddServerGroupMemberResponse struct {
	HttpStatusCode int `json:"-"`
}

AddServerGroupMemberResponse Response Object

func (AddServerGroupMemberResponse) String

type AssociateServerVirtualIpOption added in v0.0.64

type AssociateServerVirtualIpOption struct {

	// 网卡的子网ID。
	SubnetId string `json:"subnet_id"`

	// 网卡即将配置的私有IP的地址。
	IpAddress string `json:"ip_address"`

	// 私有IP的allowed_address_pairs属性是否添加网卡的IP/Mac对。
	ReverseBinding *bool `json:"reverse_binding,omitempty"`
}

AssociateServerVirtualIpOption

func (AssociateServerVirtualIpOption) String added in v0.0.64

type AssociateServerVirtualIpRequest added in v0.0.64

type AssociateServerVirtualIpRequest struct {

	// 云服务器网卡ID。
	NicId string `json:"nic_id"`

	Body *AssociateServerVirtualIpRequestBody `json:"body,omitempty"`
}

AssociateServerVirtualIpRequest Request Object

func (AssociateServerVirtualIpRequest) String added in v0.0.64

type AssociateServerVirtualIpRequestBody added in v0.0.64

type AssociateServerVirtualIpRequestBody struct {
	Nic *AssociateServerVirtualIpOption `json:"nic"`
}

AssociateServerVirtualIpRequestBody This is a auto create Body Object

func (AssociateServerVirtualIpRequestBody) String added in v0.0.64

type AssociateServerVirtualIpResponse added in v0.0.64

type AssociateServerVirtualIpResponse struct {

	// 云服务器网卡ID。
	PortId         *string `json:"port_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AssociateServerVirtualIpResponse Response Object

func (AssociateServerVirtualIpResponse) String added in v0.0.64

type AttachServerVolumeOption

type AttachServerVolumeOption struct {

	// 磁盘挂载点。  > 说明:  - 新增加的磁盘挂载点不能和已有的磁盘挂载点相同。  - 对于采用XEN虚拟化类型的弹性云服务器,device为必选参数;系统盘挂载点请指定/dev/sda;数据盘挂载点请按英文字母顺序依次指定,如/dev/sdb,/dev/sdc,如果指定了以“/dev/vd”开头的挂载点,系统默认改为“/dev/sd”。  - 对于采用KVM虚拟化类型的弹性云服务器,系统盘挂载点请指定/dev/vda;数据盘挂载点可不用指定,也可按英文字母顺序依次指定,如/dev/vdb,/dev/vdc,如果指定了以“/dev/sd”开头的挂载点,系统默认改为“/dev/vd”。
	Device *string `json:"device,omitempty"`

	// 待挂载磁盘的磁盘ID,UUID格式。
	VolumeId string `json:"volumeId"`

	// 云硬盘类型。  该字段于dry_run为true并且volumeId不存在时有效且为必选字段。
	VolumeType *string `json:"volume_type,omitempty"`

	// 云硬盘的个数。  该字段于dry_run为true并且volumeId不存在时有效,如果该字段不存在,默认为1。
	Count *int32 `json:"count,omitempty"`

	// - true: 表示云硬盘的设备类型为SCSI类型,即允许ECS操作系统直接访问底层存储介质。支持SCSI锁命令 - false: 表示云硬盘的设备类型为VBD (虚拟块存储设备 , Virtual Block Device)类型,VBD只能支持简单的SCSI读写命令。 该字段于dry_run为true并且volumeId不存在时有效且为必选字段。
	Hwpassthrough *string `json:"hw:passthrough,omitempty"`
}

AttachServerVolumeOption

func (AttachServerVolumeOption) String

func (o AttachServerVolumeOption) String() string

type AttachServerVolumeRequest

type AttachServerVolumeRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *AttachServerVolumeRequestBody `json:"body,omitempty"`
}

AttachServerVolumeRequest Request Object

func (AttachServerVolumeRequest) String

func (o AttachServerVolumeRequest) String() string

type AttachServerVolumeRequestBody

type AttachServerVolumeRequestBody struct {
	VolumeAttachment *AttachServerVolumeOption `json:"volumeAttachment"`

	// 是否只预检此次请求。  - true:发送检查请求,不会挂载磁盘。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应结果。 - false:发送正常请求,通过检查后并且进行挂载磁盘请求。 默认值:false
	DryRun *bool `json:"dry_run,omitempty"`
}

AttachServerVolumeRequestBody This is a auto create Body Object

func (AttachServerVolumeRequestBody) String

type AttachServerVolumeResponse

type AttachServerVolumeResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AttachServerVolumeResponse Response Object

func (AttachServerVolumeResponse) String

type BatchAddServerNicOption

type BatchAddServerNicOption struct {

	// 云服务器添加网卡的信息。  需要指定云服务器所属虚拟私有云下已创建的网络(network)的ID,UUID格式。
	SubnetId string `json:"subnet_id"`

	// 添加网卡的安全组信息
	SecurityGroups *[]ServerNicSecurityGroup `json:"security_groups,omitempty"`

	// IP地址,无该参数表示自动分配IP地址。
	IpAddress *string `json:"ip_address,omitempty"`

	// 是否支持ipv6。  取值为true时,标识此网卡支持ipv6。
	Ipv6Enable *bool `json:"ipv6_enable,omitempty"`

	Ipv6Bandwidth *Ipv6Bandwidth `json:"ipv6_bandwidth,omitempty"`
}

BatchAddServerNicOption

func (BatchAddServerNicOption) String

func (o BatchAddServerNicOption) String() string

type BatchAddServerNicsRequest

type BatchAddServerNicsRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *BatchAddServerNicsRequestBody `json:"body,omitempty"`
}

BatchAddServerNicsRequest Request Object

func (BatchAddServerNicsRequest) String

func (o BatchAddServerNicsRequest) String() string

type BatchAddServerNicsRequestBody

type BatchAddServerNicsRequestBody struct {

	// 需要添加的网卡参数列表。
	Nics []BatchAddServerNicOption `json:"nics"`
}

BatchAddServerNicsRequestBody This is a auto create Body Object

func (BatchAddServerNicsRequestBody) String

type BatchAddServerNicsResponse

type BatchAddServerNicsResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

BatchAddServerNicsResponse Response Object

func (BatchAddServerNicsResponse) String

type BatchAddServerTag added in v0.1.73

type BatchAddServerTag struct {

	// 键。  - 不能为空。  - 对于同一资源键值唯一。  - 长度不超过36个字符。  - 字符集:A-Z,a-z , 0-9,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
	Key string `json:"key"`

	// 值。  - 长度不超过43个字符。  - 字符集:A-Z,a-z , 0-9,‘.’,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。  - 只能包含数字、字母、中划线“-”、下划线“_”。
	Value string `json:"value"`
}

BatchAddServerTag 云服务器标签。

func (BatchAddServerTag) String added in v0.1.73

func (o BatchAddServerTag) String() string

type BatchAttachSharableVolumesOption added in v0.0.64

type BatchAttachSharableVolumesOption struct {

	// 共享磁盘需要挂载的弹性云服务器ID。
	ServerId string `json:"server_id"`

	// 磁盘挂载点。  > 说明: >  > - 新增加的磁盘挂载点不能和已有的磁盘挂载点相同。 > - 对于采用XEN虚拟化类型的弹性云服务器,device为必选参数;系统盘挂载点请指定/dev/sda;数据盘挂载点请按英文字母顺序依次指定,如/dev/sdb,/dev/sdc,如果指定了以“/dev/vd”开头的挂载点,系统默认改为“/dev/sd”。 > - 对于采用KVM虚拟化类型的弹性云服务器,系统盘挂载点请指定/dev/vda;数据盘挂载点可不用指定,也可按英文字母顺序依次指定,如/dev/vdb,/dev/vdc,如果指定了以“/dev/sd”开头的挂载点,系统默认改为“/dev/vd”。
	Device *string `json:"device,omitempty"`
}

BatchAttachSharableVolumesOption

func (BatchAttachSharableVolumesOption) String added in v0.0.64

type BatchAttachSharableVolumesRequest added in v0.0.64

type BatchAttachSharableVolumesRequest struct {

	// 共享磁盘ID。
	VolumeId string `json:"volume_id"`

	Body *BatchAttachSharableVolumesRequestBody `json:"body,omitempty"`
}

BatchAttachSharableVolumesRequest Request Object

func (BatchAttachSharableVolumesRequest) String added in v0.0.64

type BatchAttachSharableVolumesRequestBody added in v0.0.64

type BatchAttachSharableVolumesRequestBody struct {

	// 共享磁盘需要挂载的弹性云服务器列表。
	Serverinfo []BatchAttachSharableVolumesOption `json:"serverinfo"`
}

BatchAttachSharableVolumesRequestBody This is a auto create Body Object

func (BatchAttachSharableVolumesRequestBody) String added in v0.0.64

type BatchAttachSharableVolumesResponse added in v0.0.64

type BatchAttachSharableVolumesResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

BatchAttachSharableVolumesResponse Response Object

func (BatchAttachSharableVolumesResponse) String added in v0.0.64

type BatchCreateServerTagsRequest

type BatchCreateServerTagsRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *BatchCreateServerTagsRequestBody `json:"body,omitempty"`
}

BatchCreateServerTagsRequest Request Object

func (BatchCreateServerTagsRequest) String

type BatchCreateServerTagsRequestBody

type BatchCreateServerTagsRequestBody struct {

	// 操作标识(仅支持小写):create(创建)。
	Action BatchCreateServerTagsRequestBodyAction `json:"action"`

	// 标签列表。
	Tags []BatchAddServerTag `json:"tags"`
}

BatchCreateServerTagsRequestBody This is a auto create Body Object

func (BatchCreateServerTagsRequestBody) String

type BatchCreateServerTagsRequestBodyAction

type BatchCreateServerTagsRequestBodyAction struct {
	// contains filtered or unexported fields
}

func (BatchCreateServerTagsRequestBodyAction) MarshalJSON

func (c BatchCreateServerTagsRequestBodyAction) MarshalJSON() ([]byte, error)

func (*BatchCreateServerTagsRequestBodyAction) UnmarshalJSON

func (c *BatchCreateServerTagsRequestBodyAction) UnmarshalJSON(b []byte) error

func (BatchCreateServerTagsRequestBodyAction) Value added in v0.0.90

type BatchCreateServerTagsRequestBodyActionEnum

type BatchCreateServerTagsRequestBodyActionEnum struct {
	CREATE BatchCreateServerTagsRequestBodyAction
}

func GetBatchCreateServerTagsRequestBodyActionEnum

func GetBatchCreateServerTagsRequestBodyActionEnum() BatchCreateServerTagsRequestBodyActionEnum

type BatchCreateServerTagsResponse

type BatchCreateServerTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchCreateServerTagsResponse Response Object

func (BatchCreateServerTagsResponse) String

type BatchDeleteServerNicOption

type BatchDeleteServerNicOption struct {

	// 网卡Port ID。
	Id string `json:"id"`
}

BatchDeleteServerNicOption

func (BatchDeleteServerNicOption) String

type BatchDeleteServerNicsRequest

type BatchDeleteServerNicsRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *BatchDeleteServerNicsRequestBody `json:"body,omitempty"`
}

BatchDeleteServerNicsRequest Request Object

func (BatchDeleteServerNicsRequest) String

type BatchDeleteServerNicsRequestBody

type BatchDeleteServerNicsRequestBody struct {

	// 需要删除的网卡列表信息。  说明: 主网卡是弹性云服务器上配置了路由规则的网卡,不可删除。
	Nics []BatchDeleteServerNicOption `json:"nics"`
}

BatchDeleteServerNicsRequestBody This is a auto create Body Object

func (BatchDeleteServerNicsRequestBody) String

type BatchDeleteServerNicsResponse

type BatchDeleteServerNicsResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

BatchDeleteServerNicsResponse Response Object

func (BatchDeleteServerNicsResponse) String

type BatchDeleteServerTagsRequest

type BatchDeleteServerTagsRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *BatchDeleteServerTagsRequestBody `json:"body,omitempty"`
}

BatchDeleteServerTagsRequest Request Object

func (BatchDeleteServerTagsRequest) String

type BatchDeleteServerTagsRequestBody

type BatchDeleteServerTagsRequestBody struct {

	// 操作标识(仅支持小写):delete(删除)。
	Action BatchDeleteServerTagsRequestBodyAction `json:"action"`

	// 标签列表。
	Tags []ServerTag `json:"tags"`
}

BatchDeleteServerTagsRequestBody This is a auto create Body Object

func (BatchDeleteServerTagsRequestBody) String

type BatchDeleteServerTagsRequestBodyAction

type BatchDeleteServerTagsRequestBodyAction struct {
	// contains filtered or unexported fields
}

func (BatchDeleteServerTagsRequestBodyAction) MarshalJSON

func (c BatchDeleteServerTagsRequestBodyAction) MarshalJSON() ([]byte, error)

func (*BatchDeleteServerTagsRequestBodyAction) UnmarshalJSON

func (c *BatchDeleteServerTagsRequestBodyAction) UnmarshalJSON(b []byte) error

func (BatchDeleteServerTagsRequestBodyAction) Value added in v0.0.90

type BatchDeleteServerTagsRequestBodyActionEnum

type BatchDeleteServerTagsRequestBodyActionEnum struct {
	DELETE BatchDeleteServerTagsRequestBodyAction
}

func GetBatchDeleteServerTagsRequestBodyActionEnum

func GetBatchDeleteServerTagsRequestBodyActionEnum() BatchDeleteServerTagsRequestBodyActionEnum

type BatchDeleteServerTagsResponse

type BatchDeleteServerTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

BatchDeleteServerTagsResponse Response Object

func (BatchDeleteServerTagsResponse) String

type BatchRebootServersRequest

type BatchRebootServersRequest struct {
	Body *BatchRebootServersRequestBody `json:"body,omitempty"`
}

BatchRebootServersRequest Request Object

func (BatchRebootServersRequest) String

func (o BatchRebootServersRequest) String() string

type BatchRebootServersRequestBody

type BatchRebootServersRequestBody struct {
	Reboot *BatchRebootSeversOption `json:"reboot"`
}

BatchRebootServersRequestBody This is a auto create Body Object

func (BatchRebootServersRequestBody) String

type BatchRebootServersResponse

type BatchRebootServersResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

BatchRebootServersResponse Response Object

func (BatchRebootServersResponse) String

type BatchRebootSeversOption

type BatchRebootSeversOption struct {

	// 云服务器ID列表。
	Servers []ServerId `json:"servers"`

	// 重启类型:  - SOFT:普通重启。 - HARD:强制重启。
	Type BatchRebootSeversOptionType `json:"type"`
}

BatchRebootSeversOption

func (BatchRebootSeversOption) String

func (o BatchRebootSeversOption) String() string

type BatchRebootSeversOptionType

type BatchRebootSeversOptionType struct {
	// contains filtered or unexported fields
}

func (BatchRebootSeversOptionType) MarshalJSON

func (c BatchRebootSeversOptionType) MarshalJSON() ([]byte, error)

func (*BatchRebootSeversOptionType) UnmarshalJSON

func (c *BatchRebootSeversOptionType) UnmarshalJSON(b []byte) error

func (BatchRebootSeversOptionType) Value added in v0.0.90

type BatchRebootSeversOptionTypeEnum

type BatchRebootSeversOptionTypeEnum struct {
	SOFT BatchRebootSeversOptionType
	HARD BatchRebootSeversOptionType
}

func GetBatchRebootSeversOptionTypeEnum

func GetBatchRebootSeversOptionTypeEnum() BatchRebootSeversOptionTypeEnum

type BatchResetServersPasswordRequest added in v0.0.64

type BatchResetServersPasswordRequest struct {
	Body *BatchResetServersPasswordRequestBody `json:"body,omitempty"`
}

BatchResetServersPasswordRequest Request Object

func (BatchResetServersPasswordRequest) String added in v0.0.64

type BatchResetServersPasswordRequestBody added in v0.0.64

type BatchResetServersPasswordRequestBody struct {

	// 新密码。  当dry_run字段为true时,该字段为非必填字段,否则为必填字段。  新密码的校验规则:  - 允许输入的字符包括:!@%-_=+[]:./? - 禁止输入的字符包括:汉字及【】:;“”‘’、,。《》?¥…()—— ·!~`#&^,{}*();\"'<>|\\ $ - 复杂度上必须包含大写字母(A-Z)、小写字母(a-z)、数字(0-9)、以及允许的特殊字符中的3种以上搭配 - 不能包含用户名 \"Administrator\" 和“root”及逆序字符 - 不能包含用户名 \"Administrator\" 中连续3个字符
	NewPassword string `json:"new_password"`

	// 是否只预检此次请求。  - true:发送检查请求,不会重置密码。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回响应结果。 - false:发送正常请求,通过检查后并且进行重置密码请求。  默认值:false
	DryRun *bool `json:"dry_run,omitempty"`

	// 待批量重置密码的弹性云服务器ID信息。
	Servers []ServerId `json:"servers"`
}

BatchResetServersPasswordRequestBody This is a auto create Body Object

func (BatchResetServersPasswordRequestBody) String added in v0.0.64

type BatchResetServersPasswordResponse added in v0.0.64

type BatchResetServersPasswordResponse struct {

	// 提交请求成功后返回的响应列表。
	Response       *[]ServerId `json:"response,omitempty"`
	HttpStatusCode int         `json:"-"`
}

BatchResetServersPasswordResponse Response Object

func (BatchResetServersPasswordResponse) String added in v0.0.64

type BatchStartServersOption

type BatchStartServersOption struct {

	// 云服务器ID列表
	Servers []ServerId `json:"servers"`
}

BatchStartServersOption

func (BatchStartServersOption) String

func (o BatchStartServersOption) String() string

type BatchStartServersRequest

type BatchStartServersRequest struct {
	Body *BatchStartServersRequestBody `json:"body,omitempty"`
}

BatchStartServersRequest Request Object

func (BatchStartServersRequest) String

func (o BatchStartServersRequest) String() string

type BatchStartServersRequestBody

type BatchStartServersRequestBody struct {
	OsStart *BatchStartServersOption `json:"os-start"`
}

BatchStartServersRequestBody This is a auto create Body Object

func (BatchStartServersRequestBody) String

type BatchStartServersResponse

type BatchStartServersResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

BatchStartServersResponse Response Object

func (BatchStartServersResponse) String

func (o BatchStartServersResponse) String() string

type BatchStopServersOption

type BatchStopServersOption struct {

	// 标记为启动云服务器操作。
	Servers []ServerId `json:"servers"`

	// 关机类型,默认为SOFT:  - SOFT:普通关机(默认)。 - HARD:强制关机。
	Type *BatchStopServersOptionType `json:"type,omitempty"`
}

BatchStopServersOption

func (BatchStopServersOption) String

func (o BatchStopServersOption) String() string

type BatchStopServersOptionType

type BatchStopServersOptionType struct {
	// contains filtered or unexported fields
}

func (BatchStopServersOptionType) MarshalJSON

func (c BatchStopServersOptionType) MarshalJSON() ([]byte, error)

func (*BatchStopServersOptionType) UnmarshalJSON

func (c *BatchStopServersOptionType) UnmarshalJSON(b []byte) error

func (BatchStopServersOptionType) Value added in v0.0.90

type BatchStopServersOptionTypeEnum

type BatchStopServersOptionTypeEnum struct {
	SOFT BatchStopServersOptionType
	HARD BatchStopServersOptionType
}

func GetBatchStopServersOptionTypeEnum

func GetBatchStopServersOptionTypeEnum() BatchStopServersOptionTypeEnum

type BatchStopServersRequest

type BatchStopServersRequest struct {
	Body *BatchStopServersRequestBody `json:"body,omitempty"`
}

BatchStopServersRequest Request Object

func (BatchStopServersRequest) String

func (o BatchStopServersRequest) String() string

type BatchStopServersRequestBody

type BatchStopServersRequestBody struct {
	OsStop *BatchStopServersOption `json:"os-stop"`
}

BatchStopServersRequestBody This is a auto create Body Object

func (BatchStopServersRequestBody) String

type BatchStopServersResponse

type BatchStopServersResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

BatchStopServersResponse Response Object

func (BatchStopServersResponse) String

func (o BatchStopServersResponse) String() string

type BatchUpdateServersNameRequest added in v0.0.64

type BatchUpdateServersNameRequest struct {
	Body *BatchUpdateServersNameRequestBody `json:"body,omitempty"`
}

BatchUpdateServersNameRequest Request Object

func (BatchUpdateServersNameRequest) String added in v0.0.64

type BatchUpdateServersNameRequestBody added in v0.0.64

type BatchUpdateServersNameRequestBody struct {

	// 弹性云服务器修改后的名称。  规则如下:  只能允许包含中文汉字、大小写字母、数字及 \"-\" 、 \"_\" 、\".\" 等特殊字符,长度限制在64个字符以内。  批量修改弹性云服务器名称时,名不会自动按序增加数字尾缀。例如: 三个ECS的名称为test_0001,test_0002,test_0003,批量修改云服务器名称为develop,则修改后3个云服务器名称为develop,develop,develop。
	Name string `json:"name"`

	// 是否只预检此次请求。  - true:发送检查请求,不会修改云服务器名称。检查项包括是否填写了必需参数、请求格式、业务限制。如果检查不通过,则返回对应错误。如果检查通过,则返回正常响应信息。 - false:发送正常请求,通过检查后并且执行修改云服务器名称的请求。  默认值:false
	DryRun *bool `json:"dry_run,omitempty"`

	// 待修改的弹性云服务器ID信息。
	Servers []ServerId `json:"servers"`
}

BatchUpdateServersNameRequestBody This is a auto create Body Object

func (BatchUpdateServersNameRequestBody) String added in v0.0.64

type BatchUpdateServersNameResponse added in v0.0.64

type BatchUpdateServersNameResponse struct {

	// 提交请求成功后返回的响应列表。
	Response       *[]ServerId `json:"response,omitempty"`
	HttpStatusCode int         `json:"-"`
}

BatchUpdateServersNameResponse Response Object

func (BatchUpdateServersNameResponse) String added in v0.0.64

type BlockDeviceAttachableQuantity

type BlockDeviceAttachableQuantity struct {

	// 云服务器可挂载scsi类型磁盘数量。
	FreeScsi *int32 `json:"free_scsi,omitempty"`

	// 云服务器可挂载virtio_blk类型磁盘数量。
	FreeBlk *int32 `json:"free_blk,omitempty"`

	// 云服务器可挂载磁盘总数。
	FreeDisk *int32 `json:"free_disk,omitempty"`
}

BlockDeviceAttachableQuantity 云服务器可挂载磁盘数量。

func (BlockDeviceAttachableQuantity) String

type ChangeServerChargeModePrepaidOption added in v0.1.43

type ChangeServerChargeModePrepaidOption struct {

	// 是否连同支持的按需数据盘一起转为包周期。 当参数为true,包括按需非共享的数据盘,不包括共享云硬盘,DSS和DESS硬盘 默认值为false
	IncludeDataDisks *bool `json:"include_data_disks,omitempty"`

	// 是否连同弹性公网IP一起转为包周期 只有“独享”、“按带宽计费”的弹性公网IP才可以转换为包周期计费模式 默认值为false
	IncludePublicips *bool `json:"include_publicips,omitempty"`

	// 订购周期类型,取值范围: month-月 year-年
	PeriodType string `json:"period_type"`

	// 订购周期的周期数。 取值范围: period_type=month时,取值范围为[1,9]。 period_type=year时,取值范围为[1,3]。
	PeriodNum string `json:"period_num"`

	// 是否自动支付。 true:自动支付,需要确保账户余额充足,如果余额不足则会生成异常订单,只能作废此订单 false:只生成订单不扣费 默认值为false
	AutoPay *bool `json:"auto_pay,omitempty"`

	// 是否自动续费。默认值:false
	AutoRenew *bool `json:"auto_renew,omitempty"`
}

func (ChangeServerChargeModePrepaidOption) String added in v0.1.43

type ChangeServerChargeModeRequest added in v0.1.43

type ChangeServerChargeModeRequest struct {
	Body *ChangeServerChargeModeRequestBody `json:"body,omitempty"`
}

ChangeServerChargeModeRequest Request Object

func (ChangeServerChargeModeRequest) String added in v0.1.43

type ChangeServerChargeModeRequestBody added in v0.1.43

type ChangeServerChargeModeRequestBody struct {

	// 云服务器ID列表
	ServerIds []string `json:"server_ids"`

	// 更换后的计费模式:prePaid包周期计费模式
	ChargeMode string `json:"charge_mode"`

	PrepaidOptions *ChangeServerChargeModePrepaidOption `json:"prepaid_options,omitempty"`

	// 是否预先校验此次请求。 true: 发送检查请求,不触发真正的计费转换操作 false: 发送正常请求,触发计费转换操作。 默认值为false
	DryRun *bool `json:"dry_run,omitempty"`
}

func (ChangeServerChargeModeRequestBody) String added in v0.1.43

type ChangeServerChargeModeResponse added in v0.1.43

type ChangeServerChargeModeResponse struct {

	// 按需转包提交后返回的订单ID,用户可以使用该ID对订单结果进行查询。
	OrderId        *string `json:"order_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ChangeServerChargeModeResponse Response Object

func (ChangeServerChargeModeResponse) String added in v0.1.43

type ChangeServerOsWithCloudInitOption

type ChangeServerOsWithCloudInitOption struct {

	// 云服务器管理员帐户的初始登录密码。  其中,Windows管理员帐户的用户名为Administrator。  建议密码复杂度如下:  - 长度为8-26位。 - 密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。  > 说明: >  - Windows云服务器的密码,不能包含用户名或用户名的逆序,不能包含用户名中超过两个连续字符的部分。 - 对于Linux弹性云服务器也可使用user_data字段实现密码注入,此时adminpass字段无效。 - adminpass和keyname不能同时有值。 - adminpass和keyname如果同时为空,此时,metadata中的user_data属性必须有值。 - 对于已安装Cloud-init的云服务器,使用adminpass字段切换操作系统时,系统如果提示您使用keypair方式切换操作系统,表示当前区域暂不支持使用密码方式。
	Adminpass *string `json:"adminpass,omitempty"`

	// 密钥名称。  密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/ecs_03_1201.html) )。
	Keyname *string `json:"keyname,omitempty"`

	// 用户ID。 说明 如果使用秘钥方式切换操作系统,则该字段为必选字段。
	Userid *string `json:"userid,omitempty"`

	// 切换系统所使用的新镜像的ID,格式为UUID。  镜像的ID可以从控制台或者参考[《镜像服务API参考》](https://support.huaweicloud.com/api-ims/ims_03_0702.html)的“查询镜像列表”的章节获取。
	Imageid string `json:"imageid"`

	Metadata *ChangeSeversOsMetadata `json:"metadata,omitempty"`

	// 取值为withStopServer ,支持开机状态下切换弹性云服务器操作系统。 mode取值为withStopServer时,对开机状态的弹性云服务器执行切换操作系统操作,系统自动对云服务器先执行关机,再切换操作系统。
	Mode *string `json:"mode,omitempty"`

	// 下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。
	IsAutoPay *string `json:"isAutoPay,omitempty"`
}

ChangeServerOsWithCloudInitOption 重装操作系统body体。

func (ChangeServerOsWithCloudInitOption) String

type ChangeServerOsWithCloudInitRequest

type ChangeServerOsWithCloudInitRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *ChangeServerOsWithCloudInitRequestBody `json:"body,omitempty"`
}

ChangeServerOsWithCloudInitRequest Request Object

func (ChangeServerOsWithCloudInitRequest) String

type ChangeServerOsWithCloudInitRequestBody

type ChangeServerOsWithCloudInitRequestBody struct {
	OsChange *ChangeServerOsWithCloudInitOption `json:"os-change"`
}

ChangeServerOsWithCloudInitRequestBody This is a auto create Body Object

func (ChangeServerOsWithCloudInitRequestBody) String

type ChangeServerOsWithCloudInitResponse

type ChangeServerOsWithCloudInitResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ChangeServerOsWithCloudInitResponse Response Object

func (ChangeServerOsWithCloudInitResponse) String

type ChangeServerOsWithoutCloudInitOption added in v0.0.64

type ChangeServerOsWithoutCloudInitOption struct {

	// 云服务器管理员帐户的初始登录密码。  其中,Windows管理员帐户的用户名为Administrator。  建议密码复杂度如下:  - 长度为8-26位。 - 密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。  > 说明: >  - 对于Windows弹性云服务器,密码不能包含用户名或用户名的逆序,不能包含用户名中超过两个连续字符的部分。 - adminpass和keyname不能同时为空。
	Adminpass *string `json:"adminpass,omitempty"`

	// 密钥名称。  密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/ecs_03_1201.html) )。
	Keyname *string `json:"keyname,omitempty"`

	// 用户ID。 说明 如果使用秘钥方式切换操作系统,则该字段为必选字段。
	Userid *string `json:"userid,omitempty"`

	// 切换系统所使用的新镜像的ID,格式为UUID。  镜像的ID可以从控制台或者参考[《镜像服务API参考》](https://support.huaweicloud.com/api-ims/ims_03_0702.html)的“查询镜像列表”的章节获取。
	Imageid string `json:"imageid"`

	// 取值为withStopServer ,支持开机状态下切换弹性云服务器操作系统。  mode取值为withStopServer时,对开机状态的  弹性云服务器执行切换操作系统操作,系统自动对云服务器先执行关机,再切换操作系统。
	Mode *string `json:"mode,omitempty"`

	Metadata *ChangeSeversOsMetadataWithoutCloudInitOption `json:"metadata,omitempty"`

	// 下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。
	IsAutoPay *string `json:"isAutoPay,omitempty"`
}

ChangeServerOsWithoutCloudInitOption 重装操作系统body体。

func (ChangeServerOsWithoutCloudInitOption) String added in v0.0.64

type ChangeServerOsWithoutCloudInitRequest added in v0.0.64

type ChangeServerOsWithoutCloudInitRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *ChangeServerOsWithoutCloudInitRequestBody `json:"body,omitempty"`
}

ChangeServerOsWithoutCloudInitRequest Request Object

func (ChangeServerOsWithoutCloudInitRequest) String added in v0.0.64

type ChangeServerOsWithoutCloudInitRequestBody added in v0.0.64

type ChangeServerOsWithoutCloudInitRequestBody struct {
	OsChange *ChangeServerOsWithoutCloudInitOption `json:"os-change"`
}

ChangeServerOsWithoutCloudInitRequestBody This is a auto create Body Object

func (ChangeServerOsWithoutCloudInitRequestBody) String added in v0.0.64

type ChangeServerOsWithoutCloudInitResponse added in v0.0.64

type ChangeServerOsWithoutCloudInitResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ChangeServerOsWithoutCloudInitResponse Response Object

func (ChangeServerOsWithoutCloudInitResponse) String added in v0.0.64

type ChangeSeversOsMetadata

type ChangeSeversOsMetadata struct {

	// metadata中的表示加密功能的字段,0代表不加密,1代表加密。  该字段不存在时,云硬盘默认为不加密。
	SystemEncrypted *string `json:"__system__encrypted,omitempty"`

	// metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。  > 说明:  - 请参考[查询密钥列表](https://support.huaweicloud.com/api-dew/ListKeys.html),通过HTTPS请求获取密钥ID。
	SystemCmkid *string `json:"__system__cmkid,omitempty"`

	// 重装云服务器过程中注入用户数据。  支持注入文本、文本文件或gzip文件。注入内容最大长度32KB。注入内容,需要进行base64格式编码。  了解更多用户数据注入请参考[用户数据注入](https://support.huaweicloud.com/usermanual-ecs/zh-cn_topic_0032380449.html)。
	UserData *string `json:"user_data,omitempty"`

	// 如果您已拥有操作系统或软件的许可证(一般是指按物理插槽数、物理内核数等进行认证的许可证),您可以通过自带许可(BYOL)的方式将业务完整迁移到云平台,继续使用您的许可证。 - true: 使用自有license - 其他值: 视为非法参数,接口报错
	Byol *string `json:"BYOL,omitempty"`
}

ChangeSeversOsMetadata

func (ChangeSeversOsMetadata) String

func (o ChangeSeversOsMetadata) String() string

type ChangeSeversOsMetadataWithoutCloudInitOption added in v0.1.39

type ChangeSeversOsMetadataWithoutCloudInitOption struct {

	// metadata中的表示加密功能的字段,0代表不加密,1代表加密。  该字段不存在时,云硬盘默认为不加密。
	SystemEncrypted *string `json:"__system__encrypted,omitempty"`

	// metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。  > 说明:  - 请参考[查询密钥列表](https://support.huaweicloud.com/api-dew/ListKeys.html),通过HTTPS请求获取密钥ID。
	SystemCmkid *string `json:"__system__cmkid,omitempty"`

	// 如果您已拥有操作系统或软件的许可证(一般是指按物理插槽数、物理内核数等进行认证的许可证),您可以通过自带许可(BYOL)的方式将业务完整迁移到云平台,继续使用您的许可证。 - true: 使用自有license - 其他值: 视为非法参数,接口报错
	Byol *string `json:"BYOL,omitempty"`
}

ChangeSeversOsMetadataWithoutCloudInitOption

func (ChangeSeversOsMetadataWithoutCloudInitOption) String added in v0.1.39

type ChangeVpcNicBody added in v0.1.95

type ChangeVpcNicBody struct {

	// 网卡ID,UUID格式。 当该字段不为空时,表示挂载指定的网卡。port_id和subnet_id不能同时为空。 网卡ID可以从虚拟私有云的“查询端口列表”章节查询到。 约束: 网卡必须带有安全组。 网卡状态必须为DOWN。 网卡的vpcid必须和传入的vpcid一致。 当port_id和subnet_id同时存在的时候,优先使用port_id。当选择port_id不为空时,代表此时使用的是弹性网卡,此时security_groups和ip_address等参数不生效。
	PortId *string `json:"port_id,omitempty"`

	// 云服务器云主机添加网卡的信息。 需要指定云服务器云主机所属虚拟私有云下已创建的网络(network)的ID,UUID格式。
	SubnetId *string `json:"subnet_id,omitempty"`

	SecurityGroups *ChangeVpcSecurityGroups `json:"security_groups,omitempty"`

	// P地址,无该参数表示自动分配IP地址
	IpAddress *string `json:"ip_address,omitempty"`
}

ChangeVpcNicBody This is a auto create Body Object

func (ChangeVpcNicBody) String added in v0.1.95

func (o ChangeVpcNicBody) String() string

type ChangeVpcRequest added in v0.1.95

type ChangeVpcRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *ChangeVpcRequestBody `json:"body,omitempty"`
}

ChangeVpcRequest Request Object

func (ChangeVpcRequest) String added in v0.1.95

func (o ChangeVpcRequest) String() string

type ChangeVpcRequestBody added in v0.1.95

type ChangeVpcRequestBody struct {

	// 虚拟机私有云ID
	VpcId string `json:"vpc_id"`

	Nic *ChangeVpcNicBody `json:"nic"`
}

ChangeVpcRequestBody This is a auto create Body Object

func (ChangeVpcRequestBody) String added in v0.1.95

func (o ChangeVpcRequestBody) String() string

type ChangeVpcResponse added in v0.1.95

type ChangeVpcResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ChangeVpcResponse Response Object

func (ChangeVpcResponse) String added in v0.1.95

func (o ChangeVpcResponse) String() string

type ChangeVpcSecurityGroups added in v0.1.95

type ChangeVpcSecurityGroups struct {

	// 安全组id
	Id *interface{} `json:"id"`
}

ChangeVpcSecurityGroups This is a auto create Body Object

func (ChangeVpcSecurityGroups) String added in v0.1.95

func (o ChangeVpcSecurityGroups) String() string

type CpuOptions added in v0.0.57

type CpuOptions struct {

	// CPU超线程数, 决定CPU是否开启超线程。取值范围:1,2。  - 1: 关闭超线程。 - 2: 打开超线程。  取值不能大于flavor中的   hw:cpu_threads,并且目标flavor配置需满足 \"hw:cpu_policy\": \"dedicated\",\"hw:cpu_threads\": \"2\"需要同时满足如下条件,才能设置为“关闭超线程”  - 只能在实例创建或者resize时指定。 - 只有目标flavor的extra_specs参数: - 存在“hw:cpu_policy”并取值为“dedicated”。 - 存在“hw:cpu_threads”并取值为“2”。
	HwcpuThreads *CpuOptionsHwcpuThreads `json:"hw:cpu_threads,omitempty"`
}

CpuOptions 自定义CPU选项。

func (CpuOptions) String added in v0.0.57

func (o CpuOptions) String() string

type CpuOptionsHwcpuThreads added in v0.1.90

type CpuOptionsHwcpuThreads struct {
	// contains filtered or unexported fields
}

func (CpuOptionsHwcpuThreads) MarshalJSON added in v0.1.90

func (c CpuOptionsHwcpuThreads) MarshalJSON() ([]byte, error)

func (*CpuOptionsHwcpuThreads) UnmarshalJSON added in v0.1.90

func (c *CpuOptionsHwcpuThreads) UnmarshalJSON(b []byte) error

func (CpuOptionsHwcpuThreads) Value added in v0.1.90

func (c CpuOptionsHwcpuThreads) Value() int32

type CpuOptionsHwcpuThreadsEnum added in v0.1.90

type CpuOptionsHwcpuThreadsEnum struct {
	E_1 CpuOptionsHwcpuThreads
	E_2 CpuOptionsHwcpuThreads
}

func GetCpuOptionsHwcpuThreadsEnum added in v0.1.90

func GetCpuOptionsHwcpuThreadsEnum() CpuOptionsHwcpuThreadsEnum

type CreatePostPaidServersRequest

type CreatePostPaidServersRequest struct {

	// 保证客户端请求幂等性的标识
	XClientToken *string `json:"X-Client-Token,omitempty"`

	Body *CreatePostPaidServersRequestBody `json:"body,omitempty"`
}

CreatePostPaidServersRequest Request Object

func (CreatePostPaidServersRequest) String

type CreatePostPaidServersRequestBody

type CreatePostPaidServersRequestBody struct {

	// 是否只预检此次请求。  true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数、请求格式等。 如果检查不通过,则返回对应错误。 如果检查通过,则返回202状态码。 false:发送正常请求,通过检查后并且执行创建云服务器请求。
	DryRun *bool `json:"dry_run,omitempty"`

	Server *PostPaidServer `json:"server"`
}

CreatePostPaidServersRequestBody This is a auto create Body Object

func (CreatePostPaidServersRequestBody) String

type CreatePostPaidServersResponse

type CreatePostPaidServersResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId *string `json:"job_id,omitempty"`

	// 云服务器ID列表。
	ServerIds      *[]string `json:"serverIds,omitempty"`
	HttpStatusCode int       `json:"-"`
}

CreatePostPaidServersResponse Response Object

func (CreatePostPaidServersResponse) String

type CreateServerGroupOption

type CreateServerGroupOption struct {

	// 弹性云服务器组名称,长度大于0小于256字节。
	Name string `json:"name"`

	// 与云服务器组关联的策略名称列表。包括:  - anti-affinity:此组中的弹性云服务器必须安排到不同的主机。  - affinity:此组中的弹性云服务器必须安排在同一主机上。  - soft-anti-affinity:如果可能,应将此组中的云服务器尽量安排到不同的主机上,但如果无法实现,则仍应安排它们,而不是导致生成失败。  - soft-affinity:如果可能,应将此组中的弹性云服务器尽量安排在同一主机上, 但如果无法实现,则仍应安排它们,而不是导致生成失败。    > 说明:  - 当前仅支持反亲和性anti-affinity策略。
	Policies []CreateServerGroupOptionPolicies `json:"policies"`
}

CreateServerGroupOption

func (CreateServerGroupOption) String

func (o CreateServerGroupOption) String() string

type CreateServerGroupOptionPolicies

type CreateServerGroupOptionPolicies struct {
	// contains filtered or unexported fields
}

func (CreateServerGroupOptionPolicies) MarshalJSON

func (c CreateServerGroupOptionPolicies) MarshalJSON() ([]byte, error)

func (*CreateServerGroupOptionPolicies) UnmarshalJSON

func (c *CreateServerGroupOptionPolicies) UnmarshalJSON(b []byte) error

func (CreateServerGroupOptionPolicies) Value added in v0.0.90

type CreateServerGroupOptionPoliciesEnum

type CreateServerGroupOptionPoliciesEnum struct {
	ANTI_AFFINITY CreateServerGroupOptionPolicies
}

func GetCreateServerGroupOptionPoliciesEnum

func GetCreateServerGroupOptionPoliciesEnum() CreateServerGroupOptionPoliciesEnum

type CreateServerGroupRequest

type CreateServerGroupRequest struct {
	Body *CreateServerGroupRequestBody `json:"body,omitempty"`
}

CreateServerGroupRequest Request Object

func (CreateServerGroupRequest) String

func (o CreateServerGroupRequest) String() string

type CreateServerGroupRequestBody

type CreateServerGroupRequestBody struct {
	ServerGroup *CreateServerGroupOption `json:"server_group"`
}

CreateServerGroupRequestBody This is a auto create Body Object

func (CreateServerGroupRequestBody) String

type CreateServerGroupResponse

type CreateServerGroupResponse struct {
	ServerGroup    *CreateServerGroupResult `json:"server_group,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

CreateServerGroupResponse Response Object

func (CreateServerGroupResponse) String

func (o CreateServerGroupResponse) String() string

type CreateServerGroupResult

type CreateServerGroupResult struct {

	// 云服务器组UUID。
	Id string `json:"id"`

	// 云服务器组中包含的云服务器列表。
	Members []string `json:"members"`

	// 云服务器组元数据。
	Metadata map[string]string `json:"metadata"`

	// 云服务器组名称。
	Name string `json:"name"`

	// 与服务器组关联的策略名称列表。当前有效的策略名称为:  anti-affinity -此组中的服务器必须安排到不同的主机;  affinity -此组中的服务器必须安排在同一主机上;  soft-anti-affinity –如果可能, 应将此组中的服务器安排到不同的主机, 但如果无法实现, 则仍应安排它们, 而不是导致生成失败;  soft-affinity -如果可能, 应将此组中的服务器安排在同一主机上, 但如果无法实现, 则仍应安排它们, 而不是导致生成失败。
	Policies []string `json:"policies"`
}

CreateServerGroupResult

func (CreateServerGroupResult) String

func (o CreateServerGroupResult) String() string

type CreateServerNicAllowedAddressPairs added in v0.1.43

type CreateServerNicAllowedAddressPairs struct {

	// IP地址 不支持0.0.0.0/0 如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组。
	IpAddress *string `json:"ip_address,omitempty"`

	// MAC地址
	MacAddress *string `json:"mac_address,omitempty"`
}

func (CreateServerNicAllowedAddressPairs) String added in v0.1.43

type CreateServersRequest

type CreateServersRequest struct {

	// 保证客户端请求幂等性的标识
	XClientToken *string `json:"X-Client-Token,omitempty"`

	Body *CreateServersRequestBody `json:"body,omitempty"`
}

CreateServersRequest Request Object

func (CreateServersRequest) String

func (o CreateServersRequest) String() string

type CreateServersRequestBody

type CreateServersRequestBody struct {

	// 是否只预检此次请求。  true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数、请求格式等。 如果检查不通过,则返回对应错误。 如果检查通过,则返回202状态码。 false:发送正常请求,通过检查后并且执行创建云服务器请求。
	DryRun *bool `json:"dry_run,omitempty"`

	Server *PrePaidServer `json:"server"`
}

CreateServersRequestBody This is a auto create Body Object

func (CreateServersRequestBody) String

func (o CreateServersRequestBody) String() string

type CreateServersResponse

type CreateServersResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId *string `json:"job_id,omitempty"`

	// 订单号,创建包年包月的弹性云服务器时返回该参数。
	OrderId *string `json:"order_id,omitempty"`

	// 云服务器ID列表。  通过云服务器ID查询云服务器详情 ,若返回404 可能云服务器还在创建或者已经创建失败。
	ServerIds      *[]string `json:"serverIds,omitempty"`
	HttpStatusCode int       `json:"-"`
}

CreateServersResponse Response Object

func (CreateServersResponse) String

func (o CreateServersResponse) String() string

type DeleteServerGroupMemberRequest

type DeleteServerGroupMemberRequest struct {

	// 云服务器组ID。
	ServerGroupId string `json:"server_group_id"`

	Body *DeleteServerGroupMemberRequestBody `json:"body,omitempty"`
}

DeleteServerGroupMemberRequest Request Object

func (DeleteServerGroupMemberRequest) String

type DeleteServerGroupMemberRequestBody

type DeleteServerGroupMemberRequestBody struct {
	RemoveMember *ServerGroupMember `json:"remove_member"`
}

DeleteServerGroupMemberRequestBody This is a auto create Body Object

func (DeleteServerGroupMemberRequestBody) String

type DeleteServerGroupMemberResponse

type DeleteServerGroupMemberResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteServerGroupMemberResponse Response Object

func (DeleteServerGroupMemberResponse) String

type DeleteServerGroupRequest

type DeleteServerGroupRequest struct {

	// 弹性云服务器组UUID。
	ServerGroupId string `json:"server_group_id"`
}

DeleteServerGroupRequest Request Object

func (DeleteServerGroupRequest) String

func (o DeleteServerGroupRequest) String() string

type DeleteServerGroupResponse

type DeleteServerGroupResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteServerGroupResponse Response Object

func (DeleteServerGroupResponse) String

func (o DeleteServerGroupResponse) String() string

type DeleteServerMetadataRequest

type DeleteServerMetadataRequest struct {

	// 待删除的云服务器metadata键值
	Key string `json:"key"`

	// 云服务器ID。
	ServerId string `json:"server_id"`
}

DeleteServerMetadataRequest Request Object

func (DeleteServerMetadataRequest) String

type DeleteServerMetadataResponse

type DeleteServerMetadataResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteServerMetadataResponse Response Object

func (DeleteServerMetadataResponse) String

type DeleteServerPasswordRequest added in v0.0.64

type DeleteServerPasswordRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`
}

DeleteServerPasswordRequest Request Object

func (DeleteServerPasswordRequest) String added in v0.0.64

type DeleteServerPasswordResponse added in v0.0.64

type DeleteServerPasswordResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteServerPasswordResponse Response Object

func (DeleteServerPasswordResponse) String added in v0.0.64

type DeleteServersRequest

type DeleteServersRequest struct {
	Body *DeleteServersRequestBody `json:"body,omitempty"`
}

DeleteServersRequest Request Object

func (DeleteServersRequest) String

func (o DeleteServersRequest) String() string

type DeleteServersRequestBody

type DeleteServersRequestBody struct {

	// 配置删除云服务器是否删除云服务器绑定的弹性IP。如果选择不删除,则系统仅做解绑定操作,保留弹性IP资源。 取值为true或false,默认为false。   - true:删除云服务器时会同时删除绑定在云服务器上的弹性IP。  - false:删除云服务器时,仅解绑定在云服务器上的弹性IP,不删除弹性IP
	DeletePublicip *bool `json:"delete_publicip,omitempty"`

	// 配置删除云服务器是否删除云服务器对应的数据盘,如果选择不删除,则系统仅做解绑定操作,保留云磁盘资源。 取值为false或true,默认为false。  - true:删除云服务器时会同时删除挂载在云服务器上的数据盘。 - false:删除云服务器时,仅卸载云服务器上挂载的数据盘,不删除该数据盘。
	DeleteVolume *bool `json:"delete_volume,omitempty"`

	// 所需要删除的云服务器列表。
	Servers []ServerId `json:"servers"`
}

DeleteServersRequestBody This is a auto create Body Object

func (DeleteServersRequestBody) String

func (o DeleteServersRequestBody) String() string

type DeleteServersResponse

type DeleteServersResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteServersResponse Response Object

func (DeleteServersResponse) String

func (o DeleteServersResponse) String() string

type DetachServerVolumeRequest

type DetachServerVolumeRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	// 磁盘ID。
	VolumeId string `json:"volume_id"`

	// 是否强制卸载数据盘。  - 是,值为“1”。  - 否,值为“0”。  默认值为0。
	DeleteFlag *DetachServerVolumeRequestDeleteFlag `json:"delete_flag,omitempty"`
}

DetachServerVolumeRequest Request Object

func (DetachServerVolumeRequest) String

func (o DetachServerVolumeRequest) String() string

type DetachServerVolumeRequestDeleteFlag

type DetachServerVolumeRequestDeleteFlag struct {
	// contains filtered or unexported fields
}

func (DetachServerVolumeRequestDeleteFlag) MarshalJSON

func (c DetachServerVolumeRequestDeleteFlag) MarshalJSON() ([]byte, error)

func (*DetachServerVolumeRequestDeleteFlag) UnmarshalJSON

func (c *DetachServerVolumeRequestDeleteFlag) UnmarshalJSON(b []byte) error

func (DetachServerVolumeRequestDeleteFlag) Value added in v0.0.90

type DetachServerVolumeRequestDeleteFlagEnum

type DetachServerVolumeRequestDeleteFlagEnum struct {
	E_0 DetachServerVolumeRequestDeleteFlag
	E_1 DetachServerVolumeRequestDeleteFlag
}

func GetDetachServerVolumeRequestDeleteFlagEnum

func GetDetachServerVolumeRequestDeleteFlagEnum() DetachServerVolumeRequestDeleteFlagEnum

type DetachServerVolumeResponse

type DetachServerVolumeResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DetachServerVolumeResponse Response Object

func (DetachServerVolumeResponse) String

type DisassociateServerVirtualIpOption added in v0.0.64

type DisassociateServerVirtualIpOption struct {

	// 云服务器添加网卡的信息。  约束:解绑虚拟IP时,subnet_id为空字符串
	SubnetId DisassociateServerVirtualIpOptionSubnetId `json:"subnet_id"`

	// 网卡即将配置的虚拟IP的地址。  约束:解绑虚拟IP时,ip_address为空字符串
	IpAddress DisassociateServerVirtualIpOptionIpAddress `json:"ip_address"`

	// 虚拟IP的allowed_address_pairs属性是否添加网卡的IP/Mac对。
	ReverseBinding *bool `json:"reverse_binding,omitempty"`
}

DisassociateServerVirtualIpOption

func (DisassociateServerVirtualIpOption) String added in v0.0.64

type DisassociateServerVirtualIpOptionIpAddress added in v0.0.64

type DisassociateServerVirtualIpOptionIpAddress struct {
	// contains filtered or unexported fields
}

func (DisassociateServerVirtualIpOptionIpAddress) MarshalJSON added in v0.0.64

func (*DisassociateServerVirtualIpOptionIpAddress) UnmarshalJSON added in v0.0.64

func (DisassociateServerVirtualIpOptionIpAddress) Value added in v0.0.90

type DisassociateServerVirtualIpOptionIpAddressEnum added in v0.0.64

type DisassociateServerVirtualIpOptionIpAddressEnum struct {
	EMPTY DisassociateServerVirtualIpOptionIpAddress
}

func GetDisassociateServerVirtualIpOptionIpAddressEnum added in v0.0.64

func GetDisassociateServerVirtualIpOptionIpAddressEnum() DisassociateServerVirtualIpOptionIpAddressEnum

type DisassociateServerVirtualIpOptionSubnetId added in v0.0.64

type DisassociateServerVirtualIpOptionSubnetId struct {
	// contains filtered or unexported fields
}

func (DisassociateServerVirtualIpOptionSubnetId) MarshalJSON added in v0.0.64

func (*DisassociateServerVirtualIpOptionSubnetId) UnmarshalJSON added in v0.0.64

func (DisassociateServerVirtualIpOptionSubnetId) Value added in v0.0.90

type DisassociateServerVirtualIpOptionSubnetIdEnum added in v0.0.64

type DisassociateServerVirtualIpOptionSubnetIdEnum struct {
	EMPTY DisassociateServerVirtualIpOptionSubnetId
}

func GetDisassociateServerVirtualIpOptionSubnetIdEnum added in v0.0.64

func GetDisassociateServerVirtualIpOptionSubnetIdEnum() DisassociateServerVirtualIpOptionSubnetIdEnum

type DisassociateServerVirtualIpRequest added in v0.0.64

type DisassociateServerVirtualIpRequest struct {

	// 云服务器网卡ID。
	NicId string `json:"nic_id"`

	Body *DisassociateServerVirtualIpRequestBody `json:"body,omitempty"`
}

DisassociateServerVirtualIpRequest Request Object

func (DisassociateServerVirtualIpRequest) String added in v0.0.64

type DisassociateServerVirtualIpRequestBody added in v0.0.64

type DisassociateServerVirtualIpRequestBody struct {
	Nic *DisassociateServerVirtualIpOption `json:"nic"`
}

DisassociateServerVirtualIpRequestBody This is a auto create Body Object

func (DisassociateServerVirtualIpRequestBody) String added in v0.0.64

type DisassociateServerVirtualIpResponse added in v0.0.64

type DisassociateServerVirtualIpResponse struct {

	// 云服务器网卡ID
	PortId         *string `json:"port_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DisassociateServerVirtualIpResponse Response Object

func (DisassociateServerVirtualIpResponse) String added in v0.0.64

type Flavor

type Flavor struct {

	// 云服务器规格的ID。
	Id string `json:"id"`

	// 云服务器规格的名称。
	Name string `json:"name"`

	// 云服务器规格对应的CPU核数。
	Vcpus string `json:"vcpus"`

	// 云服务器规格对应的内存大小,单位为MB。
	Ram int32 `json:"ram"`

	// 云服务器规格对应要求的系统盘大小。  当前未使用该参数,缺省值为0。
	Disk string `json:"disk"`

	// 云服务器规格对应要求的交换分区大小。  当前未使用该参数,缺省值为\"\"。
	Swap string `json:"swap"`

	// 扩展属性,临时盘大小。  当前未使用该参数,缺省值为0
	OSFLVEXTDATAephemeral int32 `json:"OS-FLV-EXT-DATA:ephemeral"`

	// 扩展属性,该云服务器规格是否禁用。  当前未使用该参数,缺省值为false。
	OSFLVDISABLEDdisabled bool `json:"OS-FLV-DISABLED:disabled"`

	// 云服务器可使用网络带宽与网络硬件带宽的比例。  当前未使用该参数,缺省值为1.0。
	RxtxFactor float32 `json:"rxtx_factor"`

	// 云服务器可使用网络带宽的软限制。  当前未使用该参数,缺省值为null。
	RxtxQuota string `json:"rxtx_quota"`

	//   云服务器可使用网络带宽的硬限制。  当前未使用该参数,缺省值为null。
	RxtxCap string `json:"rxtx_cap"`

	// 扩展属性,flavor是否给所有租户使用。  - true:表示给所有租户使用。 - false:表示给指定租户使用。  缺省值为true。
	OsFlavorAccessisPublic bool `json:"os-flavor-access:is_public"`

	// 规格相关快捷链接地址。
	Links []FlavorLink `json:"links"`

	OsExtraSpecs *FlavorExtraSpec `json:"os_extra_specs"`

	AttachableQuantity *ServerAttachableQuantity `json:"attachableQuantity,omitempty"`
}

Flavor 云服务器规格。

func (Flavor) String

func (o Flavor) String() string

type FlavorExtraSpec

type FlavorExtraSpec struct {

	// 云服务器规格的分类:  - normal:通用型 - entry:通用入门型 - cpuv1:计算I型 - cpuv2:计算II型 - computingv3:通用计算增强型 - kunpeng_computing:鲲鹏通用计算增强型 - kunpeng_highmem:鲲鹏内存优化型 - highmem:内存优化型 - saphana:大内存型 - diskintensive:磁盘增强型 - highio:超高I/O型 - ultracpu:超高性能计算型 - gpu:GPU加速型 - fpga:FPGA加速型 - ascend:AI加速型  > 说明:  - 早期注册的规格该字段为hws:performancetype。
	Ecsperformancetype *string `json:"ecs:performancetype,omitempty"`

	// 主机的物理cpu数量。
	HwnumaNodes *string `json:"hw:numa_nodes,omitempty"`

	// 资源类型。resource_type是为了区分云服务器的物理主机类型。
	ResourceType *string `json:"resource_type,omitempty"`

	// 弹性运服务器高精度时钟是否开启,开启为true,否则为false。(该字段是否返回根据云服务器规格而定)
	HpetSupport *string `json:"hpet_support,omitempty"`

	// 网卡类型,值固定为“enhanced”,表示使用增强型网络的资源创建云服务器。
	InstanceVnictype *string `json:"instance_vnic:type,omitempty"`

	// 最大带宽,单位Mbps,最大值为10000。
	InstanceVnicinstanceBandwidth *string `json:"instance_vnic:instance_bandwidth,omitempty"`

	// 最大网卡个数,最大为4。
	InstanceVnicmaxCount *string `json:"instance_vnic:max_count,omitempty"`

	// 值格式为{type}:{count}:{size}:{safeFormat},其中:  - type指磁盘类型,当前只支持hdd。 - count指本地磁盘数量,目前支持d1类型:3/6/12/24,d2类型:2/4/8/12/16/24,d3类型:2/4/8/12/16/24/28。 - size指单个磁盘容量,单位GB,目前只支持1675(实际磁盘大小为1800,格式化后可用大小为1675)。 - safeFormat指云服务器本地磁盘是否安全格式化,目前仅支持d1类型:FALSE,d2/d3类型:True。  > 说明:  - 磁盘增强型特有字段。
	QuotalocalDisk *string `json:"quota:local_disk,omitempty"`

	// 值格式为{type}:{spec}:{size}:{safeFormat},其中:  - type指主机上配备的nvme ssd的单卡容量大小,当前只支持1.6T/3.2T。 - spec指nvme ssd的规格,包括large/small。large表示大规格,small表示小规格。目前仅支持i3类型:large。 - size指guest使用的盘的容量大小,单位为GB。在spec值为large的情况下,此项即为host单卡大小。在spec值为small的情况下,此为1/4规格或者1/2规格。 - safeFormat指云服务器本地磁盘是否安全格式化,目前仅支持i3类型:True。  > 说明:  - 超高I/O型特有字段。
	QuotanvmeSsd *string `json:"quota:nvme_ssd,omitempty"`

	// 是否支持持久化,值为true。  代表云服务器访问存储的方式为持久化授权。   > 说明:  - 密集存储D1型特有字段。
	ExtraSpeciopersistentGrant *string `json:"extra_spec:io:persistent_grant,omitempty"`

	// 弹性云服务器类型的代数。  - s1:通用型I代 - s2:通用型II代 - s3:通用型 - m1:内存优化型I代 - m2:内存优化型II代 - m3:内存优化型 - h1:高性能计算型I代 - h2:高性能计算型II代 - h3:高性能计算型 - hi3:超高性能计算型 - d1:密集存储型I代 - d2:密集存储型II代 - d3:磁盘增强型 - g1:GPU加速型I代 - g2:GPU加速型II代 - f1:FPGA高性能型 - f2:FPGA通用型 - c3:通用计算增强型 - e3:大内存型 - i3:超高I/O型
	Ecsgeneration *string `json:"ecs:generation,omitempty"`

	// 虚拟化类型。  - 如果值为“FusionCompute”,表示弹性云服务器使用基于XEN的虚拟化技术。 - 如果值为“CloudCompute”,表示弹性云服务器使用基于KVM的虚拟化技术。
	EcsvirtualizationEnvTypes *string `json:"ecs:virtualization_env_types,omitempty"`

	// 显卡是否直通。  值为“true”,表示GPU直通。
	PciPassthroughenableGpu *string `json:"pci_passthrough:enable_gpu,omitempty"`

	// G1型和G2型云服务器应用的技术,包括GPU虚拟化和GPU直通。  - 如果该规格的云服务器使用GPU虚拟化技术,且GPU卡的型号为M60-1Q,参数值可设置为“m60_1q:virt:1”。 - 如果该规格的云服务器使用GPU直通技术,且GPU卡的型号为M60,参数值可设置为“m60:direct_graphics:1”。
	PciPassthroughgpuSpecs *string `json:"pci_passthrough:gpu_specs,omitempty"`

	// P1型v本地直通GPU的型号和数量,参数值可设置为“nvidia-p100:1”,表示使用该规格创建的弹性云服务器将占用1张NVIDIA P100显卡。
	PciPassthroughalias *string `json:"pci_passthrough:alias,omitempty"`

	// 此参数是Region级配置,某个AZ没有在cond:operation:az参数中配置时默认使用此参数的取值。不配置或无此参数时等同于“normal”。取值范围:  - normal:正常商用 - abandon:下线(即不显示) - sellout:售罄 - obt:公测 - promotion:推荐(等同normal,也是商用)
	Condoperationstatus *string `json:"cond:operation:status,omitempty"`

	// 此参数是AZ级配置,某个AZ没有在此参数中配置时默认使用cond:operation:status参数的取值。此参数的配置格式“az(xx)”。()内为某个AZ的flavor状态,()内必须要填有状态,不填为无效配置。状态的取值范围与cond:operation:status参数相同。  例如:flavor在某个region的az0正常商用,az1售罄,az2公测,az3正常商用,其他az显示下线,可配置为:  - “cond:operation:status”设置为“abandon” - “cond:operation:az”设置为“az0(normal), az1(sellout), az2(obt), az3(normal)”  > 说明:  - 如果flavor在某个AZ下的状态与cond:operation:status配置状态不同,必须配置该参数。
	Condoperationaz *string `json:"cond:operation:az,omitempty"`

	// 最大带宽  - 单位Mbps,显示为Gbps时除以1000
	QuotamaxRate *string `json:"quota:max_rate,omitempty"`

	// 基准带宽  - 单位Mbps,显示为Gbps时除以1000
	QuotaminRate *string `json:"quota:min_rate,omitempty"`

	// 内网最大收发包能力  - 单位个,显示为xx万时除以10000
	QuotamaxPps *string `json:"quota:max_pps,omitempty"`

	// 计费类型  - 计费场景,不配置时都支持 - period,包周期 - demand,按需
	Condoperationcharge *string `json:"cond:operation:charge,omitempty"`

	// 关机是否收费  - 关机是否计费,默认免费: - charge - free
	Condoperationchargestop *string `json:"cond:operation:charge:stop,omitempty"`

	// 计费类型  - 计费场景,不配置时都支持 - period,包周期 - demand,按需
	Condspotoperationaz *string `json:"cond:spot:operation:az,omitempty"`

	// 允许的角色 匹配的用户标签(roles的op_gatexxx标签)。不设置时所有用户可见
	Condoperationroles *string `json:"cond:operation:roles,omitempty"`

	// Flavor在竞价销售模式下的状态  - 不配置时等同abandon - normal,正常商用 - abandon,下线 - sellout,售罄 - obt,公测,未申请时提示申请(暂不支持) - private,私有,只给特定用户显示(暂不支持) - test,试用/免费(暂不支持) - promotion,推荐
	Condspotoperationstatus *string `json:"cond:spot:operation:status,omitempty"`

	// 网络约束 支持网络特性,不配置时以UI配置为准。
	Condnetwork *string `json:"cond:network,omitempty"`

	// 存储约束  - 支持磁盘特性,不配置时以UI配置为准。 - scsi,支持scsi - localdisk,支持本地盘 - ib,支持ib
	Condstorage *string `json:"cond:storage,omitempty"`

	// 计算约束  - true,支持在线扩容。 - false或不存在该字段,不支持在线扩容。
	CondcomputeliveResizable *string `json:"cond:compute:live_resizable,omitempty"`

	// 计算约束  - autorecovery,自动恢复特性。 - 不存在该字段,不支持自动恢复。
	Condcompute *string `json:"cond:compute,omitempty"`

	//
	Infogpuname *string `json:"info:gpu:name,omitempty"`

	//
	Infocpuname *string `json:"info:cpu:name,omitempty"`

	//
	Quotagpu *string `json:"quota:gpu,omitempty"`

	// 最多支持的弹性网卡个数
	QuotavifMaxNum *string `json:"quota:vif_max_num,omitempty"`

	// 最多支持的辅助弹性网卡个数
	QuotasubNetworkInterfaceMaxNum *string `json:"quota:sub_network_interface_max_num,omitempty"`

	// 该规格对应的CPU架构,且仅鲲鹏实例架构规格返回该字段  - 取值为arm64表示CPU架构为鲲鹏计算。
	EcsinstanceArchitecture *string `json:"ecs:instance_architecture,omitempty"`
}

FlavorExtraSpec 云服务器规格的扩展字段。

func (FlavorExtraSpec) String

func (o FlavorExtraSpec) String() string
type FlavorLink struct {

	// 对应快捷链接。
	Href string `json:"href"`

	// 快捷链接标记名称。
	Rel string `json:"rel"`

	// 快捷链接类型,当前接口未使用,缺省值为null。
	Type string `json:"type"`
}

FlavorLink 规格相关快捷链接地址。

func (FlavorLink) String

func (o FlavorLink) String() string

type FlavorSpotOptions added in v0.1.41

type FlavorSpotOptions struct {

	// 购买的竞价实例时长
	LongestSpotDurationHours *int32 `json:"longest_spot_duration_hours,omitempty"`

	// 购买的“竞价实例时长”的个数。
	LargestSpotDurationCount *int32 `json:"largest_spot_duration_count,omitempty"`

	// 竞价实例中断策略。  - immediate:立即释放 - delay:延迟释放
	InterruptionPolicy *string `json:"interruption_policy,omitempty"`
}

FlavorSpotOptions

func (FlavorSpotOptions) String added in v0.1.41

func (o FlavorSpotOptions) String() string

type GetServerRemoteConsoleOption

type GetServerRemoteConsoleOption struct {

	// 远程登录协议,请将protocol配置为“vnc”。
	Protocol GetServerRemoteConsoleOptionProtocol `json:"protocol"`

	// 远程登录的类型,请将type配置为“novnc”。
	Type GetServerRemoteConsoleOptionType `json:"type"`
}

func (GetServerRemoteConsoleOption) String

type GetServerRemoteConsoleOptionProtocol

type GetServerRemoteConsoleOptionProtocol struct {
	// contains filtered or unexported fields
}

func (GetServerRemoteConsoleOptionProtocol) MarshalJSON

func (c GetServerRemoteConsoleOptionProtocol) MarshalJSON() ([]byte, error)

func (*GetServerRemoteConsoleOptionProtocol) UnmarshalJSON

func (c *GetServerRemoteConsoleOptionProtocol) UnmarshalJSON(b []byte) error

func (GetServerRemoteConsoleOptionProtocol) Value added in v0.0.90

type GetServerRemoteConsoleOptionProtocolEnum

type GetServerRemoteConsoleOptionProtocolEnum struct {
	VNC GetServerRemoteConsoleOptionProtocol
}

func GetGetServerRemoteConsoleOptionProtocolEnum

func GetGetServerRemoteConsoleOptionProtocolEnum() GetServerRemoteConsoleOptionProtocolEnum

type GetServerRemoteConsoleOptionType

type GetServerRemoteConsoleOptionType struct {
	// contains filtered or unexported fields
}

func (GetServerRemoteConsoleOptionType) MarshalJSON

func (c GetServerRemoteConsoleOptionType) MarshalJSON() ([]byte, error)

func (*GetServerRemoteConsoleOptionType) UnmarshalJSON

func (c *GetServerRemoteConsoleOptionType) UnmarshalJSON(b []byte) error

func (GetServerRemoteConsoleOptionType) Value added in v0.0.90

type GetServerRemoteConsoleOptionTypeEnum

type GetServerRemoteConsoleOptionTypeEnum struct {
	NOVNC GetServerRemoteConsoleOptionType
}

func GetGetServerRemoteConsoleOptionTypeEnum

func GetGetServerRemoteConsoleOptionTypeEnum() GetServerRemoteConsoleOptionTypeEnum

type Hypervisor added in v0.0.57

type Hypervisor struct {

	// hypervisor类型
	HypervisorType *string `json:"hypervisor_type,omitempty"`

	// hypervisor csd信息
	CsdHypervisor *string `json:"csd_hypervisor,omitempty"`
}

Hypervisor hypervisor信息。

func (Hypervisor) String added in v0.0.57

func (o Hypervisor) String() string

type InterfaceAttachableQuantity added in v0.0.57

type InterfaceAttachableQuantity struct {

	// 云服务器剩余可挂载网卡数量
	FreeNic *int32 `json:"free_nic,omitempty"`
}

func (InterfaceAttachableQuantity) String added in v0.0.57

type InterfaceAttachment

type InterfaceAttachment struct {

	// 网卡私网IP信息列表。
	FixedIps *[]ServerInterfaceFixedIp `json:"fixed_ips,omitempty"`

	// 网卡Mac地址信息。
	MacAddr *string `json:"mac_addr,omitempty"`

	// 网卡端口所属网络ID。
	NetId *string `json:"net_id,omitempty"`

	// 网卡端口ID。
	PortId *string `json:"port_id,omitempty"`

	// 网卡端口状态。
	PortState *string `json:"port_state,omitempty"`

	// 卸载网卡时,是否删除网卡。
	DeleteOnTermination *bool `json:"delete_on_termination,omitempty"`

	// 从guest os中,网卡的驱动类型。可选值为virtio和hinic,默认为virtio
	DriverMode *string `json:"driver_mode,omitempty"`

	// 网卡带宽下限。
	MinRate *int32 `json:"min_rate,omitempty"`

	// 网卡多队列个数。
	MultiqueueNum *int32 `json:"multiqueue_num,omitempty"`

	// 弹性网卡在Linux GuestOS里的BDF号
	PciAddress *string `json:"pci_address,omitempty"`
}

func (InterfaceAttachment) String

func (o InterfaceAttachment) String() string

type Ipv6Bandwidth

type Ipv6Bandwidth struct {

	// IPv6带宽的ID。
	Id *string `json:"id,omitempty"`
}

Ipv6Bandwidth

func (Ipv6Bandwidth) String

func (o Ipv6Bandwidth) String() string

type JobEntities

type JobEntities struct {

	// 云服务器相关操作显示server_id。
	ServerId *string `json:"server_id,omitempty"`

	// 网卡相关操作显示nic_id。
	NicId *string `json:"nic_id,omitempty"`

	// 每个子任务的执行信息。
	SubJobs *[]SubJob `json:"sub_jobs,omitempty"`

	// 子任务数量。
	SubJobsTotal *int32 `json:"sub_jobs_total,omitempty"`
}

JobEntities

func (JobEntities) String

func (o JobEntities) String() string
type Link struct {

	// 对应快捷链接。
	Href string `json:"href"`

	// 快捷链接标记名称。
	Rel string `json:"rel"`
}

Link 相关快捷链接地址。

func (Link) String

func (o Link) String() string

type ListFlavorSellPoliciesRequest added in v0.1.41

type ListFlavorSellPoliciesRequest struct {

	// 云服务器的系统规格的ID
	FlavorId *string `json:"flavor_id,omitempty"`

	// 云服务器的系统规格销售状态。  取值范围:  - available:正常售卖 - sellout:售罄
	SellStatus *ListFlavorSellPoliciesRequestSellStatus `json:"sell_status,omitempty"`

	// 计费模式。  key的取值范围:  - postPaid:按需计费实例。 - prePaid:包年/包月计费实例。 - spot:竞价实例。 - ri:预留实例。
	SellMode *ListFlavorSellPoliciesRequestSellMode `json:"sell_mode,omitempty"`

	// 可用区,需要指定可用区(AZ)
	AvailabilityZoneId *string `json:"availability_zone_id,omitempty"`

	// 查询竞价实例时长大于设置值的策略
	LongestSpotDurationHoursGt *int32 `json:"longest_spot_duration_hours_gt,omitempty"`

	// 查询“竞价实例时长”的个数大于设置值的策略
	LargestSpotDurationCountGt *int32 `json:"largest_spot_duration_count_gt,omitempty"`

	// 查询竞价实例时长等于设置值的策略
	LongestSpotDurationHours *int32 `json:"longest_spot_duration_hours,omitempty"`

	// 查询“竞价实例时长”的个数等于设置值的策略
	LargestSpotDurationCount *int32 `json:"largest_spot_duration_count,omitempty"`

	// 中断策略。  取值范围:  - immediate:立即释放 - delay:延迟释放
	InterruptionPolicy *ListFlavorSellPoliciesRequestInterruptionPolicy `json:"interruption_policy,omitempty"`

	// 单页面可显示的flavor条数最大值,默认是1000。
	Limit *int32 `json:"limit,omitempty"`

	// 以单页最后一条flavor的ID作为分页标记。
	Marker *string `json:"marker,omitempty"`
}

ListFlavorSellPoliciesRequest Request Object

func (ListFlavorSellPoliciesRequest) String added in v0.1.41

type ListFlavorSellPoliciesRequestInterruptionPolicy added in v0.1.41

type ListFlavorSellPoliciesRequestInterruptionPolicy struct {
	// contains filtered or unexported fields
}

func (ListFlavorSellPoliciesRequestInterruptionPolicy) MarshalJSON added in v0.1.41

func (*ListFlavorSellPoliciesRequestInterruptionPolicy) UnmarshalJSON added in v0.1.41

func (ListFlavorSellPoliciesRequestInterruptionPolicy) Value added in v0.1.41

type ListFlavorSellPoliciesRequestInterruptionPolicyEnum added in v0.1.41

type ListFlavorSellPoliciesRequestInterruptionPolicyEnum struct {
	IMMEDIATE ListFlavorSellPoliciesRequestInterruptionPolicy
	DELAY     ListFlavorSellPoliciesRequestInterruptionPolicy
}

func GetListFlavorSellPoliciesRequestInterruptionPolicyEnum added in v0.1.41

func GetListFlavorSellPoliciesRequestInterruptionPolicyEnum() ListFlavorSellPoliciesRequestInterruptionPolicyEnum

type ListFlavorSellPoliciesRequestSellMode added in v0.1.41

type ListFlavorSellPoliciesRequestSellMode struct {
	// contains filtered or unexported fields
}

func (ListFlavorSellPoliciesRequestSellMode) MarshalJSON added in v0.1.41

func (c ListFlavorSellPoliciesRequestSellMode) MarshalJSON() ([]byte, error)

func (*ListFlavorSellPoliciesRequestSellMode) UnmarshalJSON added in v0.1.41

func (c *ListFlavorSellPoliciesRequestSellMode) UnmarshalJSON(b []byte) error

func (ListFlavorSellPoliciesRequestSellMode) Value added in v0.1.41

type ListFlavorSellPoliciesRequestSellModeEnum added in v0.1.41

func GetListFlavorSellPoliciesRequestSellModeEnum added in v0.1.41

func GetListFlavorSellPoliciesRequestSellModeEnum() ListFlavorSellPoliciesRequestSellModeEnum

type ListFlavorSellPoliciesRequestSellStatus added in v0.1.41

type ListFlavorSellPoliciesRequestSellStatus struct {
	// contains filtered or unexported fields
}

func (ListFlavorSellPoliciesRequestSellStatus) MarshalJSON added in v0.1.41

func (c ListFlavorSellPoliciesRequestSellStatus) MarshalJSON() ([]byte, error)

func (*ListFlavorSellPoliciesRequestSellStatus) UnmarshalJSON added in v0.1.41

func (c *ListFlavorSellPoliciesRequestSellStatus) UnmarshalJSON(b []byte) error

func (ListFlavorSellPoliciesRequestSellStatus) Value added in v0.1.41

type ListFlavorSellPoliciesRequestSellStatusEnum added in v0.1.41

type ListFlavorSellPoliciesRequestSellStatusEnum struct {
	AVAILABLE ListFlavorSellPoliciesRequestSellStatus
	SELLOUT   ListFlavorSellPoliciesRequestSellStatus
}

func GetListFlavorSellPoliciesRequestSellStatusEnum added in v0.1.41

func GetListFlavorSellPoliciesRequestSellStatusEnum() ListFlavorSellPoliciesRequestSellStatusEnum

type ListFlavorSellPoliciesResponse added in v0.1.41

type ListFlavorSellPoliciesResponse struct {

	// 云服务器规格销售策略数量。
	Count *int32 `json:"count,omitempty"`

	// 云服务器规格销售策略。
	SellPolicies   *[]ListFlavorSellPoliciesResult `json:"sell_policies,omitempty"`
	HttpStatusCode int                             `json:"-"`
}

ListFlavorSellPoliciesResponse Response Object

func (ListFlavorSellPoliciesResponse) String added in v0.1.41

type ListFlavorSellPoliciesResult added in v0.1.41

type ListFlavorSellPoliciesResult struct {

	// 云服务器规格的索引。
	Id int32 `json:"id"`

	// 云服务器规格的ID。
	FlavorId string `json:"flavor_id"`

	// 云服务器规格的售卖状态。  sellout:售罄。 available:可用。
	SellStatus string `json:"sell_status"`

	// 云服务器规格的可用区。
	AvailabilityZoneId string `json:"availability_zone_id"`

	// 云服务器规格的付费模式。  - postPaid:按需计费实例。 - prePaid:包年/包月计费实例。 - spot:竞价实例。 - ri:预留实例。
	SellMode string `json:"sell_mode"`

	SpotOptions *FlavorSpotOptions `json:"spot_options,omitempty"`
}

func (ListFlavorSellPoliciesResult) String added in v0.1.41

type ListFlavorsRequest

type ListFlavorsRequest struct {

	// 可用区,需要指定可用区(AZ)的名称或者ID或者code。  可通过接口 [查询可用区列表接口](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=ECS&api=NovaListAvailabilityZones) 获取,也可参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)获取。
	AvailabilityZone *string `json:"availability_zone,omitempty"`
}

ListFlavorsRequest Request Object

func (ListFlavorsRequest) String

func (o ListFlavorsRequest) String() string

type ListFlavorsResponse

type ListFlavorsResponse struct {

	// 云服务器规格列表。
	Flavors        *[]Flavor `json:"flavors,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListFlavorsResponse Response Object

func (ListFlavorsResponse) String

func (o ListFlavorsResponse) String() string

type ListResizeFlavorsRequest

type ListResizeFlavorsRequest struct {

	// 进行规格切换的云服务器ID,UUID格式。(instance_uuid,source_flavor_id and source_flavor_name 不能都为空)
	InstanceUuid *string `json:"instance_uuid,omitempty"`

	// 单页面可显示的flavor条数最大值,默认是1000。
	Limit *int32 `json:"limit,omitempty"`

	// 以单页最后一条flavor的ID作为分页标记。
	Marker *string `json:"marker,omitempty"`

	// 升序/降序排序,默认值为:asc。  取值范围:  - asc:表示升序。 - desc:表示降序
	SortDir *ListResizeFlavorsRequestSortDir `json:"sort_dir,omitempty"`

	// 排序字段。默认值为“flavorid”。  key的取值范围:  - flavorid:表示规格ID。 - name:表示规格名称。 - memory_mb:表示内存大小。 - vcpus:表示CPU大小。 - root_gb:表示系统盘大小。
	SortKey *ListResizeFlavorsRequestSortKey `json:"sort_key,omitempty"`

	// 进行规格切换的云服务器源规格ID。(instance_uuid,source_flavor_id and source_flavor_name 不能都为空)
	SourceFlavorId *string `json:"source_flavor_id,omitempty"`

	// 进行规格切换的云服务器源规格名称。(instance_uuid,source_flavor_id and source_flavor_name 不能都为空)
	SourceFlavorName *string `json:"source_flavor_name,omitempty"`
}

ListResizeFlavorsRequest Request Object

func (ListResizeFlavorsRequest) String

func (o ListResizeFlavorsRequest) String() string

type ListResizeFlavorsRequestSortDir

type ListResizeFlavorsRequestSortDir struct {
	// contains filtered or unexported fields
}

func (ListResizeFlavorsRequestSortDir) MarshalJSON

func (c ListResizeFlavorsRequestSortDir) MarshalJSON() ([]byte, error)

func (*ListResizeFlavorsRequestSortDir) UnmarshalJSON

func (c *ListResizeFlavorsRequestSortDir) UnmarshalJSON(b []byte) error

func (ListResizeFlavorsRequestSortDir) Value added in v0.0.90

type ListResizeFlavorsRequestSortDirEnum

type ListResizeFlavorsRequestSortDirEnum struct {
	ASC  ListResizeFlavorsRequestSortDir
	DESC ListResizeFlavorsRequestSortDir
}

func GetListResizeFlavorsRequestSortDirEnum

func GetListResizeFlavorsRequestSortDirEnum() ListResizeFlavorsRequestSortDirEnum

type ListResizeFlavorsRequestSortKey

type ListResizeFlavorsRequestSortKey struct {
	// contains filtered or unexported fields
}

func (ListResizeFlavorsRequestSortKey) MarshalJSON

func (c ListResizeFlavorsRequestSortKey) MarshalJSON() ([]byte, error)

func (*ListResizeFlavorsRequestSortKey) UnmarshalJSON

func (c *ListResizeFlavorsRequestSortKey) UnmarshalJSON(b []byte) error

func (ListResizeFlavorsRequestSortKey) Value added in v0.0.90

type ListResizeFlavorsResponse

type ListResizeFlavorsResponse struct {

	// 云服务器规格列表。
	Flavors        *[]ListResizeFlavorsResult `json:"flavors,omitempty"`
	HttpStatusCode int                        `json:"-"`
}

ListResizeFlavorsResponse Response Object

func (ListResizeFlavorsResponse) String

func (o ListResizeFlavorsResponse) String() string

type ListResizeFlavorsResult

type ListResizeFlavorsResult struct {

	// 云服务器规格的ID。
	Id string `json:"id"`

	// 云服务器规格的名称。
	Name string `json:"name"`

	// 云服务器规格对应的CPU核数。
	Vcpus string `json:"vcpus"`

	// 云服务器规格对应的内存大小,单位为MB。
	Ram int32 `json:"ram"`

	// 云服务器规格对应要求的系统盘大小。  当前未使用该参数,缺省值为0。
	Disk string `json:"disk"`

	// 云服务器规格对应要求的交换分区大小。  当前未使用该参数,缺省值为\"\"。
	Swap string `json:"swap"`

	// 扩展属性,临时盘大小。  当前未使用该参数,缺省值为0
	OSFLVEXTDATAephemeral int32 `json:"OS-FLV-EXT-DATA:ephemeral"`

	// 扩展属性,该云服务器规格是否禁用。  当前未使用该参数,缺省值为false。
	OSFLVDISABLEDdisabled bool `json:"OS-FLV-DISABLED:disabled"`

	// 云服务器可使用网络带宽与网络硬件带宽的比例。  当前未使用该参数,缺省值为1.0。
	RxtxFactor float32 `json:"rxtx_factor"`

	// 云服务器可使用网络带宽的软限制。  当前未使用该参数,缺省值为null。
	RxtxQuota string `json:"rxtx_quota"`

	//   云服务器可使用网络带宽的硬限制。  当前未使用该参数,缺省值为null。
	RxtxCap string `json:"rxtx_cap"`

	// 扩展属性,flavor是否给所有租户使用。  - true:表示给所有租户使用。 - false:表示给指定租户使用。  缺省值为true。
	OsFlavorAccessisPublic bool `json:"os-flavor-access:is_public"`

	// 规格相关快捷链接地址。
	Links []FlavorLink `json:"links"`

	ExtraSpecs *FlavorExtraSpec `json:"extra_specs"`

	// 预留属性。
	InstanceQuota *interface{} `json:"instance_quota"`
}

ListResizeFlavorsResult 云服务器规格。

func (ListResizeFlavorsResult) String

func (o ListResizeFlavorsResult) String() string

type ListServerBlockDevicesRequest

type ListServerBlockDevicesRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`
}

ListServerBlockDevicesRequest Request Object

func (ListServerBlockDevicesRequest) String

type ListServerBlockDevicesResponse

type ListServerBlockDevicesResponse struct {
	AttachableQuantity *BlockDeviceAttachableQuantity `json:"attachableQuantity,omitempty"`

	// 云服务器挂载信息列表。
	VolumeAttachments *[]ServerBlockDevice `json:"volumeAttachments,omitempty"`
	HttpStatusCode    int                  `json:"-"`
}

ListServerBlockDevicesResponse Response Object

func (ListServerBlockDevicesResponse) String

type ListServerGroupsPageInfoResult

type ListServerGroupsPageInfoResult struct {

	//
	NextMarker *string `json:"next_marker,omitempty"`
}

func (ListServerGroupsPageInfoResult) String

type ListServerGroupsRequest

type ListServerGroupsRequest struct {

	// 查询返回server group数量限制。
	Limit *int32 `json:"limit,omitempty"`

	// 从marker指定的server group的下一条数据开始查询。
	Marker *string `json:"marker,omitempty"`
}

ListServerGroupsRequest Request Object

func (ListServerGroupsRequest) String

func (o ListServerGroupsRequest) String() string

type ListServerGroupsResponse

type ListServerGroupsResponse struct {

	// 弹性云服务器组信息
	ServerGroups *[]ListServerGroupsResult `json:"server_groups,omitempty"`

	PageInfo       *ListServerGroupsPageInfoResult `json:"page_info,omitempty"`
	HttpStatusCode int                             `json:"-"`
}

ListServerGroupsResponse Response Object

func (ListServerGroupsResponse) String

func (o ListServerGroupsResponse) String() string

type ListServerGroupsResult

type ListServerGroupsResult struct {

	// 云服务器组UUID。
	Id string `json:"id"`

	// 云服务器组中包含的云服务器列表。
	Members []string `json:"members"`

	// 云服务器组元数据。
	Metadata map[string]string `json:"metadata"`

	// 云服务器组名称。
	Name string `json:"name"`

	// 与服务器组关联的策略名称列表。当前有效的策略名称为:  anti-affinity -此组中的服务器必须安排到不同的主机;  affinity -此组中的服务器必须安排在同一主机上;  soft-anti-affinity –如果可能, 应将此组中的服务器安排到不同的主机, 但如果无法实现, 则仍应安排它们, 而不是导致生成失败;  soft-affinity -如果可能, 应将此组中的服务器安排在同一主机上, 但如果无法实现, 则仍应安排它们, 而不是导致生成失败。
	Policies []string `json:"policies"`
}

ListServerGroupsResult

func (ListServerGroupsResult) String

func (o ListServerGroupsResult) String() string

type ListServerInterfacesRequest

type ListServerInterfacesRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`
}

ListServerInterfacesRequest Request Object

func (ListServerInterfacesRequest) String

type ListServerInterfacesResponse

type ListServerInterfacesResponse struct {
	AttachableQuantity *InterfaceAttachableQuantity `json:"attachableQuantity,omitempty"`

	// 云服务器网卡信息列表
	InterfaceAttachments *[]InterfaceAttachment `json:"interfaceAttachments,omitempty"`
	HttpStatusCode       int                    `json:"-"`
}

ListServerInterfacesResponse Response Object

func (ListServerInterfacesResponse) String

type ListServerTagsRequest added in v0.0.64

type ListServerTagsRequest struct {
}

ListServerTagsRequest Request Object

func (ListServerTagsRequest) String added in v0.0.64

func (o ListServerTagsRequest) String() string

type ListServerTagsResponse added in v0.0.64

type ListServerTagsResponse struct {

	// 标签列表
	Tags           *[]ProjectTag `json:"tags,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ListServerTagsResponse Response Object

func (ListServerTagsResponse) String added in v0.0.64

func (o ListServerTagsResponse) String() string

type ListServersByTagRequest added in v0.0.104

type ListServersByTagRequest struct {
	Body *ListServersByTagRequestBody `json:"body,omitempty"`
}

ListServersByTagRequest Request Object

func (ListServersByTagRequest) String added in v0.0.104

func (o ListServersByTagRequest) String() string

type ListServersByTagRequestBody added in v0.0.104

type ListServersByTagRequestBody struct {

	// 值为filter:表示按标签过滤弹性云服务器,返回符合条件的云服务器列表。
	Action string `json:"action"`

	// 查询返回的云服务器数量限制,最多为1000,不能为负数。  - 如果action的值为count时,此参数无效。 - 如果action的值为filter时,limit必填,取值范围[0-1000],如果不传值,系统默认limit值为1000。
	Limit *string `json:"limit,omitempty"`

	// 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0。  查询第一页数据时,可以不传入此参数。  - 如果action的值为count,此参数无效。 - 如果action的值为filter时,必填,如果用户不传值,系统默认offset值为0。
	Offset *string `json:"offset,omitempty"`

	// 查询包含所有指定标签的弹性云服务器。  - 最多包含10个key,每个key下面的value最多10个。 - 结构体不能缺失。 - key不能为空或者空字符串。 - key不能重复。 - 同一个key中values不能重复。
	Tags *[]ServerTags `json:"tags,omitempty"`

	// 查询不包含所有指定标签的弹性云服务器。  - 最多包含10个key,每个key下面的value最多10个。 - 结构体不能缺失。 - key不能为空或者空字符串。 - key不能重复。 - 同一个key中values不能重复。
	NotTags *[]ServerTags `json:"not_tags,omitempty"`

	// 搜索字段,用于按条件搜索弹性云服务器。  当前仅支持按resource_name进行搜索
	Matches *[]ServerTagMatch `json:"matches,omitempty"`
}

ListServersByTagRequestBody This is a auto create Body Object

func (ListServersByTagRequestBody) String added in v0.0.104

type ListServersByTagResponse added in v0.0.104

type ListServersByTagResponse struct {

	// 返回的云服务器列表。
	Resources *[]ServerResource `json:"resources,omitempty"`

	// 总记录数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListServersByTagResponse Response Object

func (ListServersByTagResponse) String added in v0.0.104

func (o ListServersByTagResponse) String() string

type ListServersDetailsRequest

type ListServersDetailsRequest struct {

	// 查询绑定某个企业项目的弹性云服务器。  若需要查询当前用户所有企业项目绑定的弹性云服务,请传参all_granted_eps。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 云服务器规格ID,已上线的规格请参见《弹性云服务器用户指南》的“实例和应用场景”章节。
	Flavor *string `json:"flavor,omitempty"`

	// IPv4地址过滤结果,匹配规则为模糊匹配。
	Ip *string `json:"ip,omitempty"`

	// 查询返回云服务器当前页面的大小。每页默认值是25,最多返回1000台云服务器的信息。
	Limit *int32 `json:"limit,omitempty"`

	// 云服务器名称,匹配规则为模糊匹配。
	Name *string `json:"name,omitempty"`

	// 查询tag字段中不包含该值的云服务器。
	NotTags *string `json:"not-tags,omitempty"`

	// 页码。 当前页面数,默认为1,取值范围大于等于0。 当取值为0时,系统默认返回第1页,与取值为1时相同。 建议设置该参数大于等于1。
	Offset *int32 `json:"offset,omitempty"`

	// 批量创建弹性云服务器时,指定返回的ID,用于查询本次批量创建的弹性云服务器。
	ReservationId *string `json:"reservation_id,omitempty"`

	// 云服务器状态。  取值范围:  ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE  只有管理员可以使用“deleted”状态过滤查询已经删除的弹性云服务器。  弹性云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)
	Status *string `json:"status,omitempty"`

	// 查询tag字段中包含该值的云服务器。
	Tags *string `json:"tags,omitempty"`

	// IPv4地址过滤结果,匹配规则为精确匹配。
	IpEq *string `json:"ip_eq,omitempty"`

	// 云服务器ID,格式为UUID,匹配规则为精确匹配  示例: server_id={id1},{id2}  说明: 在使用server_id作为过滤条件时,不能同时使用其他过滤条件。如果同时指定server_id及其他过滤条件,则以server_id条件为准,其他过滤条件会被忽略 当server_id中含有不存在的云服务器ID时,返回的响应参数中该云服务器ID对应的servers结构体中除了id和fault其它字段均为null 为了避免API的URI过长,建议一次查询的server_id个数不超过100个
	ServerId *string `json:"server_id,omitempty"`
}

ListServersDetailsRequest Request Object

func (ListServersDetailsRequest) String

func (o ListServersDetailsRequest) String() string

type ListServersDetailsResponse

type ListServersDetailsResponse struct {

	// 弹性云服务器的列表总数。
	Count *int32 `json:"count,omitempty"`

	// 弹性云服务器详情列表,具体参照-查询云服务器详情接口。查询级别不同,返回的详情不同。
	Servers        *[]ServerDetail `json:"servers,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ListServersDetailsResponse Response Object

func (ListServersDetailsResponse) String

type MigrateServerOption added in v0.0.64

type MigrateServerOption struct {

	// 专属主机ID。 当弹性云服务器从公共资源池迁移至专属主机上,或者弹性云服务器在专属主机之间迁移时,该字段生效。
	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`
}

MigrateServerOption 冷迁移云服务器请求结构

func (MigrateServerOption) String added in v0.0.64

func (o MigrateServerOption) String() string

type MigrateServerRequest added in v0.0.64

type MigrateServerRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *MigrateServerRequestBody `json:"body,omitempty"`
}

MigrateServerRequest Request Object

func (MigrateServerRequest) String added in v0.0.64

func (o MigrateServerRequest) String() string

type MigrateServerRequestBody added in v0.0.64

type MigrateServerRequestBody struct {
	Migrate *MigrateServerOption `json:"migrate"`
}

MigrateServerRequestBody This is a auto create Body Object

func (MigrateServerRequestBody) String added in v0.0.64

func (o MigrateServerRequestBody) String() string

type MigrateServerResponse added in v0.0.64

type MigrateServerResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

MigrateServerResponse Response Object

func (MigrateServerResponse) String added in v0.0.64

func (o MigrateServerResponse) String() string

type NovaAddSecurityGroupOption

type NovaAddSecurityGroupOption struct {

	// 弹性云服务器添加的安全组名称,会对云服务器中配置的网卡生效。
	Name string `json:"name"`
}

NovaAddSecurityGroupOption

func (NovaAddSecurityGroupOption) String

type NovaAssociateSecurityGroupRequest

type NovaAssociateSecurityGroupRequest struct {

	// 弹性云服务器ID。
	ServerId string `json:"server_id"`

	Body *NovaAssociateSecurityGroupRequestBody `json:"body,omitempty"`
}

NovaAssociateSecurityGroupRequest Request Object

func (NovaAssociateSecurityGroupRequest) String

type NovaAssociateSecurityGroupRequestBody

type NovaAssociateSecurityGroupRequestBody struct {
	AddSecurityGroup *NovaAddSecurityGroupOption `json:"addSecurityGroup"`
}

NovaAssociateSecurityGroupRequestBody This is a auto create Body Object

func (NovaAssociateSecurityGroupRequestBody) String

type NovaAssociateSecurityGroupResponse

type NovaAssociateSecurityGroupResponse struct {
	HttpStatusCode int `json:"-"`
}

NovaAssociateSecurityGroupResponse Response Object

func (NovaAssociateSecurityGroupResponse) String

type NovaAttachInterfaceFixedIp added in v0.1.39

type NovaAttachInterfaceFixedIp struct {

	// IP地址。
	IpAddress *string `json:"ip_address,omitempty"`
}

NovaAttachInterfaceFixedIp

func (NovaAttachInterfaceFixedIp) String added in v0.1.39

type NovaAttachInterfaceOption added in v0.1.39

type NovaAttachInterfaceOption struct {

	// 私有IP。  有port_id时,该参数不起作用,并且有该参数时,必须有net_id。  只有列表中第一个元素有效。传入两个及以上元素会报错。
	FixedIps *[]NovaAttachInterfaceFixedIp `json:"fixed_ips,omitempty"`

	//   Network ID。  有port_id时,该参数不起作用。
	NetId *string `json:"net_id,omitempty"`

	//   Port ID。  port_id和net_id不能同时传入。
	PortId *string `json:"port_id,omitempty"`
}

NovaAttachInterfaceOption

func (NovaAttachInterfaceOption) String added in v0.1.39

func (o NovaAttachInterfaceOption) String() string

type NovaAttachInterfaceRequest added in v0.1.39

type NovaAttachInterfaceRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *NovaAttachInterfaceRequestBody `json:"body,omitempty"`
}

NovaAttachInterfaceRequest Request Object

func (NovaAttachInterfaceRequest) String added in v0.1.39

type NovaAttachInterfaceRequestBody added in v0.1.39

type NovaAttachInterfaceRequestBody struct {
	InterfaceAttachment *NovaAttachInterfaceOption `json:"interfaceAttachment"`
}

NovaAttachInterfaceRequestBody This is a auto create Body Object

func (NovaAttachInterfaceRequestBody) String added in v0.1.39

type NovaAttachInterfaceResponse added in v0.1.39

type NovaAttachInterfaceResponse struct {
	InterfaceAttachment *NovaServerInterfaceDetail `json:"interfaceAttachment,omitempty"`
	HttpStatusCode      int                        `json:"-"`
}

NovaAttachInterfaceResponse Response Object

func (NovaAttachInterfaceResponse) String added in v0.1.39

type NovaAvailabilityZone

type NovaAvailabilityZone struct {

	// 该字段的值为null。
	Hosts []string `json:"hosts"`

	// 可用域的名称。
	ZoneName string `json:"zoneName"`

	ZoneState *NovaAvailabilityZoneState `json:"zoneState"`
}

NovaAvailabilityZone 可用域信息

func (NovaAvailabilityZone) String

func (o NovaAvailabilityZone) String() string

type NovaAvailabilityZoneState

type NovaAvailabilityZoneState struct {

	// 可用域状态。
	Available bool `json:"available"`
}

NovaAvailabilityZoneState 可用域的状态

func (NovaAvailabilityZoneState) String

func (o NovaAvailabilityZoneState) String() string

type NovaCreateKeypairOption

type NovaCreateKeypairOption struct {

	// 导入的公钥信息。  建议导入的公钥长度不大于1024字节。  说明:  - 长度超过1024字节会导致云服务器注入该密钥失败。
	PublicKey *string `json:"public_key,omitempty"`

	// 密钥类型,值为“ssh”或“x509”。  说明:  - 微版本2.2支持。
	Type *NovaCreateKeypairOptionType `json:"type,omitempty"`

	// 密钥名称。  新创建的密钥名称不能和已有密钥名称相同。
	Name string `json:"name"`

	// 密钥的用户ID。  说明:  - 微版本2.10支持。
	UserId *string `json:"user_id,omitempty"`
}

NovaCreateKeypairOption

func (NovaCreateKeypairOption) String

func (o NovaCreateKeypairOption) String() string

type NovaCreateKeypairOptionType

type NovaCreateKeypairOptionType struct {
	// contains filtered or unexported fields
}

func (NovaCreateKeypairOptionType) MarshalJSON

func (c NovaCreateKeypairOptionType) MarshalJSON() ([]byte, error)

func (*NovaCreateKeypairOptionType) UnmarshalJSON

func (c *NovaCreateKeypairOptionType) UnmarshalJSON(b []byte) error

func (NovaCreateKeypairOptionType) Value added in v0.0.90

type NovaCreateKeypairOptionTypeEnum

type NovaCreateKeypairOptionTypeEnum struct {
	SSH  NovaCreateKeypairOptionType
	X509 NovaCreateKeypairOptionType
}

func GetNovaCreateKeypairOptionTypeEnum

func GetNovaCreateKeypairOptionTypeEnum() NovaCreateKeypairOptionTypeEnum

type NovaCreateKeypairRequest

type NovaCreateKeypairRequest struct {

	// 微版本头
	OpenStackAPIVersion *string `json:"OpenStack-API-Version,omitempty"`

	Body *NovaCreateKeypairRequestBody `json:"body,omitempty"`
}

NovaCreateKeypairRequest Request Object

func (NovaCreateKeypairRequest) String

func (o NovaCreateKeypairRequest) String() string

type NovaCreateKeypairRequestBody

type NovaCreateKeypairRequestBody struct {
	Keypair *NovaCreateKeypairOption `json:"keypair"`
}

NovaCreateKeypairRequestBody This is a auto create Body Object

func (NovaCreateKeypairRequestBody) String

type NovaCreateKeypairResponse

type NovaCreateKeypairResponse struct {
	Keypair        *NovaKeypair `json:"keypair,omitempty"`
	HttpStatusCode int          `json:"-"`
}

NovaCreateKeypairResponse Response Object

func (NovaCreateKeypairResponse) String

func (o NovaCreateKeypairResponse) String() string

type NovaCreateServersOption

type NovaCreateServersOption struct {

	// 弹性云服务器自动删除时间。  时间格式例如:2020-01-19T03:30:52Z
	AutoTerminateTime *string `json:"auto_terminate_time,omitempty"`

	// 镜像ID或者镜像资源的URL。  - 镜像ID示例:3b8d6fef-af77-42ab-b8b7-5a7f0f0af8f2 - 镜像URL示例:http://glance.openstack.example.com/images/3b8d6fef-af77-42ab-b8b7-5a7f0f0af8f2 - 指定卷作为系统卷创弹性云服务器时,不需填写该参数;非卷创建弹性云服务器时需填写有效的UUID参数,否则API将返回400错误。  > 说明: > - 对于部分规格的弹性云服务器,不能支持公有云平台提供的所有公共镜像。具体规格的镜像支持列表,请登录管理控制台,以“创建弹性云服务器”页面系统自动过滤的镜像信息为准,并在镜像服务页面查询镜像ID。 > - 如果创建失败,请尝试修改参数配置。
	ImageRef *string `json:"imageRef,omitempty"`

	// 规格ID或URL。
	FlavorRef string `json:"flavorRef"`

	// 弹性云服务器名称,长度大于0小于256字节。  > 说明: >  > 云服务器内部主机名(hostname)命名规则遵循 [RFC 952](https://tools.ietf.org/html/rfc952)和[RFC 1123](https://tools.ietf.org/html/rfc1123)命名规范,建议使用a-zA-z或0-9以及中划线\"-\"组成的名称命名,\"_\"将在弹性云服务器内部默认转化为\"-\"。
	Name string `json:"name"`

	// 用户自定义字段键值对。  > - key的长度大于0小于256字节 > - value的长度大于等于0小于256字节   系统预留字段  1. admin_pass:弹性云服务器密码        Windows弹性云服务器Administrator用户的密码。     > 说明:     > 创建密码方式鉴权的Windows弹性云服务器时为必选字段。
	Metadata map[string]string `json:"metadata,omitempty"`

	// 如果需要使用密码方式登录云服务器,可使用adminPass字段指定云服务器管理员帐户初始登录密码。其中,Linux管理员帐户为root,Windows管理员帐户为Administrator。
	AdminPass *string `json:"adminPass,omitempty"`

	// 扩展属性,指定弹性云服务器存储设备的v2接口。是存储资源的新版本接口,指定卷场景不能批创弹性云服务器。  裸金属服务器场景不支持。
	BlockDeviceMappingV2 *[]NovaServerBlockDeviceMapping `json:"block_device_mapping_v2,omitempty"`

	// 扩展属性,开启后在弹性云服务器创建时挂载config_drive向弹性云服务器内部传递信息。  当前不支持该功能。
	ConfigDrive *string `json:"config_drive,omitempty"`

	// 扩展属性,指定弹性云服务器的安全组,默认为default。  指定network创建弹性云服务器时该字段有效。对于已存在端口,安全组请求无效。
	SecurityGroups *[]NovaServerSecurityGroup `json:"security_groups,omitempty"`

	// 扩展属性,指定弹性云服务器的网卡信息。有多个租户网络时必须指定。
	Networks []NovaServerNetwork `json:"networks"`

	// 扩展属性,指定keypair的名称。
	KeyName *string `json:"key_name,omitempty"`

	// 扩展属性,字符串长度小于65535,且必须是base64加密的。
	UserData *string `json:"user_data,omitempty"`

	// 扩展属性,指定弹性云服务器所在的AZ。  创建弹性云服务器时需要填入该参数。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 扩展属性,是否支持返回批量创建弹性云服务器的reservation_id。通过返回的reservation_id,可以过滤查询到本次创建的弹性云服务器。  - true,返回reservation_id。 - false,返回弹性云服务器信息。  > 说明: >  > 批量创建弹性云服务器时,支持使用该字段。
	ReturnReservationId *bool `json:"return_reservation_id,omitempty"`

	// 扩展属性,表示创建弹性云服务器最小数量。  默认值为1。  > 说明: >  > 指定镜像创建弹性云服务器时,支持使用该字段。
	MinCount *int32 `json:"min_count,omitempty"`

	// 表示创建弹性云服务器最大数量。  默认值与min_count的取值一致。  约束:  参数max_count的取值必须大于参数min_count的取值。  当min_count、max_count同时设置时,创弹性云服务器的数量取决于服务器的资源情况。根据资源情况,在min_count至max_count的取值范围内创建最大数量的弹性云服务器。  - 说明: -  - 指定镜像创建弹性云服务器时,支持使用该字段。
	MaxCount *int32 `json:"max_count,omitempty"`

	// diskConfig的方式,取值为AUTO、MANUAL。  - MANUAL,镜像空间不会扩展。 - AUTO,系统盘镜像空间会自动扩展为与flavor大小一致。  当前不支持该功能。
	OSDCFdiskConfig *NovaCreateServersOptionOSDCFdiskConfig `json:"OS-DCF:diskConfig,omitempty"`

	// 扩展属性,表示弹性云服务器描述信息,默认为空字符串。  - 长度最多允许85个字符。 - 不能包含“<” 和 “>”等特殊符号。  > 说明: >  > - V2接口不支持该字段。 > - V2.1接口支持该字段,此时,需在请求Header中增加一组Key-Value值。其中,Key固定为“X-OpenStack-Nova-API-Version” ,Value为微版本号,当Value的值为2.19时,支持使用该字段。
	Description *string `json:"description,omitempty"`
}

NovaCreateServersOption 弹性云服务器信息

func (NovaCreateServersOption) String

func (o NovaCreateServersOption) String() string

type NovaCreateServersOptionOSDCFdiskConfig

type NovaCreateServersOptionOSDCFdiskConfig struct {
	// contains filtered or unexported fields
}

func (NovaCreateServersOptionOSDCFdiskConfig) MarshalJSON

func (c NovaCreateServersOptionOSDCFdiskConfig) MarshalJSON() ([]byte, error)

func (*NovaCreateServersOptionOSDCFdiskConfig) UnmarshalJSON

func (c *NovaCreateServersOptionOSDCFdiskConfig) UnmarshalJSON(b []byte) error

func (NovaCreateServersOptionOSDCFdiskConfig) Value added in v0.0.90

type NovaCreateServersOptionOSDCFdiskConfigEnum

type NovaCreateServersOptionOSDCFdiskConfigEnum struct {
	AUTO   NovaCreateServersOptionOSDCFdiskConfig
	MANUAL NovaCreateServersOptionOSDCFdiskConfig
}

func GetNovaCreateServersOptionOSDCFdiskConfigEnum

func GetNovaCreateServersOptionOSDCFdiskConfigEnum() NovaCreateServersOptionOSDCFdiskConfigEnum

type NovaCreateServersRequest

type NovaCreateServersRequest struct {

	// 微版本头
	OpenStackAPIVersion *string `json:"OpenStack-API-Version,omitempty"`

	Body *NovaCreateServersRequestBody `json:"body,omitempty"`
}

NovaCreateServersRequest Request Object

func (NovaCreateServersRequest) String

func (o NovaCreateServersRequest) String() string

type NovaCreateServersRequestBody

type NovaCreateServersRequestBody struct {
	Server *NovaCreateServersOption `json:"server"`

	OsschedulerHints *NovaCreateServersSchedulerHint `json:"os:scheduler_hints,omitempty"`
}

NovaCreateServersRequestBody This is a auto create Body Object

func (NovaCreateServersRequestBody) String

type NovaCreateServersResponse

type NovaCreateServersResponse struct {
	Server         *NovaCreateServersResult `json:"server,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

NovaCreateServersResponse Response Object

func (NovaCreateServersResponse) String

func (o NovaCreateServersResponse) String() string

type NovaCreateServersResult

type NovaCreateServersResult struct {

	// 弹性云服务器uuid。
	Id string `json:"id"`

	// 弹性云服务器URI自描述信息。
	Links []NovaLink `json:"links"`

	// 弹性云服务器所在安全组。
	SecurityGroups []NovaServerSecurityGroup `json:"security_groups"`

	// diskConfig方式。  - MANUAL,镜像空间不会扩展。 - AUTO,系统盘镜像空间会自动扩展为与flavor大小一致。
	OSDCFdiskConfig NovaCreateServersResultOSDCFdiskConfig `json:"OS-DCF:diskConfig"`

	// 通过返回的reservation_id,可以过滤查询到本次创建的弹性云服务器。  > 说明: >  > 批量创建弹性云服务器时,支持使用该字段。
	ReservationId *string `json:"reservation_id,omitempty"`

	// Windows弹性云服务器Administrator用户的密码。
	AdminPass string `json:"adminPass"`
}

NovaCreateServersResult

func (NovaCreateServersResult) String

func (o NovaCreateServersResult) String() string

type NovaCreateServersResultOSDCFdiskConfig

type NovaCreateServersResultOSDCFdiskConfig struct {
	// contains filtered or unexported fields
}

func (NovaCreateServersResultOSDCFdiskConfig) MarshalJSON

func (c NovaCreateServersResultOSDCFdiskConfig) MarshalJSON() ([]byte, error)

func (*NovaCreateServersResultOSDCFdiskConfig) UnmarshalJSON

func (c *NovaCreateServersResultOSDCFdiskConfig) UnmarshalJSON(b []byte) error

func (NovaCreateServersResultOSDCFdiskConfig) Value added in v0.0.90

type NovaCreateServersResultOSDCFdiskConfigEnum

type NovaCreateServersResultOSDCFdiskConfigEnum struct {
	MANUAL NovaCreateServersResultOSDCFdiskConfig
	AUTO   NovaCreateServersResultOSDCFdiskConfig
}

func GetNovaCreateServersResultOSDCFdiskConfigEnum

func GetNovaCreateServersResultOSDCFdiskConfigEnum() NovaCreateServersResultOSDCFdiskConfigEnum

type NovaCreateServersSchedulerHint

type NovaCreateServersSchedulerHint struct {

	// 反亲和性组信息。  UUID格式。
	Group *string `json:"group,omitempty"`

	// 与指定弹性云服务器满足反亲和性。   当前不支持该功能。
	DifferentHost *[]string `json:"different_host,omitempty"`

	// 与指定的弹性云服务器满足亲和性。   当前不支持该功能。
	SameHost *[]string `json:"same_host,omitempty"`

	// 将弹性云服务器scheduler到指定网段的host上,host网段的cidr。   当前不支持该功能。
	Cidr *string `json:"cidr,omitempty"`

	// 将弹性云服务器scheduler到指定网段的host上,host IP地址。   当前不支持该功能。
	BuildNearHostIp *string `json:"build_near_host_ip,omitempty"`

	// 在专属主机或共享池中创建弹性云服务器。默认为在共享池创建。 值为: shared 或dedicated。 shared:表示共享池。 dedicated:表示专属主机。 创建与查询此值均有效。
	Tenancy *string `json:"tenancy,omitempty"`

	// 专属主机ID。 此属性仅在tenancy值为dedicated时有效。 不指定此属性,系统将自动分配租户可自动放置弹性云服务器的专属主机。 创建与查询此值均有效。
	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`
}

NovaCreateServersSchedulerHint 弹性云服务器调度信息。 裸金属服务器场景不支持。

func (NovaCreateServersSchedulerHint) String

type NovaDeleteKeypairRequest

type NovaDeleteKeypairRequest struct {

	// 密钥名称。
	KeypairName string `json:"keypair_name"`
}

NovaDeleteKeypairRequest Request Object

func (NovaDeleteKeypairRequest) String

func (o NovaDeleteKeypairRequest) String() string

type NovaDeleteKeypairResponse

type NovaDeleteKeypairResponse struct {
	HttpStatusCode int `json:"-"`
}

NovaDeleteKeypairResponse Response Object

func (NovaDeleteKeypairResponse) String

func (o NovaDeleteKeypairResponse) String() string

type NovaDeleteServerRequest

type NovaDeleteServerRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`
}

NovaDeleteServerRequest Request Object

func (NovaDeleteServerRequest) String

func (o NovaDeleteServerRequest) String() string

type NovaDeleteServerResponse

type NovaDeleteServerResponse struct {
	HttpStatusCode int `json:"-"`
}

NovaDeleteServerResponse Response Object

func (NovaDeleteServerResponse) String

func (o NovaDeleteServerResponse) String() string

type NovaDisassociateSecurityGroupRequest

type NovaDisassociateSecurityGroupRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *NovaDisassociateSecurityGroupRequestBody `json:"body,omitempty"`
}

NovaDisassociateSecurityGroupRequest Request Object

func (NovaDisassociateSecurityGroupRequest) String

type NovaDisassociateSecurityGroupRequestBody

type NovaDisassociateSecurityGroupRequestBody struct {
	RemoveSecurityGroup *NovaRemoveSecurityGroupOption `json:"removeSecurityGroup"`
}

NovaDisassociateSecurityGroupRequestBody This is a auto create Body Object

func (NovaDisassociateSecurityGroupRequestBody) String

type NovaDisassociateSecurityGroupResponse

type NovaDisassociateSecurityGroupResponse struct {
	HttpStatusCode int `json:"-"`
}

NovaDisassociateSecurityGroupResponse Response Object

func (NovaDisassociateSecurityGroupResponse) String

type NovaKeypair

type NovaKeypair struct {

	// 密钥对应指纹信息。
	Fingerprint string `json:"fingerprint"`

	// 密钥名称。
	Name string `json:"name"`

	// 密钥对应publicKey信息。
	PublicKey string `json:"public_key"`

	// 密钥对应privateKey信息。  - 创建SSH密钥时,响应中包括private_key的信息。 - 导入SSH密钥时,响应中不包括private_key的信息。
	PrivateKey string `json:"private_key"`

	// 密钥所属用户ID。
	UserId string `json:"user_id"`

	// 密钥类型,默认“ssh”  微版本2.2以上支持
	Type *string `json:"type,omitempty"`
}

NovaKeypair

func (NovaKeypair) String

func (o NovaKeypair) String() string

type NovaKeypairDetail

type NovaKeypairDetail struct {

	// 密钥对应publicKey信息。
	PublicKey string `json:"public_key"`

	// 密钥名称。
	Name string `json:"name"`

	// 密钥对应指纹信息。
	Fingerprint string `json:"fingerprint"`

	// 密钥创建时间。
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 密钥删除标记。   - true,表示密钥已被删除。   - false,表示密钥未被删除。
	Deleted bool `json:"deleted"`

	// 密钥删除时间。
	DeletedAt *sdktime.SdkTime `json:"deleted_at"`

	// 密钥ID。
	Id int32 `json:"id"`

	// 密钥更新时间。
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	// 密钥所属用户信息。
	UserId string `json:"user_id"`

	// 密钥类型,默认“ssh”  微版本2.2以上支持
	Type *string `json:"type,omitempty"`
}

NovaKeypairDetail

func (NovaKeypairDetail) String

func (o NovaKeypairDetail) String() string
type NovaLink struct {

	// 相应资源的链接。
	Href string `json:"href"`

	// 有三种取值。self:自助链接包含版本链接的资源。立即链接后使用这些链接。bookmark:书签链接提供了一个永久资源的永久链接,该链接适合于长期存储。alternate:备用链接可以包含资源的替换表示形式。例如,OpenStack计算映像可能在OpenStack映像服务中有一个替代表示。
	Rel NovaLinkRel `json:"rel"`
}

NovaLink

func (NovaLink) String

func (o NovaLink) String() string

type NovaLinkRel

type NovaLinkRel struct {
	// contains filtered or unexported fields
}

func (NovaLinkRel) MarshalJSON

func (c NovaLinkRel) MarshalJSON() ([]byte, error)

func (*NovaLinkRel) UnmarshalJSON

func (c *NovaLinkRel) UnmarshalJSON(b []byte) error

func (NovaLinkRel) Value added in v0.0.90

func (c NovaLinkRel) Value() string

type NovaLinkRelEnum

type NovaLinkRelEnum struct {
	SELF        NovaLinkRel
	BOOKMARK    NovaLinkRel
	ALTERNATE   NovaLinkRel
	DESCRIBEDBY NovaLinkRel
}

func GetNovaLinkRelEnum

func GetNovaLinkRelEnum() NovaLinkRelEnum

type NovaListAvailabilityZonesRequest

type NovaListAvailabilityZonesRequest struct {
}

NovaListAvailabilityZonesRequest Request Object

func (NovaListAvailabilityZonesRequest) String

type NovaListAvailabilityZonesResponse

type NovaListAvailabilityZonesResponse struct {

	// 可用域信息。
	AvailabilityZoneInfo *[]NovaAvailabilityZone `json:"availabilityZoneInfo,omitempty"`
	HttpStatusCode       int                     `json:"-"`
}

NovaListAvailabilityZonesResponse Response Object

func (NovaListAvailabilityZonesResponse) String

type NovaListKeypairsRequest

type NovaListKeypairsRequest struct {

	// 查询返回秘钥数量限制。  在微版本2.35后支持
	Limit *int32 `json:"limit,omitempty"`

	// 从marker指定的keypair的名称的下一条数据开始查询。  在微版本2.35后支持。
	Marker *string `json:"marker,omitempty"`

	// 微版本头
	OpenStackAPIVersion *string `json:"OpenStack-API-Version,omitempty"`
}

NovaListKeypairsRequest Request Object

func (NovaListKeypairsRequest) String

func (o NovaListKeypairsRequest) String() string

type NovaListKeypairsResponse

type NovaListKeypairsResponse struct {

	// 密钥信息列表。
	Keypairs       *[]NovaListKeypairsResult `json:"keypairs,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

NovaListKeypairsResponse Response Object

func (NovaListKeypairsResponse) String

func (o NovaListKeypairsResponse) String() string

type NovaListKeypairsResult

type NovaListKeypairsResult struct {
	Keypair *NovaSimpleKeypair `json:"keypair"`
}

NovaListKeypairsResult

func (NovaListKeypairsResult) String

func (o NovaListKeypairsResult) String() string

type NovaListServerSecurityGroupsRequest

type NovaListServerSecurityGroupsRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`
}

NovaListServerSecurityGroupsRequest Request Object

func (NovaListServerSecurityGroupsRequest) String

type NovaListServerSecurityGroupsResponse

type NovaListServerSecurityGroupsResponse struct {

	// security_group列表
	SecurityGroups *[]NovaSecurityGroup `json:"security_groups,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

NovaListServerSecurityGroupsResponse Response Object

func (NovaListServerSecurityGroupsResponse) String

type NovaListServersDetailsRequest

type NovaListServersDetailsRequest struct {

	// 云服务器上次更新状态的时间戳信息。时间戳为UTC格式。
	ChangesSince *string `json:"changes-since,omitempty"`

	// 云服务器规格ID。
	Flavor *string `json:"flavor,omitempty"`

	// 镜像ID  在使用image作为条件过滤时,不能同时支持其他过滤条件和分页条件。如果同时指定image及其他条件,则以image条件为准;当条件不含image时,接口功能不受限制。
	Image *string `json:"image,omitempty"`

	// IPv4地址过滤结果,匹配规则为模糊匹配。
	Ip *string `json:"ip,omitempty"`

	// 查询返回云服务器数量限制。
	Limit *int32 `json:"limit,omitempty"`

	// 从marker指定的云服务器ID的下一条数据开始查询。
	Marker *string `json:"marker,omitempty"`

	// 云服务器名称。
	Name *string `json:"name,omitempty"`

	// 查询tag字段中不包含该值的云服务器,值为标签的Key。  > 说明: >  > 系统近期对标签功能进行了升级。如果之前添加的Tag为“Key.Value”的形式,则查询的时候需要使用“Key”来查询。 >  > 例如:之前添加的tag为“a.b”,则升级后,查询时需使用“not-tags=a”。
	NotTags *string `json:"not-tags,omitempty"`

	// 批量创建弹性云服务器时,指定返回的ID,用于查询本次批量创建的弹性云服务器。
	ReservationId *string `json:"reservation_id,omitempty"`

	// 查询结果按弹性云服务器属性排序,默认排序顺序为created_at逆序。
	SortKey *NovaListServersDetailsRequestSortKey `json:"sort_key,omitempty"`

	// 云服务器状态。  取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE  直到2.37微版本,非上面范围的status字段将返回空列表,2.38之后的微版本,将返回400错误。  云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)。
	Status *NovaListServersDetailsRequestStatus `json:"status,omitempty"`

	// 查询tag字段中包含该值的云服务器。
	Tags *string `json:"tags,omitempty"`

	// 微版本头
	OpenStackAPIVersion *string `json:"OpenStack-API-Version,omitempty"`
}

NovaListServersDetailsRequest Request Object

func (NovaListServersDetailsRequest) String

type NovaListServersDetailsRequestSortKey

type NovaListServersDetailsRequestSortKey struct {
	// contains filtered or unexported fields
}

func (NovaListServersDetailsRequestSortKey) MarshalJSON

func (c NovaListServersDetailsRequestSortKey) MarshalJSON() ([]byte, error)

func (*NovaListServersDetailsRequestSortKey) UnmarshalJSON

func (c *NovaListServersDetailsRequestSortKey) UnmarshalJSON(b []byte) error

func (NovaListServersDetailsRequestSortKey) Value added in v0.0.90

type NovaListServersDetailsRequestStatus

type NovaListServersDetailsRequestStatus struct {
	// contains filtered or unexported fields
}

func (NovaListServersDetailsRequestStatus) MarshalJSON

func (c NovaListServersDetailsRequestStatus) MarshalJSON() ([]byte, error)

func (*NovaListServersDetailsRequestStatus) UnmarshalJSON

func (c *NovaListServersDetailsRequestStatus) UnmarshalJSON(b []byte) error

func (NovaListServersDetailsRequestStatus) Value added in v0.0.90

type NovaListServersDetailsResponse

type NovaListServersDetailsResponse struct {

	// 查询云服务器信息列表。
	Servers *[]NovaServer `json:"servers,omitempty"`

	// 分页查询时,查询下一页数据链接。
	ServersLinks   *[]PageLink `json:"servers_links,omitempty"`
	HttpStatusCode int         `json:"-"`
}

NovaListServersDetailsResponse Response Object

func (NovaListServersDetailsResponse) String

type NovaListVersionsRequest added in v0.1.89

type NovaListVersionsRequest struct {
}

NovaListVersionsRequest Request Object

func (NovaListVersionsRequest) String added in v0.1.89

func (o NovaListVersionsRequest) String() string

type NovaListVersionsResponse added in v0.1.89

type NovaListVersionsResponse struct {

	// API版本信息列表
	Versions       *[]NovaVersion `json:"versions,omitempty"`
	HttpStatusCode int            `json:"-"`
}

NovaListVersionsResponse Response Object

func (NovaListVersionsResponse) String added in v0.1.89

func (o NovaListVersionsResponse) String() string

type NovaNetwork

type NovaNetwork struct {

	// IP地址。
	Addr string `json:"addr"`

	// IP地址类型,值为4或6。  4:IP地址类型是IPv4 6:IP地址类型是IPv6
	Version int32 `json:"version"`

	// 扩展属性,MAC地址。
	OSEXTIPSMACmacAddr string `json:"OS-EXT-IPS-MAC:mac_addr"`

	// 扩展属性,分配IP地址方式。
	OSEXTIPStype string `json:"OS-EXT-IPS:type"`
}

NovaNetwork

func (NovaNetwork) String

func (o NovaNetwork) String() string

type NovaRemoveSecurityGroupOption

type NovaRemoveSecurityGroupOption struct {

	// 弹性云服务器移除的安全组名称,会对云服务器中配置的网卡生效。
	Name string `json:"name"`
}

NovaRemoveSecurityGroupOption

func (NovaRemoveSecurityGroupOption) String

type NovaSecurityGroup

type NovaSecurityGroup struct {

	// 安全组描述信息,长度0-255
	Description string `json:"description"`

	// 安全组ID,UUID格式
	Id string `json:"id"`

	// 安全组名字,长度0-255
	Name string `json:"name"`

	// 租户ID或项目ID
	TenantId string `json:"tenant_id"`

	// 安全组规则列表
	Rules []NovaSecurityGroupCommonRule `json:"rules"`
}

NovaSecurityGroup

func (NovaSecurityGroup) String

func (o NovaSecurityGroup) String() string

type NovaSecurityGroupCommonGroup

type NovaSecurityGroupCommonGroup struct {

	// 对端安全组的名称
	Name *string `json:"name,omitempty"`

	// 对端安全组所属租户的租户ID
	TenantId *string `json:"tenant_id,omitempty"`
}

NovaSecurityGroupCommonGroup

func (NovaSecurityGroupCommonGroup) String

type NovaSecurityGroupCommonIpRange

type NovaSecurityGroupCommonIpRange struct {

	// 对端IP网段,cidr格式。
	Cidr *string `json:"cidr,omitempty"`
}

NovaSecurityGroupCommonIpRange

func (NovaSecurityGroupCommonIpRange) String

type NovaSecurityGroupCommonRule

type NovaSecurityGroupCommonRule struct {

	// 起始端口,范围1-65535,且不大于to_port。 ip_protocol设置为icmp时,from_port表示type,范围是0-255。
	FromPort int32 `json:"from_port"`

	Group *NovaSecurityGroupCommonGroup `json:"group"`

	// 安全组规则ID,UUID格式。
	Id string `json:"id"`

	// 协议类型或直接指定IP协议号,取值可为icmp,tcp,udp或IP协议号。
	IpProtocol string `json:"ip_protocol"`

	IpRange *NovaSecurityGroupCommonIpRange `json:"ip_range"`

	// 相关联的安全组ID,UUID格式。
	ParentGroupId string `json:"parent_group_id"`

	// 终止端口,范围1-65535,且不小于from_port。 ip_protocol设置为icmp时,to_port表示code,范围是0-255,且如果from_port为-1,to_port为-1表示任意ICMP报文。
	ToPort int32 `json:"to_port"`
}

NovaSecurityGroupCommonRule

func (NovaSecurityGroupCommonRule) String

type NovaServer

type NovaServer struct {

	// 云服务器名称。
	Name string `json:"name"`

	// 云服务器唯一标识。
	Id string `json:"id"`

	// 云服务器当前状态信息。  取值范围: ACTIVE, BUILD,DELETED,ERROR,HARD_REBOOT,MIGRATING,REBOOT,RESIZE,REVERT_RESIZE,SHELVED,SHELVED_OFFLOADED,SHUTOFF,UNKNOWN,VERIFY_RESIZE  云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)。
	Status NovaServerStatus `json:"status"`

	// 云服务器创建时间。 时间格式例如:2019-05-22T07:48:53Z
	Created string `json:"created"`

	// 云服务器上一次更新时间。时间格式例如:2019-05-22T07:48:53Z
	Updated string `json:"updated"`

	Flavor *NovaServerFlavor `json:"flavor"`

	Image *NovaServerImage `json:"image"`

	// 云服务器所属租户ID。即项目id,与project_id表示相同的概念。
	TenantId string `json:"tenant_id"`

	// SSH密钥名称。
	KeyName string `json:"key_name"`

	// 云服务器所属用户ID。
	UserId string `json:"user_id"`

	// 云服务器元数据。
	Metadata map[string]string `json:"metadata"`

	// 云服务器对应的主机ID。
	HostId string `json:"hostId"`

	// 云服务器对应的网络地址信息。
	Addresses map[string][]NovaNetwork `json:"addresses"`

	// 云服务器所属安全组列表。
	SecurityGroups []NovaServerSecurityGroup `json:"security_groups"`

	// 云服务器相关标记快捷链接信息。
	Links []NovaLink `json:"links"`

	// 扩展属性,磁盘配置方式。对镜像启动云服务器生效。  取值范围:  - AUTO: API使用单个分区构建目标磁盘大小的云服务器。 API会自动调整文件系统以适应整个分区。 - MANUAL:API使用源映像中的分区方案和文件系统构建服务器。如果目标磁盘较大,则API不分区剩余的磁盘空间。
	OSDCFdiskConfig NovaServerOSDCFdiskConfig `json:"OS-DCF:diskConfig"`

	// 扩展属性,可用分区编码。
	OSEXTAZavailabilityZone string `json:"OS-EXT-AZ:availability_zone"`

	// 扩展属性,与主机宿主名称。
	OSEXTSRVATTRhost string `json:"OS-EXT-SRV-ATTR:host"`

	// 扩展属性,hypervisor主机名。
	OSEXTSRVATTRhypervisorHostname string `json:"OS-EXT-SRV-ATTR:hypervisor_hostname"`

	// 扩展属性,云服务器实例ID。
	OSEXTSRVATTRinstanceName string `json:"OS-EXT-SRV-ATTR:instance_name"`

	// 扩展属性,云服务器电源状态。  取值范围:0,1,2,3,4  - 0 : pending - 1 : running - 2 : paused - 3 : shutdown - 4 : crashed
	OSEXTSTSpowerState int32 `json:"OS-EXT-STS:power_state"`

	// 扩展属性,云服务器任务状态。  取值范围:  SHOUTOFF, RESIZE, REBUILD, VERIFY_RESIZE, REVERT_RESIZE, PAUSED, MIGRATING, SUSPENDED, RESCUE, ERROR, DELETED,SOFT_DELETED,SHELVED,SHELVED_OFFLOADED  取值范围请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)表3。
	OSEXTSTStaskState NovaServerOSEXTSTStaskState `json:"OS-EXT-STS:task_state"`

	// 扩展属性,云服务器状态。  取值范围:  ACTIVE,BUILDING,STOPPED,RESIZED,PAUSED,SUSPENDED,RESCUED,ERROR,DELETED,SOFT_DELETED,SHELVED,SHELVED_OFFLOADED  云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)。
	OSEXTSTSvmState NovaServerOSEXTSTSvmState `json:"OS-EXT-STS:vm_state"`

	// 扩展属性,云服务器启动时间。时间格式例如:2019-05-22T07:48:19.000000
	OSSRVUSGlaunchedAt string `json:"OS-SRV-USG:launched_at"`

	// 扩展属性,云服务器关闭时间。  时间格式例如:2019-05-22T07:48:19.000000
	OSSRVUSGterminatedAt string `json:"OS-SRV-USG:terminated_at"`

	// 云服务器挂载的云磁盘信息。
	OsExtendedVolumesvolumesAttached []NovaServerVolume `json:"os-extended-volumes:volumes_attached"`

	Fault *NovaServerFault `json:"fault,omitempty"`

	// 弹性云服务器的描述信息。  微版本2.19后支持
	Description *string `json:"description,omitempty"`

	// nova-compute状态。  - UP:服务正常 - UNKNOWN:状态未知 - DOWN:服务异常 - MAINTENANCE:维护状态 - 空字符串:弹性云服务器无主机信息
	HostStatus NovaServerHostStatus `json:"host_status"`

	// 弹性云服务器的主机名。  微版本2.3后支持
	OSEXTSRVATTRhostname *string `json:"OS-EXT-SRV-ATTR:hostname,omitempty"`

	// 批量创建场景,弹性云服务器的预留ID。  微版本2.3后支持
	OSEXTSRVATTRreservationId *string `json:"OS-EXT-SRV-ATTR:reservation_id,omitempty"`

	// 批量创建场景,弹性云服务器的启动顺序。  微版本2.3后支持
	OSEXTSRVATTRlaunchIndex *int32 `json:"OS-EXT-SRV-ATTR:launch_index,omitempty"`

	// 若使用AMI格式的镜像,则表示kernel image的UUID;否则,留空。  微版本2.3后支持
	OSEXTSRVATTRkernelId *string `json:"OS-EXT-SRV-ATTR:kernel_id,omitempty"`

	// 若使用AMI格式镜像,则表示ramdisk image的UUID;否则,留空。  微版本2.3后支持
	OSEXTSRVATTRramdiskId *string `json:"OS-EXT-SRV-ATTR:ramdisk_id,omitempty"`

	// 弹性云服务器系统盘的设备名称。  微版本2.3后支持
	OSEXTSRVATTRrootDeviceName *string `json:"OS-EXT-SRV-ATTR:root_device_name,omitempty"`

	// 创建弹性云服务器时指定的user_data。  微版本2.3后支持
	OSEXTSRVATTRuserData *string `json:"OS-EXT-SRV-ATTR:user_data,omitempty"`

	// 云服务器的标签列表。  系统近期对标签功能进行了升级,升级后,返回的tag值遵循如下规则:  - key与value使用“=”连接,如“key=value”。 - 如果value为空字符串,则仅返回key。
	Tags []string `json:"tags"`

	// 当云服务器被锁时为True,否则为False。  微版本2.9后支持
	Locked *bool `json:"locked,omitempty"`

	// 预留属性。
	AccessIPv4 string `json:"accessIPv4"`

	// 预留属性。
	AccessIPv6 string `json:"accessIPv6"`

	// 预留属性。
	ConfigDrive string `json:"config_drive"`

	// 预留属性
	Progress int32 `json:"progress"`

	OsschedulerHints *NovaServerSchedulerHints `json:"os:scheduler_hints,omitempty"`
}

NovaServer

func (NovaServer) String

func (o NovaServer) String() string

type NovaServerBlockDeviceMapping

type NovaServerBlockDeviceMapping struct {

	// 卷设备的源头类型,当前只支持volume、image、snapshot、blank类型。  当使用卷创建云服务器时,source_type设置为volume;当使用镜像创建云服务器时,source_type设置为image;当使用快照创建云服务器时,source_type设置为snapshot;当创建空数据卷时,source_type设置为blank。  - 说明: -  - 当卷设备的源头类型为snapshot时,且boot_index为0,则该快照对应的云硬盘必须为系统盘。
	SourceType NovaServerBlockDeviceMappingSourceType `json:"source_type"`

	// 卷设备的目标类型,当前仅支持volume类型。  - volume:卷。 - local:本地文件,当前不支持该类型。
	DestinationType *NovaServerBlockDeviceMappingDestinationType `json:"destination_type,omitempty"`

	// local文件系统格式,例如:swap, ext4。  当前不支持该功能。
	GuestFormat *string `json:"guest_format,omitempty"`

	// 卷设备名称。  > 说明: >  > 该字段已经废弃。 >  > 用户指定的device_name不会生效,系统会默认生成一个device_name。
	DeviceName *string `json:"device_name,omitempty"`

	// 删除弹性云服务器时,是否删除卷,默认值false。  true:删除弹性云服务器时,删除卷  false:删除弹性云服务器时,不删除卷
	DeleteOnTermination *bool `json:"delete_on_termination,omitempty"`

	// 启动标识,“0”代表启动盘,“-1“代表非启动盘。  > 说明: >  > 当卷设备的源头类型全为volume时,boot_index的值有一个为0。
	BootIndex *string `json:"boot_index,omitempty"`

	// 当source_type值是volume时,uuid为卷的uuid;  当source_type值是snapshot时,uuid为快照的uuid;  当source_type值是image时,uuid为镜像的uuid;
	Uuid *string `json:"uuid,omitempty"`

	// 卷大小,整数,在source_type是image或blank,destination_type是volume的时候必选。  单位为GB。
	VolumeSize *int32 `json:"volume_size,omitempty"`

	// 卷类型,在source_type是image,destination_type是volume时建议填写。  卷类型取值范围请参考 EVS 服务 [磁盘类型介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。
	VolumeType *string `json:"volume_type,omitempty"`
}

NovaServerBlockDeviceMapping 扩展属性,指定弹性云服务器存储设备的v2接口。是存储资源的新版本接口,指定卷场景不能批创弹性云服务器。 裸金属服务器场景不支持。

func (NovaServerBlockDeviceMapping) String

type NovaServerBlockDeviceMappingDestinationType

type NovaServerBlockDeviceMappingDestinationType struct {
	// contains filtered or unexported fields
}

func (NovaServerBlockDeviceMappingDestinationType) MarshalJSON

func (*NovaServerBlockDeviceMappingDestinationType) UnmarshalJSON

func (NovaServerBlockDeviceMappingDestinationType) Value added in v0.0.90

type NovaServerBlockDeviceMappingDestinationTypeEnum

type NovaServerBlockDeviceMappingDestinationTypeEnum struct {
	VOLUME NovaServerBlockDeviceMappingDestinationType
}

func GetNovaServerBlockDeviceMappingDestinationTypeEnum

func GetNovaServerBlockDeviceMappingDestinationTypeEnum() NovaServerBlockDeviceMappingDestinationTypeEnum

type NovaServerBlockDeviceMappingSourceType

type NovaServerBlockDeviceMappingSourceType struct {
	// contains filtered or unexported fields
}

func (NovaServerBlockDeviceMappingSourceType) MarshalJSON

func (c NovaServerBlockDeviceMappingSourceType) MarshalJSON() ([]byte, error)

func (*NovaServerBlockDeviceMappingSourceType) UnmarshalJSON

func (c *NovaServerBlockDeviceMappingSourceType) UnmarshalJSON(b []byte) error

func (NovaServerBlockDeviceMappingSourceType) Value added in v0.0.90

type NovaServerFault

type NovaServerFault struct {

	// 错误码。
	Code *int32 `json:"code,omitempty"`

	// 异常出现的时间。
	Created *string `json:"created,omitempty"`

	// 异常描述信息。
	Message *string `json:"message,omitempty"`

	// 异常详情信息。
	Details *string `json:"details,omitempty"`
}

NovaServerFault

func (NovaServerFault) String

func (o NovaServerFault) String() string

type NovaServerFlavor

type NovaServerFlavor struct {

	// 云服务器类型ID。  微版本2.47后不支持。
	Id *string `json:"id,omitempty"`

	// 云服务器类型相关标记快捷链接信息。  微版本2.47后不支持。
	Links *[]NovaLink `json:"links,omitempty"`

	// 该云服务器规格对应的CPU核数。  在微版本2.47后支持。
	Vcpus *int32 `json:"vcpus,omitempty"`

	// 该云服务器规格对应的内存大小,单位为MB。  在微版本2.47后支持。
	Ram *int32 `json:"ram,omitempty"`

	// 该云服务器规格对应要求系统盘大小,0为不限制。  在微版本2.47后支持。
	Disk *int32 `json:"disk,omitempty"`

	// 未使用。  在微版本2.47后支持。
	Ephemeral *int32 `json:"ephemeral,omitempty"`

	// 未使用。  在微版本2.47后支持。
	Swap *int32 `json:"swap,omitempty"`

	// 云服务器规格名称。  在微版本2.47后支持。
	OriginalName *string `json:"original_name,omitempty"`

	// flavor扩展字段。  在微版本2.47后支持。
	ExtraSpecs map[string]string `json:"extra_specs,omitempty"`
}

NovaServerFlavor

func (NovaServerFlavor) String

func (o NovaServerFlavor) String() string

type NovaServerHostStatus

type NovaServerHostStatus struct {
	// contains filtered or unexported fields
}

func (NovaServerHostStatus) MarshalJSON

func (c NovaServerHostStatus) MarshalJSON() ([]byte, error)

func (*NovaServerHostStatus) UnmarshalJSON

func (c *NovaServerHostStatus) UnmarshalJSON(b []byte) error

func (NovaServerHostStatus) Value added in v0.0.90

func (c NovaServerHostStatus) Value() string

type NovaServerHostStatusEnum

type NovaServerHostStatusEnum struct {
	UP          NovaServerHostStatus
	UNKNOWN     NovaServerHostStatus
	DOWN        NovaServerHostStatus
	MAINTENANCE NovaServerHostStatus
}

func GetNovaServerHostStatusEnum

func GetNovaServerHostStatusEnum() NovaServerHostStatusEnum

type NovaServerImage

type NovaServerImage struct {

	// 镜像ID。
	Id string `json:"id"`

	// 云服务器类型相关标记快捷链接信息。
	Links []NovaLink `json:"links"`
}

NovaServerImage

func (NovaServerImage) String

func (o NovaServerImage) String() string

type NovaServerInterfaceDetail added in v0.1.39

type NovaServerInterfaceDetail struct {

	// 网卡私网IP信息列表。
	FixedIps []NovaServerInterfaceFixedIp `json:"fixed_ips"`

	// 网卡Mac地址信息。
	MacAddr string `json:"mac_addr"`

	// 网卡端口所属网络ID。
	NetId string `json:"net_id"`

	// 网卡端口ID。
	PortId string `json:"port_id"`

	// 网卡端口状态。
	PortState string `json:"port_state"`
}

NovaServerInterfaceDetail

func (NovaServerInterfaceDetail) String added in v0.1.39

func (o NovaServerInterfaceDetail) String() string

type NovaServerInterfaceFixedIp added in v0.1.39

type NovaServerInterfaceFixedIp struct {

	// 网卡私网IP信息。
	IpAddress string `json:"ip_address"`

	// 网卡私网IP对应子网信息。
	SubnetId string `json:"subnet_id"`
}

NovaServerInterfaceFixedIp

func (NovaServerInterfaceFixedIp) String added in v0.1.39

type NovaServerNetwork

type NovaServerNetwork struct {

	// 网络port uuid。  没有指定网络uuid时必须指定。
	Port *string `json:"port,omitempty"`

	// 网络uuid。  没有指定网络port时必须指定。
	Uuid *string `json:"uuid,omitempty"`

	// 指定的IP地址。网络的三个参数(port、uuid和fixed_ip)中,port优先级最高;指定fixed_ip时必须指明uuid。
	FixedIp *string `json:"fixed_ip,omitempty"`
}

NovaServerNetwork

func (NovaServerNetwork) String

func (o NovaServerNetwork) String() string

type NovaServerOSDCFdiskConfig

type NovaServerOSDCFdiskConfig struct {
	// contains filtered or unexported fields
}

func (NovaServerOSDCFdiskConfig) MarshalJSON

func (c NovaServerOSDCFdiskConfig) MarshalJSON() ([]byte, error)

func (*NovaServerOSDCFdiskConfig) UnmarshalJSON

func (c *NovaServerOSDCFdiskConfig) UnmarshalJSON(b []byte) error

func (NovaServerOSDCFdiskConfig) Value added in v0.0.90

type NovaServerOSDCFdiskConfigEnum

type NovaServerOSDCFdiskConfigEnum struct {
	AUTO   NovaServerOSDCFdiskConfig
	MANUAL NovaServerOSDCFdiskConfig
}

func GetNovaServerOSDCFdiskConfigEnum

func GetNovaServerOSDCFdiskConfigEnum() NovaServerOSDCFdiskConfigEnum

type NovaServerOSEXTSTStaskState

type NovaServerOSEXTSTStaskState struct {
	// contains filtered or unexported fields
}

func (NovaServerOSEXTSTStaskState) MarshalJSON

func (c NovaServerOSEXTSTStaskState) MarshalJSON() ([]byte, error)

func (*NovaServerOSEXTSTStaskState) UnmarshalJSON

func (c *NovaServerOSEXTSTStaskState) UnmarshalJSON(b []byte) error

func (NovaServerOSEXTSTStaskState) Value added in v0.0.90

type NovaServerOSEXTSTSvmState

type NovaServerOSEXTSTSvmState struct {
	// contains filtered or unexported fields
}

func (NovaServerOSEXTSTSvmState) MarshalJSON

func (c NovaServerOSEXTSTSvmState) MarshalJSON() ([]byte, error)

func (*NovaServerOSEXTSTSvmState) UnmarshalJSON

func (c *NovaServerOSEXTSTSvmState) UnmarshalJSON(b []byte) error

func (NovaServerOSEXTSTSvmState) Value added in v0.0.90

type NovaServerSchedulerHints added in v0.0.70

type NovaServerSchedulerHints struct {

	// 在指定的专属主机或者共享主机上创建弹性云服务器。 参数值为shared或者dedicated。
	Tenancy *[]NovaServerSchedulerHintsTenancy `json:"tenancy,omitempty"`

	// 专属主机ID。 此属性仅在tenancy值为dedicated时有效。
	DedicatedHostId *[]string `json:"dedicated_host_id,omitempty"`
}

NovaServerSchedulerHints

func (NovaServerSchedulerHints) String added in v0.0.70

func (o NovaServerSchedulerHints) String() string

type NovaServerSchedulerHintsTenancy added in v0.0.70

type NovaServerSchedulerHintsTenancy struct {
	// contains filtered or unexported fields
}

func (NovaServerSchedulerHintsTenancy) MarshalJSON added in v0.0.70

func (c NovaServerSchedulerHintsTenancy) MarshalJSON() ([]byte, error)

func (*NovaServerSchedulerHintsTenancy) UnmarshalJSON added in v0.0.70

func (c *NovaServerSchedulerHintsTenancy) UnmarshalJSON(b []byte) error

func (NovaServerSchedulerHintsTenancy) Value added in v0.0.90

type NovaServerSchedulerHintsTenancyEnum added in v0.0.70

type NovaServerSchedulerHintsTenancyEnum struct {
	SHARED    NovaServerSchedulerHintsTenancy
	DEDICATED NovaServerSchedulerHintsTenancy
}

func GetNovaServerSchedulerHintsTenancyEnum added in v0.0.70

func GetNovaServerSchedulerHintsTenancyEnum() NovaServerSchedulerHintsTenancyEnum

type NovaServerSecurityGroup

type NovaServerSecurityGroup struct {

	// 安全组名称或者uuid。
	Name *string `json:"name,omitempty"`
}

NovaServerSecurityGroup

func (NovaServerSecurityGroup) String

func (o NovaServerSecurityGroup) String() string

type NovaServerStatus

type NovaServerStatus struct {
	// contains filtered or unexported fields
}

func (NovaServerStatus) MarshalJSON

func (c NovaServerStatus) MarshalJSON() ([]byte, error)

func (*NovaServerStatus) UnmarshalJSON

func (c *NovaServerStatus) UnmarshalJSON(b []byte) error

func (NovaServerStatus) Value added in v0.0.90

func (c NovaServerStatus) Value() string

type NovaServerStatusEnum

type NovaServerStatusEnum struct {
	ACTIVE            NovaServerStatus
	BUILD             NovaServerStatus
	DELETED           NovaServerStatus
	ERROR             NovaServerStatus
	HARD_REBOOT       NovaServerStatus
	MIGRATING         NovaServerStatus
	REBOOT            NovaServerStatus
	RESIZE            NovaServerStatus
	REVERT_RESIZE     NovaServerStatus
	SHELVED           NovaServerStatus
	SHELVED_OFFLOADED NovaServerStatus
	SHUTOFF           NovaServerStatus
	UNKNOWN           NovaServerStatus
	VERIFY_RESIZE     NovaServerStatus
}

func GetNovaServerStatusEnum

func GetNovaServerStatusEnum() NovaServerStatusEnum

type NovaServerVolume

type NovaServerVolume struct {

	// 云磁盘ID。
	Id string `json:"id"`

	// 一个标志,指示在删除服务器时是否删除附加的卷。、  默认情况下,这是False  微版本2.3后支持
	DeleteOnTermination *bool `json:"delete_on_termination,omitempty"`
}

NovaServerVolume

func (NovaServerVolume) String

func (o NovaServerVolume) String() string

type NovaShowKeypairRequest

type NovaShowKeypairRequest struct {

	// 密钥名称信息。
	KeypairName string `json:"keypair_name"`

	// 微版本头
	OpenStackAPIVersion *string `json:"OpenStack-API-Version,omitempty"`
}

NovaShowKeypairRequest Request Object

func (NovaShowKeypairRequest) String

func (o NovaShowKeypairRequest) String() string

type NovaShowKeypairResponse

type NovaShowKeypairResponse struct {
	Keypair        *NovaKeypairDetail `json:"keypair,omitempty"`
	HttpStatusCode int                `json:"-"`
}

NovaShowKeypairResponse Response Object

func (NovaShowKeypairResponse) String

func (o NovaShowKeypairResponse) String() string

type NovaShowServerInterfaceRequest added in v0.1.77

type NovaShowServerInterfaceRequest struct {

	// 网卡port id
	PortId string `json:"port_id"`

	// 云服务器ID。
	ServerId string `json:"server_id"`
}

NovaShowServerInterfaceRequest Request Object

func (NovaShowServerInterfaceRequest) String added in v0.1.77

type NovaShowServerInterfaceResponse added in v0.1.77

type NovaShowServerInterfaceResponse struct {
	InterfaceAttachment *NovaServerInterfaceDetail `json:"interfaceAttachment,omitempty"`
	HttpStatusCode      int                        `json:"-"`
}

NovaShowServerInterfaceResponse Response Object

func (NovaShowServerInterfaceResponse) String added in v0.1.77

type NovaShowServerRequest

type NovaShowServerRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	// 微版本头
	OpenStackAPIVersion *string `json:"OpenStack-API-Version,omitempty"`
}

NovaShowServerRequest Request Object

func (NovaShowServerRequest) String

func (o NovaShowServerRequest) String() string

type NovaShowServerResponse

type NovaShowServerResponse struct {
	Server         *NovaServer `json:"server,omitempty"`
	HttpStatusCode int         `json:"-"`
}

NovaShowServerResponse Response Object

func (NovaShowServerResponse) String

func (o NovaShowServerResponse) String() string

type NovaShowVersionRequest added in v0.1.89

type NovaShowVersionRequest struct {

	// API版本号。例如: v2
	ApiVersion string `json:"api_version"`
}

NovaShowVersionRequest Request Object

func (NovaShowVersionRequest) String added in v0.1.89

func (o NovaShowVersionRequest) String() string

type NovaShowVersionResponse added in v0.1.89

type NovaShowVersionResponse struct {
	Version        *NovaVersionDetail `json:"version,omitempty"`
	HttpStatusCode int                `json:"-"`
}

NovaShowVersionResponse Response Object

func (NovaShowVersionResponse) String added in v0.1.89

func (o NovaShowVersionResponse) String() string

type NovaSimpleKeypair

type NovaSimpleKeypair struct {

	// 密钥对应指纹信息。
	Fingerprint string `json:"fingerprint"`

	// 密钥名称。
	Name string `json:"name"`

	// 密钥对应publicKey信息。
	PublicKey string `json:"public_key"`

	// 密钥类型,默认“ssh”  微版本2.2以上支持
	Type *string `json:"type,omitempty"`
}

NovaSimpleKeypair

func (NovaSimpleKeypair) String

func (o NovaSimpleKeypair) String() string

type NovaVersion added in v0.1.89

type NovaVersion struct {

	// 所讨论的版本的通用名称。仅仅是信息性的,它没有真正的语义。
	Id string `json:"id"`

	// 版本相关标记快捷链接信息。
	Links []NovaLink `json:"links"`

	// 如果API的这个版本支持微版本,则支持最小的微版本。如果不支持微版本,这将是空字符串。
	MinVersion string `json:"min_version"`

	// 这个是API版本的状态。可以是:  - CURRENT,这是使用的API的首选版本 - SUPPORTED,这是一个较老的,但仍然支持的API版本 - DEPRECATED,一个被废弃的API版本,该版本将被删除
	Status NovaVersionStatus `json:"status"`

	// 如果API的这个版本支持微版本,则支持最大的微版本。如果不支持微版本,这将是空字符串。
	Version string `json:"version"`

	// 一个有特定值的字符串。API版本为2.0时,值为'2011-01-21T11:33:21Z',API版本是2.1时,值为' 2013-07-23T11:33:21Z'。
	Updated string `json:"updated"`
}

NovaVersion

func (NovaVersion) String added in v0.1.89

func (o NovaVersion) String() string

type NovaVersionDetail added in v0.1.89

type NovaVersionDetail struct {

	// 所讨论的版本的通用名称。仅仅是信息性的,它没有真正的语义。
	Id string `json:"id"`

	// 链接到资源的问题。有关更多信息,请参见[OpenStack Documentation](http://developer.openstack.org/api-guide/compute/links_and_references.html)。
	Links []NovaLink `json:"links"`

	// 媒体类型。
	MediaTypes []NovaVersionMediaType `json:"media-types"`

	// 如果API的这个版本支持微版本,则支持最小的微版本。如果不支持微版本,这将是空字符串。
	MinVersion string `json:"min_version"`

	// 这个是API版本的状态。  可以是:  - CURRENT这是使用的API的首选版本; - SUPPORTED:这是一个较老的,但仍然支持的API版本; - DEPRECATED:一个被废弃的API版本,该版本将被删除
	Status NovaVersionDetailStatus `json:"status"`

	// 一个有特定值的字符串。API版本为2.0时,值为'2011-01-21T11:33:21Z' ,API版本是2.1时,值为' 2013-07-23T11:33:21Z'。
	Updated string `json:"updated"`

	// 如果API的这个版本支持微版本,则支持最大的微版本。如果不支持微版本,这将是空字符串。
	Version string `json:"version"`
}

NovaVersionDetail

func (NovaVersionDetail) String added in v0.1.89

func (o NovaVersionDetail) String() string

type NovaVersionDetailStatus added in v0.1.89

type NovaVersionDetailStatus struct {
	// contains filtered or unexported fields
}

func (NovaVersionDetailStatus) MarshalJSON added in v0.1.89

func (c NovaVersionDetailStatus) MarshalJSON() ([]byte, error)

func (*NovaVersionDetailStatus) UnmarshalJSON added in v0.1.89

func (c *NovaVersionDetailStatus) UnmarshalJSON(b []byte) error

func (NovaVersionDetailStatus) Value added in v0.1.89

func (c NovaVersionDetailStatus) Value() string

type NovaVersionDetailStatusEnum added in v0.1.89

type NovaVersionDetailStatusEnum struct {
	CURRENT    NovaVersionDetailStatus
	SUPPORTED  NovaVersionDetailStatus
	DEPRECATED NovaVersionDetailStatus
}

func GetNovaVersionDetailStatusEnum added in v0.1.89

func GetNovaVersionDetailStatusEnum() NovaVersionDetailStatusEnum

type NovaVersionMediaType added in v0.1.89

type NovaVersionMediaType struct {

	// 基础类型。
	Base string `json:"base"`

	// 媒体类型。
	Type string `json:"type"`
}

NovaVersionMediaType

func (NovaVersionMediaType) String added in v0.1.89

func (o NovaVersionMediaType) String() string

type NovaVersionStatus added in v0.1.89

type NovaVersionStatus struct {
	// contains filtered or unexported fields
}

func (NovaVersionStatus) MarshalJSON added in v0.1.89

func (c NovaVersionStatus) MarshalJSON() ([]byte, error)

func (*NovaVersionStatus) UnmarshalJSON added in v0.1.89

func (c *NovaVersionStatus) UnmarshalJSON(b []byte) error

func (NovaVersionStatus) Value added in v0.1.89

func (c NovaVersionStatus) Value() string

type NovaVersionStatusEnum added in v0.1.89

type NovaVersionStatusEnum struct {
	CURRENT    NovaVersionStatus
	SUPPORTED  NovaVersionStatus
	DEPRECATED NovaVersionStatus
}

func GetNovaVersionStatusEnum added in v0.1.89

func GetNovaVersionStatusEnum() NovaVersionStatusEnum
type PageLink struct {

	// 相应资源的链接。
	Href string `json:"href"`

	// 对应快捷链接。
	Rel string `json:"rel"`
}

PageLink

func (PageLink) String

func (o PageLink) String() string

type PostPaidServer

type PostPaidServer struct {

	// 弹性云服务器定时删除时间。  时间格式例如:2020-01-19T03:30:52Z
	AutoTerminateTime *string `json:"auto_terminate_time,omitempty"`

	// 如果需要使用密码方式登录云服务器,可使用adminPass字段指定云服务器管理员帐户初始登录密码。其中,Linux管理员帐户为root,Windows管理员帐户为Administrator。具体使用方法请参见接口描述信息(设置登录鉴权方式)。  密码复杂度要求:   - 长度为8-26位。  - 密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。 - 密码不能包含用户名或用户名的逆序。  - Windows系统密码不能包含用户名或用户名的逆序,不能包含用户名中超过两个连续字符的部分。
	AdminPass *string `json:"adminPass,omitempty"`

	// 待创建云服务器所在的可用分区,需要指定可用分区(AZ)的名称。  可通过接口 [查询可用区列表接口](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=ECS&api=NovaListAvailabilityZones) 获取,也可参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)获取。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 是否支持随机多AZ部署。  - “true”:批量创建的ecs部署在多个AZ上 - “false”:批量创建的ecs部署在单个AZ上  > 说明: >  > 当availability_zone为空时该字段生效。
	BatchCreateInMultiAz *bool `json:"batch_create_in_multi_az,omitempty"`

	// 创建云服务器数量。  约束:  - 不传该字段时默认取值为1。 - 租户的配额足够时,最大值为500。
	Count *int32 `json:"count,omitempty"`

	// 云服务器对应数据盘相关配置。每一个数据结构代表一块待创建的数据盘。 约束:目前新创建的弹性云服务器最多可挂载23块数据盘。
	DataVolumes *[]PostPaidServerDataVolume `json:"data_volumes,omitempty"`

	Extendparam *PostPaidServerExtendParam `json:"extendparam,omitempty"`

	// 待创建云服务器的系统规格的ID。  可通过 [规格列表接口](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=ECS&api=ListFlavors) 查询,该接口支持通过 availability_zone 参数过滤出待创建云服务器可用区下可用的规格。  已上线的各规格详情介绍请参见《[弹性云服务器产品介绍](https://support.huaweicloud.com/ecs/index.html)》的“实例类型与规格”章节。
	FlavorRef string `json:"flavorRef"`

	// 待创建云服务器的系统镜像,需要指定已创建镜像的ID,ID格式为通用唯一识别码(Universally Unique Identifier,简称UUID)。  镜像的ID可以从镜像服务的 [查询镜像列表](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=IMS&api=ListImages) 接口获取,该接口可根据 __imagetype、__os_type 等参数过滤选择合适镜像。
	ImageRef string `json:"imageRef"`

	// 当批量创建弹性云服务器时,云服务器名称是否允许重名,当count大于1的时候该参数生效。默认为True。  - True,表示允许重名。 - False,表示不允许重名。
	IsAutoRename *bool `json:"isAutoRename,omitempty"`

	// 如果需要使用SSH密钥方式登录云服务器,请指定已创建密钥的名称。  密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/ecs_03_1201.html))。
	KeyName *string `json:"key_name,omitempty"`

	// 用户自定义字段键值对。  > 说明: >  > - 最多可注入10对键值(Key/Value)。 > - 主键(Key)只能由大写字母(A-Z)、小写字母(a-z)、数字(0-9)、中划线(-)、下划线(_)、冒号(:)和小数点(.)组成,长度为[1-255]个字符。 > - 值(value)最大长度为255个字符。  系统预留字段  1. op_svc_userid : 用户ID       2. agency_name  :  委托的名称   委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。  > 说明: >  > 委托获取、更新请参考如下步骤: >  > 1. 使用IAM服务提供的[查询委托列表](https://support.huaweicloud.com/api-iam/zh-cn_topic_0079467614.html)接口,获取有效可用的委托名称。 > 2. 使用[更新云服务器元数](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0025560298.html)据接口,更新metadata中agency_name字段为新的委托名称。  3. __support_agent_list: 云服务器是否支持企业主机安全、主机监控。 - \"hss\":企业主机安全 - \"ces\":主机监控  取值样例: __support_agent_list: \"hss,ces\"  可以通过查询[镜像详情](https://support.huaweicloud.com/api-ims/ims_03_0702.html)判断创建云服务器使用的镜像是否支持企业主机安全或主机监控。
	Metadata map[string]string `json:"metadata,omitempty"`

	// 云服务器名称。  取值范围:  - 只能由中文字符、英文字母、数字及“_”、“-”、“.”组成,且长度为[1-64]个字符。 - 创建的云服务器器数量(count字段对应的值)大于1时,为区分不同云服务器,创建过程中系统会自动在名称后加“-0000”的类似标记。故此时名称的长度为[1-59]个字符。  > 说明: >  > 云服务器虚拟机内部(hostname)命名规则遵循 RFC 952RFC 1123命名规范,建议使用a-zA-z或0-9以及中划线\"-\"组成的名称命名,\"_\"将在弹性云服务器内部默认转化为\"-\"。
	Name string `json:"name"`

	// 待创建云服务器的网卡信息。  约束:  - 网卡对应的子网(subnet)必须属于vpcid对应的VPC。 - 当前单个云服务器支持最多挂载12张网卡。 - 不同的规格对网卡上限有一定的区别,参考[规格清单](https://support.huaweicloud.com/productdesc-ecs/zh-cn_topic_0159822360.html)。
	Nics []PostPaidServerNic `json:"nics"`

	OsschedulerHints *PostPaidServerSchedulerHints `json:"os:scheduler_hints,omitempty"`

	Publicip *PostPaidServerPublicip `json:"publicip,omitempty"`

	RootVolume *PostPaidServerRootVolume `json:"root_volume"`

	// 云服务器对应安全组信息。  约束:当该值指定为空时,默认给云服务器绑定default安全组。
	SecurityGroups *[]PostPaidServerSecurityGroup `json:"security_groups,omitempty"`

	// 弹性云服务器的标签。  > 说明: >  > 创建弹性云服务器时,一台弹性云服务器最多可以添加10个标签。 > 公有云新增server_tags字段,该字段与tags字段功能相同,支持的key、value取值范围更广,建议使用server_tags字段。
	ServerTags *[]PostPaidServerTag `json:"server_tags,omitempty"`

	// 弹性云服务器的标签。  标签的格式为“key.value”。其中,key的长度不超过36个字符,value的长度不超过43个字符。  标签命名时,需满足如下要求:  - 标签的key值只能包含大写字母(A~Z)、小写字母(a~z)、数字(0-9)、下划线(_)、中划线(-)以及中文字符。 - 标签的value值只能包含大写字母(A~Z)、小写字母(a~z)、数字(0-9)、下划线(_)、中划线(-)、小数点(.)以及中文字符。  > 说明: >  > 创建弹性云服务器时,一台弹性云服务器最多可以添加10个标签。 > 公有云新增server_tags字段,该字段与tags字段功能相同,支持的key、value取值范围更广,建议使用server_tags字段。
	Tags *[]string `json:"tags,omitempty"`

	// 创建云服务器过程中待注入用户数据。支持注入文本、文本文件或gzip文件。  更多关于待注入用户数据的信息,请参见《弹性云服务器用户指南 》的“[用户数据注入](https://support.huaweicloud.com/usermanual-ecs/zh-cn_topic_0032380449.html)”章节。  约束:  - 注入内容,需要进行base64格式编码。注入内容(编码之前的内容)最大长度32KB。 - 创建密码方式鉴权的Linux弹性云服务器时,该字段可为root用户注入自定义初始化密码,具体注入密码的使用方法请参见接口描述(设置登录鉴权方式)。 示例(base64编码前):  - Linux弹性云服务器  “` #! /bin/bash echo user_test >> /home/user.txt “`  - Windows弹性云服务器  “` rem cmd echo 111 > c:\\\\aaa.tx “`
	UserData *string `json:"user_data,omitempty"`

	// 待创建云服务器所属虚拟私有云(简称VPC),需要指定已创建VPC的ID,UUID格式。  可通过 [查询VPC列表](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=VPC&api=ListVpcs) 接口查询。
	Vpcid string `json:"vpcid"`

	// 云服务器描述信息,默认为空字符串。  - 长度最多允许85个字符。 - 不能包含“<” 和 “>”。
	Description *string `json:"description,omitempty"`

	CpuOptions *CpuOptions `json:"cpu_options,omitempty"`
}

PostPaidServer 创建弹性云服务器(按需)接口Body体。

func (PostPaidServer) String

func (o PostPaidServer) String() string

type PostPaidServerDataVolume

type PostPaidServerDataVolume struct {

	// 云服务器数据盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。   - SATA:普通IO磁盘类型。  - SAS:高IO磁盘类型。  - SSD:超高IO磁盘类型。  - GPSSD:为通用型SSD磁盘类型。  - co-p1:高IO (性能优化Ⅰ型)。  - uh-l1:超高IO (时延优化)。  - ESSD:为极速IO磁盘类型。  - GPSSD2:通用型SSD V2磁盘类型。  - ESSD2:极速型SSD V2磁盘类型。   > 说明: >  > 对于HANA云服务器、HL1型云服务器、HL2型云服务器,需使用co-p1和uh-l1两种磁盘类型。对于其他类型的云服务器,不能使用co-p1和uh-l1两种磁盘类型。  了解不同磁盘类型的详细信息,请参见 [磁盘类型及性能介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。  获取region可用的卷类型,请参见[查询云硬盘类型列表](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=EVS&api=CinderListVolumeTypes)
	Volumetype PostPaidServerDataVolumeVolumetype `json:"volumetype"`

	// 数据盘大小,容量单位为GB,输入大小范围为[10,32768]。
	Size int32 `json:"size"`

	// 给云硬盘配置iops,购买GPSSD2、ESSD2类型的云硬盘时必填,其他类型不能设置。  说明: 1、了解GPSSD2、ESSD2类型的iops大小范围,请参见 [云硬盘类型及性能介绍里面的云硬盘性能数据表](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。 2、只支持按需计费。
	Iops *int32 `json:"iops,omitempty"`

	// 给云硬盘配置吞吐量,单位是MiB/s,购买GPSSD2类型云盘时必填,其他类型不能设置。  说明: 1、了解GPSSD2类型的吞吐量大小范围,请参见 [云硬盘类型及性能介绍里面的云硬盘性能数据表](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。 2、只支持按需计费。
	Throughput *int32 `json:"throughput,omitempty"`

	// 是否为共享磁盘。true为共享盘,false为普通云硬盘。  > 说明: >  > 该字段已废弃,请使用multiattach。
	Shareable *bool `json:"shareable,omitempty"`

	// 创建共享磁盘的信息。  - true:创建的磁盘为共享盘。 - false:创建的磁盘为普通云硬盘。  > 说明: >  > shareable当前为废弃字段,如果确实需要同时使用shareable字段和multiattach字段,此时,请确保两个字段的参数值相同。当不指定该字段时,系统默认创建普通云硬盘。
	Multiattach *bool `json:"multiattach,omitempty"`

	// 数据卷是否使用SCSI锁。  - true表示云硬盘的设备类型为SCSI类型,即允许ECS操作系统直接访问底层存储介质。支持SCSI锁命令。 - false表示云硬盘的设备类型为VBD (虚拟块存储设备 , Virtual Block Device)类型,即为默认类型,VBD只能支持简单的SCSI读写命令。 - 该字段不存在时,云硬盘默认为VBD类型。  > 说明: >  > 此参数为boolean类型,若传入非boolean类型字符,程序将按照【false】方式处理。
	Hwpassthrough *bool `json:"hw:passthrough,omitempty"`

	Extendparam *PostPaidServerDataVolumeExtendParam `json:"extendparam,omitempty"`

	// 云服务器数据盘对应的磁盘存储类型。 磁盘存储类型枚举值: DSS:专属存储类型
	ClusterType *PostPaidServerDataVolumeClusterType `json:"cluster_type,omitempty"`

	// 云服务器数据盘对应的存储池的ID。
	ClusterId *string `json:"cluster_id,omitempty"`

	Metadata *PostPaidServerDataVolumeMetadata `json:"metadata,omitempty"`

	// 数据镜像的ID,UUID格式。  如果使用数据盘镜像创建数据盘,则data_image_id为必选参数,且不支持使用metadata。
	DataImageId *string `json:"data_image_id,omitempty"`

	// 数据盘随实例释放策略。  true:数据盘随实例释放。 false:数据盘不随实例释放。 默认值:false。
	DeleteOnTermination *bool `json:"delete_on_termination,omitempty"`
}

PostPaidServerDataVolume 云服务器对应数据盘相关配置。

func (PostPaidServerDataVolume) String

func (o PostPaidServerDataVolume) String() string

type PostPaidServerDataVolumeClusterType

type PostPaidServerDataVolumeClusterType struct {
	// contains filtered or unexported fields
}

func (PostPaidServerDataVolumeClusterType) MarshalJSON

func (c PostPaidServerDataVolumeClusterType) MarshalJSON() ([]byte, error)

func (*PostPaidServerDataVolumeClusterType) UnmarshalJSON

func (c *PostPaidServerDataVolumeClusterType) UnmarshalJSON(b []byte) error

func (PostPaidServerDataVolumeClusterType) Value added in v0.0.90

type PostPaidServerDataVolumeClusterTypeEnum

type PostPaidServerDataVolumeClusterTypeEnum struct {
	DSS PostPaidServerDataVolumeClusterType
}

func GetPostPaidServerDataVolumeClusterTypeEnum

func GetPostPaidServerDataVolumeClusterTypeEnum() PostPaidServerDataVolumeClusterTypeEnum

type PostPaidServerDataVolumeExtendParam

type PostPaidServerDataVolumeExtendParam struct {

	// 磁盘产品资源规格编码,如SATA,SAS和SSD。  > 说明: >  > 废弃字段。
	ResourceSpecCode *string `json:"resourceSpecCode,omitempty"`

	// 磁盘产品资源类型。  > 说明: >  > 废弃字段。
	ResourceType *string `json:"resourceType,omitempty"`

	// 整机镜像中自带的原始数据盘(简称“原数据盘”)所对应的快照ID或原始数据盘ID。  使用场景:  使用整机镜像创建云服务器,并且选择的整机镜像自带1个或者多个数据盘。  用途:  使用整机镜像创建云服务器时,系统会自动恢复整机镜像中自带数据盘(如果有)的数据,但是磁盘类型将被恢复为默认属性:普通I/O、VBD、非共享盘。此时,您可以通过snapshotID,修改指定原数据盘恢复后的磁盘类型。  > 说明: >  > 建议对每块原数据盘都指定snapshotID,否则,未指定的原数据盘将按默认属性进行创建。 > 如需修改磁盘大小,修改后的磁盘大小需大于等于原数据盘大小。否则,会影响原数据盘的数据恢复。  实现原理:  snapshotId是整机镜像自带原始数据盘的唯一标识,通过snapshotId可以获取原数据盘的磁盘信息,从而恢复数据盘数据。  快照ID的获取方法:  登录管理控制台,打开\"云硬盘 > 快照\"页面,根据原始数据盘的磁盘名称找到对应的快照ID。
	SnapshotId *string `json:"snapshotId,omitempty"`
}

PostPaidServerDataVolumeExtendParam 创建磁盘的extendparam字段

func (PostPaidServerDataVolumeExtendParam) String

type PostPaidServerDataVolumeMetadata

type PostPaidServerDataVolumeMetadata struct {

	// metadata中的表示加密功能的字段,0代表不加密,1代表加密。  该字段不存在时,云硬盘默认为不加密。
	SystemEncrypted *string `json:"__system__encrypted,omitempty"`

	// metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。  > 说明:  - 请参考[查询密钥列表](https://support.huaweicloud.com/api-dew/ListKeys.html),通过HTTPS请求获取密钥ID。
	SystemCmkid *string `json:"__system__cmkid,omitempty"`
}

PostPaidServerDataVolumeMetadata > 说明: > > 如果是从镜像创建云硬盘,则不支持传入“__system__encrypted”和“__system__cmkid”字段,创建出来的云硬盘与镜像的加密属性一致。

func (PostPaidServerDataVolumeMetadata) String

type PostPaidServerDataVolumeVolumetype

type PostPaidServerDataVolumeVolumetype struct {
	// contains filtered or unexported fields
}

func (PostPaidServerDataVolumeVolumetype) MarshalJSON

func (c PostPaidServerDataVolumeVolumetype) MarshalJSON() ([]byte, error)

func (*PostPaidServerDataVolumeVolumetype) UnmarshalJSON

func (c *PostPaidServerDataVolumeVolumetype) UnmarshalJSON(b []byte) error

func (PostPaidServerDataVolumeVolumetype) Value added in v0.0.90

type PostPaidServerEip

type PostPaidServerEip struct {

	// 弹性IP地址类型。  详情请参见“[申请弹性公网IP](https://support.huaweicloud.com/api-eip/eip_api_0001.html)”章节的“publicip”字段说明。
	Iptype string `json:"iptype"`

	Bandwidth *PostPaidServerEipBandwidth `json:"bandwidth"`

	Extendparam *PostPaidServerEipExtendParam `json:"extendparam,omitempty"`
}

PostPaidServerEip

func (PostPaidServerEip) String

func (o PostPaidServerEip) String() string

type PostPaidServerEipBandwidth

type PostPaidServerEipBandwidth struct {

	// 功能说明:带宽大小  带宽(Mbit/s),取值范围为[1,2000]。  调整带宽时的最小单位会根据带宽范围不同存在差异。  - 小于等于300Mbit/s:默认最小单位为1Mbit/s。 - 300Mbit/s~1000Mbit/s:默认最小单位为50Mbit/s。 - 大于1000Mbit/s:默认最小单位为500Mbit/s。  > 说明: >  > 如果share_type是PER,该参数必选项;如果share_type是WHOLE并且id有值,该参数会忽略。
	Size *int32 `json:"size,omitempty"`

	// 带宽的共享类型。  共享类型枚举:PER,表示独享。WHOLE,表示共享。
	Sharetype PostPaidServerEipBandwidthSharetype `json:"sharetype"`

	// 带宽的计费类型。  - 未传该字段,表示按带宽计费。 - 字段值为空,表示按带宽计费。 - 字段值为“traffic”,表示按流量计费。 - 字段为其它值,会导致创建云服务器失败。  > 说明: >  > 如果share_type是WHOLE并且id有值,该参数会忽略。
	Chargemode *string `json:"chargemode,omitempty"`

	// 带宽ID,创建WHOLE类型带宽的弹性IP时可以指定之前的共享带宽创建。  取值范围:WHOLE类型的带宽ID。  > 说明: >  > 当创建WHOLE类型的带宽时,该字段必选。
	Id *string `json:"id,omitempty"`
}

PostPaidServerEipBandwidth

func (PostPaidServerEipBandwidth) String

type PostPaidServerEipBandwidthSharetype

type PostPaidServerEipBandwidthSharetype struct {
	// contains filtered or unexported fields
}

func (PostPaidServerEipBandwidthSharetype) MarshalJSON

func (c PostPaidServerEipBandwidthSharetype) MarshalJSON() ([]byte, error)

func (*PostPaidServerEipBandwidthSharetype) UnmarshalJSON

func (c *PostPaidServerEipBandwidthSharetype) UnmarshalJSON(b []byte) error

func (PostPaidServerEipBandwidthSharetype) Value added in v0.0.90

type PostPaidServerEipBandwidthSharetypeEnum

type PostPaidServerEipBandwidthSharetypeEnum struct {
	PER   PostPaidServerEipBandwidthSharetype
	WHOLE PostPaidServerEipBandwidthSharetype
}

func GetPostPaidServerEipBandwidthSharetypeEnum

func GetPostPaidServerEipBandwidthSharetypeEnum() PostPaidServerEipBandwidthSharetypeEnum

type PostPaidServerEipExtendParam

type PostPaidServerEipExtendParam struct {

	// 公网IP的计费模式。  取值范围:  - prePaid-预付费,即包年包月; - postPaid-后付费,即按需付费;  > 说明: >  > 如果bandwidth对象中share_type是WHOLE且id有值,弹性IP只能创建为按需付费的,故该参数传参“prePaid”无效。
	ChargingMode *PostPaidServerEipExtendParamChargingMode `json:"chargingMode,omitempty"`
}

PostPaidServerEipExtendParam

func (PostPaidServerEipExtendParam) String

type PostPaidServerEipExtendParamChargingMode

type PostPaidServerEipExtendParamChargingMode struct {
	// contains filtered or unexported fields
}

func (PostPaidServerEipExtendParamChargingMode) MarshalJSON

func (*PostPaidServerEipExtendParamChargingMode) UnmarshalJSON

func (c *PostPaidServerEipExtendParamChargingMode) UnmarshalJSON(b []byte) error

func (PostPaidServerEipExtendParamChargingMode) Value added in v0.0.90

type PostPaidServerEipExtendParamChargingModeEnum

type PostPaidServerEipExtendParamChargingModeEnum struct {
	PRE_PAID  PostPaidServerEipExtendParamChargingMode
	POST_PAID PostPaidServerEipExtendParamChargingMode
}

func GetPostPaidServerEipExtendParamChargingModeEnum

func GetPostPaidServerEipExtendParamChargingModeEnum() PostPaidServerEipExtendParamChargingModeEnum

type PostPaidServerExtendParam

type PostPaidServerExtendParam struct {

	// 计费模式:  - 0:按需计费。
	ChargingMode *int32 `json:"chargingMode,omitempty"`

	// 云服务器所在区域ID。  请参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)获取。
	RegionID *string `json:"regionID,omitempty"`

	// 是否配置弹性云服务器自动恢复的功能。  - “true”:配置该功能 - “false”:不配置该功能  > 说明: >  > 此参数为boolean类型,若传入非boolean类型字符,程序将按照【“false”:不配置该功能】方式处理。 >  > 当marketType为spot时,不支持该功能。
	SupportAutoRecovery *bool `json:"support_auto_recovery,omitempty"`

	// 企业项目ID。  > 说明: >  > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。 >  > 该字段不传(或传为字符串“0”),则将资源绑定给默认企业项目。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 创建竞价实例时,需指定该参数的值为“spot”。  > 说明: >  > 当chargingMode=0时且marketType=spot时此参数生效。
	MarketType *string `json:"marketType,omitempty"`

	// 用户愿意为竞价实例每小时支付的最高价格。  > 说明: >  > 仅chargingMode=0且marketType=spot时,该参数设置后生效。 >  > 当chargingMode=0且marketType=spot时,如果不传递spotPrice,默认使用按需购买的价格作为竞价。
	SpotPrice *string `json:"spotPrice,omitempty"`

	// 是否支持先创建卷,再创建虚拟机。  “true”:配置该功能 “false”:不配置该功能
	DiskPrior *string `json:"diskPrior,omitempty"`

	// 购买的竞价实例时长。  - 仅interruption_policy=immediate 时该字段有效 。 - pot_duration_hours大于0。最大值由预测系统给出可以从flavor的extra_specs的cond:spot_block:operation:longest_duration_hours字段中查询。
	SpotDurationHours *int32 `json:"spot_duration_hours,omitempty"`

	// 竞价实例中断策略,当前支持immediate。  - 当interruption_policy=immediate时表示释放策略为立即释放。
	InterruptionPolicy *PostPaidServerExtendParamInterruptionPolicy `json:"interruption_policy,omitempty"`

	// 表示购买的“竞价实例时长”的个数。  - 仅spot_duration_hours>0 时该字段有效。 - spot_duration_hours小于6时,spot_duration_count值必须为1。 - spot_duration_hours等于6时,spot_duration_count大于等于1。  spot_duration_count的最大值由预测系统给出可以从flavor的extra_specs的cond:spot_block:operation:longest_duration_count字段中查询。
	SpotDurationCount *int32 `json:"spot_duration_count,omitempty"`

	// 云备份策略和云备份存储库详情,取值包含备份策略ID和云备份存储库ID。
	CbCsbsBackup *string `json:"CB_CSBS_BACKUP,omitempty"`
}

PostPaidServerExtendParam

func (PostPaidServerExtendParam) String

func (o PostPaidServerExtendParam) String() string

type PostPaidServerExtendParamInterruptionPolicy

type PostPaidServerExtendParamInterruptionPolicy struct {
	// contains filtered or unexported fields
}

func (PostPaidServerExtendParamInterruptionPolicy) MarshalJSON

func (*PostPaidServerExtendParamInterruptionPolicy) UnmarshalJSON

func (PostPaidServerExtendParamInterruptionPolicy) Value added in v0.0.90

type PostPaidServerExtendParamInterruptionPolicyEnum

type PostPaidServerExtendParamInterruptionPolicyEnum struct {
	IMMEDIATE PostPaidServerExtendParamInterruptionPolicy
}

func GetPostPaidServerExtendParamInterruptionPolicyEnum

func GetPostPaidServerExtendParamInterruptionPolicyEnum() PostPaidServerExtendParamInterruptionPolicyEnum

type PostPaidServerIpv6Bandwidth

type PostPaidServerIpv6Bandwidth struct {

	// 绑定的共享带宽ID。
	Id *string `json:"id,omitempty"`
}

PostPaidServerIpv6Bandwidth IPV6共享带宽。

func (PostPaidServerIpv6Bandwidth) String

type PostPaidServerNic

type PostPaidServerNic struct {

	// 待创建云服务器所在的子网信息,需要指定vpcid对应VPC下的子网ID,UUID格式。  可以通过VPC服务 [查询子网](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=VPC&api=ListSubnets) 接口查询,该接口支持通过创建云服务器填写的vpcid进行过滤查询。
	SubnetId string `json:"subnet_id"`

	// 待创建云服务器网卡的IP地址,IPv4格式。  约束:  - 不填或空字符串,默认在子网(subnet)中自动分配一个未使用的IP作网卡的IP地址。 - 若指定IP地址,该IP地址必须在子网(subnet)对应的网段内,且未被使用。
	IpAddress *string `json:"ip_address,omitempty"`

	// 是否支持ipv6。  取值为true时,标识此网卡支持ipv6。
	Ipv6Enable *bool `json:"ipv6_enable,omitempty"`

	Ipv6Bandwidth *PostPaidServerIpv6Bandwidth `json:"ipv6_bandwidth,omitempty"`

	// IP/Mac对列表, 约束:IP地址不允许为 “0.0.0.0/0” 如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组 如果allowed_address_pairs为“1.1.1.1/0”,表示关闭源目地址检查开关 被绑定的云服务器网卡allowed_address_pairs填“1.1.1.1/0”
	AllowedAddressPairs *[]CreateServerNicAllowedAddressPairs `json:"allowed_address_pairs,omitempty"`
}

PostPaidServerNic 待创建云服务器的网卡信息。

func (PostPaidServerNic) String

func (o PostPaidServerNic) String() string

type PostPaidServerPublicip

type PostPaidServerPublicip struct {

	// 为待创建云服务器分配已有弹性IP时,分配的弹性IP的ID,UUID格式。  约束:只能分配状态(status)为DOWN的弹性IP。
	Id *string `json:"id,omitempty"`

	Eip *PostPaidServerEip `json:"eip,omitempty"`

	// 弹性公网IP随实例释放策略。  true:弹性公网IP随实例释放。 false:弹性公网IP不随实例释放。 默认值:false。
	DeleteOnTermination *bool `json:"delete_on_termination,omitempty"`
}

PostPaidServerPublicip

func (PostPaidServerPublicip) String

func (o PostPaidServerPublicip) String() string

type PostPaidServerRootVolume

type PostPaidServerRootVolume struct {

	// 云服务器系统盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。   - SATA:普通IO磁盘类型。  - SAS:高IO磁盘类型。  - SSD:超高IO磁盘类型。  - GPSSD:为通用型SSD磁盘类型。  - co-p1:高IO (性能优化Ⅰ型)。  - uh-l1:超高IO (时延优化)。  - ESSD:为极速IO磁盘类型。  - GPSSD2:通用型SSD V2磁盘类型。  - ESSD2:极速型SSD V2磁盘类型。   > 说明: >  > 对于HANA云服务器、HL1型云服务器、HL2型云服务器,需使用co-p1和uh-l1两种磁盘类型。对于其他类型的云服务器,不能使用co-p1和uh-l1两种磁盘类型。  了解不同磁盘类型的详细信息,请参见 [磁盘类型及性能介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。  获取region可用的卷类型,请参见[查询云硬盘类型列表](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=EVS&api=CinderListVolumeTypes)
	Volumetype PostPaidServerRootVolumeVolumetype `json:"volumetype"`

	// 系统盘大小,容量单位为GB, 输入大小范围为[1,1024]。  约束:  - 系统盘大小取值应不小于镜像支持的系统盘的最小值(镜像的min_disk属性)。 - 若该参数没有指定或者指定为0时,系统盘大小默认取值为镜像中系统盘的最小值(镜像的min_disk属性)。  > 说明: > > 镜像系统盘的最小值(镜像的min_disk属性)可在控制台中点击镜像详情查看。或通过调用“查询镜像详情(OpenStack原生)”API获取,详细操作请参考[《镜像服务API参考》](https://support.huaweicloud.com/api-ims/ims_03_0702.html)中“查询镜像详情(OpenStack原生)”章节。
	Size *int32 `json:"size,omitempty"`

	// 给云硬盘配置iops,购买GPSSD2、ESSD2类型的云硬盘时必填,其他类型不能设置。  说明: 1、了解GPSSD2、ESSD2类型的iops大小范围,请参见 [云硬盘类型及性能介绍里面的云硬盘性能数据表](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。 2、只支持按需计费。
	Iops *int32 `json:"iops,omitempty"`

	// 给云硬盘配置吞吐量,单位是MiB/s,购买GPSSD2类型云盘时必填,其他类型不能设置。  说明: 1、了解GPSSD2类型的吞吐量大小范围,请参见 [云硬盘类型及性能介绍里面的云硬盘性能数据表](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。 2、只支持按需计费。
	Throughput *int32 `json:"throughput,omitempty"`

	// 使用SDI规格创建虚拟机时请关注该参数,如果该参数值为true,说明创建的为scsi类型的卷  > 说明: >  > 此参数为boolean类型,若传入非boolean类型字符,程序将按照false方式处理。
	Hwpassthrough *bool `json:"hw:passthrough,omitempty"`

	// 云服务器系统盘对应的磁盘存储类型。 磁盘存储类型枚举值: DSS:专属存储类型
	ClusterType *PostPaidServerRootVolumeClusterType `json:"cluster_type,omitempty"`

	// 云服务器数据盘对应的存储池的ID。
	ClusterId *string `json:"cluster_id,omitempty"`

	Extendparam *PostPaidServerRootVolumeExtendParam `json:"extendparam,omitempty"`

	Metadata *PostPaidServerRootVolumeMetadata `json:"metadata,omitempty"`
}

PostPaidServerRootVolume

func (PostPaidServerRootVolume) String

func (o PostPaidServerRootVolume) String() string

type PostPaidServerRootVolumeClusterType

type PostPaidServerRootVolumeClusterType struct {
	// contains filtered or unexported fields
}

func (PostPaidServerRootVolumeClusterType) MarshalJSON

func (c PostPaidServerRootVolumeClusterType) MarshalJSON() ([]byte, error)

func (*PostPaidServerRootVolumeClusterType) UnmarshalJSON

func (c *PostPaidServerRootVolumeClusterType) UnmarshalJSON(b []byte) error

func (PostPaidServerRootVolumeClusterType) Value added in v0.0.90

type PostPaidServerRootVolumeClusterTypeEnum

type PostPaidServerRootVolumeClusterTypeEnum struct {
	DSS PostPaidServerRootVolumeClusterType
}

func GetPostPaidServerRootVolumeClusterTypeEnum

func GetPostPaidServerRootVolumeClusterTypeEnum() PostPaidServerRootVolumeClusterTypeEnum

type PostPaidServerRootVolumeExtendParam

type PostPaidServerRootVolumeExtendParam struct {

	// 磁盘产品资源规格编码,如SATA,SAS和SSD。  > 说明: >  > 废弃字段。
	ResourceSpecCode *string `json:"resourceSpecCode,omitempty"`

	// 磁盘产品资源类型。  > 说明: >  > 废弃字段。
	ResourceType *string `json:"resourceType,omitempty"`

	// 整机镜像中自带的原始数据盘(简称“原数据盘”)所对应的快照ID或原始数据盘ID。  使用场景:  使用整机镜像创建云服务器,并且选择的整机镜像自带1个或者多个数据盘。  用途:  使用整机镜像创建云服务器时,系统会自动恢复整机镜像中自带数据盘(如果有)的数据,但是磁盘类型将被恢复为默认属性:普通I/O、VBD、非共享盘。此时,您可以通过snapshotID,修改指定原数据盘恢复后的磁盘类型。  > 说明: >  > - 建议对每块原数据盘都指定snapshotID,否则,未指定的原数据盘将按默认属性进行创建。 > - 如需修改磁盘大小,修改后的磁盘大小需大于等于原数据盘大小。否则,会影响原数据盘的数据恢复。  实现原理:  snapshotId是整机镜像自带原始数据盘的唯一标识,通过snapshotId可以获取原数据盘的磁盘信息,从而恢复数据盘数据。  快照ID的获取方法:  登录管理控制台,打开\"云硬盘 > 快照\"页面,根据原始数据盘的磁盘名称找到对应的快照ID。
	SnapshotId *string `json:"snapshotId,omitempty"`
}

PostPaidServerRootVolumeExtendParam

func (PostPaidServerRootVolumeExtendParam) String

type PostPaidServerRootVolumeMetadata added in v0.1.40

type PostPaidServerRootVolumeMetadata struct {

	// metadata中的表示加密功能的字段,0代表不加密,1代表加密。  该字段不存在时,云硬盘默认为不加密。
	SystemEncrypted *string `json:"__system__encrypted,omitempty"`

	// metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。  > 说明:  - 请参考[查询密钥列表](https://support.huaweicloud.com/api-dew/ListKeys.html),通过HTTPS请求获取密钥ID。
	SystemCmkid *string `json:"__system__cmkid,omitempty"`
}

PostPaidServerRootVolumeMetadata

func (PostPaidServerRootVolumeMetadata) String added in v0.1.40

type PostPaidServerRootVolumeVolumetype

type PostPaidServerRootVolumeVolumetype struct {
	// contains filtered or unexported fields
}

func (PostPaidServerRootVolumeVolumetype) MarshalJSON

func (c PostPaidServerRootVolumeVolumetype) MarshalJSON() ([]byte, error)

func (*PostPaidServerRootVolumeVolumetype) UnmarshalJSON

func (c *PostPaidServerRootVolumeVolumetype) UnmarshalJSON(b []byte) error

func (PostPaidServerRootVolumeVolumetype) Value added in v0.0.90

type PostPaidServerSchedulerHints

type PostPaidServerSchedulerHints struct {

	// 云服务器组ID,UUID格式。  云服务器组的ID可以从控制台或者参考[查询云服务器组列表](https://support.huaweicloud.com/api-ecs/ecs_03_1402.html)获取。
	Group *string `json:"group,omitempty"`

	// 专属主机的ID。专属主机的ID仅在tenancy为dedicated时生效。
	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`

	// 在指定的专属主机或者共享主机上创建弹性云服务器云主机。参数值为shared或者dedicated。
	Tenancy *string `json:"tenancy,omitempty"`
}

PostPaidServerSchedulerHints

func (PostPaidServerSchedulerHints) String

type PostPaidServerSecurityGroup

type PostPaidServerSecurityGroup struct {

	// 可以为空,待创建云服务器的安全组,会对创建云服务器中配置的网卡生效。需要指定已有安全组的ID,UUID格式;若不传值,底层会按照空处理,不会创建安全组。
	Id *string `json:"id,omitempty"`
}

PostPaidServerSecurityGroup

func (PostPaidServerSecurityGroup) String

type PostPaidServerTag

type PostPaidServerTag struct {

	// 键。  最大长度36个unicode字符。key不能为空。不能包含非打印字符ASCII(0-31),\"=\", \"*\",“<”,“>”,“\\”,“,”,“|”,“/”。  同一资源的key值不能重复。
	Key string `json:"key"`

	//   值。  每个值最大长度43个unicode字符,可以为空字符串。 不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”。
	Value string `json:"value"`
}

PostPaidServerTag 弹性云服务器的标签。

func (PostPaidServerTag) String

func (o PostPaidServerTag) String() string

type PrePaidServer

type PrePaidServer struct {

	// 弹性云服务器定时删除时间。  时间格式例如:2020-01-19T03:30:52Z
	AutoTerminateTime *string `json:"auto_terminate_time,omitempty"`

	// 待创建云服务器的系统镜像,需要指定已创建镜像的ID,ID格式为通用唯一识别码(Universally Unique Identifier,简称UUID)。  镜像的ID可以从镜像服务的 [查询镜像列表](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=IMS&api=ListImages) 接口获取,该接口可根据 __imagetype、__os_type 等参数过滤选择合适镜像。
	ImageRef string `json:"imageRef"`

	// 待创建云服务器的系统规格的ID。  可通过 [规格列表接口](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=ECS&api=ListFlavors) 查询,该接口支持通过 availability_zone 参数过滤出待创建云服务器可用区下可用的规格。  已上线的规格请参见《[弹性云服务器产品介绍](https://support.huaweicloud.com/ecs/index.html)》的“实例类型与规格”章节。
	FlavorRef string `json:"flavorRef"`

	// 云服务器名称。  取值范围:  - 只能由中文字符、英文字母、数字及“_”、“-”、“.”组成,且长度为[1-64]个字符。 - 创建的云服务器器数量(count字段对应的值)大于1时,为区分不同云服务器,创建过程中系统会自动在名称后加“-0000”的类似标记。故此时名称的长度为[1-59]个字符。  > 说明: >  > 云服务器虚拟机内部(hostname)命名规则遵循 RFC 952RFC 1123命名规范,建议使用a-zA-z或0-9以及中划线\"-\"组成的名称命名,\"_\"将在弹性云服务器内部默认转化为\"-\"。
	Name string `json:"name"`

	// 创建云服务器过程中待注入用户数据。支持注入文本、文本文件或gzip文件。  更多关于待注入用户数据的信息,请参见《弹性云服务器用户指南 》的“[用户数据注入](https://support.huaweicloud.com/usermanual-ecs/zh-cn_topic_0032380449.html)”章节。  约束:  - 注入内容,需要进行base64格式编码。注入内容(编码之前的内容)最大长度32KB。 - 创建密码方式鉴权的Linux弹性云服务器时,该字段可为root用户注入自定义初始化密码,具体注入密码的使用方法请参见背景信息(设置登录鉴权方式)。 示例(base64编码前):  - Linux弹性云服务器  “` #! /bin/bash echo user_test >> /home/user.txt “`  - Windows弹性云服务器  “` rem cmd echo 111 > c:\\\\aaa.tx “`
	UserData *string `json:"user_data,omitempty"`

	// 如果需要使用密码方式登录云服务器,可使用adminPass字段指定云服务器管理员帐户初始登录密码。其中,Linux管理员帐户为root,Windows管理员帐户为Administrator。具体使用方法请参见背景信息(设置登录鉴权方式)。  密码复杂度要求:   - 长度为8-26位。  - 密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。 - 密码不能包含用户名或用户名的逆序。  - Windows系统密码不能包含用户名或用户名的逆序,不能包含用户名中超过两个连续字符的部分。
	AdminPass *string `json:"adminPass,omitempty"`

	// 如果需要使用SSH密钥方式登录云服务器,请指定已创建密钥的名称。  密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/ecs_03_1201.html) )。
	KeyName *string `json:"key_name,omitempty"`

	// 待创建云服务器所属虚拟私有云(简称VPC),需要指定已创建VPC的ID,UUID格式。  可通过 [查询VPC列表](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=VPC&api=ListVpcs) 接口查询。
	Vpcid string `json:"vpcid"`

	// 待创建云服务器的网卡信息。  约束:  - 网卡对应的子网(subnet)必须属于vpcid对应的VPC。 - 当前单个云服务器支持最多挂载12张网卡。 - 不同的规格对网卡上限有一定的区别,参考[规格清单](https://support.huaweicloud.com/productdesc-ecs/zh-cn_topic_0159822360.html)。
	Nics []PrePaidServerNic `json:"nics"`

	Publicip *PrePaidServerPublicip `json:"publicip,omitempty"`

	// 创建云服务器数量。  约束:  - 不传该字段时默认取值为1。 - 租户的配额足够时,最大值为500。
	Count *int32 `json:"count,omitempty"`

	// 当批量创建弹性云服务器时,云服务器名称是否允许重名,当count大于1的时候该参数生效。默认为True。  - True,表示允许重名。 - False,表示不允许重名。
	IsAutoRename *bool `json:"isAutoRename,omitempty"`

	RootVolume *PrePaidServerRootVolume `json:"root_volume"`

	// 云服务器对应数据盘相关配置。每一个数据结构代表一块待创建的数据盘。   约束:目前新创建的弹性云服务器最多可挂载23块数据盘。
	DataVolumes *[]PrePaidServerDataVolume `json:"data_volumes,omitempty"`

	// 云服务器对应安全组信息。  约束:当该值指定为空时,默认给云服务器绑定default安全组。
	SecurityGroups *[]PrePaidServerSecurityGroup `json:"security_groups,omitempty"`

	// 待创建云服务器所在的可用分区,需要指定可用分区(AZ)的名称。  可通过接口 [查询可用区列表接口](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=ECS&api=NovaListAvailabilityZones) 获取,也可参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)获取。
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 是否支持随机多AZ部署。  - “true”:批量创建的ecs部署在多个AZ上 - “false”:批量创建的ecs部署在单个AZ上  > 说明: >  > 当availability_zone为空时该字段生效。
	BatchCreateInMultiAz *bool `json:"batch_create_in_multi_az,omitempty"`

	Extendparam *PrePaidServerExtendParam `json:"extendparam,omitempty"`

	// 用户自定义字段键值对。  > 说明: >  > - 最多可注入10对键值(Key/Value)。 > - 主键(Key)只能由大写字母(A-Z)、小写字母(a-z)、数字(0-9)、中划线(-)、下划线(_)、冒号(:)和小数点(.)组成,长度为[1-255]个字符。 > - 值(value)最大长度为255个字符。  系统预留字段  1. op_svc_userid : 用户ID      当extendparam结构中的chargingMode为prePaid(即创建包年包月付费的云服务器),且使用SSH秘钥方式登录云服务器时,该字段为必选字段。  2. agency_name  :  委托的名称   委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。  > 说明: >  > 委托获取、更新请参考如下步骤: >  > 1. 使用IAM服务提供的[查询委托列表](https://support.huaweicloud.com/api-iam/zh-cn_topic_0079467614.html)接口,获取有效可用的委托名称。 > 2. 使用[更新云服务器元数](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0025560298.html)据接口,更新metadata中agency_name字段为新的委托名称。
	Metadata map[string]string `json:"metadata,omitempty"`

	OsschedulerHints *PrePaidServerSchedulerHints `json:"os:scheduler_hints,omitempty"`

	// 弹性云服务器的标签。  标签的格式为“key.value”。其中,key的长度不超过36个字符,value的长度不超过43个字符。  标签命名时,需满足如下要求:  - 标签的key值只能包含大写字母(A~Z)、小写字母(a~z)、数字(0-9)、下划线(_)、中划线(-)以及中文字符。 - 标签的value值只能包含大写字母(A~Z)、小写字母(a~z)、数字(0-9)、下划线(_)、中划线(-)、小数点(.)以及中文字符。  > 说明: >  > 创建弹性云服务器时,一台弹性云服务器最多可以添加10个标签。 > 公有云新增server_tags字段,该字段与tags字段功能相同,支持的key、value取值范围更广,建议使用server_tags字段。
	Tags *[]string `json:"tags,omitempty"`

	// 弹性云服务器的标签。  > 说明: >  > 创建弹性云服务器时,一台弹性云服务器最多可以添加10个标签。 > 公有云新增server_tags字段,该字段与tags字段功能相同,支持的key、value取值范围更广,建议使用server_tags字段。
	ServerTags *[]PrePaidServerTag `json:"server_tags,omitempty"`

	// 云服务器描述信息,默认为空字符串。  - 长度最多允许85个字符。 - 不能包含“<” 和 “>”。
	Description *string `json:"description,omitempty"`

	CpuOptions *CpuOptions `json:"cpu_options,omitempty"`
}

PrePaidServer 创建弹性云服务器(包周期)接口Body体。

func (PrePaidServer) String

func (o PrePaidServer) String() string

type PrePaidServerDataVolume

type PrePaidServerDataVolume struct {

	// 云服务器数据盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。   - SATA:普通IO磁盘类型。  - SAS:高IO磁盘类型。  - SSD:超高IO磁盘类型。  - GPSSD:为通用型SSD磁盘类型。  - co-p1:高IO (性能优化Ⅰ型)。  - uh-l1:超高IO (时延优化)。  - ESSD:为极速IO磁盘类型。  - GPSSD2:通用型SSD V2磁盘类型。  - ESSD2:极速型SSD V2磁盘类型。   > 说明: >  > 对于HANA云服务器、HL1型云服务器、HL2型云服务器,需使用co-p1和uh-l1两种磁盘类型。对于其他类型的云服务器,不能使用co-p1和uh-l1两种磁盘类型。  了解不同磁盘类型的详细信息,请参见 [磁盘类型及性能介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。  获取region可用的卷类型,请参见[查询云硬盘类型列表](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=EVS&api=CinderListVolumeTypes)
	Volumetype PrePaidServerDataVolumeVolumetype `json:"volumetype"`

	// 数据盘大小,容量单位为GB,输入大小范围为[10,32768]。
	Size int32 `json:"size"`

	// 给云硬盘配置iops,购买GPSSD2、ESSD2类型的云硬盘时必填,其他类型不能设置。  说明: 1、了解GPSSD2、ESSD2类型的iops大小范围,请参见 [云硬盘类型及性能介绍里面的云硬盘性能数据表](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。 2、只支持按需计费。
	Iops *int32 `json:"iops,omitempty"`

	// 给云硬盘配置吞吐量,单位是MiB/s,购买GPSSD2类型云盘时必填,其他类型不能设置。  说明: 1、了解GPSSD2类型的吞吐量大小范围,请参见 [云硬盘类型及性能介绍里面的云硬盘性能数据表](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。 2、只支持按需计费。
	Throughput *int32 `json:"throughput,omitempty"`

	// 是否为共享磁盘。true为共享盘,false为普通云硬盘。  > 说明: >  > 该字段已废弃,请使用multiattach。
	Shareable *bool `json:"shareable,omitempty"`

	// 创建共享磁盘的信息。  - true:创建的磁盘为共享盘。 - false:创建的磁盘为普通云硬盘。  > 说明: >  > shareable当前为废弃字段,如果确实需要同时使用shareable字段和multiattach字段,此时,请确保两个字段的参数值相同。当不指定该字段时,系统默认创建普通云硬盘。
	Multiattach *bool `json:"multiattach,omitempty"`

	// 数据卷是否使用SCSI锁。  - true表示云硬盘的设备类型为SCSI类型,即允许ECS操作系统直接访问底层存储介质。支持SCSI锁命令。 - false表示云硬盘的设备类型为VBD (虚拟块存储设备 , Virtual Block Device)类型,即为默认类型,VBD只能支持简单的SCSI读写命令。 - 该字段不存在时,云硬盘默认为VBD类型。  > 说明: >  > 此参数为boolean类型,若传入非boolean类型字符,程序将按照【false】方式处理。
	Hwpassthrough *bool `json:"hw:passthrough,omitempty"`

	Extendparam *PrePaidServerDataVolumeExtendParam `json:"extendparam,omitempty"`

	// 云服务器数据盘对应的磁盘存储类型。 磁盘存储类型枚举值: DSS:专属存储类型
	ClusterType *PrePaidServerDataVolumeClusterType `json:"cluster_type,omitempty"`

	// 云服务器数据盘对应的存储池的ID。
	ClusterId *string `json:"cluster_id,omitempty"`

	Metadata *PrePaidServerDataVolumeMetadata `json:"metadata,omitempty"`

	// 数据镜像的ID,UUID格式。  如果使用数据盘镜像创建数据盘,则data_image_id为必选参数,且不支持使用metadata。
	DataImageId *string `json:"data_image_id,omitempty"`

	// 数据盘随实例释放策略。  true:数据盘随实例释放。 false:数据盘不随实例释放。 默认值:false。
	DeleteOnTermination *bool `json:"delete_on_termination,omitempty"`
}

PrePaidServerDataVolume 云服务器对应数据盘相关配置。

func (PrePaidServerDataVolume) String

func (o PrePaidServerDataVolume) String() string

type PrePaidServerDataVolumeClusterType

type PrePaidServerDataVolumeClusterType struct {
	// contains filtered or unexported fields
}

func (PrePaidServerDataVolumeClusterType) MarshalJSON

func (c PrePaidServerDataVolumeClusterType) MarshalJSON() ([]byte, error)

func (*PrePaidServerDataVolumeClusterType) UnmarshalJSON

func (c *PrePaidServerDataVolumeClusterType) UnmarshalJSON(b []byte) error

func (PrePaidServerDataVolumeClusterType) Value added in v0.0.90

type PrePaidServerDataVolumeClusterTypeEnum

type PrePaidServerDataVolumeClusterTypeEnum struct {
	DSS PrePaidServerDataVolumeClusterType
}

func GetPrePaidServerDataVolumeClusterTypeEnum

func GetPrePaidServerDataVolumeClusterTypeEnum() PrePaidServerDataVolumeClusterTypeEnum

type PrePaidServerDataVolumeExtendParam

type PrePaidServerDataVolumeExtendParam struct {

	// 磁盘产品资源规格编码,如SATA,SAS和SSD。  > 说明: >  > 废弃字段。
	ResourceSpecCode *string `json:"resourceSpecCode,omitempty"`

	// 磁盘产品资源类型。  > 说明: >  > 废弃字段。
	ResourceType *string `json:"resourceType,omitempty"`

	// 整机镜像中自带的原始数据盘(简称“原数据盘”)所对应的快照ID或原始数据盘ID。  使用场景:  使用整机镜像创建云服务器,并且选择的整机镜像自带1个或者多个数据盘。  用途:  使用整机镜像创建云服务器时,系统会自动恢复整机镜像中自带数据盘(如果有)的数据,但是磁盘类型将被恢复为默认属性:普通I/O、VBD、非共享盘。此时,您可以通过snapshotID,修改指定原数据盘恢复后的磁盘类型。  > 说明: >  > 建议对每块原数据盘都指定snapshotID,否则,未指定的原数据盘将按默认属性进行创建。 > 如需修改磁盘大小,修改后的磁盘大小需大于等于原数据盘大小。否则,会影响原数据盘的数据恢复。  实现原理:  snapshotId是整机镜像自带原始数据盘的唯一标识,通过snapshotId可以获取原数据盘的磁盘信息,从而恢复数据盘数据。  快照ID的获取方法:  登录管理控制台,打开\"云硬盘 > 快照\"页面,根据原始数据盘的磁盘名称找到对应的快照ID。
	SnapshotId *string `json:"snapshotId,omitempty"`
}

PrePaidServerDataVolumeExtendParam 创建磁盘的extendparam字段

func (PrePaidServerDataVolumeExtendParam) String

type PrePaidServerDataVolumeMetadata

type PrePaidServerDataVolumeMetadata struct {

	// metadata中的表示加密功能的字段,0代表不加密,1代表加密。  该字段不存在时,云硬盘默认为不加密。
	SystemEncrypted *string `json:"__system__encrypted,omitempty"`

	// metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。  > 说明:  - 请参考[查询密钥列表](https://support.huaweicloud.com/api-dew/ListKeys.html),通过HTTPS请求获取密钥ID。
	SystemCmkid *string `json:"__system__cmkid,omitempty"`
}

PrePaidServerDataVolumeMetadata > 说明: > > 如果是从镜像创建云硬盘,则不支持传入“__system__encrypted”和“__system__cmkid”字段,创建出来的云硬盘与镜像的加密属性一致。

func (PrePaidServerDataVolumeMetadata) String

type PrePaidServerDataVolumeVolumetype

type PrePaidServerDataVolumeVolumetype struct {
	// contains filtered or unexported fields
}

func (PrePaidServerDataVolumeVolumetype) MarshalJSON

func (c PrePaidServerDataVolumeVolumetype) MarshalJSON() ([]byte, error)

func (*PrePaidServerDataVolumeVolumetype) UnmarshalJSON

func (c *PrePaidServerDataVolumeVolumetype) UnmarshalJSON(b []byte) error

func (PrePaidServerDataVolumeVolumetype) Value added in v0.0.90

type PrePaidServerEip

type PrePaidServerEip struct {

	// 弹性IP地址类型。  详情请参见“[申请弹性公网IP](https://support.huaweicloud.com/api-eip/eip_api_0001.html)”章节的“publicip”字段说明。
	Iptype string `json:"iptype"`

	Bandwidth *PrePaidServerEipBandwidth `json:"bandwidth"`

	Extendparam *PrePaidServerEipExtendParam `json:"extendparam,omitempty"`
}

PrePaidServerEip

func (PrePaidServerEip) String

func (o PrePaidServerEip) String() string

type PrePaidServerEipBandwidth

type PrePaidServerEipBandwidth struct {

	// 功能说明:带宽大小  带宽(Mbit/s),取值范围为[1,2000]。  调整带宽时的最小单位会根据带宽范围不同存在差异。  - 小于等于300Mbit/s:默认最小单位为1Mbit/s。 - 300Mbit/s~1000Mbit/s:默认最小单位为50Mbit/s。 - 大于1000Mbit/s:默认最小单位为500Mbit/s。  > 说明: >  > 如果share_type是PER,该参数必选项;如果share_type是WHOLE并且id有值,该参数会忽略。
	Size *int32 `json:"size,omitempty"`

	// 带宽的共享类型。  共享类型枚举:PER,表示独享。WHOLE,表示共享。
	Sharetype PrePaidServerEipBandwidthSharetype `json:"sharetype"`

	// 带宽的计费类型。  - 未传该字段,表示按带宽计费。 - 字段值为空,表示按带宽计费。 - 字段值为“traffic”,表示按流量计费。 - 字段为其它值,会导致创建云服务器失败。  > 说明: >  > 如果share_type是WHOLE并且id有值,该参数会忽略。
	Chargemode *string `json:"chargemode,omitempty"`

	// 带宽ID,创建WHOLE类型带宽的弹性IP时可以指定之前的共享带宽创建。  取值范围:WHOLE类型的带宽ID。  > 说明: >  > 当创建WHOLE类型的带宽时,该字段必选。
	Id *string `json:"id,omitempty"`
}

PrePaidServerEipBandwidth

func (PrePaidServerEipBandwidth) String

func (o PrePaidServerEipBandwidth) String() string

type PrePaidServerEipBandwidthSharetype

type PrePaidServerEipBandwidthSharetype struct {
	// contains filtered or unexported fields
}

func (PrePaidServerEipBandwidthSharetype) MarshalJSON

func (c PrePaidServerEipBandwidthSharetype) MarshalJSON() ([]byte, error)

func (*PrePaidServerEipBandwidthSharetype) UnmarshalJSON

func (c *PrePaidServerEipBandwidthSharetype) UnmarshalJSON(b []byte) error

func (PrePaidServerEipBandwidthSharetype) Value added in v0.0.90

type PrePaidServerEipBandwidthSharetypeEnum

type PrePaidServerEipBandwidthSharetypeEnum struct {
	PER   PrePaidServerEipBandwidthSharetype
	WHOLE PrePaidServerEipBandwidthSharetype
}

func GetPrePaidServerEipBandwidthSharetypeEnum

func GetPrePaidServerEipBandwidthSharetypeEnum() PrePaidServerEipBandwidthSharetypeEnum

type PrePaidServerEipExtendParam

type PrePaidServerEipExtendParam struct {

	// 公网IP的计费模式。  取值范围:  - prePaid-预付费,即包年包月; - postPaid-后付费,即按需付费;  > 说明: >  > 如果bandwidth对象中share_type是WHOLE且id有值,弹性IP只能创建为按需付费的,故该参数传参“prePaid”无效。
	ChargingMode *PrePaidServerEipExtendParamChargingMode `json:"chargingMode,omitempty"`
}

PrePaidServerEipExtendParam

func (PrePaidServerEipExtendParam) String

type PrePaidServerEipExtendParamChargingMode

type PrePaidServerEipExtendParamChargingMode struct {
	// contains filtered or unexported fields
}

func (PrePaidServerEipExtendParamChargingMode) MarshalJSON

func (c PrePaidServerEipExtendParamChargingMode) MarshalJSON() ([]byte, error)

func (*PrePaidServerEipExtendParamChargingMode) UnmarshalJSON

func (c *PrePaidServerEipExtendParamChargingMode) UnmarshalJSON(b []byte) error

func (PrePaidServerEipExtendParamChargingMode) Value added in v0.0.90

type PrePaidServerEipExtendParamChargingModeEnum

type PrePaidServerEipExtendParamChargingModeEnum struct {
	PRE_PAID  PrePaidServerEipExtendParamChargingMode
	POST_PAID PrePaidServerEipExtendParamChargingMode
}

func GetPrePaidServerEipExtendParamChargingModeEnum

func GetPrePaidServerEipExtendParamChargingModeEnum() PrePaidServerEipExtendParamChargingModeEnum

type PrePaidServerExtendParam

type PrePaidServerExtendParam struct {

	// 计费模式。  功能说明:付费方式  取值范围:  - prePaid-预付费,即包年包月; - postPaid-后付费,即按需付费; - 默认值是postPaid  > 说明: >  > 当chargingMode为prePaid(即创建包年包月付费的云服务器),且使用SSH秘钥方式登录云服务器时,metadata 中的 op_svc_userid 字段为必选字段。
	ChargingMode *PrePaidServerExtendParamChargingMode `json:"chargingMode,omitempty"`

	// 云服务器所在区域ID。  请参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)获取。
	RegionID *string `json:"regionID,omitempty"`

	// 订购周期类型。  取值范围:  - month-月 - year-年  > 说明: >  > chargingMode为prePaid时生效且为必选值。
	PeriodType *PrePaidServerExtendParamPeriodType `json:"periodType,omitempty"`

	// 订购周期数。  取值范围:  - periodType=month(周期类型为月)时,取值为[1,9]; - periodType=year(周期类型为年)时,取值为[1,3];  > 说明: >  > chargingMode为prePaid时生效且为必选值。 >  > periodNum为正整数。
	PeriodNum *int32 `json:"periodNum,omitempty"`

	// 是否自动续订。  - “true”:自动续订 - “false”:不自动续订  > 说明: >  > chargingMode为prePaid时生效,不传该字段时默认为不自动续订。
	IsAutoRenew *PrePaidServerExtendParamIsAutoRenew `json:"isAutoRenew,omitempty"`

	// 下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。  - “true”:是(自动支付) - “false”:否(需要客户手动支付)  > 说明: >  > chargingMode为prePaid时生效,不传该字段时默认为客户手动支付。
	IsAutoPay *PrePaidServerExtendParamIsAutoPay `json:"isAutoPay,omitempty"`

	// 企业项目ID。  > 说明: >  > 关于企业项目ID的获取及企业项目特性的详细信息,请参见《[企业管理服务用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)》。 >  > 该字段不传(或传为字符串“0”),则将资源绑定给默认企业项目。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 是否配置弹性云服务器自动恢复的功能。  - “true”:配置该功能 - “false”:不配置该功能  > 说明: >  > 此参数为boolean类型,若传入非boolean类型字符,程序将按照【“false”:不配置该功能】方式处理。 >  > 当marketType为spot时,不支持该功能。
	SupportAutoRecovery *bool `json:"support_auto_recovery,omitempty"`

	// 创建竞价实例时,需指定该参数的值为“spot”。  > 说明: >  > 当chargingMode=postPaid且marketType=spot时,此参数生效。
	MarketType *string `json:"marketType,omitempty"`

	// 用户愿意为竞价实例每小时支付的最高价格。  > 说明: >  > 仅chargingMode=postPaid且marketType=spot时,该参数设置后生效。 >  > 当chargingMode=postPaid且marketType=spot时,如果不传递spotPrice或者传递一个空字符串,默认使用按需购买的价格作为竞价。
	SpotPrice *string `json:"spotPrice,omitempty"`

	// 是否支持先创建卷,再创建虚拟机。  “true”:配置该功能 “false”:不配置该功能
	DiskPrior *string `json:"diskPrior,omitempty"`

	// 购买的竞价实例时长。  - 仅interruption_policy=immediate 时该字段有效 。 - spot_duration_hours大于0。最大值由预测系统给出可以从flavor的extra_specs的cond:spot_block:operation:longest_duration_hours字段中查询。
	SpotDurationHours *int32 `json:"spot_duration_hours,omitempty"`

	// 竞价实例中断策略,当前支持immediate。  - 当interruption_policy=immediate时表示释放策略为立即释放。
	InterruptionPolicy *PrePaidServerExtendParamInterruptionPolicy `json:"interruption_policy,omitempty"`

	// 云备份策略和云备份存储库详情,取值包含:备份策略ID和云备份存储库ID。
	CbCsbsBackup *string `json:"CB_CSBS_BACKUP,omitempty"`

	// 表示购买的“竞价实例时长”的个数。  - 仅spot_duration_hours>0 时该字段有效。 - spot_duration_hours小于6时,spot_duration_count值必须为1。 - spot_duration_hours等于6时,spot_duration_count大于等于1。  spot_duration_count的最大值由预测系统给出可以从flavor的extra_specs的cond:spot_block:operation:longest_duration_count字段中查询。
	SpotDurationCount *int32 `json:"spot_duration_count,omitempty"`
}

PrePaidServerExtendParam

func (PrePaidServerExtendParam) String

func (o PrePaidServerExtendParam) String() string

type PrePaidServerExtendParamChargingMode

type PrePaidServerExtendParamChargingMode struct {
	// contains filtered or unexported fields
}

func (PrePaidServerExtendParamChargingMode) MarshalJSON

func (c PrePaidServerExtendParamChargingMode) MarshalJSON() ([]byte, error)

func (*PrePaidServerExtendParamChargingMode) UnmarshalJSON

func (c *PrePaidServerExtendParamChargingMode) UnmarshalJSON(b []byte) error

func (PrePaidServerExtendParamChargingMode) Value added in v0.0.90

type PrePaidServerExtendParamChargingModeEnum

type PrePaidServerExtendParamChargingModeEnum struct {
	PRE_PAID  PrePaidServerExtendParamChargingMode
	POST_PAID PrePaidServerExtendParamChargingMode
}

func GetPrePaidServerExtendParamChargingModeEnum

func GetPrePaidServerExtendParamChargingModeEnum() PrePaidServerExtendParamChargingModeEnum

type PrePaidServerExtendParamInterruptionPolicy

type PrePaidServerExtendParamInterruptionPolicy struct {
	// contains filtered or unexported fields
}

func (PrePaidServerExtendParamInterruptionPolicy) MarshalJSON

func (*PrePaidServerExtendParamInterruptionPolicy) UnmarshalJSON

func (PrePaidServerExtendParamInterruptionPolicy) Value added in v0.0.90

type PrePaidServerExtendParamInterruptionPolicyEnum

type PrePaidServerExtendParamInterruptionPolicyEnum struct {
	IMMEDIATE PrePaidServerExtendParamInterruptionPolicy
}

func GetPrePaidServerExtendParamInterruptionPolicyEnum

func GetPrePaidServerExtendParamInterruptionPolicyEnum() PrePaidServerExtendParamInterruptionPolicyEnum

type PrePaidServerExtendParamIsAutoPay

type PrePaidServerExtendParamIsAutoPay struct {
	// contains filtered or unexported fields
}

func (PrePaidServerExtendParamIsAutoPay) MarshalJSON

func (c PrePaidServerExtendParamIsAutoPay) MarshalJSON() ([]byte, error)

func (*PrePaidServerExtendParamIsAutoPay) UnmarshalJSON

func (c *PrePaidServerExtendParamIsAutoPay) UnmarshalJSON(b []byte) error

func (PrePaidServerExtendParamIsAutoPay) Value added in v0.0.90

type PrePaidServerExtendParamIsAutoPayEnum

type PrePaidServerExtendParamIsAutoPayEnum struct {
	TRUE  PrePaidServerExtendParamIsAutoPay
	FALSE PrePaidServerExtendParamIsAutoPay
}

func GetPrePaidServerExtendParamIsAutoPayEnum

func GetPrePaidServerExtendParamIsAutoPayEnum() PrePaidServerExtendParamIsAutoPayEnum

type PrePaidServerExtendParamIsAutoRenew

type PrePaidServerExtendParamIsAutoRenew struct {
	// contains filtered or unexported fields
}

func (PrePaidServerExtendParamIsAutoRenew) MarshalJSON

func (c PrePaidServerExtendParamIsAutoRenew) MarshalJSON() ([]byte, error)

func (*PrePaidServerExtendParamIsAutoRenew) UnmarshalJSON

func (c *PrePaidServerExtendParamIsAutoRenew) UnmarshalJSON(b []byte) error

func (PrePaidServerExtendParamIsAutoRenew) Value added in v0.0.90

type PrePaidServerExtendParamIsAutoRenewEnum

type PrePaidServerExtendParamIsAutoRenewEnum struct {
	TRUE  PrePaidServerExtendParamIsAutoRenew
	FALSE PrePaidServerExtendParamIsAutoRenew
}

func GetPrePaidServerExtendParamIsAutoRenewEnum

func GetPrePaidServerExtendParamIsAutoRenewEnum() PrePaidServerExtendParamIsAutoRenewEnum

type PrePaidServerExtendParamPeriodType

type PrePaidServerExtendParamPeriodType struct {
	// contains filtered or unexported fields
}

func (PrePaidServerExtendParamPeriodType) MarshalJSON

func (c PrePaidServerExtendParamPeriodType) MarshalJSON() ([]byte, error)

func (*PrePaidServerExtendParamPeriodType) UnmarshalJSON

func (c *PrePaidServerExtendParamPeriodType) UnmarshalJSON(b []byte) error

func (PrePaidServerExtendParamPeriodType) Value added in v0.0.90

type PrePaidServerExtendParamPeriodTypeEnum

type PrePaidServerExtendParamPeriodTypeEnum struct {
	MONTH PrePaidServerExtendParamPeriodType
	YEAR  PrePaidServerExtendParamPeriodType
}

func GetPrePaidServerExtendParamPeriodTypeEnum

func GetPrePaidServerExtendParamPeriodTypeEnum() PrePaidServerExtendParamPeriodTypeEnum

type PrePaidServerIpv6Bandwidth

type PrePaidServerIpv6Bandwidth struct {

	// 绑定的共享带宽ID。
	Id *string `json:"id,omitempty"`
}

PrePaidServerIpv6Bandwidth IPV6共享带宽。

func (PrePaidServerIpv6Bandwidth) String

type PrePaidServerNic

type PrePaidServerNic struct {

	// 待创建云服务器所在的子网信息,需要指定vpcid对应VPC下的子网ID,UUID格式。  可以通过VPC服务 [查询子网](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=VPC&api=ListSubnets) 接口查询,该接口支持通过创建云服务器填写的vpcid进行过滤查询。
	SubnetId string `json:"subnet_id"`

	// 待创建云服务器网卡的IP地址,IPv4格式。  约束:  - 不填或空字符串,默认在子网(subnet)中自动分配一个未使用的IP作网卡的IP地址。 - 若指定IP地址,该IP地址必须在子网(subnet)对应的网段内,且未被使用。
	IpAddress *string `json:"ip_address,omitempty"`

	// 是否支持ipv6。  取值为true时,标识此网卡支持ipv6。
	Ipv6Enable *bool `json:"ipv6_enable,omitempty"`

	Ipv6Bandwidth *PrePaidServerIpv6Bandwidth `json:"ipv6_bandwidth,omitempty"`

	// IP/Mac对列表, 约束:IP地址不允许为 “0.0.0.0/0” 如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组 如果allowed_address_pairs为“1.1.1.1/0”,表示关闭源目地址检查开关 被绑定的云服务器网卡allowed_address_pairs填“1.1.1.1/0”
	AllowedAddressPairs *[]CreateServerNicAllowedAddressPairs `json:"allowed_address_pairs,omitempty"`
}

PrePaidServerNic 待创建云服务器的网卡信息。

func (PrePaidServerNic) String

func (o PrePaidServerNic) String() string

type PrePaidServerPublicip

type PrePaidServerPublicip struct {

	// 为待创建云服务器分配已有弹性IP时,分配的弹性IP的ID,UUID格式。  约束:只能分配状态(status)为DOWN的弹性IP。
	Id *string `json:"id,omitempty"`

	Eip *PrePaidServerEip `json:"eip,omitempty"`

	// 弹性公网IP随实例释放策略。  true:弹性公网IP随实例释放。 false:弹性公网IP不随实例释放。 默认值:false。
	DeleteOnTermination *bool `json:"delete_on_termination,omitempty"`
}

PrePaidServerPublicip

func (PrePaidServerPublicip) String

func (o PrePaidServerPublicip) String() string

type PrePaidServerRootVolume

type PrePaidServerRootVolume struct {

	// 云服务器系统盘对应的磁盘类型,需要与系统所提供的磁盘类型相匹配。   - SATA:普通IO磁盘类型。  - SAS:高IO磁盘类型。  - SSD:超高IO磁盘类型。  - GPSSD:为通用型SSD磁盘类型。  - co-p1:高IO (性能优化Ⅰ型)。  - uh-l1:超高IO (时延优化)。  - ESSD:为极速IO磁盘类型。  - GPSSD2:通用型SSD V2磁盘类型。  - ESSD2:极速型SSD V2磁盘类型。   > 说明: >  > 对于HANA云服务器、HL1型云服务器、HL2型云服务器,需使用co-p1和uh-l1两种磁盘类型。对于其他类型的云服务器,不能使用co-p1和uh-l1两种磁盘类型。  了解不同磁盘类型的详细信息,请参见 [磁盘类型及性能介绍](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。  获取region可用的卷类型,请参见[查询云硬盘类型列表](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=EVS&api=CinderListVolumeTypes)
	Volumetype PrePaidServerRootVolumeVolumetype `json:"volumetype"`

	// 系统盘大小,容量单位为GB, 输入大小范围为[1,1024]。  约束:  - 系统盘大小取值应不小于镜像支持的系统盘的最小值(镜像的min_disk属性)。 - 若该参数没有指定或者指定为0时,系统盘大小默认取值为镜像中系统盘的最小值(镜像的min_disk属性)。  > 说明:  > 镜像系统盘的最小值(镜像的min_disk属性)可在控制台中点击镜像详情查看。或通过调用“查询镜像详情(OpenStack原生)”API获取,详细操作请参考[《镜像服务API参考》](https://support.huaweicloud.com/api-ims/ims_03_0702.html)中“查询镜像详情(OpenStack原生)”章节。
	Size *int32 `json:"size,omitempty"`

	// 给云硬盘配置iops,购买GPSSD2、ESSD2类型的云硬盘时必填,其他类型不能设置。  说明: 1、了解GPSSD2、ESSD2类型的iops大小范围,请参见 [云硬盘类型及性能介绍里面的云硬盘性能数据表](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。 2、只支持按需计费。
	Iops *int32 `json:"iops,omitempty"`

	// 给云硬盘配置吞吐量,单位是MiB/s,购买GPSSD2类型云盘时必填,其他类型不能设置。  说明: 1、了解GPSSD2类型的吞吐量大小范围,请参见 [云硬盘类型及性能介绍里面的云硬盘性能数据表](https://support.huaweicloud.com/productdesc-evs/zh-cn_topic_0044524691.html)。 2、只支持按需计费。
	Throughput *int32 `json:"throughput,omitempty"`

	Extendparam *PrePaidServerRootVolumeExtendParam `json:"extendparam,omitempty"`

	Metadata *PrePaidServerRootVolumeMetadata `json:"metadata,omitempty"`

	// 云服务器系统盘对应的磁盘存储类型。 磁盘存储类型枚举值: DSS:专属存储类型
	ClusterType *PrePaidServerRootVolumeClusterType `json:"cluster_type,omitempty"`

	// 云服务器数据盘对应的存储池的ID。
	ClusterId *string `json:"cluster_id,omitempty"`

	// 使用SDI规格创建虚拟机时请关注该参数,如果该参数值为true,说明创建的为scsi类型的卷  > 说明: >  > 此参数为boolean类型,若传入非boolean类型字符,程序将按照false方式处理。
	Hwpassthrough *bool `json:"hw:passthrough,omitempty"`
}

PrePaidServerRootVolume

func (PrePaidServerRootVolume) String

func (o PrePaidServerRootVolume) String() string

type PrePaidServerRootVolumeClusterType

type PrePaidServerRootVolumeClusterType struct {
	// contains filtered or unexported fields
}

func (PrePaidServerRootVolumeClusterType) MarshalJSON

func (c PrePaidServerRootVolumeClusterType) MarshalJSON() ([]byte, error)

func (*PrePaidServerRootVolumeClusterType) UnmarshalJSON

func (c *PrePaidServerRootVolumeClusterType) UnmarshalJSON(b []byte) error

func (PrePaidServerRootVolumeClusterType) Value added in v0.0.90

type PrePaidServerRootVolumeClusterTypeEnum

type PrePaidServerRootVolumeClusterTypeEnum struct {
	DSS PrePaidServerRootVolumeClusterType
}

func GetPrePaidServerRootVolumeClusterTypeEnum

func GetPrePaidServerRootVolumeClusterTypeEnum() PrePaidServerRootVolumeClusterTypeEnum

type PrePaidServerRootVolumeExtendParam

type PrePaidServerRootVolumeExtendParam struct {

	// 磁盘产品资源规格编码,如SATA,SAS和SSD。  > 说明: >  > 废弃字段。
	ResourceSpecCode *string `json:"resourceSpecCode,omitempty"`

	// 磁盘产品资源类型。  > 说明: >  > 废弃字段。
	ResourceType *string `json:"resourceType,omitempty"`

	// 整机镜像中自带的原始数据盘(简称“原数据盘”)所对应的快照ID或原始数据盘ID。  使用场景:  使用整机镜像创建云服务器,并且选择的整机镜像自带1个或者多个数据盘。  用途:  使用整机镜像创建云服务器时,系统会自动恢复整机镜像中自带数据盘(如果有)的数据,但是磁盘类型将被恢复为默认属性:普通I/O、VBD、非共享盘。此时,您可以通过snapshotID,修改指定原数据盘恢复后的磁盘类型。  > 说明: >  > - 建议对每块原数据盘都指定snapshotID,否则,未指定的原数据盘将按默认属性进行创建。 > - 如需修改磁盘大小,修改后的磁盘大小需大于等于原数据盘大小。否则,会影响原数据盘的数据恢复。  实现原理:  snapshotId是整机镜像自带原始数据盘的唯一标识,通过snapshotId可以获取原数据盘的磁盘信息,从而恢复数据盘数据。  快照ID的获取方法:  登录管理控制台,打开\"云硬盘 > 快照\"页面,根据原始数据盘的磁盘名称找到对应的快照ID。
	SnapshotId *string `json:"snapshotId,omitempty"`
}

PrePaidServerRootVolumeExtendParam

func (PrePaidServerRootVolumeExtendParam) String

type PrePaidServerRootVolumeMetadata added in v0.1.40

type PrePaidServerRootVolumeMetadata struct {

	// metadata中的表示加密功能的字段,0代表不加密,1代表加密。  该字段不存在时,云硬盘默认为不加密。
	SystemEncrypted *string `json:"__system__encrypted,omitempty"`

	// metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。  > 说明:  - 请参考[查询密钥列表](https://support.huaweicloud.com/api-dew/ListKeys.html),通过HTTPS请求获取密钥ID。
	SystemCmkid *string `json:"__system__cmkid,omitempty"`
}

PrePaidServerRootVolumeMetadata

func (PrePaidServerRootVolumeMetadata) String added in v0.1.40

type PrePaidServerRootVolumeVolumetype

type PrePaidServerRootVolumeVolumetype struct {
	// contains filtered or unexported fields
}

func (PrePaidServerRootVolumeVolumetype) MarshalJSON

func (c PrePaidServerRootVolumeVolumetype) MarshalJSON() ([]byte, error)

func (*PrePaidServerRootVolumeVolumetype) UnmarshalJSON

func (c *PrePaidServerRootVolumeVolumetype) UnmarshalJSON(b []byte) error

func (PrePaidServerRootVolumeVolumetype) Value added in v0.0.90

type PrePaidServerSchedulerHints

type PrePaidServerSchedulerHints struct {

	// 云服务器组ID,UUID格式。  云服务器组的ID可以从控制台或者参考[查询云服务器组列表](https://support.huaweicloud.com/api-ecs/ecs_03_1402.html)获取。
	Group *string `json:"group,omitempty"`

	// 在指定的专属主机或者共享主机上创建弹性云服务器。参数值为shared或者dedicated。
	Tenancy *PrePaidServerSchedulerHintsTenancy `json:"tenancy,omitempty"`

	// 专属主机的ID。
	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`
}

PrePaidServerSchedulerHints

func (PrePaidServerSchedulerHints) String

type PrePaidServerSchedulerHintsTenancy

type PrePaidServerSchedulerHintsTenancy struct {
	// contains filtered or unexported fields
}

func (PrePaidServerSchedulerHintsTenancy) MarshalJSON

func (c PrePaidServerSchedulerHintsTenancy) MarshalJSON() ([]byte, error)

func (*PrePaidServerSchedulerHintsTenancy) UnmarshalJSON

func (c *PrePaidServerSchedulerHintsTenancy) UnmarshalJSON(b []byte) error

func (PrePaidServerSchedulerHintsTenancy) Value added in v0.0.90

type PrePaidServerSchedulerHintsTenancyEnum

type PrePaidServerSchedulerHintsTenancyEnum struct {
	SHARED    PrePaidServerSchedulerHintsTenancy
	DEDICATED PrePaidServerSchedulerHintsTenancy
}

func GetPrePaidServerSchedulerHintsTenancyEnum

func GetPrePaidServerSchedulerHintsTenancyEnum() PrePaidServerSchedulerHintsTenancyEnum

type PrePaidServerSecurityGroup

type PrePaidServerSecurityGroup struct {

	// 可以为空,待创建云服务器的安全组,会对创建云服务器中配置的网卡生效。需要指定已有安全组的ID,UUID格式;若不传值,底层会按照空处理,不会创建安全组。
	Id *string `json:"id,omitempty"`
}

PrePaidServerSecurityGroup

func (PrePaidServerSecurityGroup) String

type PrePaidServerTag

type PrePaidServerTag struct {

	// 键。  最大长度36个unicode字符。key不能为空。不能包含非打印字符ASCII(0-31),\"=\", \"*\",“<”,“>”,“\\”,“,”,“|”,“/”。  同一资源的key值不能重复。
	Key string `json:"key"`

	//   值。  每个值最大长度43个unicode字符,可以为空字符串。 不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”。
	Value string `json:"value"`
}

PrePaidServerTag 弹性云服务器的标签。

func (PrePaidServerTag) String

func (o PrePaidServerTag) String() string

type ProjectFlavorLimit

type ProjectFlavorLimit struct {
}

ProjectFlavorLimit

func (ProjectFlavorLimit) String

func (o ProjectFlavorLimit) String() string

type ProjectTag added in v0.0.64

type ProjectTag struct {

	// 键。  - 最大长度36个unicode字符。  - 只能包含数字、字母、中划线“-”、下划线“_”。  - 字符集:A-Z,a-z , 0-9,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。  - 不能包含以下ASCII非打印字符:“=”,“*”,“<”,“>”,“\\”,“|”,“/”,“,”。  - 标签的键必须唯一且输入不能为空。
	Key string `json:"key"`

	// 值。  - 每个值最大长度43个unicode字符。  - 可以为空字符串。  - 只能包含数字、字母、中划线“-”、下划线“_”。  - 字符集:A-Z,a-z , 0-9,‘.’,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。  - 不能包含以下ASCII非打印字符:“=”,“*”,“<”,“>”,“\\”,“|”,“/”,“,”。
	Values *[]string `json:"values,omitempty"`
}

ProjectTag 项目标签列表。

func (ProjectTag) String added in v0.0.64

func (o ProjectTag) String() string

type RegisterServerMonitorRequest added in v0.1.7

type RegisterServerMonitorRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *RegisterServerMonitorRequestBody `json:"body,omitempty"`
}

RegisterServerMonitorRequest Request Object

func (RegisterServerMonitorRequest) String added in v0.1.7

type RegisterServerMonitorRequestBody added in v0.1.7

type RegisterServerMonitorRequestBody struct {

	// 注册云服务器监控。
	MonitorMetrics RegisterServerMonitorRequestBodyMonitorMetrics `json:"monitorMetrics"`
}

RegisterServerMonitorRequestBody This is a auto create Body Object

func (RegisterServerMonitorRequestBody) String added in v0.1.7

type RegisterServerMonitorRequestBodyMonitorMetrics added in v0.1.11

type RegisterServerMonitorRequestBodyMonitorMetrics struct {
	// contains filtered or unexported fields
}

func (RegisterServerMonitorRequestBodyMonitorMetrics) MarshalJSON added in v0.1.11

func (*RegisterServerMonitorRequestBodyMonitorMetrics) UnmarshalJSON added in v0.1.11

func (RegisterServerMonitorRequestBodyMonitorMetrics) Value added in v0.1.11

type RegisterServerMonitorRequestBodyMonitorMetricsEnum added in v0.1.11

type RegisterServerMonitorRequestBodyMonitorMetricsEnum struct {
	EMPTY RegisterServerMonitorRequestBodyMonitorMetrics
}

func GetRegisterServerMonitorRequestBodyMonitorMetricsEnum added in v0.1.11

func GetRegisterServerMonitorRequestBodyMonitorMetricsEnum() RegisterServerMonitorRequestBodyMonitorMetricsEnum

type RegisterServerMonitorResponse added in v0.1.7

type RegisterServerMonitorResponse struct {
	HttpStatusCode int `json:"-"`
}

RegisterServerMonitorResponse Response Object

func (RegisterServerMonitorResponse) String added in v0.1.7

type ReinstallServerWithCloudInitOption

type ReinstallServerWithCloudInitOption struct {

	// 云服务器管理员帐户的初始登录密码。 其中,Windows管理员帐户的用户名为Administrator。 建议密码复杂度如下:  - 长度为8-26位。 - 密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。   > 说明:  - 对于Windows弹性云服务器,密码不能包含用户名或用户名的逆序,不能包含用户名中超过两个连续字符的部分。 - 对于Linux弹性云服务器也可使用user_data字段实现密码注入,此时adminpass字段无效。 - adminpass和keyname不能同时有值。 - adminpass和keyname如果同时为空,此时,metadata中的user_data属性必须有值。
	Adminpass *string `json:"adminpass,omitempty"`

	// 密钥名称。  密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/ecs_03_1201.html) )。
	Keyname *string `json:"keyname,omitempty"`

	// 用户ID。当传入keyname参数时,此参数为必选。
	Userid *string `json:"userid,omitempty"`

	Metadata *ReinstallSeverMetadata `json:"metadata,omitempty"`

	// 取值为withStopServer ,支持开机状态下重装弹性云服务器。 mode取值为withStopServer时,对开机状态的弹性云服务器执行重装操作,系统自动对云服务器先执行关机,再重装操作系统。
	Mode *string `json:"mode,omitempty"`
}

ReinstallServerWithCloudInitOption 重装操作系统body。

func (ReinstallServerWithCloudInitOption) String

type ReinstallServerWithCloudInitRequest

type ReinstallServerWithCloudInitRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *ReinstallServerWithCloudInitRequestBody `json:"body,omitempty"`
}

ReinstallServerWithCloudInitRequest Request Object

func (ReinstallServerWithCloudInitRequest) String

type ReinstallServerWithCloudInitRequestBody

type ReinstallServerWithCloudInitRequestBody struct {
	OsReinstall *ReinstallServerWithCloudInitOption `json:"os-reinstall"`
}

ReinstallServerWithCloudInitRequestBody This is a auto create Body Object

func (ReinstallServerWithCloudInitRequestBody) String

type ReinstallServerWithCloudInitResponse

type ReinstallServerWithCloudInitResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ReinstallServerWithCloudInitResponse Response Object

func (ReinstallServerWithCloudInitResponse) String

type ReinstallServerWithoutCloudInitOption added in v0.0.64

type ReinstallServerWithoutCloudInitOption struct {

	// 云服务器管理员帐户的初始登录密码。  其中,Windows管理员帐户的用户名为Administrator。  建议密码复杂度如下:  - 长度为8-26位。 - 密码至少必须包含大写字母、小写字母、数字和特殊字符(!@$%^-_=+[{}]:,./?)中的三种。  > 说明: >  - 对于Windows弹性云服务器,密码不能包含用户名或用户名的逆序,不能包含用户名中超过两个连续字符的部分。 - adminpass和keyname不能同时为空。
	Adminpass *string `json:"adminpass,omitempty"`

	// 密钥名称。  密钥可以通过密钥创建接口进行创建(请参见[创建和导入SSH密钥](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0020212678.html)),或使用SSH密钥查询接口查询已有的密钥(请参见[查询SSH密钥列表](https://support.huaweicloud.com/api-ecs/ecs_03_1201.html) )。
	Keyname *string `json:"keyname,omitempty"`

	// 用户ID。当传入keyname参数时,此参数为必选。
	Userid *string `json:"userid,omitempty"`

	// 取值为withStopServer ,支持开机状态下切换弹性云服务器操作系统。 mode取值为withStopServer时,对开机状态的弹性云服务器执行切换操作系统操作,系统自动对云服务器先执行关机,再切换操作系统。
	Mode *string `json:"mode,omitempty"`

	Metadata *ReinstallSeverMetadataWithoutCloudInitOption `json:"metadata,omitempty"`
}

ReinstallServerWithoutCloudInitOption 重装操作系统body。

func (ReinstallServerWithoutCloudInitOption) String added in v0.0.64

type ReinstallServerWithoutCloudInitRequest added in v0.0.64

type ReinstallServerWithoutCloudInitRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *ReinstallServerWithoutCloudInitRequestBody `json:"body,omitempty"`
}

ReinstallServerWithoutCloudInitRequest Request Object

func (ReinstallServerWithoutCloudInitRequest) String added in v0.0.64

type ReinstallServerWithoutCloudInitRequestBody added in v0.0.64

type ReinstallServerWithoutCloudInitRequestBody struct {
	OsReinstall *ReinstallServerWithoutCloudInitOption `json:"os-reinstall"`
}

ReinstallServerWithoutCloudInitRequestBody This is a auto create Body Object

func (ReinstallServerWithoutCloudInitRequestBody) String added in v0.0.64

type ReinstallServerWithoutCloudInitResponse added in v0.0.64

type ReinstallServerWithoutCloudInitResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ReinstallServerWithoutCloudInitResponse Response Object

func (ReinstallServerWithoutCloudInitResponse) String added in v0.0.64

type ReinstallSeverMetadata

type ReinstallSeverMetadata struct {

	// metadata中的表示加密功能的字段,0代表不加密,1代表加密。  该字段不存在时,云硬盘默认为不加密。
	SystemEncrypted *string `json:"__system__encrypted,omitempty"`

	// metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。  > 说明:  - 请参考[查询密钥列表](https://support.huaweicloud.com/api-dew/ListKeys.html),通过HTTPS请求获取密钥ID。
	SystemCmkid *string `json:"__system__cmkid,omitempty"`

	// 重装云服务器过程中注入用户数据。  支持注入文本、文本文件或gzip文件。注入内容最大长度32KB。注入内容,需要进行base64格式编码。  了解更多用户数据注入请参考[用户数据注入](https://support.huaweicloud.com/usermanual-ecs/zh-cn_topic_0032380449.html)。
	UserData *string `json:"user_data,omitempty"`

	// 如果您已拥有操作系统或软件的许可证(一般是指按物理插槽数、物理内核数等进行认证的许可证),您可以通过自带许可(BYOL)的方式将业务完整迁移到云平台,继续使用您的许可证。 - true: 使用自有license - 其他值: 视为非法参数,接口报错
	Byol *string `json:"BYOL,omitempty"`
}

ReinstallSeverMetadata

func (ReinstallSeverMetadata) String

func (o ReinstallSeverMetadata) String() string

type ReinstallSeverMetadataWithoutCloudInitOption added in v0.1.39

type ReinstallSeverMetadataWithoutCloudInitOption struct {

	// metadata中的表示加密功能的字段,0代表不加密,1代表加密。  该字段不存在时,云硬盘默认为不加密。
	SystemEncrypted *string `json:"__system__encrypted,omitempty"`

	// metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。  > 说明:  - 请参考[查询密钥列表](https://support.huaweicloud.com/api-dew/ListKeys.html),通过HTTPS请求获取密钥ID。
	SystemCmkid *string `json:"__system__cmkid,omitempty"`

	// 如果您已拥有操作系统或软件的许可证(一般是指按物理插槽数、物理内核数等进行认证的许可证),您可以通过自带许可(BYOL)的方式将业务完整迁移到云平台,继续使用您的许可证。 - true: 使用自有license - 其他值: 视为非法参数,接口报错
	Byol *string `json:"BYOL,omitempty"`
}

ReinstallSeverMetadataWithoutCloudInitOption

func (ReinstallSeverMetadataWithoutCloudInitOption) String added in v0.1.39

type ResetServerPasswordOption

type ResetServerPasswordOption struct {

	// 弹性云服务器新密码。  该接口默认不做密码安全性校验;如需校验,请指定字段“is_check_password”为true。  新密码的校验规则: - 密码长度范围为8到26位。 - 允许输入的字符包括:!@%-_=+[]:./? - 禁止输入的字符包括:汉字及【】:;“”‘’、,。《》?¥…()—— ·!~`#&^,{}*();\"'<>|\\ $ - 复杂度上必须包含大写字母(A-Z)、小写字母(a-z)、数字(0-9)、以及允许的特殊字符中的3种以上搭配 - 不能包含用户名 \"Administrator\" 和“root”及逆序字符 - 不能包含用户名 \"Administrator\" 中连续3个字符
	NewPassword string `json:"new_password"`

	// 是否检查密码的复杂度。
	IsCheckPassword *bool `json:"is_check_password,omitempty"`
}

func (ResetServerPasswordOption) String

func (o ResetServerPasswordOption) String() string

type ResetServerPasswordRequest

type ResetServerPasswordRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *ResetServerPasswordRequestBody `json:"body,omitempty"`
}

ResetServerPasswordRequest Request Object

func (ResetServerPasswordRequest) String

type ResetServerPasswordRequestBody

type ResetServerPasswordRequestBody struct {
	ResetPassword *ResetServerPasswordOption `json:"reset-password"`
}

ResetServerPasswordRequestBody This is a auto create Body Object

func (ResetServerPasswordRequestBody) String

type ResetServerPasswordResponse

type ResetServerPasswordResponse struct {
	HttpStatusCode int `json:"-"`
}

ResetServerPasswordResponse Response Object

func (ResetServerPasswordResponse) String

type ResizePostPaidServerOption

type ResizePostPaidServerOption struct {

	// 变更后的云服务器规格ID。  可通过[查询云服务器规格变更支持列表](https://support.huaweicloud.com/api-ecs/ecs_02_0402.html)接口查询允许变更的规格列表。
	FlavorRef string `json:"flavorRef"`

	// 取值为withStopServer ,支持开机状态下变更规格。  mode取值为withStopServer时,对开机状态的云服务器执行变更规格操作,系统自动对云服务器先执行关机,再变更规格,变更成功后再执行开机。
	Mode *string `json:"mode,omitempty"`

	CpuOptions *CpuOptions `json:"cpu_options,omitempty"`
}

ResizePostPaidServerOption

func (ResizePostPaidServerOption) String

type ResizePostPaidServerRequest

type ResizePostPaidServerRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *ResizePostPaidServerRequestBody `json:"body,omitempty"`
}

ResizePostPaidServerRequest Request Object

func (ResizePostPaidServerRequest) String

type ResizePostPaidServerRequestBody

type ResizePostPaidServerRequestBody struct {
	Resize *ResizePostPaidServerOption `json:"resize"`

	// 是否只预检此次请求。  true:发送检查请求,不会变更云服务器规格。检查项包括是否填写了必需参数、请求格式等。  如果检查不通过,则返回对应错误。 如果检查通过,则返回202状态码。 false:发送正常请求,通过检查后并且执行变更云服务器规格请求。
	DryRun *bool `json:"dry_run,omitempty"`
}

ResizePostPaidServerRequestBody This is a auto create Body Object

func (ResizePostPaidServerRequestBody) String

type ResizePostPaidServerResponse

type ResizePostPaidServerResponse struct {

	// 提交任务成功后返回的任务ID,用户可以使用该ID对任务执行情况进行查询。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ResizePostPaidServerResponse Response Object

func (ResizePostPaidServerResponse) String

type ResizePrePaidServerOption

type ResizePrePaidServerOption struct {

	// 变更后的云服务器规格ID。  可通过[查询云服务器规格变更支持列表](https://support.huaweicloud.com/api-ecs/ecs_02_0402.html)接口查询允许变更的规格列表。
	FlavorRef string `json:"flavorRef"`

	// 新专属主机ID(仅适用于专属主机上的弹性云服务器)。
	DedicatedHostId *string `json:"dedicated_host_id,omitempty"`

	Extendparam *ResizeServerExtendParam `json:"extendparam,omitempty"`

	// 取值为withStopServer ,支持开机状态下变更规格。  mode取值为withStopServer时,对开机状态的云服务器执行变更规格操作,系统自动对云服务器先执行关机,再变更规格,变更成功后再执行开机。
	Mode *string `json:"mode,omitempty"`

	CpuOptions *CpuOptions `json:"cpu_options,omitempty"`
}

ResizePrePaidServerOption

func (ResizePrePaidServerOption) String

func (o ResizePrePaidServerOption) String() string

type ResizeServerExtendParam

type ResizeServerExtendParam struct {

	// 下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。  - “true”:是(自动支付) - “false”:否(需要客户手动支付)  > 说明: >  > 当弹性云服务器是按包年包月计费时生效,该值为空时默认为客户手动支付。
	IsAutoPay *string `json:"isAutoPay,omitempty"`
}

ResizeServerExtendParam

func (ResizeServerExtendParam) String

func (o ResizeServerExtendParam) String() string

type ResizeServerRequest

type ResizeServerRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *ResizeServerRequestBody `json:"body,omitempty"`
}

ResizeServerRequest Request Object

func (ResizeServerRequest) String

func (o ResizeServerRequest) String() string

type ResizeServerRequestBody

type ResizeServerRequestBody struct {
	Resize *ResizePrePaidServerOption `json:"resize"`

	// 是否只预检此次请求。  true:发送检查请求,不会变更云服务器规格。检查项包括是否填写了必需参数、请求格式等。  如果检查不通过,则返回对应错误。 如果检查通过,则返回202状态码。 false:发送正常请求,通过检查后并且执行变更云服务器规格请求。
	DryRun *bool `json:"dry_run,omitempty"`
}

ResizeServerRequestBody This is a auto create Body Object

func (ResizeServerRequestBody) String

func (o ResizeServerRequestBody) String() string

type ResizeServerResponse

type ResizeServerResponse struct {

	// 订单号,创建包年包月的弹性云服务器时返回该参数。
	OrderId *string `json:"order_id,omitempty"`

	// 任务ID,变更按需的弹性云服务器规格时返回该参数。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ResizeServerResponse Response Object

func (ResizeServerResponse) String

func (o ResizeServerResponse) String() string

type ResourceTag added in v0.0.104

type ResourceTag struct {

	// 键。  - 最大长度127个unicode字符。  - key不能为空。  - 只能包含字母、数字、下划线“_”、中划线“-”。
	Key string `json:"key"`

	// 值。  - 每个值最大长度255个unicode字符。  - 可以为空字符串。  - 只能包含字母、数字、下划线“_”、中划线“-”。
	Value string `json:"value"`
}

ResourceTag 云服务器标签。

func (ResourceTag) String added in v0.0.104

func (o ResourceTag) String() string

type ServerAddress

type ServerAddress struct {

	// IP地址版本。  - “4”:代表IPv4。 - “6”:代表IPv6。
	Version string `json:"version"`

	// 是否主网卡。  - true:是主网卡 - false:辅助网卡
	Primary *bool `json:"primary,omitempty"`

	// IP地址。
	Addr string `json:"addr"`

	// IP地址类型。  - fixed:代表私有IP地址。 - floating:代表浮动IP地址。
	OSEXTIPStype *ServerAddressOSEXTIPStype `json:"OS-EXT-IPS:type,omitempty"`

	// MAC地址。
	OSEXTIPSMACmacAddr *string `json:"OS-EXT-IPS-MAC:mac_addr,omitempty"`

	// IP地址对应的端口ID。
	OSEXTIPSportId *string `json:"OS-EXT-IPS:port_id,omitempty"`
}

ServerAddress 弹性云服务器的网络属性。

func (ServerAddress) String

func (o ServerAddress) String() string

type ServerAddressOSEXTIPStype

type ServerAddressOSEXTIPStype struct {
	// contains filtered or unexported fields
}

func (ServerAddressOSEXTIPStype) MarshalJSON

func (c ServerAddressOSEXTIPStype) MarshalJSON() ([]byte, error)

func (*ServerAddressOSEXTIPStype) UnmarshalJSON

func (c *ServerAddressOSEXTIPStype) UnmarshalJSON(b []byte) error

func (ServerAddressOSEXTIPStype) Value added in v0.0.90

type ServerAddressOSEXTIPStypeEnum

type ServerAddressOSEXTIPStypeEnum struct {
	FIXED    ServerAddressOSEXTIPStype
	FLOATING ServerAddressOSEXTIPStype
}

func GetServerAddressOSEXTIPStypeEnum

func GetServerAddressOSEXTIPStypeEnum() ServerAddressOSEXTIPStypeEnum

type ServerAttachableQuantity

type ServerAttachableQuantity struct {

	// 可挂载scsi卷数。
	FreeScsi int32 `json:"free_scsi"`

	// 可挂载vbd卷数。
	FreeBlk int32 `json:"free_blk"`

	// 可挂载卷数。
	FreeDisk int32 `json:"free_disk"`

	// 可挂载网卡数。
	FreeNic int32 `json:"free_nic"`
}

ServerAttachableQuantity 云服务器可挂载网卡和卷数。

func (ServerAttachableQuantity) String

func (o ServerAttachableQuantity) String() string

type ServerBlockDevice

type ServerBlockDevice struct {

	// 云硬盘启动顺序。  - 0为系统盘。  - 非0为数据盘
	BootIndex *int32 `json:"bootIndex,omitempty"`

	// pci地址。
	PciAddress *string `json:"pciAddress,omitempty"`

	// 云硬盘ID,UUID格式。
	VolumeId *string `json:"volumeId,omitempty"`

	// 云硬盘挂载盘符,即磁盘挂载点。
	Device *string `json:"device,omitempty"`

	// 弹性云服务器ID,UUID格式。
	ServerId *string `json:"serverId,omitempty"`

	// 挂载ID,与云硬盘ID相同。UUID格式。
	Id *string `json:"id,omitempty"`

	// 云硬盘大小,单位GB。
	Size *int32 `json:"size,omitempty"`

	// 磁盘总线类型 。  取值范围:virtio、scsi
	Bus *string `json:"bus,omitempty"`
}

ServerBlockDevice 查询云服务器指定磁盘挂载信息响应信息

func (ServerBlockDevice) String

func (o ServerBlockDevice) String() string

type ServerDetail

type ServerDetail struct {

	// 弹性云服务器状态。  取值范围:  ACTIVE、BUILD、DELETED、ERROR、HARD_REBOOT、MIGRATING、PAUSED、REBOOT、REBUILD、RESIZE、REVERT_RESIZE、SHUTOFF、SHELVED、SHELVED_OFFLOADED、SOFT_DELETED、SUSPENDED、VERIFY_RESIZE  弹性云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)
	Status string `json:"status"`

	// 弹性云服务器更新时间。  时间格式例如:2019-05-22T03:30:52Z
	Updated string `json:"updated"`

	// 弹性云服务器定时删除时间。  时间格式例如:2020-01-19T03:30:52Z
	AutoTerminateTime string `json:"auto_terminate_time"`

	// 弹性云服务器所在主机的主机ID。
	HostId string `json:"hostId"`

	// 弹性云服务器所在主机的主机名称。
	OSEXTSRVATTRhost string `json:"OS-EXT-SRV-ATTR:host"`

	// 弹性云服务器的网络属性。
	Addresses map[string][]ServerAddress `json:"addresses"`

	// 弹性云服务器使用的密钥对名称。
	KeyName string `json:"key_name"`

	Image *ServerImage `json:"image"`

	// 扩展属性,弹性云服务器当前任务的状态。  取值范围请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)表3。
	OSEXTSTStaskState string `json:"OS-EXT-STS:task_state"`

	// 扩展属性,弹性云服务器当前状态。  云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)。
	OSEXTSTSvmState string `json:"OS-EXT-STS:vm_state"`

	// 扩展属性,弹性云服务器别名。
	OSEXTSRVATTRinstanceName string `json:"OS-EXT-SRV-ATTR:instance_name"`

	// 扩展属性,弹性云服务器所在虚拟化主机名。
	OSEXTSRVATTRhypervisorHostname string `json:"OS-EXT-SRV-ATTR:hypervisor_hostname"`

	Flavor *ServerFlavor `json:"flavor"`

	// 弹性云服务器ID,格式为UUID。
	Id string `json:"id"`

	// 弹性云服务器所属安全组列表。
	SecurityGroups []ServerSecurityGroup `json:"security_groups"`

	// 扩展属性,弹性云服务器所在可用区名称。
	OSEXTAZavailabilityZone string `json:"OS-EXT-AZ:availability_zone"`

	// 创建弹性云服务器的用户ID,格式为UUID。
	UserId string `json:"user_id"`

	// 弹性云服务器名称。
	Name string `json:"name"`

	// 弹性云服务器创建时间。  时间格式例如:2019-05-22T03:19:19Z
	Created string `json:"created"`

	// 弹性云服务器所属租户ID,即项目id,和project_id表示相同的概念,格式为UUID。
	TenantId string `json:"tenant_id"`

	// 扩展属性, diskConfig的类型。  - MANUAL,镜像空间不会扩展。 - AUTO,系统盘镜像空间会自动扩展为与flavor大小一致。
	OSDCFdiskConfig *string `json:"OS-DCF:diskConfig,omitempty"`

	// 预留属性。
	AccessIPv4 string `json:"accessIPv4"`

	// 预留属性。
	AccessIPv6 string `json:"accessIPv6"`

	Fault *ServerFault `json:"fault,omitempty"`

	// 弹性云服务器进度。
	Progress *int32 `json:"progress,omitempty"`

	// 扩展属性,弹性云服务器电源状态。
	OSEXTSTSpowerState int32 `json:"OS-EXT-STS:power_state"`

	// config drive信息。
	ConfigDrive string `json:"config_drive"`

	// 弹性云服务器元数据。  > 说明: >  > 元数据包含系统默认添加字段和用户设置的字段。  系统默认添加字段  1. charging_mode 云服务器的计费类型。  - “0”:按需计费(即postPaid-后付费方式)。 - “1”:按包年包月计费(即prePaid-预付费方式)。\"2\":竞价实例计费  2. metering.order_id 按“包年/包月”计费的云服务器对应的订单ID。  3. metering.product_id 按“包年/包月”计费的云服务器对应的产品ID。  4. vpc_id 云服务器所属的虚拟私有云ID。  5. EcmResStatus 云服务器的冻结状态。  - normal:云服务器正常状态(未被冻结)。 - freeze:云服务器被冻结。  > 当云服务器被冻结或者解冻后,系统默认添加该字段,且该字段必选。  6. metering.image_id 云服务器操作系统对应的镜像ID  7.  metering.imagetype 镜像类型,目前支持:  - 公共镜像(gold) - 私有镜像(private) - 共享镜像(shared)  8. metering.resourcespeccode 云服务器对应的资源规格。  9. image_name 云服务器操作系统对应的镜像名称。  10. os_bit 操作系统位数,一般取值为“32”或者“64”。  11. lockCheckEndpoint 回调URL,用于检查弹性云服务器的加锁是否有效。  - 如果有效,则云服务器保持锁定状态。 - 如果无效,解除锁定状态,删除失效的锁。  12. lockSource 弹性云服务器来自哪个服务。订单加锁(ORDER)  13. lockSourceId 弹性云服务器的加锁来自哪个ID。lockSource为“ORDER”时,lockSourceId为订单ID。  14. lockScene 弹性云服务器的加锁类型。  - 按需转包周期(TO_PERIOD_LOCK)  15. virtual_env_type  - IOS镜像创建虚拟机,\"virtual_env_type\": \"IsoImage\" 属性; - 非IOS镜像创建虚拟机,在19.5.0版本以后创建的虚拟机将不会添加virtual_env_type 属性,而在此之前的版本创建的虚拟机可能会返回\"virtual_env_type\": \"FusionCompute\"属性 。  > virtual_env_type属性不允许用户增加、删除和修改。  16. metering.resourcetype 云服务器对应的资源类型。  17. os_type 操作系统类型,取值为:Linux、Windows。  18. cascaded.instance_extrainfo 系统内部虚拟机扩展信息。  19. __support_agent_list 云服务器是否支持企业主机安全、主机监控。  - “hss”:企业主机安全 -  “ces”:主机监控  20. agency_name 委托的名称。  委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。
	Metadata map[string]string `json:"metadata"`

	// 弹性云服务器启动时间。时间格式例如:2019-05-22T03:23:59.000000
	OSSRVUSGlaunchedAt string `json:"OS-SRV-USG:launched_at"`

	// 弹性云服务器删除时间。  时间格式例如:2019-05-22T03:23:59.000000
	OSSRVUSGterminatedAt string `json:"OS-SRV-USG:terminated_at"`

	// 挂载到弹性云服务器上的磁盘。
	OsExtendedVolumesvolumesAttached []ServerExtendVolumeAttachment `json:"os-extended-volumes:volumes_attached"`

	// 弹性云服务器的描述信息。
	Description *string `json:"description,omitempty"`

	// nova-compute状态。  - UP:服务正常 - UNKNOWN:状态未知 - DOWN:服务异常 - MAINTENANCE:维护状态 - 空字符串:弹性云服务器无主机信息
	HostStatus string `json:"host_status"`

	// 弹性云服务器的主机名。
	OSEXTSRVATTRhostname string `json:"OS-EXT-SRV-ATTR:hostname"`

	// 批量创建场景,弹性云服务器的预留ID。
	OSEXTSRVATTRreservationId *string `json:"OS-EXT-SRV-ATTR:reservation_id,omitempty"`

	// 批量创建场景,弹性云服务器的启动顺序。
	OSEXTSRVATTRlaunchIndex int32 `json:"OS-EXT-SRV-ATTR:launch_index"`

	// 若使用AMI格式的镜像,则表示kernel image的UUID;否则,留空。
	OSEXTSRVATTRkernelId string `json:"OS-EXT-SRV-ATTR:kernel_id"`

	// 若使用AMI格式镜像,则表示ramdisk image的UUID;否则,留空。
	OSEXTSRVATTRramdiskId string `json:"OS-EXT-SRV-ATTR:ramdisk_id"`

	// 弹性云服务器系统盘的设备名称。
	OSEXTSRVATTRrootDeviceName string `json:"OS-EXT-SRV-ATTR:root_device_name"`

	// 创建弹性云服务器时指定的user_data。
	OSEXTSRVATTRuserData *string `json:"OS-EXT-SRV-ATTR:user_data,omitempty"`

	// 弹性云服务器是否为锁定状态。  - true:锁定 - false:未锁定
	Locked bool `json:"locked"`

	// 弹性云服务器标签。
	Tags *[]string `json:"tags,omitempty"`

	OsschedulerHints *ServerSchedulerHints `json:"os:scheduler_hints,omitempty"`

	// 弹性云服务器所属的企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 弹性云服务器系统标签。
	SysTags *[]ServerSystemTag `json:"sys_tags,omitempty"`

	CpuOptions *CpuOptions `json:"cpu_options,omitempty"`

	Hypervisor *Hypervisor `json:"hypervisor,omitempty"`
}

ServerDetail 云服务器详情。

func (ServerDetail) String

func (o ServerDetail) String() string

type ServerExtendVolumeAttachment

type ServerExtendVolumeAttachment struct {

	// 磁盘ID,格式为UUID。
	Id string `json:"id"`

	// 删弹性云服务器时是否一并删除该磁盘。  - true:是 - false:否 微版本2.3及以上版本支持。
	DeleteOnTermination string `json:"delete_on_termination"`

	// 启动标识,“0”代表启动盘,“-1“代表非启动盘。
	BootIndex *string `json:"bootIndex,omitempty"`

	// 云硬盘挂载盘符,即磁盘挂载点。
	Device string `json:"device"`
}

ServerExtendVolumeAttachment 挂载到弹性云服务器上的磁盘。

func (ServerExtendVolumeAttachment) String

type ServerFault

type ServerFault struct {

	// 错误码。
	Code *int32 `json:"code,omitempty"`

	// 异常出现的时间。
	Created *string `json:"created,omitempty"`

	// 异常描述信息。
	Message *string `json:"message,omitempty"`

	// 异常详情信息。
	Details *string `json:"details,omitempty"`
}

ServerFault 弹性云服务器故障信息。

func (ServerFault) String

func (o ServerFault) String() string

type ServerFlavor

type ServerFlavor struct {

	// 弹性云服务器规格ID。
	Id string `json:"id"`

	// 弹性云服务器规格名称。
	Name string `json:"name"`

	// 该云服务器规格对应要求系统盘大小,0为不限制。此字段在本系统中无效。
	Disk string `json:"disk"`

	// 该云服务器规格对应的CPU核数。
	Vcpus string `json:"vcpus"`

	// 该云服务器规格对应的内存大小,单位为MB。
	Ram string `json:"ram"`
}

ServerFlavor 弹性云服务器规格信息。

func (ServerFlavor) String

func (o ServerFlavor) String() string

type ServerGroupMember

type ServerGroupMember struct {

	// 云服务器UUID。
	InstanceUuid string `json:"instance_uuid"`
}

ServerGroupMember 云服务器组添加、删除成员列表

func (ServerGroupMember) String

func (o ServerGroupMember) String() string

type ServerId

type ServerId struct {

	// 云服务器ID。
	Id string `json:"id"`
}

ServerId

func (ServerId) String

func (o ServerId) String() string

type ServerImage

type ServerImage struct {

	// 镜像id
	Id string `json:"id"`
}

ServerImage 弹性云服务器镜像信息。

func (ServerImage) String

func (o ServerImage) String() string

type ServerInterfaceFixedIp

type ServerInterfaceFixedIp struct {

	// 网卡私网IP信息。
	IpAddress *string `json:"ip_address,omitempty"`

	// 网卡私网IP对应子网信息。
	SubnetId *string `json:"subnet_id,omitempty"`
}

func (ServerInterfaceFixedIp) String

func (o ServerInterfaceFixedIp) String() string

type ServerLimits

type ServerLimits struct {

	// 镜像元数据最大的长度。
	MaxImageMeta int32 `json:"maxImageMeta"`

	// 可注入文件的最大个数。
	MaxPersonality int32 `json:"maxPersonality"`

	// 注入文件内容的最大长度(单位:Byte)。
	MaxPersonalitySize int32 `json:"maxPersonalitySize"`

	// 安全组中安全组规则最大的配置个数。   > 说明:  - 具体配额限制请以VPC配额限制为准。
	MaxSecurityGroupRules int32 `json:"maxSecurityGroupRules"`

	// 安全组最大使用个数。  > 说明:  - 具体配额限制请以VPC配额限制为准。
	MaxSecurityGroups int32 `json:"maxSecurityGroups"`

	// 服务器组中的最大虚拟机数。
	MaxServerGroupMembers int32 `json:"maxServerGroupMembers"`

	// 服务器组的最大个数。
	MaxServerGroups int32 `json:"maxServerGroups"`

	// 可输入元数据的最大长度。
	MaxServerMeta int32 `json:"maxServerMeta"`

	// CPU核数最大申请数量。
	MaxTotalCores int32 `json:"maxTotalCores"`

	// 最大的浮动IP使用个数。
	MaxTotalFloatingIps int32 `json:"maxTotalFloatingIps"`

	// 云服务器最大申请数量。
	MaxTotalInstances int32 `json:"maxTotalInstances"`

	// 可以申请的SSH密钥对最大数量。
	MaxTotalKeypairs int32 `json:"maxTotalKeypairs"`

	// 内存最大申请容量(单位:MB)。
	MaxTotalRAMSize int32 `json:"maxTotalRAMSize"`

	// 当前已使用CPU核数。
	TotalCoresUsed int32 `json:"totalCoresUsed"`

	// 当前浮动IP使用个数。
	TotalFloatingIpsUsed int32 `json:"totalFloatingIpsUsed"`

	// 当前云服务器使用个数。
	TotalInstancesUsed int32 `json:"totalInstancesUsed"`

	// 当前内存使用容量(单位:MB)。
	TotalRAMUsed int64 `json:"totalRAMUsed"`

	// 当前安全组使用个数。
	TotalSecurityGroupsUsed int32 `json:"totalSecurityGroupsUsed"`

	// 已使用的服务器组个数。
	TotalServerGroupsUsed int32 `json:"totalServerGroupsUsed"`

	// 竞价实例的最大申请数量。
	MaxTotalSpotInstances *int32 `json:"maxTotalSpotInstances,omitempty"`

	// 竞价实例的CPU核数最大申请数量。
	MaxTotalSpotCores *int32 `json:"maxTotalSpotCores,omitempty"`

	// 竞价实例的内存最大申请容量(单位:MB)。
	MaxTotalSpotRAMSize *int32 `json:"maxTotalSpotRAMSize,omitempty"`

	// 当前竞价实例的使用个数。
	TotalSpotInstancesUsed *int32 `json:"totalSpotInstancesUsed,omitempty"`

	// 当前竞价实例已使用的CPU核数。
	TotalSpotCoresUsed *int32 `json:"totalSpotCoresUsed,omitempty"`

	// 当前竞价实例的内存使用容量(单位:MB)。
	TotalSpotRAMUsed *int32 `json:"totalSpotRAMUsed,omitempty"`

	// 使用该flavor可以申请的弹性云服务器数量。  值为“-1”时,表示无数量限制。
	LimitByFlavor *[]ProjectFlavorLimit `json:"limit_by_flavor,omitempty"`
}

ServerLimits

func (ServerLimits) String

func (o ServerLimits) String() string

type ServerNicSecurityGroup

type ServerNicSecurityGroup struct {

	// 安全组ID。
	Id string `json:"id"`
}

ServerNicSecurityGroup

func (ServerNicSecurityGroup) String

func (o ServerNicSecurityGroup) String() string

type ServerRemoteConsole

type ServerRemoteConsole struct {

	// 远程登录的协议。
	Protocol string `json:"protocol"`

	// 远程登录的类型。
	Type string `json:"type"`

	// 远程登录的url。
	Url string `json:"url"`
}

ServerRemoteConsole

func (ServerRemoteConsole) String

func (o ServerRemoteConsole) String() string

type ServerResource added in v0.0.104

type ServerResource struct {

	// 云服务器ID。
	ResourceId string `json:"resource_id"`

	// 预留字段。
	ResourceDetail string `json:"resource_detail"`

	// 标签列表
	Tags []ResourceTag `json:"tags"`

	// 资源名称,即弹性云服务器名称。
	ResourceName string `json:"resource_name"`
}

ServerResource

func (ServerResource) String added in v0.0.104

func (o ServerResource) String() string

type ServerSchedulerHints

type ServerSchedulerHints struct {

	// 反亲和性组信息。  UUID格式。
	Group *[]string `json:"group,omitempty"`

	// 在专属主机或共享池中创建弹性云服务器。默认为在共享池创建。值为: shared或dedicated。  - shared:表示共享池。 - dedicated:表示专属主机。  创建与查询此值均有效。
	Tenancy *[]string `json:"tenancy,omitempty"`

	// 专属主机ID。  此属性仅在tenancy值为dedicated时有效。  不指定此属性,系统将自动分配租户可自动放置弹性云服务器的专属主机。  创建与查询此值均有效。
	DedicatedHostId *[]string `json:"dedicated_host_id,omitempty"`
}

ServerSchedulerHints 弹性云服务器调度信息。

func (ServerSchedulerHints) String

func (o ServerSchedulerHints) String() string

type ServerSecurityGroup

type ServerSecurityGroup struct {

	// 安全组名称或者UUID。
	Name string `json:"name"`

	// 安全组ID。
	Id string `json:"id"`
}

ServerSecurityGroup 弹性云服务器所属安全组列表。

func (ServerSecurityGroup) String

func (o ServerSecurityGroup) String() string

type ServerSystemTag

type ServerSystemTag struct {

	// 系统标签的Key值。
	Key *string `json:"key,omitempty"`

	// 系统标签的value值。
	Value *string `json:"value,omitempty"`
}

ServerSystemTag 弹性云服务器系统标签。

func (ServerSystemTag) String

func (o ServerSystemTag) String() string

type ServerTag

type ServerTag struct {

	// 键。  - 不能为空。  - 对于同一资源键值唯一。  - 长度不超过36个字符。  - 字符集:A-Z,a-z , 0-9,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
	Key string `json:"key"`

	// 值。  - 长度不超过43个字符。  - 字符集:A-Z,a-z , 0-9,‘.’,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。  - 只能包含数字、字母、中划线“-”、下划线“_”。
	Value *string `json:"value,omitempty"`
}

ServerTag 云服务器标签。

func (ServerTag) String

func (o ServerTag) String() string

type ServerTagMatch added in v0.0.104

type ServerTagMatch struct {

	// 键,表示要匹配的字段。  当前key的参数值只能取“resource_name”,此时value的参数值为云服务器名称。  - key不能重复,value为匹配的值。  - 此字段为固定字典值。  - 不允许为空字符串。
	Key string `json:"key"`

	// 值。  当前key的参数值只能取“resource_name”,此时value的参数值为云服务器名称。  - 每个值最大长度255个unicode字符。  - 不可以为空。
	Value string `json:"value"`
}

ServerTagMatch 搜索字段,用于按条件搜索弹性云服务器。

func (ServerTagMatch) String added in v0.0.104

func (o ServerTagMatch) String() string

type ServerTags added in v0.0.104

type ServerTags struct {

	// 键。  - 最大长度127个unicode字符。  - key不能为空。
	Key string `json:"key"`

	// 值列表。  - 最多10个value。  - value不允许重复。  - 每个值最大长度255个unicode字符。  - 如果values为空则表示any_value。  - value之间为或的关系。
	Values []string `json:"values"`
}

ServerTags

func (ServerTags) String added in v0.0.104

func (o ServerTags) String() string

type ShowJobRequest

type ShowJobRequest struct {

	// 异步请求的任务ID。
	JobId string `json:"job_id"`
}

ShowJobRequest Request Object

func (ShowJobRequest) String

func (o ShowJobRequest) String() string

type ShowJobResponse

type ShowJobResponse struct {

	// 开始时间。
	BeginTime *string `json:"begin_time,omitempty"`

	// 查询Job的API请求出现错误时,返回的错误码。
	Code *string `json:"code,omitempty"`

	// 结束时间。
	EndTime *string `json:"end_time,omitempty"`

	Entities *JobEntities `json:"entities,omitempty"`

	// Job执行失败时的错误码。  Job执行成功后,该值为null。
	ErrorCode *string `json:"error_code,omitempty"`

	// Job执行失败时的错误原因。  Job执行成功后,该值为null。
	FailReason *string `json:"fail_reason,omitempty"`

	// 异步请求的任务ID。
	JobId *string `json:"job_id,omitempty"`

	// 异步请求的任务类型。
	JobType *string `json:"job_type,omitempty"`

	// 查询Job的API请求出现错误时,返回的错误消息。
	Message *string `json:"message,omitempty"`

	// Job的状态。  - SUCCESS:成功。  - RUNNING:运行中。  - FAIL:失败。  - INIT:正在初始化。
	Status         *ShowJobResponseStatus `json:"status,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ShowJobResponse Response Object

func (ShowJobResponse) String

func (o ShowJobResponse) String() string

type ShowJobResponseStatus

type ShowJobResponseStatus struct {
	// contains filtered or unexported fields
}

func (ShowJobResponseStatus) MarshalJSON

func (c ShowJobResponseStatus) MarshalJSON() ([]byte, error)

func (*ShowJobResponseStatus) UnmarshalJSON

func (c *ShowJobResponseStatus) UnmarshalJSON(b []byte) error

func (ShowJobResponseStatus) Value added in v0.0.90

func (c ShowJobResponseStatus) Value() string

type ShowJobResponseStatusEnum

type ShowJobResponseStatusEnum struct {
	SUCCESS ShowJobResponseStatus
	RUNNING ShowJobResponseStatus
	FAIL    ShowJobResponseStatus
	INIT    ShowJobResponseStatus
}

func GetShowJobResponseStatusEnum

func GetShowJobResponseStatusEnum() ShowJobResponseStatusEnum

type ShowResetPasswordFlagRequest

type ShowResetPasswordFlagRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`
}

ShowResetPasswordFlagRequest Request Object

func (ShowResetPasswordFlagRequest) String

type ShowResetPasswordFlagResponse

type ShowResetPasswordFlagResponse struct {

	// 是否支持重置密码。  - True:支持一键重置密码。  - False:不支持一键重置密码。
	ResetpwdFlag   *string `json:"resetpwd_flag,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowResetPasswordFlagResponse Response Object

func (ShowResetPasswordFlagResponse) String

type ShowServerBlockDeviceRequest added in v0.0.64

type ShowServerBlockDeviceRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	// 云硬盘ID,UUID格式。
	VolumeId string `json:"volume_id"`
}

ShowServerBlockDeviceRequest Request Object

func (ShowServerBlockDeviceRequest) String added in v0.0.64

type ShowServerBlockDeviceResponse added in v0.0.64

type ShowServerBlockDeviceResponse struct {
	VolumeAttachment *ServerBlockDevice `json:"volumeAttachment,omitempty"`
	HttpStatusCode   int                `json:"-"`
}

ShowServerBlockDeviceResponse Response Object

func (ShowServerBlockDeviceResponse) String added in v0.0.64

type ShowServerGroupRequest

type ShowServerGroupRequest struct {

	// 弹性云服务器组UUID。
	ServerGroupId string `json:"server_group_id"`
}

ShowServerGroupRequest Request Object

func (ShowServerGroupRequest) String

func (o ShowServerGroupRequest) String() string

type ShowServerGroupResponse

type ShowServerGroupResponse struct {
	ServerGroup    *ShowServerGroupResult `json:"server_group,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

ShowServerGroupResponse Response Object

func (ShowServerGroupResponse) String

func (o ShowServerGroupResponse) String() string

type ShowServerGroupResult

type ShowServerGroupResult struct {

	// 云服务器组UUID。
	Id string `json:"id"`

	// 云服务器组中包含的云服务器列表。
	Members []string `json:"members"`

	// 云服务器组元数据。
	Metadata map[string]string `json:"metadata"`

	// 云服务器组名称。
	Name string `json:"name"`

	// 与服务器组关联的策略名称列表。当前有效的策略名称为:  anti-affinity -此组中的服务器必须安排到不同的主机;  affinity -此组中的服务器必须安排在同一主机上;  soft-anti-affinity –如果可能, 应将此组中的服务器安排到不同的主机, 但如果无法实现, 则仍应安排它们, 而不是导致生成失败;  soft-affinity -如果可能, 应将此组中的服务器安排在同一主机上, 但如果无法实现, 则仍应安排它们, 而不是导致生成失败。
	Policies []string `json:"policies"`
}

ShowServerGroupResult

func (ShowServerGroupResult) String

func (o ShowServerGroupResult) String() string

type ShowServerLimitsRequest

type ShowServerLimitsRequest struct {
}

ShowServerLimitsRequest Request Object

func (ShowServerLimitsRequest) String

func (o ShowServerLimitsRequest) String() string

type ShowServerLimitsResponse

type ShowServerLimitsResponse struct {
	Absolute       *ServerLimits `json:"absolute,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ShowServerLimitsResponse Response Object

func (ShowServerLimitsResponse) String

func (o ShowServerLimitsResponse) String() string

type ShowServerPasswordRequest added in v0.0.64

type ShowServerPasswordRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`
}

ShowServerPasswordRequest Request Object

func (ShowServerPasswordRequest) String added in v0.0.64

func (o ShowServerPasswordRequest) String() string

type ShowServerPasswordResponse added in v0.0.64

type ShowServerPasswordResponse struct {

	// 加密后的密码。
	Password       *string `json:"password,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowServerPasswordResponse Response Object

func (ShowServerPasswordResponse) String added in v0.0.64

type ShowServerRemoteConsoleRequest

type ShowServerRemoteConsoleRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *ShowServerRemoteConsoleRequestBody `json:"body,omitempty"`
}

ShowServerRemoteConsoleRequest Request Object

func (ShowServerRemoteConsoleRequest) String

type ShowServerRemoteConsoleRequestBody

type ShowServerRemoteConsoleRequestBody struct {
	RemoteConsole *GetServerRemoteConsoleOption `json:"remote_console"`
}

ShowServerRemoteConsoleRequestBody This is a auto create Body Object

func (ShowServerRemoteConsoleRequestBody) String

type ShowServerRemoteConsoleResponse

type ShowServerRemoteConsoleResponse struct {
	RemoteConsole  *ServerRemoteConsole `json:"remote_console,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

ShowServerRemoteConsoleResponse Response Object

func (ShowServerRemoteConsoleResponse) String

type ShowServerRequest

type ShowServerRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`
}

ShowServerRequest Request Object

func (ShowServerRequest) String

func (o ShowServerRequest) String() string

type ShowServerResponse

type ShowServerResponse struct {
	Server         *ServerDetail `json:"server,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ShowServerResponse Response Object

func (ShowServerResponse) String

func (o ShowServerResponse) String() string

type ShowServerTagsRequest

type ShowServerTagsRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`
}

ShowServerTagsRequest Request Object

func (ShowServerTagsRequest) String

func (o ShowServerTagsRequest) String() string

type ShowServerTagsResponse

type ShowServerTagsResponse struct {

	// 标签列表
	Tags           *[]ServerTag `json:"tags,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ShowServerTagsResponse Response Object

func (ShowServerTagsResponse) String

func (o ShowServerTagsResponse) String() string

type SimpleFlavor

type SimpleFlavor struct {

	// 云服务器规格的ID。
	Id string `json:"id"`

	// 规格相关快捷链接地址。
	Links []Link `json:"links"`
}

SimpleFlavor 云服务器规格。

func (SimpleFlavor) String

func (o SimpleFlavor) String() string

type SubJob

type SubJob struct {

	// Job的状态。  - SUCCESS:成功。  - RUNNING:运行中。  - FAIL:失败。  - INIT:正在初始化。
	Status *SubJobStatus `json:"status,omitempty"`

	Entities *SubJobEntities `json:"entities,omitempty"`

	// 子任务的ID。
	JobId *string `json:"job_id,omitempty"`

	// 子任务的类型。
	JobType *string `json:"job_type,omitempty"`

	// 开始时间。
	BeginTime *string `json:"begin_time,omitempty"`

	// 结束时间。
	EndTime *string `json:"end_time,omitempty"`

	// Job执行失败时的错误码。  Job执行成功后,该值为null。
	ErrorCode *string `json:"error_code,omitempty"`

	// Job执行失败时的错误原因。  Job执行成功后,该值为null。
	FailReason *string `json:"fail_reason,omitempty"`
}

SubJob

func (SubJob) String

func (o SubJob) String() string

type SubJobEntities

type SubJobEntities struct {

	// 云服务器相关操作显示server_id。
	ServerId *string `json:"server_id,omitempty"`

	// 网卡相关操作显示nic_id。
	NicId *string `json:"nic_id,omitempty"`

	// 子任务执行失败的具体原因。
	ErrorcodeMessage *string `json:"errorcode_message,omitempty"`
}

SubJobEntities

func (SubJobEntities) String

func (o SubJobEntities) String() string

type SubJobStatus

type SubJobStatus struct {
	// contains filtered or unexported fields
}

func (SubJobStatus) MarshalJSON

func (c SubJobStatus) MarshalJSON() ([]byte, error)

func (*SubJobStatus) UnmarshalJSON

func (c *SubJobStatus) UnmarshalJSON(b []byte) error

func (SubJobStatus) Value added in v0.0.90

func (c SubJobStatus) Value() string

type SubJobStatusEnum

type SubJobStatusEnum struct {
	SUCCESS SubJobStatus
	RUNNING SubJobStatus
	FAIL    SubJobStatus
	INIT    SubJobStatus
}

func GetSubJobStatusEnum

func GetSubJobStatusEnum() SubJobStatusEnum

type UpdateServerAddress

type UpdateServerAddress struct {

	// IP地址版本。  - 4:代表IPv4。 - 6:代表IPv6。
	Version int32 `json:"version"`

	// IP地址。
	Addr string `json:"addr"`
}

UpdateServerAddress 弹性云服务器的网络属性。

func (UpdateServerAddress) String

func (o UpdateServerAddress) String() string

type UpdateServerAutoTerminateTimeRequest

type UpdateServerAutoTerminateTimeRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *UpdateServerAutoTerminateTimeRequestBody `json:"body,omitempty"`
}

UpdateServerAutoTerminateTimeRequest Request Object

func (UpdateServerAutoTerminateTimeRequest) String

type UpdateServerAutoTerminateTimeRequestBody

type UpdateServerAutoTerminateTimeRequestBody struct {

	// 定时删除时间
	AutoTerminateTime string `json:"auto_terminate_time"`
}

UpdateServerAutoTerminateTimeRequestBody This is a auto create Body Object

func (UpdateServerAutoTerminateTimeRequestBody) String

type UpdateServerAutoTerminateTimeResponse

type UpdateServerAutoTerminateTimeResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateServerAutoTerminateTimeResponse Response Object

func (UpdateServerAutoTerminateTimeResponse) String

type UpdateServerBlockDeviceOption added in v0.1.7

type UpdateServerBlockDeviceOption struct {

	// 云硬盘随实例释放策略。 -  true:云硬盘随实例释放。  -  false:云硬盘不随实例释放。  > 说明 > > 不支持修改包年/包月计费模式的磁盘。 > 不支持修改共享盘。
	DeleteOnTermination bool `json:"delete_on_termination"`
}

UpdateServerBlockDeviceOption

func (UpdateServerBlockDeviceOption) String added in v0.1.7

type UpdateServerBlockDeviceReq added in v0.1.7

type UpdateServerBlockDeviceReq struct {
	BlockDevice *UpdateServerBlockDeviceOption `json:"block_device"`
}

UpdateServerBlockDeviceReq This is a auto create Body Object

func (UpdateServerBlockDeviceReq) String added in v0.1.7

type UpdateServerBlockDeviceRequest added in v0.1.7

type UpdateServerBlockDeviceRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	// 磁盘id,uuid格式
	VolumeId string `json:"volume_id"`

	Body *UpdateServerBlockDeviceReq `json:"body,omitempty"`
}

UpdateServerBlockDeviceRequest Request Object

func (UpdateServerBlockDeviceRequest) String added in v0.1.7

type UpdateServerBlockDeviceResponse added in v0.1.7

type UpdateServerBlockDeviceResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateServerBlockDeviceResponse Response Object

func (UpdateServerBlockDeviceResponse) String added in v0.1.7

type UpdateServerMetadataRequest

type UpdateServerMetadataRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *UpdateServerMetadataRequestBody `json:"body,omitempty"`
}

UpdateServerMetadataRequest Request Object

func (UpdateServerMetadataRequest) String

type UpdateServerMetadataRequestBody

type UpdateServerMetadataRequestBody struct {

	// 用户自定义metadata键值对。  结构体允许为空,取值为空时不更新数据。  键。最大长度255个Unicode字符,不能为空。可以为大写字母(A-Z)、小写字母(a-z)、数字(0-9)、中划线(-)、下划线(_)、冒号(:)和小数点(.)。  值。最大长度为255个Unicode字符。
	Metadata map[string]string `json:"metadata"`
}

UpdateServerMetadataRequestBody This is a auto create Body Object

func (UpdateServerMetadataRequestBody) String

type UpdateServerMetadataResponse

type UpdateServerMetadataResponse struct {

	// 用户自定义metadata键值对。
	Metadata       map[string]string `json:"metadata,omitempty"`
	HttpStatusCode int               `json:"-"`
}

UpdateServerMetadataResponse Response Object

func (UpdateServerMetadataResponse) String

type UpdateServerOption

type UpdateServerOption struct {

	// 修改后的云服务器名称。  只能由中文字符、英文字母、数字及“_”、“-”、“.”组成,且长度为[1-64]个字符。
	Name *string `json:"name,omitempty"`

	// 对弹性云服务器的任意描述。  不能包含“<”,“>”,且长度范围为[0-85]个字符。
	Description *string `json:"description,omitempty"`

	// 修改云服务hostname。  命令规范:长度为 [1-64] 个字符,允许使用点号(.)分隔字符成多段,每段允许使用大小写字母、数字或连字符(-),但不能连续使用点号(.)或连字符(-),不能以点号(.)或连字符(-)开头或结尾,不能出现(.-)和(-.)。
	Hostname *string `json:"hostname,omitempty"`

	// 修改云服务器云主机过程中待注入实例自定义数据。支持注入文本、文本文件。  示例:  base64编码前:   Linux服务器:     #!/bin/bash     echo user_test > /home/user.txt   Windows服务器:     rem cmd     echo 111 > c:\\aaa.txt  base64编码后:   Linux服务器:IyEvYmluL2Jhc2gKZWNobyB1c2VyX3Rlc3QgPiAvaG9tZS91c2VyLnR4dA==   Windows服务器:cmVtIGNtZA0KZWNobyAxMTEgJmd0OyBjOlxhYWEudHh0
	UserData *string `json:"user_data,omitempty"`
}

UpdateServerOption 更新云服务器Body体。

func (UpdateServerOption) String

func (o UpdateServerOption) String() string

type UpdateServerRequest

type UpdateServerRequest struct {

	// 云服务器ID。
	ServerId string `json:"server_id"`

	Body *UpdateServerRequestBody `json:"body,omitempty"`
}

UpdateServerRequest Request Object

func (UpdateServerRequest) String

func (o UpdateServerRequest) String() string

type UpdateServerRequestBody

type UpdateServerRequestBody struct {
	Server *UpdateServerOption `json:"server"`
}

UpdateServerRequestBody This is a auto create Body Object

func (UpdateServerRequestBody) String

func (o UpdateServerRequestBody) String() string

type UpdateServerResponse

type UpdateServerResponse struct {
	Server         *UpdateServerResult `json:"server,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

UpdateServerResponse Response Object

func (UpdateServerResponse) String

func (o UpdateServerResponse) String() string

type UpdateServerResult

type UpdateServerResult struct {

	// 项目ID。
	TenantId string `json:"tenant_id"`

	// 镜像ID。
	Image string `json:"image"`

	// 预留属性。
	AccessIPv4 string `json:"accessIPv4"`

	// 预留属性。
	AccessIPv6 string `json:"accessIPv6"`

	// 云服务器元数据。
	Metadata map[string]string `json:"metadata"`

	// 弹性云服务器的网络属性。
	Addresses map[string][]UpdateServerAddress `json:"addresses"`

	// 弹性云服务器创建时间。  时间格式例如:2019-05-22T03:19:19Z
	Created string `json:"created"`

	// 弹性云服务器所在主机的主机ID。
	HostId string `json:"hostId"`

	Flavor *SimpleFlavor `json:"flavor"`

	// 扩展属性, diskConfig的类型。  - MANUAL,镜像空间不会扩展。 - AUTO,系统盘镜像空间会自动扩展为与flavor大小一致。
	OSDCFdiskConfig *string `json:"OS-DCF:diskConfig,omitempty"`

	// 创建弹性云服务器的用户ID,格式为UUID。
	UserId string `json:"user_id"`

	// 弹性云服务器名称。
	Name string `json:"name"`

	// 弹性云服务器进度。
	Progress int32 `json:"progress"`

	// 云服务器相关标记快捷链接信息。
	Links []Link `json:"links"`

	// 弹性云服务器ID,格式为UUID。
	Id string `json:"id"`

	// 弹性云服务器更新时间。  时间格式例如:2019-05-22T03:30:52Z
	Updated string `json:"updated"`

	// 弹性云服务器是否为锁定状态。  - true:锁定 - false:未锁定
	Locked *bool `json:"locked,omitempty"`

	// 弹性云服务器的描述信息。
	Description *string `json:"description,omitempty"`

	// 云服务器的标签列表。  微版本2.26后支持,如果不使用微版本查询,响应中无tags字段。  系统近期对标签功能进行了升级,升级后,返回的tag值遵循如下规则:  - key与value使用“=”连接,如“key=value”。 - 如果value为空字符串,则仅返回key。 - key与value使用“=”连接,如“key=value”。 - 如果value为空字符串,则仅返回key。
	Tags []string `json:"tags"`

	// 弹性云服务器状态。  取值范围:  ACTIVE、BUILD、DELETED、ERROR、HARD_REBOOT、MIGRATING、PAUSED、REBOOT、REBUILD、RESIZE、REVERT_RESIZE、SHUTOFF、SHELVED、SHELVED_OFFLOADED、SOFT_DELETED、SUSPENDED、VERIFY_RESIZE  弹性云服务器状态说明请参考[云服务器状态](https://support.huaweicloud.com/api-ecs/ecs_08_0002.html)
	Status string `json:"status"`

	// 创建弹性云服务器时指定的user_data(编码过后的信息)。
	OSEXTSRVATTRuserData *string `json:"OS-EXT-SRV-ATTR:user_data,omitempty"`

	// 弹性云服务器的主机名。
	OSEXTSRVATTRhostname string `json:"OS-EXT-SRV-ATTR:hostname"`
}

UpdateServerResult 云服务器详情。

func (UpdateServerResult) String

func (o UpdateServerResult) String() string

Source Files

Jump to

Keyboard shortcuts

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