model

package
v0.1.114 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgencyAuthorizeInfo added in v0.1.75

type AgencyAuthorizeInfo struct {

	// 凭据管理权限信息。
	Csms bool `json:"csms"`

	// 密钥管理权限信息。
	Kms bool `json:"kms"`
}

AgencyAuthorizeInfo 获取云堡垒机委托授权凭据管理、密钥管理服务权限列表返回对象。

func (AgencyAuthorizeInfo) String added in v0.1.75

func (o AgencyAuthorizeInfo) String() string

type AuthorizeCsmsAndKmsRequestBody

type AuthorizeCsmsAndKmsRequestBody struct {
	Authorization *AgencyAuthorizeInfo `json:"authorization"`
}

AuthorizeCsmsAndKmsRequestBody 云堡垒机设置委托授权请求体。

func (AuthorizeCsmsAndKmsRequestBody) String

type AvailabilityZones

type AvailabilityZones struct {

	// 可用区ID。
	RegionId string `json:"region_id"`

	// 可用分区ID。
	Id string `json:"id"`

	// 可用分区显示名称。
	DisplayName string `json:"display_name"`

	// 可用分区状态。 - Running:运行中
	Status string `json:"status"`

	// 可用分区类型。 - Core:核心可用区 - Dedicated:专属可用区,只对内部客户开放
	Type *string `json:"type,omitempty"`
}

AvailabilityZones 云堡垒机服务可用分区信息。

func (AvailabilityZones) String

func (o AvailabilityZones) String() string

type BatchCreateInstanceTagRequest

type BatchCreateInstanceTagRequest struct {

	// 资源ID。(list接口获取)
	ResourceId string `json:"resource_id"`

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

BatchCreateInstanceTagRequest Request Object

func (BatchCreateInstanceTagRequest) String

type BatchCreateInstanceTagResponse

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

BatchCreateInstanceTagResponse Response Object

func (BatchCreateInstanceTagResponse) String

type CbsGetResourceIdTags

type CbsGetResourceIdTags struct {

	// 执行动作。 - create,创建 - delete,删除
	Action string `json:"action"`

	// 标签列表  租户权限时该字段必选,op_service权限时和sys_tags二选一。
	Tags []ResourceTag `json:"tags"`

	// 系统标签列表  op_service权限可以访问,和tags二选一。  目前TMS调用时只包含一个resource_tag结构体 ,key固定为:_sys_enterprise_project_id  value是UUID或0,value为0表示默认企业项目。  现在仅支持create操作。
	SysTags *[]ResourceTag `json:"sys_tags,omitempty"`
}

CbsGetResourceIdTags TMS查询当前project下所有标签的返回体。

func (CbsGetResourceIdTags) String

func (o CbsGetResourceIdTags) String() string

type CbsGetSpecInfo

type CbsGetSpecInfo struct {

	// 云堡垒机规格名称。
	ResourceSpecCode string `json:"resource_spec_code"`

	// 云堡垒机系统盘磁盘大小,单位GB。
	EcsSystemDataSize int32 `json:"ecs_system_data_size"`

	// 云堡垒机CPU核心数。
	Cpu int32 `json:"cpu"`

	// 云堡垒机内存大小,单位GB。
	Ram int32 `json:"ram"`

	// 云堡垒机资产数量。
	Asset int32 `json:"asset"`

	// 云堡垒机最大连接数。
	Connection int32 `json:"connection"`

	// 云堡垒机规格类型。 - basic:标准版 - enhance:专业版
	Type string `json:"type"`

	// 云堡垒机数据盘大小,单位TB。
	DataDiskSize float32 `json:"data_disk_size"`
}

CbsGetSpecInfo 堡垒机规格信息。

func (CbsGetSpecInfo) String

func (o CbsGetSpecInfo) String() string

type ChangeInstanceRequestBody

type ChangeInstanceRequestBody struct {
	ServerId *interface{} `json:"server_id"`

	// 待变更云堡垒机规格ID,例如: - cbh.basic.50 - cbh.enhance.50  可参考接口\"查询云堡垒机规格信息\"获取
	NewResourceSpecCode *string `json:"new_resource_spec_code,omitempty"`

	// 附加磁盘大小。单位TB  > 说明: 附加磁盘和规格自带磁盘大小不能超过300TB。
	AttachDiskSize *int32 `json:"attach_disk_size,omitempty"`

	// 是否自动支付,下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券) - 0:否(需要客户手动去支付,客户可以选择折扣和优惠券。)  默认值为“0”
	IsAutoPay *int32 `json:"is_auto_pay,omitempty"`
}

ChangeInstanceRequestBody 创建云堡垒机实例变更任务请求体。 > 说明: new_resource_spec_code和attach_disk_size字段只能选择使用,不能同时使用。

func (ChangeInstanceRequestBody) String

func (o ChangeInstanceRequestBody) String() string

type ChangeInstanceSecurityGroups

type ChangeInstanceSecurityGroups struct {

	// 安全组信息。
	SecurityGroups []string `json:"security_groups"`
}

ChangeInstanceSecurityGroups 修改堡垒机实例安全组请求体。

func (ChangeInstanceSecurityGroups) String

type ChangeInstanceTypeRequest added in v0.1.97

type ChangeInstanceTypeRequest struct {

	// 实例id
	ServerId string `json:"server_id"`

	// 可用分区名称。  可参考接口\"获取服务可用区\"获取
	AvailabilityZone *string `json:"availability_zone,omitempty"`

	// 是否自动支付,下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券) - 0:否(需要客户手动去支付,客户可以选择折扣和优惠券。)  默认值为“0”
	IsAutoPay *int32 `json:"is_auto_pay,omitempty"`
}

ChangeInstanceTypeRequest Request Object

func (ChangeInstanceTypeRequest) String added in v0.1.97

func (o ChangeInstanceTypeRequest) String() string

type ChangeInstanceTypeResponse added in v0.1.97

type ChangeInstanceTypeResponse struct {

	// 订单ID。
	OrderId        *string `json:"order_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ChangeInstanceTypeResponse Response Object

func (ChangeInstanceTypeResponse) String added in v0.1.97

type CommonCbhRequestBody

type CommonCbhRequestBody struct {

	// 实例id
	ServerId string `json:"server_id"`
}

CommonCbhRequestBody 云堡垒机实例请求对象。

func (CommonCbhRequestBody) String

func (o CommonCbhRequestBody) String() string

type CountInstancesByTagRequest

type CountInstancesByTagRequest struct {
	Body *ListCbhByTagsRequestBody `json:"body,omitempty"`
}

CountInstancesByTagRequest Request Object

func (CountInstancesByTagRequest) String

type CountInstancesByTagResponse

type CountInstancesByTagResponse struct {

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

CountInstancesByTagResponse Response Object

func (CountInstancesByTagResponse) String

type CreateInstanceBody

type CreateInstanceBody struct {

	// 待创建云堡垒机规格ID,例如: - cbh.basic.50 - cbh.enhance.50  可参考接口\"查询云堡垒机规格信息\"获取。
	Specification string `json:"specification"`

	// 云堡垒机实例名称,取值范围:  只能由中文字符、英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。  例如:CBH-6b8e
	InstanceName string `json:"instance_name"`

	// 堡垒机实例前端登录密码。  密码规则:8-32位、不能包含amdin或nidma及其大写形式、必须包含大小写数字特殊字符(!@$%^-_=+[{}]:,./?~#*)四种类型中的三种、不能包含超过2个连续的相同字符(区分大小写)。
	Password string `json:"password"`

	// 创建云堡垒机实例所在局点ID。   可参考接口\"查询云堡垒机规格信息\"获取
	Region string `json:"region"`

	// 创建云堡垒机所在的可用分区,需要指定可用分区名称。(主备模式是作为主机可用区)  可参考接口\"获取服务可用区\"获取
	AvailabilityZone string `json:"availability_zone"`

	// 创建云堡垒机备机所在的可用分区,需要指定可用分区名称。(只创建单机时不传此字段)。  可参考接口\"获取服务可用区\"获取
	SlaveAvailabilityZone *string `json:"slave_availability_zone,omitempty"`

	// 计费模式。 - 0 包周期计费。
	ChargingMode int32 `json:"charging_mode"`

	// 订购周期类型。(包周期模式必传) - 2:月 - 3:年
	PeriodType *int32 `json:"period_type,omitempty"`

	// 订购周期数。(包周期模式必传) - period_type=2(周期类型为月),取值范围[1,9] - periodType=3(周期类型为年),取值范围[1,10]
	PeriodNum *int32 `json:"period_num,omitempty"`

	// 是否自动续订。 - 1,自动续订 - 0,不自动续订  默认值为“0”
	IsAutoRenew *int32 `json:"is_auto_renew,omitempty"`

	// 是否自动支付,下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券) - 0:否(需要客户手动去支付,客户可以选择折扣和优惠券。)  默认值为“0”
	IsAutoPay *int32 `json:"is_auto_pay,omitempty"`

	Network *NetworkInfoCreate `json:"network"`

	// 云堡垒机实例是否支持IPV6。  默认值为“false”。
	Ipv6Enable *bool `json:"ipv6_enable,omitempty"`

	// 企业项目ID。  默认值为“0”。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 附加磁盘大小。单位TB  > 说明: 附加磁盘和规格自带磁盘大小合起来不能超过300TB。
	AttachDiskSize *int32 `json:"attach_disk_size,omitempty"`

	// 标签信息。
	Tags *[]ResourceTag `json:"tags,omitempty"`
}

CreateInstanceBody 创建堡垒机实例请求参数。

func (CreateInstanceBody) String

func (o CreateInstanceBody) String() string

type CreateInstanceRequest

type CreateInstanceRequest struct {
	Body *CreateInstanceBody `json:"body,omitempty"`
}

CreateInstanceRequest Request Object

func (CreateInstanceRequest) String

func (o CreateInstanceRequest) String() string

type CreateInstanceResponse

type CreateInstanceResponse struct {

	// 订单ID。
	OrderId        *string `json:"order_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateInstanceResponse Response Object

func (CreateInstanceResponse) String

func (o CreateInstanceResponse) String() string

type DeleteInstanceRequest

type DeleteInstanceRequest struct {

	// 删除故障云堡垒机实例id。
	InstanceId float32 `json:"instance_id"`
}

DeleteInstanceRequest Request Object

func (DeleteInstanceRequest) String

func (o DeleteInstanceRequest) String() string

type DeleteInstanceResponse

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

DeleteInstanceResponse Response Object

func (DeleteInstanceResponse) String

func (o DeleteInstanceResponse) String() string

type InstallInstanceEipRequest

type InstallInstanceEipRequest struct {

	// 云堡垒机实例ID,使用UUID格式表示。  获取方法详见用户指南里面的实例\"查看实例详情\"
	ServerId string `json:"server_id"`

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

InstallInstanceEipRequest Request Object

func (InstallInstanceEipRequest) String

func (o InstallInstanceEipRequest) String() string

type InstallInstanceEipResponse

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

InstallInstanceEipResponse Response Object

func (InstallInstanceEipResponse) String

type InstanceDetail

type InstanceDetail struct {

	// 云堡垒机实例名称。
	Name string `json:"name"`

	// 云堡垒机服务器id。
	ServerId string `json:"server_id"`

	// 云堡垒机实例id。
	InstanceId string `json:"instance_id"`

	// 云堡垒机实例是否可以扩容。 - true:是 - false:否
	AlterPermit bool `json:"alter_permit"`

	// 项目ID。
	EnterpriseProjectId string `json:"enterprise_project_id"`

	// 云堡垒机实例订购周期数。
	PeriodNum string `json:"period_num"`

	// 云堡垒机实例开始时间,使用时间戳格式表示。
	StartTime string `json:"start_time"`

	// 云堡垒机实例结束时间,使用时间戳格式表示。
	EndTime string `json:"end_time"`

	// 云堡垒机实例创建时间,使用UTC时间表示。
	CreatedTime string `json:"created_time"`

	// 云堡垒机实例升级定时时间,使用时间戳格式表示。
	UpgradeTime *int64 `json:"upgrade_time,omitempty"`

	// 云堡垒机实例是否可以升级。 - OLD:当前已是最新版本 - NEW:可以升级小版本 - CROSS_OS:可以跨版本升级 - ROLLBACK:可以回滚
	Update InstanceDetailUpdate `json:"update"`

	// 云堡垒机实例当前版本。
	BastionVersion string `json:"bastion_version"`

	AzInfo *InstanceDetailAzInfo `json:"az_info"`

	StatusInfo *InstanceDetailStatusInfo `json:"status_info"`

	ResourceInfo *InstanceDetailResourceInfo `json:"resource_info"`

	Network *InstanceDetailNetwork `json:"network"`

	HaInfo *InstanceDetailHaInfo `json:"ha_info,omitempty"`
}

InstanceDetail CBH实例详情

func (InstanceDetail) String

func (o InstanceDetail) String() string

type InstanceDetailAzInfo

type InstanceDetailAzInfo struct {

	// 云堡垒机实例所在可用区ID。
	Region string `json:"region"`

	// 云堡垒机实例所在可用分区ID。(实例为主备模式时作为主机实例所在可用分区)
	Zone string `json:"zone"`

	// 云堡垒机实例所在可用分区中文名称。(实例为主备模式时作为主机实例所在可用分区中文名称)
	AvailabilityZoneDisplay string `json:"availability_zone_display"`

	// 云堡垒机备机实例所在可用区。
	SlaveZone *string `json:"slave_zone,omitempty"`

	// 云堡垒机备机实例所在可用区中文名称。
	SlaveZoneDisplay *string `json:"slave_zone_display,omitempty"`
}

InstanceDetailAzInfo 可用区信息。

func (InstanceDetailAzInfo) String

func (o InstanceDetailAzInfo) String() string

type InstanceDetailHaInfo

type InstanceDetailHaInfo struct {

	// 主备ID。
	HaId string `json:"ha_id"`

	// 实例类型。 - master:主 - slave:备
	InstanceType string `json:"instance_type"`
}

InstanceDetailHaInfo 主备信息。

func (InstanceDetailHaInfo) String

func (o InstanceDetailHaInfo) String() string

type InstanceDetailNetwork

type InstanceDetailNetwork struct {

	// 云堡垒机实例浮动ip。(实例为主备模式时返回对应的值)
	Vip *string `json:"vip,omitempty"`

	// 云堡垒机实例WEB界面访问的端口号。
	WebPort string `json:"web_port"`

	// 云堡垒机实例弹性公网IP。
	PublicIp string `json:"public_ip"`

	// 云堡垒机实例绑定公网的弹性IP的ID,UUID格式表示。
	PublicId string `json:"public_id"`

	// 云堡垒机实例私有ip。
	PrivateIp string `json:"private_ip"`

	// 云堡垒机实例所在虚拟私有云ID。
	VpcId string `json:"vpc_id"`

	// 云堡垒机实例所在子网ID。
	SubnetId string `json:"subnet_id"`

	// 云堡垒机实例所属的安全组ID。
	SecurityGroupId string `json:"security_group_id"`
}

InstanceDetailNetwork 网络信息。

func (InstanceDetailNetwork) String

func (o InstanceDetailNetwork) String() string

type InstanceDetailResourceInfo

type InstanceDetailResourceInfo struct {

	// 云堡垒机实例规格。
	Specification string `json:"specification"`

	// 订单id。
	OrderId string `json:"order_id"`

	// 云堡垒机实例的资源id,UUID格式显示。
	ResourceId string `json:"resource_id"`

	// 云堡垒机实例数据盘大小,单位TB。
	DataDiskSize float32 `json:"data_disk_size"`

	// 云堡垒机实例数据盘资源ID。
	DiskResourceId []string `json:"disk_resource_id"`
}

InstanceDetailResourceInfo 资源信息。

func (InstanceDetailResourceInfo) String

type InstanceDetailStatusInfo

type InstanceDetailStatusInfo struct {

	// 云堡垒机实例状态。 - SHUTOFF:已关闭 - ACTIVE:运行中 - DELETING:删除中 - BUILD:创建中 - DELETED:已删除 - ERROR:故障 - HAWAIT:等待备机创建成功 - FROZEN:已冻结 - UPGRADING:升级中 - UNPAID:待支付 - RESIZE:规格变更中 - DILATATION:扩容中 - HA:配置HA中
	Status string `json:"status"`

	// 云堡垒机实例当前的任务状态。 - powering-on:开启 - powering-off:关闭 - rebooting:重启 - delete_wait:删除 - frozen:冻结 - NO_TASK:运行 - unfrozen:解冻 - alter:变更 - updating:升级中 - configuring-ha:配置HA - data-migrating:数据迁移中 - rollback:版本回滚中 - traffic-switchover:流量切换中
	TaskStatus string `json:"task_status"`

	// 云堡垒机实例在创建实例过程中的状态信息。 - Waiting for payment:等待支付 - creating-network:创建网络 - creating-server:创建服务 - tranfering-horizontal-network:网络打通 - adding-policy-route:添加路由策略 - configing-dns:配置DNS - starting-cbs-service:服务运行中 - setting-init-conf:初始化 - buying-EIP:购买弹性公网IP
	CreateInstanceStatus string `json:"create_instance_status"`

	// 云堡垒机实例状态。 - building:创建中 - deleting:删除中 - deleted:删除了 - unpaid:未支付 - upgrading:升级中 - resizing:扩容中 - abnormal:异常 - error:故障 - ok:正常
	InstanceStatus string `json:"instance_status"`

	// 云堡垒机实例信息描述。
	InstanceDescription string `json:"instance_description"`

	// 云堡垒机实例创建实例失败原因。
	FailReason string `json:"fail_reason"`
}

InstanceDetailStatusInfo 状态信息。

func (InstanceDetailStatusInfo) String

func (o InstanceDetailStatusInfo) String() string

type InstanceDetailUpdate

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

func (InstanceDetailUpdate) MarshalJSON

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

func (*InstanceDetailUpdate) UnmarshalJSON

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

func (InstanceDetailUpdate) Value

func (c InstanceDetailUpdate) Value() string

type InstanceDetailUpdateEnum

type InstanceDetailUpdateEnum struct {
	OLD      InstanceDetailUpdate
	NEW      InstanceDetailUpdate
	CROSS_OS InstanceDetailUpdate
	ROLLBACK InstanceDetailUpdate
}

func GetInstanceDetailUpdateEnum

func GetInstanceDetailUpdateEnum() InstanceDetailUpdateEnum

type IsAutoPay

type IsAutoPay struct {
}

IsAutoPay 是否自动支付,下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券) - 0:否(需要客户手动去支付,客户可以选择折扣和优惠券。) 默认值为“0”

func (IsAutoPay) String

func (o IsAutoPay) String() string

type ListAvailableZonesRequest

type ListAvailableZonesRequest struct {
}

ListAvailableZonesRequest Request Object

func (ListAvailableZonesRequest) String

func (o ListAvailableZonesRequest) String() string

type ListAvailableZonesResponse

type ListAvailableZonesResponse struct {

	// 可用区信息
	AvailabilityZone *[]AvailabilityZones `json:"availability_zone,omitempty"`
	HttpStatusCode   int                  `json:"-"`
}

ListAvailableZonesResponse Response Object

func (ListAvailableZonesResponse) String

type ListCbhByTagsRequestBody

type ListCbhByTagsRequestBody struct {

	// 不包含任意一个标签,该字段为true时查询所有不带标签的资源。  此时忽略 “tags”、“tags_any”、“not_tags”、“not_tags_any”字段。
	WithoutAnyTag *bool `json:"without_any_tag,omitempty"`

	// 包含标签,最多包含50个key,每个key下面的value最多10个,每个key对应的value可以为空数组但结构体不能缺失。  Key不能重复,同一个key中values不能重复。结果返回包含所有标签的资源列表,key之间是与的关系, key-value结构中value是或的关系。  无tag过滤条件时返回全量数据。
	Tags *[]Tags `json:"tags,omitempty"`

	// 包含任意标签,最多包含50个key,每个key下面的value最多10个,每个key对应的value可以为空数组但结构体不能缺失。Key不能重复,同一个key中values不能重复。  结果返回包含标签的资源列表,key之间是或的关系,key-value结构中value是或的关系。  无过滤条件时返回全量数据。
	TagsAny *[]Tags `json:"tags_any,omitempty"`

	// 不包含标签,最多包含50个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复,同一个key中values不能重复。  结果返回不包含标签的资源列表,key之间是与的关系,key-value结构中value是或的关系。  无过滤条件时返回全量数据。
	NotTags *[]Tags `json:"not_tags,omitempty"`

	// 不包含任意标签,最多包含50个key,每个key下面的value最多10个, 每个key对应的value可以为空数组但结构体不能缺失。Key不能重复,同一个key中values不能重复。  结果返回不包含标签的资源列表,key之间是或的关系,key-value结构中value是或的关系。  无过滤条件时返回全量数据。
	NotTagsAny *[]Tags `json:"not_tags_any,omitempty"`

	// 仅op_service权限可以使用此字段做资源实例过滤条件。  目前TMS调用时只包含一个tag结构体。  key:_sys_enterprise_project_id  value:企业项目id列表  目前TMS调用时,key下面只包含一个value。0表示默认企业项目  sys_tags和租户标签过滤条件(without_any_tag 、tags、tags_any、not_tags、not_tags_any)不能同时使用  无sys_tags时按照tag接口处理,无tag过滤条件时返回全量数据。。
	SysTags *[]Tags `json:"sys_tags,omitempty"`

	// 搜索字段,key为要匹配的字段,如resource_name等。  value为匹配的值。key为固定字典值,不能包含重复的key或不支持的key。  根据key的值确认是否需要模糊匹配,如resource_name默认为模糊搜索(不区分大小写),如果value为空字符串精确匹配(多数服务不存在资源名称为空的情况,因此此类情况返回空列表)。  resource_id为精确匹配。第一期只做resource_name,后续再扩展。
	Matches *[]Match `json:"matches,omitempty"`
}

ListCbhByTagsRequestBody TMS查询CBH资源实例列表请求体。

func (ListCbhByTagsRequestBody) String

func (o ListCbhByTagsRequestBody) String() string

type ListInstancesByTagRequest

type ListInstancesByTagRequest struct {

	// 查询记录数(action为count时无此参数)如果action为filter默认为1000,limit最多为1000,不能为负数,最小值为1。
	Limit *string `json:"limit,omitempty"`

	// 索引位置,偏移量(action为count时无此参数)从第一条数据偏移offset条数据后开始查询,如果action为filter默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
	Offset *string `json:"offset,omitempty"`

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

ListInstancesByTagRequest Request Object

func (ListInstancesByTagRequest) String

func (o ListInstancesByTagRequest) String() string

type ListInstancesByTagResponse

type ListInstancesByTagResponse struct {

	// 根据查询模式获取到的资源实例详情。
	Resources *[]Resources `json:"resources,omitempty"`

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

ListInstancesByTagResponse Response Object

func (ListInstancesByTagResponse) String

type ListInstancesRequest

type ListInstancesRequest struct {

	// 云堡垒机实例ID。(非必传,需要查询单个实例详情时传入)
	InstanceId float32 `json:"instance_id,omitempty"`
}

ListInstancesRequest Request Object

func (ListInstancesRequest) String

func (o ListInstancesRequest) String() string

type ListInstancesResponse

type ListInstancesResponse struct {

	// 云堡垒机实例总数。
	Total *int32 `json:"total,omitempty"`

	// 云堡垒机实例列表信息。
	Instance       *[]InstanceDetail `json:"instance,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ListInstancesResponse Response Object

func (ListInstancesResponse) String

func (o ListInstancesResponse) String() string

type ListSpecificationsRequest

type ListSpecificationsRequest struct {

	// 查询云堡垒机规格当前动作。 - create:查询可创建云堡垒机规格信息 - update:查询可变更云堡垒机规格信息
	Action string `json:"action"`

	// 云堡垒机规格信息,当action为update时此字段必填。
	SpecCode *string `json:"spec_code,omitempty"`
}

ListSpecificationsRequest Request Object

func (ListSpecificationsRequest) String

func (o ListSpecificationsRequest) String() string

type ListSpecificationsResponse

type ListSpecificationsResponse struct {
	Body           *[]CbsGetSpecInfo `json:"body,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ListSpecificationsResponse Response Object

func (ListSpecificationsResponse) String

type ListTagsRequest

type ListTagsRequest struct {
}

ListTagsRequest Request Object

func (ListTagsRequest) String

func (o ListTagsRequest) String() string

type ListTagsResponse

type ListTagsResponse struct {

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

ListTagsResponse Response Object

func (ListTagsResponse) String

func (o ListTagsResponse) String() string

type LoginInstanceAdminRequest added in v0.1.97

type LoginInstanceAdminRequest struct {

	// 云堡垒机实例ID,使用UUID格式表示。  获取方法详见用户指南里面的实例\"查看实例详情\"
	ServerId string `json:"server_id"`
}

LoginInstanceAdminRequest Request Object

func (LoginInstanceAdminRequest) String added in v0.1.97

func (o LoginInstanceAdminRequest) String() string

type LoginInstanceAdminResponse added in v0.1.97

type LoginInstanceAdminResponse struct {

	// 云堡垒机登录admin链接。
	AdminUrl       *string `json:"admin_url,omitempty"`
	HttpStatusCode int     `json:"-"`
}

LoginInstanceAdminResponse Response Object

func (LoginInstanceAdminResponse) String added in v0.1.97

type LoginInstanceRequest

type LoginInstanceRequest struct {
	Body *CommonCbhRequestBody `json:"body,omitempty"`
}

LoginInstanceRequest Request Object

func (LoginInstanceRequest) String

func (o LoginInstanceRequest) String() string

type LoginInstanceResponse

type LoginInstanceResponse struct {

	// 云堡垒机登录链接。
	LoginUrl       *string `json:"login_url,omitempty"`
	HttpStatusCode int     `json:"-"`
}

LoginInstanceResponse Response Object

func (LoginInstanceResponse) String

func (o LoginInstanceResponse) String() string

type Match

type Match struct {

	// 键。第一期限定为resource_name,后续扩展。
	Key string `json:"key"`

	// 值。每个值最大长度255个unicode字符 。不校验字符集范。。
	Value string `json:"value"`
}

Match match字段值描述。

func (Match) String

func (o Match) String() string

type NetworkInfoCreate added in v0.1.75

type NetworkInfoCreate struct {

	// 待创建云服务器所属虚拟私有云(简称VPC),需要指定已创建VPC的ID,UUID格式。  VPC的ID可以从控制台或者参考《虚拟私有云接口参考》的“查询VPC”章节获取。  例如:03211ecf-xxxx-4306-xxxx-6e939bfxxxxx
	VpcId string `json:"vpc_id"`

	// 子网ID,字母数字下划线连接符组成。
	SubnetId string `json:"subnet_id"`

	PublicIp *PublicIp `json:"public_ip"`

	// 安全组信息。
	SecurityGroups []SecurityGroup `json:"security_groups"`

	PrivateIp *PrivateIp `json:"private_ip,omitempty"`
}

NetworkInfoCreate 切换云堡垒机实例vpc所需网络信息。

func (NetworkInfoCreate) String added in v0.1.75

func (o NetworkInfoCreate) String() string

type OperateEipRequestBody

type OperateEipRequestBody struct {

	// 弹性公网IP的ID,使用UUID格式。
	PublicipId string `json:"publicip_id"`
}

OperateEipRequestBody 云堡垒机绑定\\解绑弹性公网IP请求对象。

func (OperateEipRequestBody) String

func (o OperateEipRequestBody) String() string

type PrivateIp added in v0.1.80

type PrivateIp struct {

	// 私网IP地址。
	Ip string `json:"ip"`

	// 备机私网IP地址。
	SlaveIp *string `json:"slave_ip,omitempty"`

	// 浮动IP地址。
	FloatingIp *string `json:"floating_ip,omitempty"`
}

PrivateIp 云堡垒机实例指定公网IP信息。

func (PrivateIp) String added in v0.1.80

func (o PrivateIp) String() string

type PublicIp added in v0.1.80

type PublicIp struct {

	// 弹性IP和EIP只能有一个,弹性IP或EIP的ID。
	Id *string `json:"id,omitempty"`

	// 弹性IP地址。
	PublicEip *string `json:"public_eip,omitempty"`
}

PublicIp 云堡垒机实例弹性公网IP信息。可填写null值

func (PublicIp) String added in v0.1.80

func (o PublicIp) String() string

type RebootCbhRequestBody

type RebootCbhRequestBody struct {
	ServerId *interface{} `json:"server_id"`

	// 重启方式,不区分大小写。 - SOFT:普通重启,关闭虚拟机服务 - HARD:强制重启,重启虚拟机
	RebootType string `json:"reboot_type"`
}

RebootCbhRequestBody 重启云堡垒机实例请求对象。

func (RebootCbhRequestBody) String

func (o RebootCbhRequestBody) String() string

type RebootInstanceRequest

type RebootInstanceRequest struct {
	Body *RebootCbhRequestBody `json:"body,omitempty"`
}

RebootInstanceRequest Request Object

func (RebootInstanceRequest) String

func (o RebootInstanceRequest) String() string

type RebootInstanceResponse

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

RebootInstanceResponse Response Object

func (RebootInstanceResponse) String

func (o RebootInstanceResponse) String() string

type RegisterAuthorizationRequest

type RegisterAuthorizationRequest struct {
	Body *AuthorizeCsmsAndKmsRequestBody `json:"body,omitempty"`
}

RegisterAuthorizationRequest Request Object

func (RegisterAuthorizationRequest) String

type RegisterAuthorizationResponse

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

RegisterAuthorizationResponse Response Object

func (RegisterAuthorizationResponse) String

type ResetInstanceLoginMethodRequest

type ResetInstanceLoginMethodRequest struct {
	Body *CommonCbhRequestBody `json:"body,omitempty"`
}

ResetInstanceLoginMethodRequest Request Object

func (ResetInstanceLoginMethodRequest) String

type ResetInstanceLoginMethodResponse

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

ResetInstanceLoginMethodResponse Response Object

func (ResetInstanceLoginMethodResponse) String

type ResetInstancePasswordRequest

type ResetInstancePasswordRequest struct {
	Body *ResetPassword `json:"body,omitempty"`
}

ResetInstancePasswordRequest Request Object

func (ResetInstancePasswordRequest) String

type ResetInstancePasswordResponse

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

ResetInstancePasswordResponse Response Object

func (ResetInstancePasswordResponse) String

type ResetPassword

type ResetPassword struct {

	// admin用户修改后的新密码,8-32位,大写字母、小写字母、数字和特殊字符。
	NewPassword string `json:"new_password"`

	ServerId *interface{} `json:"server_id"`
}

ResetPassword 云堡垒机实例修改admin用户密码

func (ResetPassword) String

func (o ResetPassword) String() string

type ResizeInstanceRequest

type ResizeInstanceRequest struct {
	Body *ChangeInstanceRequestBody `json:"body,omitempty"`
}

ResizeInstanceRequest Request Object

func (ResizeInstanceRequest) String

func (o ResizeInstanceRequest) String() string

type ResizeInstanceResponse

type ResizeInstanceResponse struct {

	// 订单ID。
	OrderId        *string `json:"order_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ResizeInstanceResponse Response Object

func (ResizeInstanceResponse) String

func (o ResizeInstanceResponse) String() string

type ResourceTag

type ResourceTag struct {

	// 键。最大长度128个字符。
	Key string `json:"key"`

	// 值。每个值最大长度255个字符。
	Value string `json:"value"`
}

ResourceTag 标签列表的结构体。

func (ResourceTag) String

func (o ResourceTag) String() string

type Resources

type Resources struct {

	// 实例ID。
	ResourceId string `json:"resource_id"`

	ResourceDetail *InstanceDetail `json:"resource_detail"`

	// tags。
	Tags []ResourceTag `json:"tags"`

	// sys_tags。
	SysTags []ResourceTag `json:"sys_tags"`

	// 资源名称。
	ResourceName string `json:"resource_name"`
}

Resources 查询资源实例列表返回体中用于存储标签列表的结构体。

func (Resources) String

func (o Resources) String() string

type RollbackInstanceRequest

type RollbackInstanceRequest struct {
	Body *RollbackInstanceRequestBody `json:"body,omitempty"`
}

RollbackInstanceRequest Request Object

func (RollbackInstanceRequest) String

func (o RollbackInstanceRequest) String() string

type RollbackInstanceRequestBody

type RollbackInstanceRequestBody struct {

	// 需要回退的实例id
	ServerId string `json:"server_id"`
}

func (RollbackInstanceRequestBody) String

type RollbackInstanceResponse

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

RollbackInstanceResponse Response Object

func (RollbackInstanceResponse) String

func (o RollbackInstanceResponse) String() string

type SecurityGroup added in v0.1.75

type SecurityGroup struct {

	// 云堡垒机实例安全组ID,字母数字下划线连接符组成。
	Id string `json:"id"`
}

SecurityGroup 安全组信息。

func (SecurityGroup) String added in v0.1.75

func (o SecurityGroup) String() string

type ShowAuthorizationRequest

type ShowAuthorizationRequest struct {
}

ShowAuthorizationRequest Request Object

func (ShowAuthorizationRequest) String

func (o ShowAuthorizationRequest) String() string

type ShowAuthorizationResponse

type ShowAuthorizationResponse struct {
	Authorization  *AgencyAuthorizeInfo `json:"authorization,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

ShowAuthorizationResponse Response Object

func (ShowAuthorizationResponse) String

func (o ShowAuthorizationResponse) String() string

type ShowEcsQuotaRequest

type ShowEcsQuotaRequest struct {

	// 可用分区名称。  可参考接口\"获取服务可用区\"获取
	AvailabilityZone string `json:"availability_zone"`

	// 待创建云堡垒机规格ID,例如: - cbh.basic.10  10资产标准版 - cbh.enhance.10  10资产专业版  可参考接口\"查询云堡垒机规格信息\"获取
	ResourceSpecCode string `json:"resource_spec_code"`
}

ShowEcsQuotaRequest Request Object

func (ShowEcsQuotaRequest) String

func (o ShowEcsQuotaRequest) String() string

type ShowEcsQuotaResponse

type ShowEcsQuotaResponse struct {

	// 支持IPv6云堡垒机实例规格资源状态。 - sellout:售罄 - normal:正常商用
	StatusV6 *string `json:"status_v6,omitempty"`

	// 云堡垒机实例规格资源状态。 - sellout:售罄 - normal:正常商用
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowEcsQuotaResponse Response Object

func (ShowEcsQuotaResponse) String

func (o ShowEcsQuotaResponse) String() string

type ShowInstanceStatusRequest

type ShowInstanceStatusRequest struct {

	// 云堡垒机实例ID,使用UUID格式表示。  获取方法详见用户指南里面的实例\"查看实例详情\"
	ServerId string `json:"server_id"`
}

ShowInstanceStatusRequest Request Object

func (ShowInstanceStatusRequest) String

func (o ShowInstanceStatusRequest) String() string

type ShowInstanceStatusResponse

type ShowInstanceStatusResponse struct {

	// 云堡垒机实例名称。
	Name *string `json:"name,omitempty"`

	// 堡垒机实例状态。 - POWERING_ON:正在开启 - POWERING_OFF:正在关闭 - DELETE_WAITE:等待删除 - REBOOTING:重启中 - RESIZE:变更中 - UPGRADING:升级中 - FROZEN:冻结 - ACTIVE:运行
	Status *string `json:"status,omitempty"`

	ServerId       *interface{} `json:"server_id,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ShowInstanceStatusResponse Response Object

func (ShowInstanceStatusResponse) String

type ShowInstanceTagsRequest

type ShowInstanceTagsRequest struct {

	// 资源ID。(list接口获取)
	ResourceId string `json:"resource_id"`
}

ShowInstanceTagsRequest Request Object

func (ShowInstanceTagsRequest) String

func (o ShowInstanceTagsRequest) String() string

type ShowInstanceTagsResponse

type ShowInstanceTagsResponse struct {

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

ShowInstanceTagsResponse Response Object

func (ShowInstanceTagsResponse) String

func (o ShowInstanceTagsResponse) String() string

type ShowOmUrlRequest

type ShowOmUrlRequest struct {

	// 云堡垒机服务器ID
	ServerId string `json:"server_id"`

	// 被纳管主机IP
	IpAddress string `json:"ip_address"`

	// 被纳管主机的账户
	HostAccountName string `json:"host_account_name"`
}

ShowOmUrlRequest Request Object

func (ShowOmUrlRequest) String

func (o ShowOmUrlRequest) String() string

type ShowOmUrlResponse

type ShowOmUrlResponse struct {

	// 链接获取状态     # SUCCESS(0): 成功;非SUCCESS状态都认为获取失败,需要展示错误代码及description     # IAM_USER_CONFLICT(1016): IAM用户冲突;     # HOST_NOT_MANAGE(1): 查询主机未被纳管;     # HOST_ACCOUNT_NOT_EXIST(553): 主机账户不可用;     # IAM_USER_NO_PERMISSION(901): IAM用户无运维该主机权限;     # CUR_VERSION_NOT_SUPPORT_OPERATION(9001):当前服务版本不支持;     # INS_WHITE_LIST_INITIALIZING(9002):实例白名单正在初始化,请稍后重试;     # UNKNOWN_ERROR(9003):未知错误;
	State *ShowOmUrlResponseState `json:"state,omitempty"`

	// 链接获取异常时说明提示
	Description *string `json:"description,omitempty"`

	// ECS运维登录地址
	LoginUrl       *string `json:"login_url,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowOmUrlResponse Response Object

func (ShowOmUrlResponse) String

func (o ShowOmUrlResponse) String() string

type ShowOmUrlResponseState

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

func (ShowOmUrlResponseState) MarshalJSON

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

func (*ShowOmUrlResponseState) UnmarshalJSON

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

func (ShowOmUrlResponseState) Value

func (c ShowOmUrlResponseState) Value() string

type ShowOmUrlResponseStateEnum

type ShowOmUrlResponseStateEnum struct {
	SUCCESS                           ShowOmUrlResponseState
	IAM_USER_CONFLICT                 ShowOmUrlResponseState
	HOST_NOT_MANAGE                   ShowOmUrlResponseState
	HOST_ACCOUNT_NOT_EXIST            ShowOmUrlResponseState
	IAM_USER_NO_PERMISSION            ShowOmUrlResponseState
	CUR_VERSION_NOT_SUPPORT_OPERATION ShowOmUrlResponseState
	INS_WHITE_LIST_INITIALIZING       ShowOmUrlResponseState
	UNKNOWN_ERROR                     ShowOmUrlResponseState
}

func GetShowOmUrlResponseStateEnum

func GetShowOmUrlResponseStateEnum() ShowOmUrlResponseStateEnum

type ShowQuotaRequest

type ShowQuotaRequest struct {
}

ShowQuotaRequest Request Object

func (ShowQuotaRequest) String

func (o ShowQuotaRequest) String() string

type ShowQuotaResponse

type ShowQuotaResponse struct {

	// 云堡垒机实例最大创建数量。
	Quota *int32 `json:"quota,omitempty"`

	// 当前云堡垒机实例创建个数。
	QuotaUsed      *int32 `json:"quota_used,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowQuotaResponse Response Object

func (ShowQuotaResponse) String

func (o ShowQuotaResponse) String() string

type StartInstanceRequest

type StartInstanceRequest struct {
	Body *CommonCbhRequestBody `json:"body,omitempty"`
}

StartInstanceRequest Request Object

func (StartInstanceRequest) String

func (o StartInstanceRequest) String() string

type StartInstanceResponse

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

StartInstanceResponse Response Object

func (StartInstanceResponse) String

func (o StartInstanceResponse) String() string

type StopInstanceRequest

type StopInstanceRequest struct {
	Body *CommonCbhRequestBody `json:"body,omitempty"`
}

StopInstanceRequest Request Object

func (StopInstanceRequest) String

func (o StopInstanceRequest) String() string

type StopInstanceResponse

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

StopInstanceResponse Response Object

func (StopInstanceResponse) String

func (o StopInstanceResponse) String() string

type SwitchInstanceVpcRequest added in v0.1.97

type SwitchInstanceVpcRequest struct {
	Body *SwitchVirtualPrivateCloudRequestBody `json:"body,omitempty"`
}

SwitchInstanceVpcRequest Request Object

func (SwitchInstanceVpcRequest) String added in v0.1.97

func (o SwitchInstanceVpcRequest) String() string

type SwitchInstanceVpcResponse added in v0.1.97

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

SwitchInstanceVpcResponse Response Object

func (SwitchInstanceVpcResponse) String added in v0.1.97

func (o SwitchInstanceVpcResponse) String() string

type SwitchVirtualPrivateCloudRequestBody added in v0.1.97

type SwitchVirtualPrivateCloudRequestBody struct {

	// 需要切换vpc的实例id
	ServerId string `json:"server_id"`

	Network *NetworkInfoCreate `json:"network"`
}

func (SwitchVirtualPrivateCloudRequestBody) String added in v0.1.97

type Tags

type Tags struct {

	// 键。  > 说明: - key不能为空,长度1~128个字符(中文也可以输入128个字符) - 可用 UTF-8 格式表示的字母(包含中文)、数字和空格,以及以下字符: _ . : = + - @ - _sys_开头属于系统标签,租户不能输入 - 建议正则:^((?!_sys_)[\\\\p{L}\\\\p{Z}\\\\p{N}_.:=+\\\\-@]*)$
	Key string `json:"key"`

	// 值列表。  > 说明: - 长度0~255个字符(中文也可以输入255个字符) - 可用 UTF-8 格式表示的字母(包含中文)、数字和空格,以及以下字符: _ . : / = + - @ 建议正则:^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$ - 资源标签值可以为空(empty or null) - 预定义标签值不可以为空
	Values []string `json:"values"`
}

Tags 标签信息。 > 说明: - 不允许重复key - 每实例最多允许20个标签(系统可配置),不包含_sys开头系统标签 - 优先按照创建时间的倒序排序。如果没有创建时间则按照资源名称ASCII码进行排序

func (Tags) String

func (o Tags) String() string

type UninstallInstanceEipRequest

type UninstallInstanceEipRequest struct {

	// 云堡垒机实例ID,使用UUID格式表示。  获取方法详见用户指南里面的实例\"查看实例详情\"
	ServerId string `json:"server_id"`

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

UninstallInstanceEipRequest Request Object

func (UninstallInstanceEipRequest) String

type UninstallInstanceEipResponse

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

UninstallInstanceEipResponse Response Object

func (UninstallInstanceEipResponse) String

type UpdateInstanceSecurityGroupRequest

type UpdateInstanceSecurityGroupRequest struct {

	// 云堡垒机实例ID,使用UUID格式表示。  获取方法详见用户指南里面的实例\"查看实例详情\"
	ServerId string `json:"server_id"`

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

UpdateInstanceSecurityGroupRequest Request Object

func (UpdateInstanceSecurityGroupRequest) String

type UpdateInstanceSecurityGroupResponse

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

UpdateInstanceSecurityGroupResponse Response Object

func (UpdateInstanceSecurityGroupResponse) String

type UpgradeCbhRequestBody

type UpgradeCbhRequestBody struct {

	// 实例id
	ServerId string `json:"server_id"`

	// 定时升级的时间,需要比当前时间大24小时
	UpgradeTime int64 `json:"upgrade_time"`

	// 是否取消升级定时任务,已开始任务不可取消。 - true:取消 - false:无影响
	Cancel *bool `json:"cancel,omitempty"`
}

UpgradeCbhRequestBody 云堡垒机实例请求对象。

func (UpgradeCbhRequestBody) String

func (o UpgradeCbhRequestBody) String() string

type UpgradeInstanceRequest

type UpgradeInstanceRequest struct {
	Body *UpgradeCbhRequestBody `json:"body,omitempty"`
}

UpgradeInstanceRequest Request Object

func (UpgradeInstanceRequest) String

func (o UpgradeInstanceRequest) String() string

type UpgradeInstanceResponse

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

UpgradeInstanceResponse Response Object

func (UpgradeInstanceResponse) String

func (o UpgradeInstanceResponse) String() string

Source Files

Jump to

Keyboard shortcuts

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