model

package
v0.1.37 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiVersionInfo added in v0.1.6

type ApiVersionInfo struct {

	// API版本号。  取值:由高到低版本分别为v3,v2,v2.0。
	Id string `json:"id"`

	// API版本的状态。  取值: - CURRENT:当前版本。 - STABLE:稳定版本。 - DEPRECATED:废弃版本。  说明: 所有支持的API版本中最高版状态为CURRENT,其他版本状态为STABLE。
	Status ApiVersionInfoStatus `json:"status"`
}

This is a auto create Response Object

func (ApiVersionInfo) String added in v0.1.6

func (o ApiVersionInfo) String() string

type ApiVersionInfoStatus added in v0.1.6

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

func (ApiVersionInfoStatus) MarshalJSON added in v0.1.6

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

func (*ApiVersionInfoStatus) UnmarshalJSON added in v0.1.6

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

func (ApiVersionInfoStatus) Value added in v0.1.6

func (c ApiVersionInfoStatus) Value() string

type ApiVersionInfoStatusEnum added in v0.1.6

type ApiVersionInfoStatusEnum struct {
	CURRENT    ApiVersionInfoStatus
	STABLE     ApiVersionInfoStatus
	DEPRECATED ApiVersionInfoStatus
}

func GetApiVersionInfoStatusEnum added in v0.1.6

func GetApiVersionInfoStatusEnum() ApiVersionInfoStatusEnum

type AutoscalingRef added in v0.0.70

type AutoscalingRef struct {

	// 当前负载均衡器是否开启弹性扩缩容。  取值: - true:开启。 - false:不开启。
	Enable bool `json:"enable"`

	// 弹性扩缩容的最小七层规格ID(规格类型L7_elastic),有七层监听器时,该字段不能为空。
	MinL7FlavorId *string `json:"min_l7_flavor_id,omitempty"`
}

弹性扩缩容配置信息。负载均衡器配置并开启弹性扩缩容后,可根据负载情况自动调整负载均衡器的规格。 使用说明: - 仅当租户白名单放开后该字段才有效 - 开启弹性扩缩容后,l4_flavor_id和l7_flavor_id表示该LB实例弹性规格的上限。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,fcs)

func (AutoscalingRef) String added in v0.0.70

func (o AutoscalingRef) String() string

type AvailabilityZone

type AvailabilityZone struct {

	// 可用区唯一编码。
	Code string `json:"code"`

	// 可用区状态。  取值:ACTIVE。
	State string `json:"state"`

	// 未售罄的LB规格类别。  取值:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。
	Protocol []string `json:"protocol"`

	// 可用区组,如:center
	PublicBorderGroup string `json:"public_border_group"`

	// 范围编码,0表示center,21表示homezone
	Category int32 `json:"category"`
}

可用区。

func (AvailabilityZone) String

func (o AvailabilityZone) String() string

type BandwidthRef

type BandwidthRef struct {

	// 共享带宽的id
	Id string `json:"id"`
}

带宽对象ID,仅在创建或更新公网IPv6负载均衡器时有效。若选择创建新EIP并指定共享带宽时,此EIP会被分进共享带宽里面。 [不支持IPv6,请勿使用。](tag:dt,dt_test)

func (BandwidthRef) String

func (o BandwidthRef) String() string

type BatchCreateMembersOption added in v0.0.78

type BatchCreateMembersOption struct {

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

	// 后端云服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。例如:192.168.3.11。  subnet_cidr_id为空代表添加跨VPC后端,此时address必须为ipv4地址。
	Address string `json:"address"`

	// 后端服务器端口号。
	ProtocolPort int32 `json:"protocol_port"`

	// 后端云服务器所在的子网ID。该子网和后端云服务器关联的负载均衡器的子网必须在同一VPC下。  当所在LB未开启跨VPC后端,该参数必填。  当所在LB开启跨VPC后端,该参数非必填,表示添加跨VPC后端,此时address必须为ipv4地址, pool的协议必须为TCP/HTTP/HTTPS,pool所属的LB的跨VPC后端转发能力必须打开。
	SubnetCidrId *string `json:"subnet_cidr_id,omitempty"`

	// 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。  取值:0-100,默认1。  使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。
	Weight *int32 `json:"weight,omitempty"`
}

批量添加member请求参数。

func (BatchCreateMembersOption) String added in v0.0.78

func (o BatchCreateMembersOption) String() string

type BatchCreateMembersRequest added in v0.0.78

type BatchCreateMembersRequest struct {

	// 后端服务器组ID。
	PoolId string `json:"pool_id"`

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

Request Object

func (BatchCreateMembersRequest) String added in v0.0.78

func (o BatchCreateMembersRequest) String() string

type BatchCreateMembersRequestBody added in v0.0.78

type BatchCreateMembersRequestBody struct {

	// 后端服务器对象。
	Members []BatchCreateMembersOption `json:"members"`
}

This is a auto create Body Object

func (BatchCreateMembersRequestBody) String added in v0.0.78

type BatchCreateMembersResponse added in v0.0.78

type BatchCreateMembersResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	// 后端服务器对象列表。
	Members        *[]BatchMember `json:"members,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (BatchCreateMembersResponse) String added in v0.0.78

type BatchDeleteIpListOption added in v0.0.70

type BatchDeleteIpListOption struct {

	// IP列表。
	IpList *[]IpGroupIp `json:"ip_list,omitempty"`
}

批量删除IP地址组中的IP。

func (BatchDeleteIpListOption) String added in v0.0.70

func (o BatchDeleteIpListOption) String() string

type BatchDeleteIpListRequest added in v0.0.70

type BatchDeleteIpListRequest struct {

	// IP地址组ID。
	IpgroupId string `json:"ipgroup_id"`

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

Request Object

func (BatchDeleteIpListRequest) String added in v0.0.70

func (o BatchDeleteIpListRequest) String() string

type BatchDeleteIpListRequestBody added in v0.0.70

type BatchDeleteIpListRequestBody struct {
	Ipgroup *BatchDeleteIpListOption `json:"ipgroup,omitempty"`
}

This is a auto create Response Object

func (BatchDeleteIpListRequestBody) String added in v0.0.70

type BatchDeleteIpListResponse added in v0.0.70

type BatchDeleteIpListResponse struct {
	Ipgroup *IpGroup `json:"ipgroup,omitempty"`

	// 请求ID。 注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (BatchDeleteIpListResponse) String added in v0.0.70

func (o BatchDeleteIpListResponse) String() string

type BatchDeleteMembersOption added in v0.0.78

type BatchDeleteMembersOption struct {

	// 需要删除的后端服务器ID。  使用说明: - 若传入id则不能传其他参数,否则报错。  >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
	Id *string `json:"id,omitempty"`

	// 后端服务器IP地址。  使用说明: - address和protocol_port必须同时传入。 - 不能同时传入ID字段
	Address *string `json:"address,omitempty"`

	// 后端服务器端口。  使用说明: - address和protocol_port必须同时传入。 - 不能同时传入ID字段
	ProtocolPort *int32 `json:"protocol_port,omitempty"`
}

批量删除member请求参数。

func (BatchDeleteMembersOption) String added in v0.0.78

func (o BatchDeleteMembersOption) String() string

type BatchDeleteMembersRequest added in v0.0.78

type BatchDeleteMembersRequest struct {

	// 后端服务器组ID。
	PoolId string `json:"pool_id"`

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

Request Object

func (BatchDeleteMembersRequest) String added in v0.0.78

func (o BatchDeleteMembersRequest) String() string

type BatchDeleteMembersRequestBody added in v0.0.97

type BatchDeleteMembersRequestBody struct {

	// 批量删除后端服务器请求body。
	Members []BatchDeleteMembersOption `json:"members"`
}

This is a auto create Body Object

func (BatchDeleteMembersRequestBody) String added in v0.0.97

type BatchDeleteMembersResponse added in v0.0.78

type BatchDeleteMembersResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	// 后端服务器对象列表。
	Members        *[]BatchDeleteMembersState `json:"members,omitempty"`
	HttpStatusCode int                        `json:"-"`
}

Response Object

func (BatchDeleteMembersResponse) String added in v0.0.78

type BatchDeleteMembersState added in v0.0.97

type BatchDeleteMembersState struct {

	// 后端服务器ID。  >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
	Id string `json:"id"`

	// 当前后端服务器删除结果状态。  取值: - successful:删除成功。 - not found:member不存在。
	RetStatus string `json:"ret_status"`
}

批量创建后端服务器响应结果

func (BatchDeleteMembersState) String added in v0.0.97

func (o BatchDeleteMembersState) String() string

type BatchMember added in v0.0.78

type BatchMember struct {

	// 后端服务器ID。  >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
	Id string `json:"id"`

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

	// 后端服务器所在的项目ID。
	ProjectId string `json:"project_id"`

	// 后端云服务器的管理状态。  取值:true、false。  虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
	AdminStateUp bool `json:"admin_state_up"`

	// 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。  若所属的LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。  使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。  [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
	SubnetCidrId *string `json:"subnet_cidr_id,omitempty"`

	// 后端服务器业务端口号。
	ProtocolPort int32 `json:"protocol_port"`

	// 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。  取值:0-100,默认1。  使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。
	Weight int32 `json:"weight"`

	// 后端服务器对应的IP地址。  使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡IP。  [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
	Address string `json:"address"`

	// 后端云服务器的健康状态。  取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。
	OperatingStatus string `json:"operating_status"`

	// 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
	Status *[]MemberStatus `json:"status,omitempty"`

	// 后端云服务器的类型。  取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
	MemberType *string `json:"member_type,omitempty"`

	// member关联的实例ID,空表示跨VPC场景的member。
	InstanceId *string `json:"instance_id,omitempty"`

	// IP地址对应的VPC port ID
	PortId string `json:"port_id"`

	// 当前后端服务器创建结果状态。  取值: - successful:添加成功。 - existed:member已存在。
	RetStatus string `json:"ret_status"`
}

批量创建后端服务器响应参数

func (BatchMember) String added in v0.0.78

func (o BatchMember) String() string

type BatchUpdatePoliciesPriorityRequest added in v0.0.70

type BatchUpdatePoliciesPriorityRequest struct {
	Body *BatchUpdatePoliciesPriorityRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchUpdatePoliciesPriorityRequest) String added in v0.0.70

type BatchUpdatePoliciesPriorityRequestBody added in v0.0.70

type BatchUpdatePoliciesPriorityRequestBody struct {

	// 转发策略的结构体
	L7policies *[]BatchUpdatePriorityRequestBody `json:"l7policies,omitempty"`
}

This is a auto create Body Object

func (BatchUpdatePoliciesPriorityRequestBody) String added in v0.0.70

type BatchUpdatePoliciesPriorityResponse added in v0.0.70

type BatchUpdatePoliciesPriorityResponse struct {

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (BatchUpdatePoliciesPriorityResponse) String added in v0.0.70

type BatchUpdatePriorityRequestBody added in v0.0.70

type BatchUpdatePriorityRequestBody struct {

	// 待更新的l7policy的ID。
	Id string `json:"id"`

	// 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。  当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。  当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。  当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。  当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。  [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)  [不支持该字段,请勿使用。](tag:hcso_dt)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	Priority int32 `json:"priority"`
}

批量更新转发策略优先级的请求参数。

func (BatchUpdatePriorityRequestBody) String added in v0.0.70

type CertificateInfo

type CertificateInfo struct {

	// 证书的管理状态。  不支持该字段,请勿使用。
	AdminStateUp bool `json:"admin_state_up"`

	// 证书的内容。PEM编码格式。
	Certificate string `json:"certificate"`

	// 证书的描述。
	Description string `json:"description"`

	// 服务器证书所签域名。该字段仅type为server时有效。  总长度为0-1024,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过30个域名。  普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com。  泛域名:在普通域名的基础上仅允许首字母为\"*\"。例:*.test.com
	Domain string `json:"domain"`

	// 证书ID。
	Id string `json:"id"`

	// 证书的名称。
	Name string `json:"name"`

	// 服务器证书的私钥。PEM编码格式。 当type为client时,该参数被忽略,不影响证书的创建和使用。且若不符合格式,不报错但会被设置为空。 当type为server时,该字段必须符合格式要求,且私钥必须是有效的。
	PrivateKey string `json:"private_key"`

	// SSL证书的类型。分为服务器证书(server)、CA证书(client)。默认值:server。
	Type string `json:"type"`

	// 证书创建时间。
	CreatedAt string `json:"created_at"`

	// 证书更新时间。
	UpdatedAt string `json:"updated_at"`

	// 证书使用截止时间。
	ExpireTime string `json:"expire_time"`

	// 证书所在项目ID。
	ProjectId string `json:"project_id"`

	// HTTPS协议使用的SM加密证书内容。  取值:PEM编码格式。  注意:仅在当前局点的SM加密证书特性开启才会返回该字段。
	EncCertificate *string `json:"enc_certificate,omitempty"`

	// HTTPS协议使用的SM加密证书私钥。  取值:PEM编码格式。  注意:仅在当前局点的SM加密证书特性开启才会返回该字段。
	EncPrivateKey *string `json:"enc_private_key,omitempty"`
}

证书信息。

func (CertificateInfo) String

func (o CertificateInfo) String() string

type ChangeLoadbalancerChargeModeRequest added in v0.0.70

type ChangeLoadbalancerChargeModeRequest struct {
	Body *ChangeLoadbalancerChargeModeRequestBody `json:"body,omitempty"`
}

Request Object

func (ChangeLoadbalancerChargeModeRequest) String added in v0.0.70

type ChangeLoadbalancerChargeModeRequestBody added in v0.0.70

type ChangeLoadbalancerChargeModeRequestBody struct {

	// 需要修改计费类型的负载均衡器ID列表。
	LoadbalancerIds []string `json:"loadbalancer_ids"`

	// 计费模式。  取值: - prepaid:包周期计费。
	ChargeMode ChangeLoadbalancerChargeModeRequestBodyChargeMode `json:"charge_mode"`

	PrepaidOptions *PrepaidChangeChargeModeOption `json:"prepaid_options,omitempty"`
}

This is a auto create Body Object

func (ChangeLoadbalancerChargeModeRequestBody) String added in v0.0.70

type ChangeLoadbalancerChargeModeRequestBodyChargeMode added in v0.0.70

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

func (ChangeLoadbalancerChargeModeRequestBodyChargeMode) MarshalJSON added in v0.0.70

func (*ChangeLoadbalancerChargeModeRequestBodyChargeMode) UnmarshalJSON added in v0.0.70

func (ChangeLoadbalancerChargeModeRequestBodyChargeMode) Value added in v0.0.90

type ChangeLoadbalancerChargeModeRequestBodyChargeModeEnum added in v0.0.70

type ChangeLoadbalancerChargeModeRequestBodyChargeModeEnum struct {
	PREPAID ChangeLoadbalancerChargeModeRequestBodyChargeMode
}

func GetChangeLoadbalancerChargeModeRequestBodyChargeModeEnum added in v0.0.70

func GetChangeLoadbalancerChargeModeRequestBodyChargeModeEnum() ChangeLoadbalancerChargeModeRequestBodyChargeModeEnum

type ChangeLoadbalancerChargeModeResponse added in v0.0.70

type ChangeLoadbalancerChargeModeResponse struct {

	// 转包周期下单成功的EIP ID列表
	EipIdList *[]string `json:"eip_id_list,omitempty"`

	// 转包周期下单成功的LB ID列表
	LoadbalancerIdList *[]string `json:"loadbalancer_id_list,omitempty"`

	// 转包周期订单号
	OrderId *string `json:"order_id,omitempty"`

	// 请求的UUIID
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ChangeLoadbalancerChargeModeResponse) String added in v0.0.70

type CountPreoccupyIpNumRequest

type CountPreoccupyIpNumRequest struct {

	// 负载均衡器七层规格的ID。传入该字段表示计算创建该规格的LB,或变更LB的原七层规格到该规格所需要的预占IP。  适用场景:创建负LB,变更LB规格。  [不支持传入l7_flavor_id](tag:fcs)
	L7FlavorId *string `json:"l7_flavor_id,omitempty"`

	// 是否开启跨VPC转发。  取值true表示计算创建或变更为开启跨VPC转发的LB的预占IP。  取值false表示计算创建或变更为不开启跨VPC转发的LB的预占IP。不传等价false。  适用场景:创建LB,变更LB规格。  [荷兰region不支持该字段,请勿使用。](tag:dt)
	IpTargetEnable *bool `json:"ip_target_enable,omitempty"`

	// 负载均衡器IP地址类型,取值4,6 。  取值4表示计算创建支持IPv4地址的LB的预占IP。  取值6表示计算创建支持IPv6地址的LB的预占IP。  适用场景:创建LB。  [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
	IpVersion *int32 `json:"ip_version,omitempty"`

	// 负载均衡器ID。计算LB规格变更或创建LB中的第一个七层监听器的预占IP。  适用场景:变更LB规格,创建LB中的第一个七层监听器。
	LoadbalancerId *string `json:"loadbalancer_id,omitempty"`

	// 计算创建AZ列表为availability_zone_id的负载局衡器实例的预占IP。  适用场景:创建LB。  使用说明:传入loadbalancer_id时,该参数无效。
	AvailabilityZoneId *[]string `json:"availability_zone_id,omitempty"`
}

Request Object

func (CountPreoccupyIpNumRequest) String

type CountPreoccupyIpNumResponse

type CountPreoccupyIpNumResponse struct {
	PreoccupyIp *PreoccupyIp `json:"preoccupy_ip,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CountPreoccupyIpNumResponse) String

type CreateCertificateOption

type CreateCertificateOption struct {

	// 证书的管理状态。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// HTTPS协议使用的证书内容。 取值范围:PEM编码格式。 最大长度65536字符。 支持证书链,最大11层(含证书和证书链)。
	Certificate string `json:"certificate"`

	// 证书的描述。
	Description *string `json:"description,omitempty"`

	// 服务器证书所签域名。该字段仅type为server时有效。  总长度为0-1024,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过30个域名。  普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com;  泛域名:在普通域名的基础上仅允许首字母为\"\"。例:.test.com
	Domain *string `json:"domain,omitempty"`

	// 证书的名称。
	Name *string `json:"name,omitempty"`

	// HTTPS协议使用的私钥。当type为server时有效且必选。 取值范围:PEM编码格式。 最大长度8192字符。
	PrivateKey *string `json:"private_key,omitempty"`

	// 证书所在的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// SSL证书的类型。分为服务器证书(server)、CA证书(client)。 默认值:server
	Type *CreateCertificateOptionType `json:"type,omitempty"`

	// 证书所属的企业项目ID。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// HTTPS协议使用的SM加密证书内容。支持证书链,最大11层(含证书和证书链)。  取值:PEM编码格式。最大长度65536字符。  使用说明:仅type为server_sm时有效且必选。
	EncCertificate *string `json:"enc_certificate,omitempty"`

	// HTTPS协议使用的SM加密证书私钥。  取值:PEM编码格式。最大长度8192字符。  使用说明:仅type为server_sm时有效且必选。
	EncPrivateKey *string `json:"enc_private_key,omitempty"`
}

创建证书请求参数。

func (CreateCertificateOption) String

func (o CreateCertificateOption) String() string

type CreateCertificateOptionType added in v0.0.70

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

func (CreateCertificateOptionType) MarshalJSON added in v0.0.70

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

func (*CreateCertificateOptionType) UnmarshalJSON added in v0.0.70

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

func (CreateCertificateOptionType) Value added in v0.0.90

type CreateCertificateOptionTypeEnum added in v0.0.70

type CreateCertificateOptionTypeEnum struct {
	SERVER CreateCertificateOptionType
	CLIENT CreateCertificateOptionType
}

func GetCreateCertificateOptionTypeEnum added in v0.0.70

func GetCreateCertificateOptionTypeEnum() CreateCertificateOptionTypeEnum

type CreateCertificateRequest

type CreateCertificateRequest struct {
	Body *CreateCertificateRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateCertificateRequest) String

func (o CreateCertificateRequest) String() string

type CreateCertificateRequestBody

type CreateCertificateRequestBody struct {
	Certificate *CreateCertificateOption `json:"certificate"`
}

This is a auto create Body Object

func (CreateCertificateRequestBody) String

type CreateCertificateResponse

type CreateCertificateResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Certificate    *CertificateInfo `json:"certificate,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (CreateCertificateResponse) String

func (o CreateCertificateResponse) String() string

type CreateFixtedResponseConfig added in v0.0.70

type CreateFixtedResponseConfig struct {

	// 返回码。支持200~299,400~499,500~599。
	StatusCode string `json:"status_code"`

	// 返回body的格式。  取值范围: - text/plain - text/css - text/html - application/javascript - application/json
	ContentType *CreateFixtedResponseConfigContentType `json:"content_type,omitempty"`

	// 返回消息内容。
	MessageBody *string `json:"message_body,omitempty"`
}

固定返回页面的配置。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为FIXED_RESPONSE时生效,且为必选字段,其他action不可指定,否则报错。 [共享型负载均衡器下的转发策略不支持该字段,传入会报错。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)

func (CreateFixtedResponseConfig) String added in v0.0.70

type CreateFixtedResponseConfigContentType added in v0.0.70

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

func (CreateFixtedResponseConfigContentType) MarshalJSON added in v0.0.70

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

func (*CreateFixtedResponseConfigContentType) UnmarshalJSON added in v0.0.70

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

func (CreateFixtedResponseConfigContentType) Value added in v0.0.90

type CreateFixtedResponseConfigContentTypeEnum added in v0.0.70

type CreateFixtedResponseConfigContentTypeEnum struct {
	TEXT_PLAIN             CreateFixtedResponseConfigContentType
	TEXT_CSS               CreateFixtedResponseConfigContentType
	TEXT_HTML              CreateFixtedResponseConfigContentType
	APPLICATION_JAVASCRIPT CreateFixtedResponseConfigContentType
	APPLICATION_JSON       CreateFixtedResponseConfigContentType
}

func GetCreateFixtedResponseConfigContentTypeEnum added in v0.0.70

func GetCreateFixtedResponseConfigContentTypeEnum() CreateFixtedResponseConfigContentTypeEnum

type CreateHealthMonitorOption

type CreateHealthMonitorOption struct {

	// 健康检查的管理状态。  取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 健康检查间隔。取值:1-50s。
	Delay int32 `json:"delay"`

	// 发送健康检查请求的域名。  取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。  默认为空,表示使用负载均衡器的vip作为http请求的目的地址。  使用说明:当type为HTTP/HTTPS时生效。
	DomainName *string `json:"domain_name,omitempty"`

	// 期望响应状态码。  取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。   默认值:200。  仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。
	ExpectedCodes *string `json:"expected_codes,omitempty"`

	// HTTP请求方法。  取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH,默认GET。  使用说明:当type为HTTP/HTTPS时生效。  不支持该字段,请勿使用。
	HttpMethod *string `json:"http_method,omitempty"`

	// 健康检查连续成功多少次后,将后端服务器的健康检查状态由OFFLINE判定为ONLINE。取值范围:1-10。
	MaxRetries int32 `json:"max_retries"`

	// 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10,默认3。
	MaxRetriesDown *int32 `json:"max_retries_down,omitempty"`

	// 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。
	MonitorPort *int32 `json:"monitor_port,omitempty"`

	// 健康检查名称。
	Name *string `json:"name,omitempty"`

	// 健康检查所在的后端云服务器组ID
	PoolId string `json:"pool_id"`

	// 健康检查所在的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 一次健康检查请求的超时时间。  建议该值小于delay的值。
	Timeout int32 `json:"timeout"`

	// 健康检查请求协议。  取值:TCP、UDP_CONNECT、HTTP、HTTPS。  使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。  [荷兰region不支持QUIC。](tag:dt)
	Type string `json:"type"`

	// 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。  使用说明:当type为HTTP/HTTPS时生效。
	UrlPath *string `json:"url_path,omitempty"`
}

创建健康检查请求参数。

func (CreateHealthMonitorOption) String

func (o CreateHealthMonitorOption) String() string

type CreateHealthMonitorRequest

type CreateHealthMonitorRequest struct {
	Body *CreateHealthMonitorRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateHealthMonitorRequest) String

type CreateHealthMonitorRequestBody

type CreateHealthMonitorRequestBody struct {
	Healthmonitor *CreateHealthMonitorOption `json:"healthmonitor"`
}

This is a auto create Body Object

func (CreateHealthMonitorRequestBody) String

type CreateHealthMonitorResponse

type CreateHealthMonitorResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Healthmonitor  *HealthMonitor `json:"healthmonitor,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (CreateHealthMonitorResponse) String

type CreateIpGroupIpOption

type CreateIpGroupIpOption struct {

	// IP地址。支持IPv4、IPv6。  [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
	Ip string `json:"ip"`

	// 备注信息。
	Description *string `json:"description,omitempty"`
}

IP地址组中的包含的IP信息。

func (CreateIpGroupIpOption) String

func (o CreateIpGroupIpOption) String() string

type CreateIpGroupOption

type CreateIpGroupOption struct {

	// IP地址组所在的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// IP地址组的描述。
	Description *string `json:"description,omitempty"`

	// IP地址组的名称。
	Name *string `json:"name,omitempty"`

	// IP地址组中包含的IP或网段列表。[]表示任意IP。
	IpList []CreateIpGroupIpOption `json:"ip_list"`

	// IP地址组所在的企业项目ID。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

创建IP地址组请求参数。

func (CreateIpGroupOption) String

func (o CreateIpGroupOption) String() string

type CreateIpGroupRequest

type CreateIpGroupRequest struct {
	Body *CreateIpGroupRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateIpGroupRequest) String

func (o CreateIpGroupRequest) String() string

type CreateIpGroupRequestBody

type CreateIpGroupRequestBody struct {
	Ipgroup *CreateIpGroupOption `json:"ipgroup"`
}

This is a auto create Body Object

func (CreateIpGroupRequestBody) String

func (o CreateIpGroupRequestBody) String() string

type CreateIpGroupResponse

type CreateIpGroupResponse struct {
	Ipgroup *IpGroup `json:"ipgroup,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateIpGroupResponse) String

func (o CreateIpGroupResponse) String() string

type CreateL7PolicyOption

type CreateL7PolicyOption struct {

	// 转发策略的转发动作。  取值: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。  使用说明: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。  [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt)
	Action string `json:"action"`

	// 转发策略的管理状态,默认为true。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 转发策略描述信息。
	Description *string `json:"description,omitempty"`

	// 转发策略对应的监听器ID。 当action为REDIRECT_TO_POOL时,只支持创建在PROTOCOL为HTTP或HTTPS的listener上。  当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。
	ListenerId string `json:"listener_id"`

	// 转发策略名称。
	Name *string `json:"name,omitempty"`

	// 转发策略的优先级,不支持更新。  不支持该字段,请勿使用。
	Position *int32 `json:"position,omitempty"`

	// 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。  当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。  当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。  当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。  当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。  [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)  [不支持该字段,请勿使用。](tag:hcso_dt)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	Priority *int32 `json:"priority,omitempty"`

	// 转发策略所在的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。  使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	RedirectListenerId *string `json:"redirect_listener_id,omitempty"`

	// 转发到pool的ID。当action为REDIRECT_TO_POOL时生效。  使用说明: - 当action为REDIRECT_TO_POOL时,redirect_pool_id和redirect_pools_config 必须指定一个,两个都指定时按redirect_pools_config生效。 - 当action为REDIRECT_TO_LISTENER时,不可指定。
	RedirectPoolId *string `json:"redirect_pool_id,omitempty"`

	// 转发到的后端主机组的配置。当action为REDIRECT_TO_POOL时生效。  使用说明: - 当action为REDIRECT_TO_POOL时redirect_pool_id和redirect_pools_config 必须指定一个,两个都指定时按redirect_pools_config生效。 - 当action为REDIRECT_TO_LISTENER时,不可指定。
	RedirectPoolsConfig *[]CreateRedirectPoolsConfig `json:"redirect_pools_config,omitempty"`

	// 转发到的url。必须满足格式: protocol://host:port/path?query。  [不支持该字段,请勿使用。](tag:hcso_dt)
	RedirectUrl *string `json:"redirect_url,omitempty"`

	RedirectUrlConfig *CreateRedirectUrlConfig `json:"redirect_url_config,omitempty"`

	FixedResponseConfig *CreateFixtedResponseConfig `json:"fixed_response_config,omitempty"`

	// 转发策略关联的转发规则对象。详细参考表 l7rule字段说明。rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。  使用说明: - 仅支持全量替换。 - 如果l7policy 是重定向到listener的话,不允许创建l7rule。
	Rules *[]CreateL7PolicyRuleOption `json:"rules,omitempty"`
}

创建转发策略请求参数。

func (CreateL7PolicyOption) String

func (o CreateL7PolicyOption) String() string

type CreateL7PolicyRequest

type CreateL7PolicyRequest struct {
	Body *CreateL7PolicyRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateL7PolicyRequest) String

func (o CreateL7PolicyRequest) String() string

type CreateL7PolicyRequestBody

type CreateL7PolicyRequestBody struct {
	L7policy *CreateL7PolicyOption `json:"l7policy"`
}

This is a auto create Body Object

func (CreateL7PolicyRequestBody) String

func (o CreateL7PolicyRequestBody) String() string

type CreateL7PolicyResponse

type CreateL7PolicyResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	L7policy       *L7Policy `json:"l7policy,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (CreateL7PolicyResponse) String

func (o CreateL7PolicyResponse) String() string

type CreateL7PolicyRuleOption

type CreateL7PolicyRuleOption struct {

	// 转发规则的管理状态;取值范围: true/false,默认为true。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 转发规则类别。  取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。  使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。  [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
	Type string `json:"type"`

	// 转发匹配方式。  取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。  使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。
	CompareType string `json:"compare_type"`

	// 是否反向匹配;取值范围:true/false。默认值:false。  不支持该字段,请勿使用。
	Invert *bool `json:"invert,omitempty"`

	// 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。  不支持该字段,请勿使用。
	Key *string `json:"key,omitempty"`

	// 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。  当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头。 若域名中包含“*”,则“*”只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。  当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。  当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。
	Value string `json:"value"`

	// 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。  [不支持该字段,请勿使用。](tag:hcso_dt)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	Conditions *[]CreateRuleCondition `json:"conditions,omitempty"`
}

转发规则匹配策略

func (CreateL7PolicyRuleOption) String

func (o CreateL7PolicyRuleOption) String() string

type CreateL7RuleRequest

type CreateL7RuleRequest struct {

	// 转发策略ID。
	L7policyId string `json:"l7policy_id"`

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

Request Object

func (CreateL7RuleRequest) String

func (o CreateL7RuleRequest) String() string

type CreateL7RuleRequestBody

type CreateL7RuleRequestBody struct {
	Rule *CreateRuleOption `json:"rule"`
}

This is a auto create Body Object

func (CreateL7RuleRequestBody) String

func (o CreateL7RuleRequestBody) String() string

type CreateL7RuleResponse

type CreateL7RuleResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Rule           *L7Rule `json:"rule,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateL7RuleResponse) String

func (o CreateL7RuleResponse) String() string

type CreateListenerIpGroupOption

type CreateListenerIpGroupOption struct {

	// 监听器关联的访问控制组的id。  当关联的ipgroup中的ip_list为[],且类型为白名单时,表示禁止所有ip的访问。  当关联的ipgroup中的ip_list为[],且类型为黑名单时,表示允许所有ip的访问。
	IpgroupId string `json:"ipgroup_id"`

	// 访问控制组的状态。  取值: - true:开启访问控制,默认值。 - flase:关闭访问控制。
	EnableIpgroup *bool `json:"enable_ipgroup,omitempty"`

	// 访问控制组的类型。 - white:白名单,只允许指定ip访问,默认值。 - black:黑名单,不允许指定ip访问。
	Type *CreateListenerIpGroupOptionType `json:"type,omitempty"`
}

监听器对象中的控制组(ipgroup)信息,可以不传或传null或{},表示监听器不绑定访问控制组。 若需要绑定访问控制组,则ipgroup_id是必须的。 [不支持该字段,请勿使用。](tag:hcso_dt)

func (CreateListenerIpGroupOption) String

type CreateListenerIpGroupOptionType

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

func (CreateListenerIpGroupOptionType) MarshalJSON

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

func (*CreateListenerIpGroupOptionType) UnmarshalJSON

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

func (CreateListenerIpGroupOptionType) Value added in v0.0.90

type CreateListenerIpGroupOptionTypeEnum

type CreateListenerIpGroupOptionTypeEnum struct {
	WHITE CreateListenerIpGroupOptionType
	BLACK CreateListenerIpGroupOptionType
}

func GetCreateListenerIpGroupOptionTypeEnum

func GetCreateListenerIpGroupOptionTypeEnum() CreateListenerIpGroupOptionTypeEnum

type CreateListenerOption

type CreateListenerOption struct {

	// 监听器的管理状态。固定为true。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 监听器默认的后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。
	DefaultPoolId *string `json:"default_pool_id,omitempty"`

	// 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。  监听器协议为QUIC时不支持该字段。  [荷兰region不支持QUIC。](tag:dt)
	ClientCaTlsContainerRef *string `json:"client_ca_tls_container_ref,omitempty"`

	// 监听器使用的服务器证书ID。  使用说明:当监听器协议为HTTPS时,该字段必传,且对应的证书的type必须是server类型。
	DefaultTlsContainerRef *string `json:"default_tls_container_ref,omitempty"`

	// 监听器的描述信息。
	Description *string `json:"description,omitempty"`

	// 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。  使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。  [荷兰region不支持QUIC。](tag:dt)
	Http2Enable *bool `json:"http2_enable,omitempty"`

	InsertHeaders *ListenerInsertHeaders `json:"insert_headers,omitempty"`

	// 监听器所属的负载均衡器的ID列表。  使用说明: 一个监听器只支持关联到一个LB。
	LoadbalancerId string `json:"loadbalancer_id"`

	// 监听器的名称。
	Name *string `json:"name,omitempty"`

	// 监听器所在的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 监听器的监听协议。  [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC。  使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS。 传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  [取值:TCP、UDP、HTTP、HTTPS。](tag:hws_eu,hcso_dt)  [荷兰region不支持QUIC。](tag:dt)
	Protocol string `json:"protocol"`

	// 监听器的监听端口。QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。  [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt)  [荷兰region不支持QUIC。](tag:dt)
	ProtocolPort int32 `json:"protocol_port"`

	// 监听器使用的SNI证书(带域名的服务器证书)ID列表。  使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过30。 - QUIC监听器仅支持RSA证书。  [荷兰region不支持QUIC。](tag:dt)
	SniContainerRefs *[]string `json:"sni_container_refs,omitempty"`

	// 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。
	SniMatchAlgo *string `json:"sni_match_algo,omitempty"`

	// 标签列表
	Tags *[]Tag `json:"tags,omitempty"`

	// 监听器使用的安全策略。  [取值:tls-1-0-inherit,tls-1-0, tls-1-1, tls-1-2,tls-1-2-strict,tls-1-2-fs,tls-1-0-with-1-3, tls-1-2-fs-with-1-3, hybrid-policy-1-0,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt)  [取值:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt)  [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt)  [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt)  [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42)  [荷兰region不支持QUIC。](tag:dt)
	TlsCiphersPolicy *string `json:"tls_ciphers_policy,omitempty"`

	// 自定义安全策略的ID。  [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件 (即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt)  [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt)  [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42)  [荷兰region不支持QUIC。](tag:dt)
	SecurityPolicyId *string `json:"security_policy_id,omitempty"`

	// 是否开启后端服务器的重试。  取值:true 开启重试,false 不开启重试。默认:true。  [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt)  [荷兰region不支持QUIC。](tag:dt)
	EnableMemberRetry *bool `json:"enable_member_retry,omitempty"`

	// 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到一下次请求时重新建立新的连接。  取值: - 若为TCP监听器,取值范围为(10-4000s)默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。  UDP监听器不支持此字段。
	KeepaliveTimeout *int32 `json:"keepalive_timeout,omitempty"`

	// 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。  取值范围为1-300s,默认值为60s。  使用说明:仅协议为HTTP/HTTPS的监听器支持该字段。
	ClientTimeout *int32 `json:"client_timeout,omitempty"`

	// 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。  取值:1-300s,默认为60s。  使用说明:仅支持协议为HTTP/HTTPS的监听器。
	MemberTimeout *int32 `json:"member_timeout,omitempty"`

	Ipgroup *CreateListenerIpGroupOption `json:"ipgroup,omitempty"`

	// 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。  取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。  使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
	TransparentClientIpEnable *bool `json:"transparent_client_ip_enable,omitempty"`

	// 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。  取值:true开启,false不开启,默认false。  开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。  [荷兰region不支持该字段,请勿使用。](tag:dt)
	EnhanceL7policyEnable *bool `json:"enhance_l7policy_enable,omitempty"`

	QuicConfig *CreateListenerQuicConfigOption `json:"quic_config,omitempty"`
}

创建监听器的请求参数。

func (CreateListenerOption) String

func (o CreateListenerOption) String() string

type CreateListenerQuicConfigOption added in v0.0.97

type CreateListenerQuicConfigOption struct {

	// 监听器关联的QUIC监听器ID。指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。  [荷兰region不支持QUIC。](tag:dt)
	QuicListenerId string `json:"quic_listener_id"`

	// QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级(默认)。 开启HTTPS监听器升级QUIC监听器能力。  [荷兰region不支持QUIC。](tag:dt)
	EnableQuicUpgrade *bool `json:"enable_quic_upgrade,omitempty"`
}

当前监听器关联的QUIC监听器配置信息,仅protocol为HTTPS时有效。 对于TCP/UDP/HTTP/QUIC监听器,若该字段非空则报错。 > 客户端向服务端发送正常的HTTP协议请求并携带了支持QUIC协议的信息。 如果服务端监听器开启了升级QUIC,那么就会在响应头中加入服务端支持的QUIC端口和版本信息。 客户端再次请求时会同时发送TCP(HTTPS)和UDP(QUIC)请求,若QUIC请求成功,则后续继续使用QUIC交互。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt)

func (CreateListenerQuicConfigOption) String added in v0.0.97

type CreateListenerRequest

type CreateListenerRequest struct {
	Body *CreateListenerRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateListenerRequest) String

func (o CreateListenerRequest) String() string

type CreateListenerRequestBody

type CreateListenerRequestBody struct {
	Listener *CreateListenerOption `json:"listener"`
}

This is a auto create Body Object

func (CreateListenerRequestBody) String

func (o CreateListenerRequestBody) String() string

type CreateListenerResponse

type CreateListenerResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Listener       *Listener `json:"listener,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (CreateListenerResponse) String

func (o CreateListenerResponse) String() string

type CreateLoadBalancerBandwidthOption

type CreateLoadBalancerBandwidthOption struct {

	// 带宽名称。  取值:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)  使用说明: - 如果share_type是PER,该字段是必选。 - 如果bandwidth对象的id有值,该字段被忽略。
	Name *string `json:"name,omitempty"`

	// 带宽大小 取值范围:默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。  注意:调整带宽时的最小单位会根据带宽范围不同存在差异。 小于等于300Mbit/s:默认最小单位为1Mbit/s。 300Mbit/s~1000Mbit/s:默认最小单位为50Mbit/s。 大于1000Mbit/s:默认最小单位为500Mbit/s。  使用说明:当id字段为null时,size是必须的。
	Size *int32 `json:"size,omitempty"`

	// 计费模式。  [取值:bandwidth表示按带宽计费,traffic表示按流量计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,tm,cmcc,hws_ocb,fcs)  [当前仅支持traffic按流量计费](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt)  使用说明:当id字段为null时,charge_mode是必须的。
	ChargeMode *CreateLoadBalancerBandwidthOptionChargeMode `json:"charge_mode,omitempty"`

	// 带宽类型。  取值: - PER:独享带宽。 - WHOLE:共享带宽。  使用说明: - 当id字段为null时,share_type是必须的。当id不为null时,该字段被忽略。 - 该字段为WHOLE时,必须指定带宽ID。 - IPv6的EIP不支持WHOLE类型带宽。
	ShareType *CreateLoadBalancerBandwidthOptionShareType `json:"share_type,omitempty"`

	// 资源账单信息。  [如果billing_info不为空,说明是包周期计费的带宽,否则为按需计费的带宽 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc)  [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,fcs)
	BillingInfo *string `json:"billing_info,omitempty"`

	// 功能说明:使用已有的共享带宽创建IP 取值范围:共享带宽ID 使用说明: WHOLE类型的带宽ID; 在预付费的情况下,不填该值。该字段取空字符串时,会被忽略。
	Id *string `json:"id,omitempty"`
}

带宽信息

func (CreateLoadBalancerBandwidthOption) String

type CreateLoadBalancerBandwidthOptionChargeMode

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

func (CreateLoadBalancerBandwidthOptionChargeMode) MarshalJSON

func (*CreateLoadBalancerBandwidthOptionChargeMode) UnmarshalJSON

func (CreateLoadBalancerBandwidthOptionChargeMode) Value added in v0.0.90

type CreateLoadBalancerBandwidthOptionChargeModeEnum

type CreateLoadBalancerBandwidthOptionChargeModeEnum struct {
	BANDWIDTH CreateLoadBalancerBandwidthOptionChargeMode
	TRAFFIC   CreateLoadBalancerBandwidthOptionChargeMode
}

func GetCreateLoadBalancerBandwidthOptionChargeModeEnum

func GetCreateLoadBalancerBandwidthOptionChargeModeEnum() CreateLoadBalancerBandwidthOptionChargeModeEnum

type CreateLoadBalancerBandwidthOptionShareType

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

func (CreateLoadBalancerBandwidthOptionShareType) MarshalJSON

func (*CreateLoadBalancerBandwidthOptionShareType) UnmarshalJSON

func (CreateLoadBalancerBandwidthOptionShareType) Value added in v0.0.90

type CreateLoadBalancerOption

type CreateLoadBalancerOption struct {

	// 负载均衡器ID(UUID)。不支持该字段,请勿使用。
	Id *string `json:"id,omitempty"`

	// 负载均衡器所在的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 负载均衡器的名称。
	Name *string `json:"name,omitempty"`

	// 负载均衡器的描述。
	Description *string `json:"description,omitempty"`

	// 负载均衡器的IPv4虚拟IP。该地址必须包含在所在子网的IPv4网段内,且未被占用。  使用说明: - 传入vip_address时必须传入vip_subnet_cidr_id。 - 不传入vip_address,但传入vip_subnet_cidr_id,则自动分配IPv4虚拟IP。 - 不传入vip_address,且不传vip_subnet_cidr_id,则不分配虚拟IP,vip_address=null。
	VipAddress *string `json:"vip_address,omitempty"`

	// 负载均衡器所在子网的IPv4子网ID。若需要创建带IPv4虚拟IP的LB,该字段必须传入。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。  使用说明: - vpc_id, vip_subnet_cidr_id, ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 若同时传入vpc_id和vip_subnet_cidr_id, 则vip_subnet_cidr_id对应的子网必须属于vpc_id对应的VPC。
	VipSubnetCidrId *string `json:"vip_subnet_cidr_id,omitempty"`

	// 双栈类型负载均衡器所在子网的IPv6网络ID。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的id得到。  使用说明: - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 需要对应的子网开启IPv6。  [不支持IPv6,请勿使用。](tag:dt,dt_test)
	Ipv6VipVirsubnetId *string `json:"ipv6_vip_virsubnet_id,omitempty"`

	// 负载均衡器的生产者名称。固定为vlb。
	Provider *string `json:"provider,omitempty"`

	// 四层Flavor ID。  [使用说明:当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor (默认flavor根据不同局点有所不同,具体以实际值为准)。 ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb)  [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt)  [所有LB实例共享带宽,该字段无效,请勿使用。](tag:fcs)
	L4FlavorId *string `json:"l4_flavor_id,omitempty"`

	// 七层Flavor ID。  [使用说明:当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor (默认flavor根据不同局点有所不同,具体以实际值为准)。 ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb)  [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt)  [所有LB实例共享带宽,该字段无效,请勿使用。](tag:fcs)
	L7FlavorId *string `json:"l7_flavor_id,omitempty"`

	// 是否独享型负载均衡器。  取值: - true:独享型。 - false:共享型。  当前只支持设置为true,设置为false会返回400 Bad Request 。默认:true。
	Guaranteed *bool `json:"guaranteed,omitempty"`

	// 负载均衡器所在的VPC ID。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/vpcs 响应参数中的id得到。  使用说明: - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。
	VpcId *string `json:"vpc_id,omitempty"`

	// 可用区列表。可通过GET  https://{ELB_Endponit}/v3/{project_id}/elb/availability-zones 接口来查询可用区集合列表。创建负载均衡器时,从查询结果选择某一个可用区集合,并从中选择一个或多个可用区。
	AvailabilityZoneList []string `json:"availability_zone_list"`

	// 负载均衡器所属的企业项目ID。不能传入\"\"、\"0\"或不存在的企业项目ID,创建时不传则资源属于default企业项目,默认返回\"0\"。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 负载均衡的标签列表。示例:\"tags\":[{\"key\":\"my_tag\",\"value\":\"my_tag_value\"}]
	Tags *[]Tag `json:"tags,omitempty"`

	// 负载均衡器的管理状态。只能设置为true。默认:true。  [不支持该字段,请勿使用。](tag:dt,dt_test)
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 资源账单信息。  取值: - 空:按需计费。 - 非空:包周期计费。  格式为: order_id:product_id:region_id:project_id,如:  CS2107161019CDJZZ:OFFI569702121789763584:az1: 057ef081eb00d2732fd1c01a9be75e6f  [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,fcs)
	BillingInfo *string `json:"billing_info,omitempty"`

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

	// 负载均衡器绑定的公网IP ID。只支持绑定数组中的第一个EIP,其他将被忽略。
	PublicipIds *[]string `json:"publicip_ids,omitempty"`

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

	// 下联面子网的网络ID列表。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。  若不指定该字段,则按如下规则选择下联面网络: 1. 如果ELB实例开启ipv6,则选择ipv6_vip_virsubnet_id子网对应的网络ID。 2. 如果ELB实例没有开启ipv6,开启ipv4,则选择vip_subnet_cidr_id子网对应的网络ID。 3. 如果ELB实例没有选择私网,只开启公网,则会在当前负载均衡器所在的VPC中任意选一个子网,优选可用IP多的网络。  若指定多个下联面子网,则按顺序优先使用第一个子网来为负载均衡器下联面端口分配ip地址。  下联面子网必须属于该LB所在的VPC。
	ElbVirsubnetIds *[]string `json:"elb_virsubnet_ids,omitempty"`

	// 是否启用跨VPC后端转发。  开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加 [其他VPC、](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) 其他公有云、云下数据中心的服务器。  [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  取值: - true:开启。 - false:不开启。  使用说明: - 开启不能关闭。  [荷兰region不支持该字段,请勿使用。](tag:dt)
	IpTargetEnable *bool `json:"ip_target_enable,omitempty"`

	// 是否开启删除保护。  取值:false不开启,true开启。默认false不开启。  > 退场时需要先关闭所有资源的删除保护开关。  [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	DeletionProtectionEnable *bool `json:"deletion_protection_enable,omitempty"`

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

	Autoscaling *CreateLoadbalancerAutoscalingOption `json:"autoscaling,omitempty"`

	// WAF故障时的流量处理策略。discard:丢弃,forward: 转发到后端(默认)  使用说明:只有绑定了waf的LB实例,该字段才会生效。  [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,fcs,ctc)
	WafFailureAction *CreateLoadBalancerOptionWafFailureAction `json:"waf_failure_action,omitempty"`
}

创建负载均衡器参数。

func (CreateLoadBalancerOption) String

func (o CreateLoadBalancerOption) String() string

type CreateLoadBalancerOptionWafFailureAction added in v0.0.106

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

func (CreateLoadBalancerOptionWafFailureAction) MarshalJSON added in v0.0.106

func (*CreateLoadBalancerOptionWafFailureAction) UnmarshalJSON added in v0.0.106

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

func (CreateLoadBalancerOptionWafFailureAction) Value added in v0.0.106

type CreateLoadBalancerOptionWafFailureActionEnum added in v0.0.106

type CreateLoadBalancerOptionWafFailureActionEnum struct {
	DISCARD CreateLoadBalancerOptionWafFailureAction
	FORWARD CreateLoadBalancerOptionWafFailureAction
}

func GetCreateLoadBalancerOptionWafFailureActionEnum added in v0.0.106

func GetCreateLoadBalancerOptionWafFailureActionEnum() CreateLoadBalancerOptionWafFailureActionEnum

type CreateLoadBalancerPublicIpOption

type CreateLoadBalancerPublicIpOption struct {

	// IP版本。  取值:4表示IPv4,6表示IPv6。  [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
	IpVersion *int32 `json:"ip_version,omitempty"`

	// 弹性公网IP的网络类型,默认5_bgp,更多请参考弹性公网ip创建。  [华南-深圳局点该参数取值只能为5_gray](tag:hws) [只支持设置为5_gray](tag:dt)
	NetworkType string `json:"network_type"`

	// 资源账单信息。  取值: - 空:按需计费。 - 非空:包周期计费。  [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt)
	BillingInfo *string `json:"billing_info,omitempty"`

	// 弹性公网IP的描述信息,不支持特殊字符
	Description *string `json:"description,omitempty"`

	Bandwidth *CreateLoadBalancerBandwidthOption `json:"bandwidth"`
}

创建ELB时,新建公网IP请求参数

func (CreateLoadBalancerPublicIpOption) String

type CreateLoadBalancerRequest

type CreateLoadBalancerRequest struct {
	Body *CreateLoadBalancerRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateLoadBalancerRequest) String

func (o CreateLoadBalancerRequest) String() string

type CreateLoadBalancerRequestBody

type CreateLoadBalancerRequestBody struct {
	Loadbalancer *CreateLoadBalancerOption `json:"loadbalancer"`
}

This is a auto create Body Object

func (CreateLoadBalancerRequestBody) String

type CreateLoadBalancerResponse

type CreateLoadBalancerResponse struct {
	Loadbalancer *LoadBalancer `json:"loadbalancer,omitempty"`

	// 负载均衡器的id(包周期场景返回该字段)
	LoadbalancerId *string `json:"loadbalancer_id,omitempty"`

	// 订单号(包周期场景返回该字段)
	OrderId *string `json:"order_id,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateLoadBalancerResponse) String

type CreateLoadbalancerAutoscalingOption added in v0.0.70

type CreateLoadbalancerAutoscalingOption struct {

	// 负载均衡器弹性扩缩容开关
	Enable bool `json:"enable"`

	// 弹性扩缩容的最小七层规格ID,类型为L7_Elastic,有七层监听器时,该字段不能为空。
	MinL7FlavorId *string `json:"min_l7_flavor_id,omitempty"`
}

弹性扩缩容配置信息。负载均衡器配置并开启弹性扩缩容后,可根据负载情况自动调整负载均衡器的规格。 使用说明: - 仅当租户白名单放开后该字段才有效 - 开启弹性扩缩容后,l4_flavor_id和l7_flavor_id表示该LB实例弹性规格的上限。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,fcs)

func (CreateLoadbalancerAutoscalingOption) String added in v0.0.70

type CreateLogtankOption added in v0.0.80

type CreateLogtankOption struct {

	// 负载均衡器id
	LoadbalancerId string `json:"loadbalancer_id"`

	// 日志组别id,其他(非ELB)服务提供
	LogGroupId string `json:"log_group_id"`

	// 日志订阅主题id,其他(非ELB)服务提供
	LogTopicId string `json:"log_topic_id"`
}

创建云日志请求参数。

func (CreateLogtankOption) String added in v0.0.80

func (o CreateLogtankOption) String() string

type CreateLogtankRequest added in v0.0.80

type CreateLogtankRequest struct {
	Body *CreateLogtankRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateLogtankRequest) String added in v0.0.80

func (o CreateLogtankRequest) String() string

type CreateLogtankRequestBody added in v0.0.80

type CreateLogtankRequestBody struct {
	Logtank *CreateLogtankOption `json:"logtank"`
}

创建云日志请求体

func (CreateLogtankRequestBody) String added in v0.0.80

func (o CreateLogtankRequestBody) String() string

type CreateLogtankResponse added in v0.0.80

type CreateLogtankResponse struct {
	Logtank *Logtank `json:"logtank,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateLogtankResponse) String added in v0.0.80

func (o CreateLogtankResponse) String() string

type CreateMemberOption

type CreateMemberOption struct {

	// 后端服务器对应的IP地址。  使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡IP。  [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
	Address string `json:"address"`

	// 后端云服务器的管理状态。  取值:true、false。  虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

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

	// 后端云服务器所在的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 后端服务器业务端口号。
	ProtocolPort int32 `json:"protocol_port"`

	// 后端云服务器所在的子网ID,可以是子网的IPv4子网ID或IPv6子网ID。  使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。  [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
	SubnetCidrId *string `json:"subnet_cidr_id,omitempty"`

	// 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。  取值:0-100,默认1。  使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。
	Weight *int32 `json:"weight,omitempty"`
}

创建后端服务器请求参数

func (CreateMemberOption) String

func (o CreateMemberOption) String() string

type CreateMemberRequest

type CreateMemberRequest struct {

	// 后端服务器组ID。
	PoolId string `json:"pool_id"`

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

Request Object

func (CreateMemberRequest) String

func (o CreateMemberRequest) String() string

type CreateMemberRequestBody

type CreateMemberRequestBody struct {
	Member *CreateMemberOption `json:"member"`
}

This is a auto create Body Object

func (CreateMemberRequestBody) String

func (o CreateMemberRequestBody) String() string

type CreateMemberResponse

type CreateMemberResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Member         *Member `json:"member,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateMemberResponse) String

func (o CreateMemberResponse) String() string

type CreatePoolOption

type CreatePoolOption struct {

	// 后端云服务器组的管理状态,只支持更新为true。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 后端云服务器组的描述信息。
	Description *string `json:"description,omitempty"`

	// 后端云服务器组的负载均衡算法。  取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。  使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。  [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt)  [荷兰region不支持QUIC。](tag:dt)
	LbAlgorithm string `json:"lb_algorithm"`

	// 后端云服务器组关联的监听器的ID。  使用说明: - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	ListenerId *string `json:"listener_id,omitempty"`

	// 后端云服务器组关联的负载均衡器ID。  使用说明: - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	LoadbalancerId *string `json:"loadbalancer_id,omitempty"`

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

	// 后端云服务器组所属的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 后端云服务器组的后端协议。  取值:TCP、UDP、HTTP、HTTPS和QUIC。  使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC; - listener的protocol为TCP时pool的protocol必须为TCP; - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP或HTTPS。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。  [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt)  [荷兰region不支持QUIC。](tag:dt)
	Protocol string `json:"protocol"`

	SessionPersistence *CreatePoolSessionPersistenceOption `json:"session_persistence,omitempty"`

	SlowStart *CreatePoolSlowStartOption `json:"slow_start,omitempty"`

	// 是否开启删除保护。  取值:false不开启,true开启,默认false。  > 退场时需要先关闭所有资源的删除保护开关。  [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	MemberDeletionProtectionEnable *bool `json:"member_deletion_protection_enable,omitempty"`

	// 后端云服务器组关联的虚拟私有云的ID。  使用说明: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。  没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。
	VpcId *string `json:"vpc_id,omitempty"`

	// 后端服务器组的类型。  取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。  使用说明: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	Type *string `json:"type,omitempty"`
}

创建主机组请求

func (CreatePoolOption) String

func (o CreatePoolOption) String() string

type CreatePoolRequest

type CreatePoolRequest struct {
	Body *CreatePoolRequestBody `json:"body,omitempty"`
}

Request Object

func (CreatePoolRequest) String

func (o CreatePoolRequest) String() string

type CreatePoolRequestBody

type CreatePoolRequestBody struct {
	Pool *CreatePoolOption `json:"pool"`
}

This is a auto create Body Object

func (CreatePoolRequestBody) String

func (o CreatePoolRequestBody) String() string

type CreatePoolResponse

type CreatePoolResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Pool           *Pool `json:"pool,omitempty"`
	HttpStatusCode int   `json:"-"`
}

Response Object

func (CreatePoolResponse) String

func (o CreatePoolResponse) String() string

type CreatePoolSessionPersistenceOption

type CreatePoolSessionPersistenceOption struct {

	// cookie名称。  格式:仅支持字母、数字、中划线(-)、下划线(_)和点号(.)。  使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。  [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
	CookieName *string `json:"cookie_name,omitempty"`

	// 会话保持类型。  取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。  [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool, 则type只能为HTTP_COOKIE,其他取值会话保持失效。如果是共享型负载均衡器的pool, 则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。 type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt)
	Type CreatePoolSessionPersistenceOptionType `json:"type"`

	// 会话保持的时间。当type为APP_COOKIE时不生效。  适用范围:如果pool的protocol为TCP、UDP则范围为[1,60](分钟),默认值1; 如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。
	PersistenceTimeout *int32 `json:"persistence_timeout,omitempty"`
}

会话持久性对象。

func (CreatePoolSessionPersistenceOption) String

type CreatePoolSessionPersistenceOptionType added in v0.0.70

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

func (CreatePoolSessionPersistenceOptionType) MarshalJSON added in v0.0.70

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

func (*CreatePoolSessionPersistenceOptionType) UnmarshalJSON added in v0.0.70

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

func (CreatePoolSessionPersistenceOptionType) Value added in v0.0.90

type CreatePoolSessionPersistenceOptionTypeEnum added in v0.0.70

type CreatePoolSessionPersistenceOptionTypeEnum struct {
	SOURCE_IP   CreatePoolSessionPersistenceOptionType
	HTTP_COOKIE CreatePoolSessionPersistenceOptionType
	APP_COOKIE  CreatePoolSessionPersistenceOptionType
}

func GetCreatePoolSessionPersistenceOptionTypeEnum added in v0.0.70

func GetCreatePoolSessionPersistenceOptionTypeEnum() CreatePoolSessionPersistenceOptionTypeEnum

type CreatePoolSlowStartOption

type CreatePoolSlowStartOption struct {

	// 慢启动的开关,默认值:false; true:开启; false:关闭
	Enable *bool `json:"enable,omitempty"`

	// 慢启动的持续时间,单位:s。默认:30; 取值范围:30~1200
	Duration *int32 `json:"duration,omitempty"`
}

慢启动信息。开启慢启动后,将会在设定的时间段(duration)内对新添加到后端服务器组的后端服务器进行预热,转发到该服务器的请求数量线性增加。 当后端服务器组的协议为HTTP/HTTPS时有效,其他协议传入该字段将报错。 [荷兰region不支持该字段,请勿使用。](tag:dt)

func (CreatePoolSlowStartOption) String

func (o CreatePoolSlowStartOption) String() string

type CreateRedirectPoolsConfig added in v0.0.97

type CreateRedirectPoolsConfig struct {

	// 后端主机组的ID。
	PoolId string `json:"pool_id"`

	// 后端主机组的权重。  取值:0-100。
	Weight int32 `json:"weight"`
}

转发的后端主机组的配置。

func (CreateRedirectPoolsConfig) String added in v0.0.97

func (o CreateRedirectPoolsConfig) String() string

type CreateRedirectUrlConfig added in v0.0.70

type CreateRedirectUrlConfig struct {

	// 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。  取值范围: - HTTP - HTTPS - ${protocol}
	Protocol *CreateRedirectUrlConfigProtocol `json:"protocol,omitempty"`

	// 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host}表示继承原值(即与被转发请求保持一致)。
	Host *string `json:"host,omitempty"`

	// 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。
	Port *string `json:"port,omitempty"`

	// 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。  只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。
	Path *string `json:"path,omitempty"`

	// 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下:  若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.xxx.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.xxx.com:8080/elb?type=loadbalancer&name=my_name。  只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。
	Query *string `json:"query,omitempty"`

	// 重定向后的返回码。  取值范围: - 301 - 302 - 303 - 307 - 308
	StatusCode CreateRedirectUrlConfigStatusCode `json:"status_code"`
}

转发到的url配置。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_URL时生效,且为必选字段,其他action不可指定,否则报错。 格式:protocol://host:port/path?query protocol、host、port、path不允许同时不传或同时传${xxx} (${xxx}表示原值,如${host}表示被转发的请求URL的host部分)。 protocol和port传入的值不能与l7policy关联的监听器一致且host、path同时不传或同时传${xxx}。 [共享型负载均衡器下的转发策略不支持该字段,传入会报错。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)

func (CreateRedirectUrlConfig) String added in v0.0.70

func (o CreateRedirectUrlConfig) String() string

type CreateRedirectUrlConfigProtocol added in v0.0.70

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

func (CreateRedirectUrlConfigProtocol) MarshalJSON added in v0.0.70

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

func (*CreateRedirectUrlConfigProtocol) UnmarshalJSON added in v0.0.70

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

func (CreateRedirectUrlConfigProtocol) Value added in v0.0.90

type CreateRedirectUrlConfigProtocolEnum added in v0.0.70

type CreateRedirectUrlConfigProtocolEnum struct {
	HTTP  CreateRedirectUrlConfigProtocol
	HTTPS CreateRedirectUrlConfigProtocol
	// contains filtered or unexported fields
}

func GetCreateRedirectUrlConfigProtocolEnum added in v0.0.70

func GetCreateRedirectUrlConfigProtocolEnum() CreateRedirectUrlConfigProtocolEnum

type CreateRedirectUrlConfigStatusCode added in v0.0.70

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

func (CreateRedirectUrlConfigStatusCode) MarshalJSON added in v0.0.70

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

func (*CreateRedirectUrlConfigStatusCode) UnmarshalJSON added in v0.0.70

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

func (CreateRedirectUrlConfigStatusCode) Value added in v0.0.90

type CreateRuleCondition added in v0.0.70

type CreateRuleCondition struct {

	// 匹配项的名称。  当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。  当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。  当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号, 反斜杠,双引号,'#','&','|',‘%’,‘~’,字母区分大小写。   同一个rule内的conditions列表中所有key必须相同。
	Key *string `json:"key,omitempty"`

	// 匹配项的值。  当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、“-”、“.”或“*”, 必须以字母、数字或“*”开头,“*”只能出现在开头且必须以*.开始。  当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。  当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。  当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)  当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。  当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。   同一个rule内的conditions列表中所有value不允许重复。
	Value string `json:"value"`
}

func (CreateRuleCondition) String added in v0.0.70

func (o CreateRuleCondition) String() string

type CreateRuleOption

type CreateRuleOption struct {

	// 转发规则的管理状态,默认为true。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 转发匹配方式。  取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。  使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。
	CompareType string `json:"compare_type"`

	// 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。  不支持该字段,请勿使用。
	Key *string `json:"key,omitempty"`

	// 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。  当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头。 若域名中包含“*”,则“*”只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。  当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。  当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。
	Value string `json:"value"`

	// 转发规则所在的项目ID。
	ProjectId *string `json:"project_id,omitempty"`

	// 转发规则类别。  取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。  使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。  [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
	Type string `json:"type"`

	// 是否反向匹配。  取值:true、false,默认false。  不支持该字段,请勿使用。
	Invert *bool `json:"invert,omitempty"`

	// 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。  [不支持该字段,请勿使用。](tag:hcso_dt)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	Conditions *[]CreateRuleCondition `json:"conditions,omitempty"`
}

创建L7转发规则器请求

func (CreateRuleOption) String

func (o CreateRuleOption) String() string

type CreateSecurityPolicyOption added in v0.0.70

type CreateSecurityPolicyOption struct {

	// 自定义安全策略的名称。默认空字符串\"\"。
	Name *string `json:"name,omitempty"`

	// 自定义安全策略的描述信息。默认空字符串\"\"。
	Description *string `json:"description,omitempty"`

	// 所属企业项目ID。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 自定义安全策略选择的TLS协议列表。取值:TLSv1, TLSv1.1, TLSv1.2, TLSv1.3
	Protocols []string `json:"protocols"`

	// 自定义安全策略的加密套件列表。支持以下加密套件:  ECDHE-RSA-AES256-GCM-SHA384,ECDHE-RSA-AES128-GCM-SHA256, ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-ECDSA-AES128-GCM-SHA256, AES128-GCM-SHA256,AES256-GCM-SHA384,ECDHE-ECDSA-AES128-SHA256, ECDHE-RSA-AES128-SHA256,AES128-SHA256,AES256-SHA256, ECDHE-ECDSA-AES256-SHA384,ECDHE-RSA-AES256-SHA384, ECDHE-ECDSA-AES128-SHA,ECDHE-RSA-AES128-SHA,ECDHE-RSA-AES256-SHA, ECDHE-ECDSA-AES256-SHA,AES128-SHA,AES256-SHA,CAMELLIA128-SHA, DES-CBC3-SHA,CAMELLIA256-SHA,ECDHE-RSA-CHACHA20-POLY1305, ECDHE-ECDSA-CHACHA20-POLY1305,TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384,TLS_CHACHA20_POLY1305_SHA256, TLS_AES_128_CCM_SHA256,TLS_AES_128_CCM_8_SHA256  使用说明: - 协议和加密套件必须匹配,即ciphers中必须至少有一种有与协议匹配的加密套件。  > 协议与加密套件的匹配关系可参考系统安全策略
	Ciphers []CreateSecurityPolicyOptionCiphers `json:"ciphers"`
}

自定义安全策略创建参数。

func (CreateSecurityPolicyOption) String added in v0.0.70

type CreateSecurityPolicyOptionCiphers added in v0.0.70

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

func (CreateSecurityPolicyOptionCiphers) MarshalJSON added in v0.0.70

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

func (*CreateSecurityPolicyOptionCiphers) UnmarshalJSON added in v0.0.70

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

func (CreateSecurityPolicyOptionCiphers) Value added in v0.0.90

type CreateSecurityPolicyOptionCiphersEnum added in v0.0.70

type CreateSecurityPolicyOptionCiphersEnum struct {
	ECDHE_RSA_AES256_GCM_SHA384   CreateSecurityPolicyOptionCiphers
	ECDHE_RSA_AES128_GCM_SHA256   CreateSecurityPolicyOptionCiphers
	ECDHE_ECDSA_AES256_GCM_SHA384 CreateSecurityPolicyOptionCiphers
	ECDHE_ECDSA_AES128_GCM_SHA256 CreateSecurityPolicyOptionCiphers
	AES128_GCM_SHA256             CreateSecurityPolicyOptionCiphers
	AES256_GCM_SHA384             CreateSecurityPolicyOptionCiphers
	ECDHE_ECDSA_AES128_SHA256     CreateSecurityPolicyOptionCiphers
	ECDHE_RSA_AES128_SHA256       CreateSecurityPolicyOptionCiphers
	AES128_SHA256                 CreateSecurityPolicyOptionCiphers
	AES256_SHA256                 CreateSecurityPolicyOptionCiphers
	ECDHE_ECDSA_AES256_SHA384     CreateSecurityPolicyOptionCiphers
	ECDHE_RSA_AES256_SHA384       CreateSecurityPolicyOptionCiphers
	ECDHE_ECDSA_AES128_SHA        CreateSecurityPolicyOptionCiphers
	ECDHE_RSA_AES128_SHA          CreateSecurityPolicyOptionCiphers
	ECDHE_RSA_AES256_SHA          CreateSecurityPolicyOptionCiphers
	ECDHE_ECDSA_AES256_SHA        CreateSecurityPolicyOptionCiphers
	AES128_SHA                    CreateSecurityPolicyOptionCiphers
	AES256_SHA                    CreateSecurityPolicyOptionCiphers
	CAMELLIA128_SHA               CreateSecurityPolicyOptionCiphers
	DES_CBC3_SHA                  CreateSecurityPolicyOptionCiphers
	CAMELLIA256_SHA               CreateSecurityPolicyOptionCiphers
	ECDHE_RSA_CHACHA20_POLY1305   CreateSecurityPolicyOptionCiphers
	ECDHE_ECDSA_CHACHA20_POLY1305 CreateSecurityPolicyOptionCiphers
	TLS_AES_128_GCM_SHA256        CreateSecurityPolicyOptionCiphers
	TLS_AES_256_GCM_SHA384        CreateSecurityPolicyOptionCiphers
	TLS_CHACHA20_POLY1305_SHA256  CreateSecurityPolicyOptionCiphers
	TLS_AES_128_CCM_SHA256        CreateSecurityPolicyOptionCiphers
	TLS_AES_128_CCM_8_SHA256      CreateSecurityPolicyOptionCiphers
}

func GetCreateSecurityPolicyOptionCiphersEnum added in v0.0.70

func GetCreateSecurityPolicyOptionCiphersEnum() CreateSecurityPolicyOptionCiphersEnum

type CreateSecurityPolicyRequest added in v0.0.70

type CreateSecurityPolicyRequest struct {
	Body *CreateSecurityPolicyRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateSecurityPolicyRequest) String added in v0.0.70

type CreateSecurityPolicyRequestBody added in v0.0.70

type CreateSecurityPolicyRequestBody struct {
	SecurityPolicy *CreateSecurityPolicyOption `json:"security_policy"`
}

This is a auto create Body Object

func (CreateSecurityPolicyRequestBody) String added in v0.0.70

type CreateSecurityPolicyResponse added in v0.0.70

type CreateSecurityPolicyResponse struct {
	SecurityPolicy *SecurityPolicy `json:"security_policy,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateSecurityPolicyResponse) String added in v0.0.70

type DeleteCertificateRequest

type DeleteCertificateRequest struct {

	// 证书ID。
	CertificateId string `json:"certificate_id"`
}

Request Object

func (DeleteCertificateRequest) String

func (o DeleteCertificateRequest) String() string

type DeleteCertificateResponse

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

Response Object

func (DeleteCertificateResponse) String

func (o DeleteCertificateResponse) String() string

type DeleteHealthMonitorRequest

type DeleteHealthMonitorRequest struct {

	// 健康检查ID。
	HealthmonitorId string `json:"healthmonitor_id"`
}

Request Object

func (DeleteHealthMonitorRequest) String

type DeleteHealthMonitorResponse

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

Response Object

func (DeleteHealthMonitorResponse) String

type DeleteIpGroupRequest

type DeleteIpGroupRequest struct {

	// IP地址组的ID。
	IpgroupId string `json:"ipgroup_id"`
}

Request Object

func (DeleteIpGroupRequest) String

func (o DeleteIpGroupRequest) String() string

type DeleteIpGroupResponse

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

Response Object

func (DeleteIpGroupResponse) String

func (o DeleteIpGroupResponse) String() string

type DeleteL7PolicyRequest

type DeleteL7PolicyRequest struct {

	// 转发策略ID。
	L7policyId string `json:"l7policy_id"`
}

Request Object

func (DeleteL7PolicyRequest) String

func (o DeleteL7PolicyRequest) String() string

type DeleteL7PolicyResponse

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

Response Object

func (DeleteL7PolicyResponse) String

func (o DeleteL7PolicyResponse) String() string

type DeleteL7RuleRequest

type DeleteL7RuleRequest struct {

	// 策略ID。
	L7policyId string `json:"l7policy_id"`

	// 规则ID。
	L7ruleId string `json:"l7rule_id"`
}

Request Object

func (DeleteL7RuleRequest) String

func (o DeleteL7RuleRequest) String() string

type DeleteL7RuleResponse

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

Response Object

func (DeleteL7RuleResponse) String

func (o DeleteL7RuleResponse) String() string

type DeleteListenerRequest

type DeleteListenerRequest struct {

	// 监听器ID。
	ListenerId string `json:"listener_id"`
}

Request Object

func (DeleteListenerRequest) String

func (o DeleteListenerRequest) String() string

type DeleteListenerResponse

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

Response Object

func (DeleteListenerResponse) String

func (o DeleteListenerResponse) String() string

type DeleteLoadBalancerRequest

type DeleteLoadBalancerRequest struct {

	// 负载均衡器ID。
	LoadbalancerId string `json:"loadbalancer_id"`
}

Request Object

func (DeleteLoadBalancerRequest) String

func (o DeleteLoadBalancerRequest) String() string

type DeleteLoadBalancerResponse

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

Response Object

func (DeleteLoadBalancerResponse) String

type DeleteLogtankRequest added in v0.0.80

type DeleteLogtankRequest struct {

	// 云日志ID。
	LogtankId string `json:"logtank_id"`
}

Request Object

func (DeleteLogtankRequest) String added in v0.0.80

func (o DeleteLogtankRequest) String() string

type DeleteLogtankResponse added in v0.0.80

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

Response Object

func (DeleteLogtankResponse) String added in v0.0.80

func (o DeleteLogtankResponse) String() string

type DeleteMemberRequest

type DeleteMemberRequest struct {

	// 后端服务器组ID。
	PoolId string `json:"pool_id"`

	// 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
	MemberId string `json:"member_id"`
}

Request Object

func (DeleteMemberRequest) String

func (o DeleteMemberRequest) String() string

type DeleteMemberResponse

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

Response Object

func (DeleteMemberResponse) String

func (o DeleteMemberResponse) String() string

type DeletePoolRequest

type DeletePoolRequest struct {

	// 后端服务器组ID。
	PoolId string `json:"pool_id"`
}

Request Object

func (DeletePoolRequest) String

func (o DeletePoolRequest) String() string

type DeletePoolResponse

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

Response Object

func (DeletePoolResponse) String

func (o DeletePoolResponse) String() string

type DeleteSecurityPolicyRequest added in v0.0.70

type DeleteSecurityPolicyRequest struct {

	// 自定义安全策略的ID。
	SecurityPolicyId string `json:"security_policy_id"`
}

Request Object

func (DeleteSecurityPolicyRequest) String added in v0.0.70

type DeleteSecurityPolicyResponse added in v0.0.70

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

Response Object

func (DeleteSecurityPolicyResponse) String added in v0.0.70

type EipInfo

type EipInfo struct {

	// eip_id
	EipId *string `json:"eip_id,omitempty"`

	// eip_address
	EipAddress *string `json:"eip_address,omitempty"`

	// IP版本号。  取值:4表示IPv4,6表示IPv6。  [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
	IpVersion *int32 `json:"ip_version,omitempty"`
}

弹性ip,同publicips

func (EipInfo) String

func (o EipInfo) String() string

type FixtedResponseConfig added in v0.0.70

type FixtedResponseConfig struct {

	// 返回码。支持200~299,400~499,500~599。
	StatusCode string `json:"status_code"`

	// 返回body的格式。  取值范围: - text/plain - text/css - text/html - application/javascript - application/json
	ContentType FixtedResponseConfigContentType `json:"content_type"`

	// 返回消息内容。
	MessageBody string `json:"message_body"`
}

固定返回页面的配置。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为FIXED_RESPONSE时生效,且为必选字段,其他action不可指定,否则报错。 [共享型负载均衡器下的转发策略不支持该字段,传入会报错。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)

func (FixtedResponseConfig) String added in v0.0.70

func (o FixtedResponseConfig) String() string

type FixtedResponseConfigContentType added in v0.0.70

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

func (FixtedResponseConfigContentType) MarshalJSON added in v0.0.70

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

func (*FixtedResponseConfigContentType) UnmarshalJSON added in v0.0.70

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

func (FixtedResponseConfigContentType) Value added in v0.0.90

type FixtedResponseConfigContentTypeEnum added in v0.0.70

type FixtedResponseConfigContentTypeEnum struct {
	TEXT_PLAIN             FixtedResponseConfigContentType
	TEXT_CSS               FixtedResponseConfigContentType
	TEXT_HTML              FixtedResponseConfigContentType
	APPLICATION_JAVASCRIPT FixtedResponseConfigContentType
	APPLICATION_JSON       FixtedResponseConfigContentType
}

func GetFixtedResponseConfigContentTypeEnum added in v0.0.70

func GetFixtedResponseConfigContentTypeEnum() FixtedResponseConfigContentTypeEnum

type Flavor

type Flavor struct {

	// 规格ID。
	Id string `json:"id"`

	Info *FlavorInfo `json:"info"`

	// 规格名称。
	Name string `json:"name"`

	// 是否公共规格。  取值: - true表示公共规格,所有租户可见。 - false表示私有规格,为当前租户所有。
	Shared bool `json:"shared"`

	// 项目ID。
	ProjectId string `json:"project_id"`

	// 规格类别。  取值: - L4和L7 表示四层和七层flavor。 [- L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max和L7_elastic_max 表示弹性扩缩容实例的上限规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,hcso_dt)
	Type string `json:"type"`

	// 是否售罄。  取值: - true:已售罄,将无法购买该规格的LB。 - false:未售罄,可购买该规格的LB。
	FlavorSoldOut bool `json:"flavor_sold_out"`
}

负载均衡器规格信息。

func (Flavor) String

func (o Flavor) String() string

type FlavorInfo

type FlavorInfo struct {

	// 并发数。单位:个
	Connection int32 `json:"connection"`

	// 新建数。单位:个
	Cps int32 `json:"cps"`

	// 每秒查询数。单位:个。仅7层LB有该指标。
	Qps *int32 `json:"qps,omitempty"`

	// 带宽。单位:Mbit/s。
	Bandwidth *int32 `json:"bandwidth,omitempty"`

	// 当前flavor对应的lcu数量。 LCU是用来衡量独享型ELB处理性能综合指标,LCU值越大,性能越好。单位:个
	Lcu *int32 `json:"lcu,omitempty"`

	// https新建连接数。单位:个。仅7层LB有该指标。
	HttpsCps *int32 `json:"https_cps,omitempty"`
}

规格内容信息。

func (FlavorInfo) String

func (o FlavorInfo) String() string

type GlobalEipInfo added in v0.0.97

type GlobalEipInfo struct {

	// global eip的id
	GlobalEipId *string `json:"global_eip_id,omitempty"`

	// global eip的ip地址
	GlobalEipAddress *string `json:"global_eip_address,omitempty"`

	// IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6 [不支持IPv6,请勿设置为6。]
	IpVersion *int32 `json:"ip_version,omitempty"`
}

func (GlobalEipInfo) String added in v0.0.97

func (o GlobalEipInfo) String() string

type HealthMonitor

type HealthMonitor struct {

	// 健康检查的管理状态。  取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
	AdminStateUp bool `json:"admin_state_up"`

	// 健康检查间隔。取值:1-50s。
	Delay int32 `json:"delay"`

	// 发送健康检查请求的域名。  取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。  使用说明:当type为HTTP/HTTPS时生效。
	DomainName string `json:"domain_name"`

	// 期望响应状态码。  取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。   默认值:200。  仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。
	ExpectedCodes string `json:"expected_codes"`

	// HTTP请求方法。  取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH,默认GET。  使用说明:当type为HTTP/HTTPS时生效。  不支持该字段,请勿使用。
	HttpMethod string `json:"http_method"`

	// 健康检查ID
	Id string `json:"id"`

	// 健康检查连续成功多少次后,将后端服务器的健康检查状态由OFFLINE判定为ONLINE。取值范围:1-10。
	MaxRetries int32 `json:"max_retries"`

	// 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10,默认3。
	MaxRetriesDown int32 `json:"max_retries_down"`

	// 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。
	MonitorPort int32 `json:"monitor_port"`

	// 健康检查名称。
	Name string `json:"name"`

	// 健康检查所在的后端云服务器组ID列表。实际只会有一个后端云服务器组ID。
	Pools []PoolRef `json:"pools"`

	// 健康检查所在的项目ID。
	ProjectId string `json:"project_id"`

	// 一次健康检查请求的超时时间。  建议该值小于delay的值。
	Timeout int32 `json:"timeout"`

	// 健康检查请求协议。  取值:TCP、UDP_CONNECT、HTTP、HTTPS。  使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。  [荷兰region不支持QUIC。](tag:dt)
	Type string `json:"type"`

	// 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。  使用说明:当type为HTTP/HTTPS时生效。
	UrlPath string `json:"url_path"`

	// 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。  [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。  [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	UpdatedAt *string `json:"updated_at,omitempty"`
}

健康检查对象

func (HealthMonitor) String

func (o HealthMonitor) String() string

type IpGroup

type IpGroup struct {

	// IP地址组的创建时间。
	CreatedAt string `json:"created_at"`

	// IP地址组的更新时间。
	Description string `json:"description"`

	// IP地址组的ID。
	Id string `json:"id"`

	// IP地址组中包含的IP或网段列表。[]表示任意IP。
	IpList []IpInfo `json:"ip_list"`

	// 与IP地址组关联的监听器的ID列表。
	Listeners []ListenerRef `json:"listeners"`

	// IP地址组的名称。
	Name string `json:"name"`

	// IP地址组的项目ID。
	ProjectId string `json:"project_id"`

	// IP地址组的更新时间。
	UpdatedAt string `json:"updated_at"`
}

IP地址组信息。

func (IpGroup) String

func (o IpGroup) String() string

type IpGroupIp added in v0.0.70

type IpGroupIp struct {

	// IP地址,可以是具体的IP地址或者IP地址段。
	Ip string `json:"ip"`
}

IP地址组的IP地址对象。

func (IpGroupIp) String added in v0.0.70

func (o IpGroupIp) String() string

type IpInfo

type IpInfo struct {

	// IP地址组中的IP地址。  [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
	Ip string `json:"ip"`

	// IP地址组中ip的备注信息
	Description string `json:"description"`
}

ip地址组中的包含的ip 信息对象

func (IpInfo) String

func (o IpInfo) String() string

type L7Policy

type L7Policy struct {

	// 转发策略的转发动作。  取值: - REDIRECT_TO_POOL:转发到后端云服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; - REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。  使用说明: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。  [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt)
	Action string `json:"action"`

	// 转发策略的管理状态,默认为true。  不支持该字段,请勿使用。
	AdminStateUp bool `json:"admin_state_up"`

	// 转发策略描述信息。
	Description string `json:"description"`

	// 转发策略ID。
	Id string `json:"id"`

	// 转发策略所属的监听器ID。
	ListenerId string `json:"listener_id"`

	// 转发策略名称
	Name string `json:"name"`

	// 转发策略的优先级,不支持更新。  不支持该字段,请勿使用。
	Position int32 `json:"position"`

	// 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。  当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。  当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则, 匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。  当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为: 同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。  [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)  [不支持该字段,请勿使用。](tag:hcso_dt)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	Priority *int32 `json:"priority,omitempty"`

	// 转发策略所在的项目ID。
	ProjectId string `json:"project_id"`

	// 转发策略的配置状态。  取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs)
	ProvisioningStatus string `json:"provisioning_status"`

	// 转发到pool的ID。当action为REDIRECT_TO_POOL时生效。 若同时指定redirect_pools_config和redirect_pool_id,按redirect_pools_config生效。
	RedirectPoolId string `json:"redirect_pool_id"`

	// 转发到后端主机组的配置。当action为REDIRECT_TO_POOL时生效。
	RedirectPoolsConfig []CreateRedirectPoolsConfig `json:"redirect_pools_config"`

	// 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。  使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。
	RedirectListenerId string `json:"redirect_listener_id"`

	// 转发到的url。必须满足格式: protocol://host:port/path?query。  不支持该字段,请勿使用。
	RedirectUrl string `json:"redirect_url"`

	// 转发策略关联的转发规则列表
	Rules []RuleRef `json:"rules"`

	RedirectUrlConfig *RedirectUrlConfig `json:"redirect_url_config"`

	FixedResponseConfig *FixtedResponseConfig `json:"fixed_response_config"`

	// 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。  [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。  [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	UpdatedAt *string `json:"updated_at,omitempty"`
}

policy对象。

func (L7Policy) String

func (o L7Policy) String() string

type L7Rule

type L7Rule struct {

	// 转发规则的管理状,默认为true。  不支持该字段,请勿使用。
	AdminStateUp bool `json:"admin_state_up"`

	// 转发规则的匹配方式。type为HOST_NAME时可以为EQUAL_TO。type为PATH时可以为REGEX, STARTS_WITH,EQUAL_TO。
	CompareType string `json:"compare_type"`

	// 匹配内容的键值。[type为HOST_NAME和PATH时,该字段不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  [不支持该字段,请勿使用。](tag:hcso_dt)
	Key string `json:"key"`

	// 转发规则所在的项目ID。
	ProjectId string `json:"project_id"`

	// 转发规则类别。  取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。  使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。  [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
	Type L7RuleType `json:"type"`

	// 匹配内容的值。仅当conditions空时该字段生效。  当type为HOST_NAME时,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头。  若域名中包含“*”,则“*”只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。  当type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。  当type为METHOD、SOURCE_IP、HEADER,  QUERY_STRING时,该字段无意义,使用condition_pair来指定key,value。
	Value string `json:"value"`

	// provisioning状态,可以为ACTIVE、PENDING_CREATE 或者ERROR。 说明:该字段无实际含义,默认为ACTIVE。
	ProvisioningStatus string `json:"provisioning_status"`

	// 是否反向匹配。 使用说明:固定为false。该字段能更新但不会生效。
	Invert bool `json:"invert"`

	// 规则ID。
	Id string `json:"id"`

	// 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。  [不支持该字段,请勿使用。](tag:hcso_dt)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	Conditions []RuleCondition `json:"conditions"`

	// 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。  [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。  [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	UpdatedAt *string `json:"updated_at,omitempty"`
}

L7转发规则

func (L7Rule) String

func (o L7Rule) String() string

type L7RuleType added in v0.0.70

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

func (L7RuleType) MarshalJSON added in v0.0.70

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

func (*L7RuleType) UnmarshalJSON added in v0.0.70

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

func (L7RuleType) Value added in v0.0.90

func (c L7RuleType) Value() string

type L7RuleTypeEnum added in v0.0.70

type L7RuleTypeEnum struct {
	HOST_NAME    L7RuleType
	PATH         L7RuleType
	METHOD       L7RuleType
	HEADER       L7RuleType
	QUERY_STRING L7RuleType
	SOURCE_IP    L7RuleType
}

func GetL7RuleTypeEnum added in v0.0.70

func GetL7RuleTypeEnum() L7RuleTypeEnum

type ListAllMembersRequest

type ListAllMembersRequest struct {

	// 上一页最后一条记录的ID。  使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的个数。
	Limit *int32 `json:"limit,omitempty"`

	// 是否反向查询。  取值: - true:查询上一页。 - false:查询下一页,默认。  使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// 后端云服务器名称。  支持多值查询,查询条件格式:*name=xxx&name=xxx*。
	Name *[]string `json:"name,omitempty"`

	// 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。 权重为0的后端不再接受新的请求。 当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。  支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。
	Weight *[]int32 `json:"weight,omitempty"`

	// 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。 若存在,该值为true,否则,该值为false。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 后端云服务器所在的子网ID。该子网和后端云服务器关联的负载均衡器的子网必须在同一VPC下。只支持指定IPv4的子网ID。  支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。
	SubnetCidrId *[]string `json:"subnet_cidr_id,omitempty"`

	// 后端云服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。 例如:192.168.3.11。只能指定为主网卡的IP。  支持多值查询,查询条件格式:*address=xxx&address=xxx*。
	Address *[]string `json:"address,omitempty"`

	// 后端服务器端口号。  支持多值查询,查询条件格式:*protocol_port=xxx&protocol_port=xxx*。
	ProtocolPort *[]int32 `json:"protocol_port,omitempty"`

	// 后端云服务器ID。  支持多值查询,查询条件格式:*id=xxx&id=xxx*。
	Id *[]string `json:"id,omitempty"`

	// 后端云服务器的健康状态。  取值: - ONLINE,后端服务器正常运行。 - NO_MONITOR,后端服务器无健康检查。 - OFFLINE,已下线。  支持多值查询,查询条件格式:*operating_status=xxx&operating_status=*。
	OperatingStatus *[]string `json:"operating_status,omitempty"`

	// 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。  支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`

	// IP版本,取值v4、v6。  支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。
	IpVersion *[]string `json:"ip_version,omitempty"`

	// member所属的服务器组ID  支持多值查询,查询条件格式:*pool_id=xxx&pool_id=xxx*。
	PoolId *[]string `json:"pool_id,omitempty"`

	// member所属的负载均衡器ID。  支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。
	LoadbalancerId *[]string `json:"loadbalancer_id,omitempty"`
}

Request Object

func (ListAllMembersRequest) String

func (o ListAllMembersRequest) String() string

type ListAllMembersResponse

type ListAllMembersResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 后端服务器对象列表。
	Members        *[]Member `json:"members,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListAllMembersResponse) String

func (o ListAllMembersResponse) String() string

type ListApiVersionsRequest added in v0.0.70

type ListApiVersionsRequest struct {
}

Request Object

func (ListApiVersionsRequest) String added in v0.0.70

func (o ListApiVersionsRequest) String() string

type ListApiVersionsResponse added in v0.0.70

type ListApiVersionsResponse struct {

	// 可用API版本列表。
	Versions       *[]ApiVersionInfo `json:"versions,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (ListApiVersionsResponse) String added in v0.0.70

func (o ListApiVersionsResponse) String() string

type ListAvailabilityZonesRequest

type ListAvailabilityZonesRequest struct {

	// AZ组。
	PublicBorderGroup *string `json:"public_border_group,omitempty"`
}

Request Object

func (ListAvailabilityZonesRequest) String

type ListAvailabilityZonesResponse

type ListAvailabilityZonesResponse struct {

	// 请求ID。  注:自动生成。
	RequestId *string `json:"request_id,omitempty"`

	// 返回创建LB时可使用的可用区集合列表。如:[[az1,az2],[az2,az3]] , 则在创建LB时,只能从其中的一个子列表中选择一个或多个可用区,不能跨列表选择。在上述例子中,不能选择az1和az3。
	AvailabilityZones *[][]AvailabilityZone `json:"availability_zones,omitempty"`
	HttpStatusCode    int                   `json:"-"`
}

Response Object

func (ListAvailabilityZonesResponse) String

type ListCertificatesRequest

type ListCertificatesRequest struct {

	// 上一页最后一条记录的ID。  使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的个数。
	Limit *int32 `json:"limit,omitempty"`

	// 是否反向查询。  取值: - true:查询上一页。 - false:查询下一页,默认。  使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// 证书ID。  支持多值查询,查询条件格式:*id=xxx&id=xxx*。
	Id *[]string `json:"id,omitempty"`

	// 证书的名称。  支持多值查询,查询条件格式:*name=xxx&name=xxx*。
	Name *[]string `json:"name,omitempty"`

	// 证书的描述。  支持多值查询,查询条件格式:*description=xxx&description=xxx*。
	Description *[]string `json:"description,omitempty"`

	// 证书的管理状态。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 服务器证书所签域名。该字段仅type为server时有效。  支持多值查询,查询条件格式:domain=xxx&domain=xxx。
	Domain *[]string `json:"domain,omitempty"`

	// 证书的类型。分为服务器证书(server)和CA证书(client)。  支持多值查询,查询条件格式:type=xxx&type=xxx。
	Type *[]string `json:"type,omitempty"`
}

Request Object

func (ListCertificatesRequest) String

func (o ListCertificatesRequest) String() string

type ListCertificatesResponse

type ListCertificatesResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 证书对象列表。
	Certificates   *[]CertificateInfo `json:"certificates,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ListCertificatesResponse) String

func (o ListCertificatesResponse) String() string

type ListFlavorsRequest

type ListFlavorsRequest struct {

	// 上一页最后一条记录的ID。  使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的个数。
	Limit *int32 `json:"limit,omitempty"`

	// 是否反向查询。  取值: - true:查询上一页。 - false:查询下一页,默认。  使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// 规格ID。  支持多值查询,查询条件格式:*id=xxx&id=xxx*。
	Id *[]string `json:"id,omitempty"`

	// 规格名称。   支持多值查询,查询条件格式:*name=xxx&name=xxx*。
	Name *[]string `json:"name,omitempty"`

	// 规格类别。  取值: - L4和L7 表示四层和七层flavor。 [- L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max和L7_elastic_max 表示弹性扩缩容实例的上限规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,hcso_dt)  支持多值查询,查询条件格式:*type=xxx&type=xxx*。
	Type *[]string `json:"type,omitempty"`

	// 是否查询公共规格。true表示公共规格,所有租户可见。false表示私有规格,为当前租户所有。
	Shared *bool `json:"shared,omitempty"`
}

Request Object

func (ListFlavorsRequest) String

func (o ListFlavorsRequest) String() string

type ListFlavorsResponse

type ListFlavorsResponse struct {

	// 规格列表。
	Flavors *[]Flavor `json:"flavors,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListFlavorsResponse) String

func (o ListFlavorsResponse) String() string

type ListHealthMonitorsRequest

type ListHealthMonitorsRequest struct {

	// 上一页最后一条记录的ID。  使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的个数。
	Limit *int32 `json:"limit,omitempty"`

	// 是否反向查询。  取值: - true:查询上一页。 - false:查询下一页,默认。  使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// 健康检查ID。  支持多值查询,查询条件格式:*id=xxx&id=xxx****。
	Id *[]string `json:"id,omitempty"`

	// 健康检查端口号。  支持多值查询,查询条件格式:***monitor_port=xxx&monitor_port=xxx***。
	MonitorPort *[]int32 `json:"monitor_port,omitempty"`

	// 发送健康检查请求的域名。  取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。  支持多值查询,查询条件格式:**domain_name=xxx&domain_name=xxx**。
	DomainName *[]string `json:"domain_name,omitempty"`

	// 健康检查名称。  支持多值查询,查询条件格式:*name=xxx&name=xxx*。
	Name *[]string `json:"name,omitempty"`

	// 健康检查间隔。  取值:1-50s。  支持多值查询,查询条件格式:*delay=xxx&delay=xxx*。
	Delay *[]int32 `json:"delay,omitempty"`

	// 健康检查连续成功多少次后,将后端服务器的健康检查状态由OFFLINE判定为ONLINE。取值范围:1-10。  支持多值查询,查询条件格式:*******max_retries=xxx&max_retries=xxx*******。
	MaxRetries *[]int32 `json:"max_retries,omitempty"`

	// 健康检查的管理状态。  取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10。  支持多值查询,查询条件格式:******max_retries_down=xxx&max_retries_down=xxx******。
	MaxRetriesDown *[]int32 `json:"max_retries_down,omitempty"`

	// 一次健康检查请求的超时时间。
	Timeout *int32 `json:"timeout,omitempty"`

	// 健康检查请求协议。  取值:TCP、UDP_CONNECT、HTTP、HTTPS。  支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。
	Type *[]string `json:"type,omitempty"`

	// 期望响应状态码。  取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。   默认值:200。  仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。  支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。
	ExpectedCodes *[]string `json:"expected_codes,omitempty"`

	// 健康检查测试member健康时发送的http请求路径。默认为“/”。  使用说明:以“/”开头。当type为HTTP/HTTPS时生效。  支持多值查询,查询条件格式:***url_path=xxx&url_path=xxx***。
	UrlPath *[]string `json:"url_path,omitempty"`

	// HTTP请求方法。  取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH。  支持多值查询,查询条件格式:**http_method=xxx&http_method=xxx**。  不支持该字段,请勿使用。
	HttpMethod *[]string `json:"http_method,omitempty"`

	// 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。  支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ListHealthMonitorsRequest) String

func (o ListHealthMonitorsRequest) String() string

type ListHealthMonitorsResponse

type ListHealthMonitorsResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 健康检查对象。
	Healthmonitors *[]HealthMonitor `json:"healthmonitors,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ListHealthMonitorsResponse) String

type ListIpGroupsRequest

type ListIpGroupsRequest struct {

	// 上一页最后一条记录的ID。  使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的个数。
	Limit *int32 `json:"limit,omitempty"`

	// 是否反向查询。  取值: - true:查询上一页。 - false:查询下一页,默认。  使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// IP地址组的ID。
	Id *[]string `json:"id,omitempty"`

	// IP地址组的名称。
	Name *[]string `json:"name,omitempty"`

	// IP地址组的描述信息。
	Description *[]string `json:"description,omitempty"`

	// IP地址,多个用逗号分隔。
	IpList *[]string `json:"ip_list,omitempty"`
}

Request Object

func (ListIpGroupsRequest) String

func (o ListIpGroupsRequest) String() string

type ListIpGroupsResponse

type ListIpGroupsResponse struct {

	// IP地址组列表返回对象。
	Ipgroups *[]IpGroup `json:"ipgroups,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

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

Response Object

func (ListIpGroupsResponse) String

func (o ListIpGroupsResponse) String() string

type ListL7PoliciesRequest

type ListL7PoliciesRequest struct {

	// 上一页最后一条记录的ID。  使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的个数。
	Limit *int32 `json:"limit,omitempty"`

	// 是否反向查询。  取值: - true:查询上一页。 - false:查询下一页,默认。  使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。  支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`

	// 转发策略ID。  支持多值查询,查询条件格式:*id=xxx&id=xxx*。
	Id *[]string `json:"id,omitempty"`

	// 转发策略名称。  支持多值查询,查询条件格式:**name=xxx&name=xxx**。
	Name *[]string `json:"name,omitempty"`

	// 转发策略额描述信息。  支持多值查询,查询条件格式:*description=xxx&description=xxx*。
	Description *[]string `json:"description,omitempty"`

	// 转发策略的管理状态,默认为true。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 转发策略所属的监听器ID。  支持多值查询,查询条件格式:*******listener_id=xxx&listener_id=xxx*******。
	ListenerId *[]string `json:"listener_id,omitempty"`

	// 转发策略的优先级。  支持多值查询,查询条件格式:****position=xxx&position=xxx****。  不支持该字段,请勿使用。
	Position *[]int32 `json:"position,omitempty"`

	// 转发策略的转发动作。  取值: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。  支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。  [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt)
	Action *[]string `json:"action,omitempty"`

	// 转发到的url。必须满足格式: protocol://host:port/path?query。  支持多值查询,查询条件格式:****redirect_url=xxx&redirect_url=xxx****。  不支持该字段,请勿使用。
	RedirectUrl *[]string `json:"redirect_url,omitempty"`

	// 转发到pool的ID。  支持多值查询,查询条件格式:***redirect_pool_id=xxx&redirect_pool_id=xxx***。
	RedirectPoolId *[]string `json:"redirect_pool_id,omitempty"`

	// 转发到的listener的ID。  支持多值查询,查询条件格式:**redirect_listener_id=xxx&redirect_listener_id=xxx**。
	RedirectListenerId *[]string `json:"redirect_listener_id,omitempty"`

	// 转发策略的配置状态。  取值范围: - ACTIVE: 默认值,表示正常。 - ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。  支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。
	ProvisioningStatus *[]string `json:"provisioning_status,omitempty"`

	// 是否显示转发策略下的rule详细信息。  取值: - true:显示policy下面的rule的详细信息。 - false:只显示policy下面的rule的id信息
	DisplayAllRules *bool `json:"display_all_rules,omitempty"`

	// 转发策略的优先级。数值越小,优先级越高。  支持多值查询,查询条件格式:*priority=xxx&priority=xxx*。  [不支持该字段,请勿使用。](tag:hcso_dt)
	Priority *[]int32 `json:"priority,omitempty"`
}

Request Object

func (ListL7PoliciesRequest) String

func (o ListL7PoliciesRequest) String() string

type ListL7PoliciesResponse

type ListL7PoliciesResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 转发策略对象列表。
	L7policies     *[]L7Policy `json:"l7policies,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListL7PoliciesResponse) String

func (o ListL7PoliciesResponse) String() string

type ListL7RulesRequest

type ListL7RulesRequest struct {

	// 策略ID。
	L7policyId string `json:"l7policy_id"`

	// 每页返回的个数。
	Limit *int32 `json:"limit,omitempty"`

	// 上一页最后一条记录的ID。  使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
	Marker *string `json:"marker,omitempty"`

	// 是否反向查询。  取值: - true:查询上一页。 - false:查询下一页,默认。  使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// 转发规则ID。  支持多值查询,查询条件格式:*id=xxx&id=xxx*。
	Id *[]string `json:"id,omitempty"`

	// 转发匹配方式。  取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。  支持多值查询,查询条件格式:*compare_type=xxx&compare_type=xxx*。
	CompareType *[]string `json:"compare_type,omitempty"`

	// 转发规则的配置状态。  取值:ACTIVE 表示正常。  支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。
	ProvisioningStatus *[]string `json:"provisioning_status,omitempty"`

	// 是否反向匹配。使用说明:固定为false。该字段能更新但不会生效。
	Invert *bool `json:"invert,omitempty"`

	// 转发规则的管理状态,默认为true。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 匹配内容的值。  支持多值查询,查询条件格式:*value=xxx&value=xxx*。
	Value *[]string `json:"value,omitempty"`

	// 匹配内容的键值,用于标识规则。  支持多值查询,查询条件格式:*key=xxx&key=xxx*。  不支持该字段,请勿使用。
	Key *[]string `json:"key,omitempty"`

	// 匹配类别,可以为HOST_NAME,PATH。  一个l7policy下创建的l7rule的type不能重复。  支持多值查询,查询条件格式:*type=xxx&type=xxx*。
	Type *[]string `json:"type,omitempty"`

	// 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。  支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ListL7RulesRequest) String

func (o ListL7RulesRequest) String() string

type ListL7RulesResponse

type ListL7RulesResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 规则对象列表。
	Rules          *[]L7Rule `json:"rules,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListL7RulesResponse) String

func (o ListL7RulesResponse) String() string

type ListListenersRequest

type ListListenersRequest struct {

	// 每页返回的个数。
	Limit *int32 `json:"limit,omitempty"`

	// 上一页最后一条记录的ID。  使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
	Marker *string `json:"marker,omitempty"`

	// 是否反向查询。  取值: - true:查询上一页。 - false:查询下一页,默认。  使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// 监听器的前端监听端口。  支持多值查询,查询条件格式:*protocol_port=xxx&protocol_port=xxx*。
	ProtocolPort *[]string `json:"protocol_port,omitempty"`

	// 监听器的监听协议。  [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC。  说明:TERMINATED_HTTPS为共享型LB上的监听器独有的协议。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  [取值:TCP、UDP、HTTP、HTTPS。](tag:hws_eu,hcso_dt)  支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。  [荷兰region不支持QUIC。](tag:dt)
	Protocol *[]string `json:"protocol,omitempty"`

	// 监听器的描述信息。  支持多值查询,查询条件格式:*description=xxx&description=xxx*。
	Description *[]string `json:"description,omitempty"`

	// 监听器的服务器证书ID。  支持多值查询,查询条件格式: *default_tls_container_ref=xxx&default_tls_container_ref=xxx*。
	DefaultTlsContainerRef *[]string `json:"default_tls_container_ref,omitempty"`

	// 监听器的CA证书ID。  支持多值查询,查询条件格式: *client_ca_tls_container_ref=xxx&client_ca_tls_container_ref=xxx*。
	ClientCaTlsContainerRef *[]string `json:"client_ca_tls_container_ref,omitempty"`

	// 监听器的管理状态,只能设置为true。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// ​监听器的最大连接数。  取值:-1表示不限制连接数。  支持多值查询,查询条件格式:*connection_limit=xxx&connection_limit=xxx*。  不支持该字段,请勿使用。
	ConnectionLimit *[]int32 `json:"connection_limit,omitempty"`

	// 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。  支持多值查询,查询条件格式:*default_pool_id=xxx&default_pool_id=xxx*。
	DefaultPoolId *[]string `json:"default_pool_id,omitempty"`

	// 监听器ID。  支持多值查询,查询条件格式:*id=xxx&id=xxx*。
	Id *[]string `json:"id,omitempty"`

	// 监听器名称。  支持多值查询,查询条件格式:*name=xxx&name=xxx*。
	Name *[]string `json:"name,omitempty"`

	// 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。  使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。  [荷兰region不支持QUIC。](tag:dt)
	Http2Enable *bool `json:"http2_enable,omitempty"`

	// 监听器所属的负载均衡器ID。  支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。
	LoadbalancerId *[]string `json:"loadbalancer_id,omitempty"`

	// 监听器使用的安全策略。  支持多值查询,查询条件格式:*tls_ciphers_policy=xxx&tls_ciphers_policy=xxx*。
	TlsCiphersPolicy *[]string `json:"tls_ciphers_policy,omitempty"`

	// 后端云服务器的IP地址。仅用于查询条件,不作为响应参数字段。  支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。
	MemberAddress *[]string `json:"member_address,omitempty"`

	// 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。  支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。
	MemberDeviceId *[]string `json:"member_device_id,omitempty"`

	// 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。  支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`

	// 是否开启后端服务器的重试。  取值:true 开启重试,false 不开启重试。
	EnableMemberRetry *bool `json:"enable_member_retry,omitempty"`

	// 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。  取值:1-300s。  支持多值查询,查询条件格式:*member_timeout=xxx&member_timeout=xxx*。
	MemberTimeout *[]int32 `json:"member_timeout,omitempty"`

	// 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。  取值:1-300s。  支持多值查询,查询条件格式:*client_timeout=xxx&client_timeout=xxx*。
	ClientTimeout *[]int32 `json:"client_timeout,omitempty"`

	// 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到一下次请求时重新建立新的连接。  取值: - TCP监听器:10-4000s。 - HTTP/HTTPS/TERMINATED_HTTPS监听器:0-4000s。 - UDP监听器不支持此字段。  支持多值查询,查询条件格式:*keepalive_timeout=xxx&keepalive_timeout=xxx*。
	KeepaliveTimeout *[]int32 `json:"keepalive_timeout,omitempty"`

	// 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。  [仅作用于共享型LB的TCP/UDP监听器。取值:true开启,false不开启。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	TransparentClientIpEnable *bool `json:"transparent_client_ip_enable,omitempty"`

	// 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。  取值:true开启,false不开启。  [荷兰region不支持该字段,请勿使用。](tag:dt)
	EnhanceL7policyEnable *bool `json:"enhance_l7policy_enable,omitempty"`

	// 后端云服务器ID。仅用于查询条件,不作为响应参数字段。  支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。
	MemberInstanceId *[]string `json:"member_instance_id,omitempty"`
}

Request Object

func (ListListenersRequest) String

func (o ListListenersRequest) String() string

type ListListenersResponse

type ListListenersResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// Listener的列表。
	Listeners      *[]Listener `json:"listeners,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListListenersResponse) String

func (o ListListenersResponse) String() string

type ListLoadBalancersRequest

type ListLoadBalancersRequest struct {

	// 上一页最后一条记录的ID。  使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的个数。
	Limit *int32 `json:"limit,omitempty"`

	// 是否反向查询。  取值: - true:查询上一页。 - false:查询下一页,默认。  使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// 负载均衡器ID。  支持多值查询,查询条件格式:*id=xxx&id=xxx*。
	Id *[]string `json:"id,omitempty"`

	// 负载均衡器名称。  支持多值查询,查询条件格式:*name=xxx&name=xxx*。
	Name *[]string `json:"name,omitempty"`

	// 负载均衡器的描述信息。  支持多值查询,查询条件格式:*description=xxx&description=xxx*。
	Description *[]string `json:"description,omitempty"`

	// 负载均衡器的管理状态。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 负载均衡器的配置状态。  取值: - ACTIVE:使用中。 - PENDING_DELETE:删除中。  支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。
	ProvisioningStatus *[]string `json:"provisioning_status,omitempty"`

	// 负载均衡器的操作状态。  取值: - ONLINE:正常运行。 - FROZEN:已冻结。  支持多值查询,查询条件格式:*operating_status=xxx&operating_status=xxx*。
	OperatingStatus *[]string `json:"operating_status,omitempty"`

	// 是否独享型LB。  取值: - false:共享型 - true:独享型  [仅支持独享型,固定为true。](tag:hws_eu,hcso_dt)
	Guaranteed *bool `json:"guaranteed,omitempty"`

	// 负载均衡器所在的VPC ID。  支持多值查询,查询条件格式:*vpc_id=xxx&vpc_id=xxx*。
	VpcId *[]string `json:"vpc_id,omitempty"`

	// 负载均衡器的IPv4对应的port ID。  支持多值查询,查询条件格式:*vip_port_id=xxx&vip_port_id=xxx*。
	VipPortId *[]string `json:"vip_port_id,omitempty"`

	// 负载均衡器的IPv4虚拟IP地址。  支持多值查询,查询条件格式:*vip_address=xxx&vip_address=xxx*。
	VipAddress *[]string `json:"vip_address,omitempty"`

	// 负载均衡器所在子网的IPv4子网ID。  支持多值查询,查询条件格式:*vip_subnet_cidr_id=xxx&vip_subnet_cidr_id=xxx*。
	VipSubnetCidrId *[]string `json:"vip_subnet_cidr_id,omitempty"`

	// 双栈类型负载均衡器的IPv6对应的port ID。  支持多值查询,查询条件格式:*ipv6_vip_port_id=xxx&ipv6_vip_port_id=xxx*。  [不支持IPv6,请勿使用。](tag:dt,dt_test)
	Ipv6VipPortId *[]string `json:"ipv6_vip_port_id,omitempty"`

	// 双栈类型负载均衡器的IPv6地址。  支持多值查询,查询条件格式:*ipv6_vip_address=xxx&ipv6_vip_address=xxx*。  [不支持IPv6,请勿使用。](tag:dt,dt_test)
	Ipv6VipAddress *[]string `json:"ipv6_vip_address,omitempty"`

	// 双栈类型负载均衡器所在的子网IPv6网络ID。  支持多值查询,查询条件格式:*ipv6_vip_virsubnet_id=xxx&ipv6_vip_virsubnet_id=xxx*。  [不支持IPv6,请勿使用。](tag:dt,dt_test)
	Ipv6VipVirsubnetId *[]string `json:"ipv6_vip_virsubnet_id,omitempty"`

	// 负载均衡器绑定的EIP。示例如下: \"eips\": [             {                 \"eip_id\": \"e9b72a9d-4275-455e-a724-853504e4d9c6\",                 \"eip_address\": \"88.88.14.122\",                 \"ip_version\": 4             }         ]  支持多值查询,查询条件格式: - eip_id作为查询条件:*eips=eip_id=xxx&eips=eip_id=xxx*。 - eip_address作为查询条件:*eips=eip_address=xxx&eips=eip_address=xxx*。 - ip_version作为查询条件:*eips=ip_version=xxx&eips=ip_version=xxx*。  注:该字段与publicips字段一致。
	Eips *[]string `json:"eips,omitempty"`

	// 负载均衡器绑定的公网IP。示例如下:  \"publicips\": [                 {                     \"publicip_id\": \"e9b72a9d-4275-455e-a724-853504e4d9c6\",                     \"publicip_address\": \"88.88.14.122\",                     \"ip_version\": 4                 }             ]  支持多值查询,查询条件格式: - publicip_id作为查询条件: *publicips=publicip_id=xxx&publicips=publicip_id=xxx* - publicip_address作为查询条件: *publicips=publicip_address=xxx&publicips=publicip_address=xxx* - ip_version作为查询条件: *publicips=ip_version=xxx&publicips=ip_version=xxx*  注:该字段与eips字段一致。
	Publicips *[]string `json:"publicips,omitempty"`

	// 负载均衡器所在可用区列表。  支持多值查询,查询条件格式: *availability_zone_list=xxx&availability_zone_list=xxx*。
	AvailabilityZoneList *[]string `json:"availability_zone_list,omitempty"`

	// 四层Flavor ID。  支持多值查询,查询条件格式:*l4_flavor_id=xxx&l4_flavor_id=xxx*。  [不支持该字段,请勿使用。](tag:fcs)
	L4FlavorId *[]string `json:"l4_flavor_id,omitempty"`

	// 四层弹性Flavor ID。  支持多值查询,查询条件格式:*l4_scale_flavor_id=xxx&l4_scale_flavor_id=xxx*。  不支持该字段,请勿使用。
	L4ScaleFlavorId *[]string `json:"l4_scale_flavor_id,omitempty"`

	// 七层Flavor ID。  支持多值查询,查询条件格式:*l7_flavor_id=xxx&l7_flavor_id=xxx*。  [不支持该字段,请勿使用。](tag:fcs)
	L7FlavorId *[]string `json:"l7_flavor_id,omitempty"`

	// 七层弹性Flavor ID。  支持多值查询,查询条件格式:*l7_scale_flavor_id=xxx&l7_scale_flavor_id=xxx*。  不支持该字段,请勿使用。
	L7ScaleFlavorId *[]string `json:"l7_scale_flavor_id,omitempty"`

	// 资源账单信息。  支持多值查询,查询条件格式:*billing_info=xxx&billing_info=xxx*。  [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt)
	BillingInfo *[]string `json:"billing_info,omitempty"`

	// 负载均衡器中的后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。  支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。
	MemberDeviceId *[]string `json:"member_device_id,omitempty"`

	// 负载均衡器中的后端云服务器对应的弹性云服务器的IP地址。仅用于查询条件,不作为响应参数字段。  支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。
	MemberAddress *[]string `json:"member_address,omitempty"`

	// 负载均衡器所属的企业项目ID。 查询时若不传,则查询default企业项目下的资源,鉴权按照default企业项目鉴权。 如果传值,则必须传已存在的企业项目ID(不可为\"0\")或传all_granted_eps表示查询所有企业项目。  支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`

	// IP版本信息。  取值:4代表IPv4,6代表IPv6。  支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。  [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
	IpVersion *[]int32 `json:"ip_version,omitempty"`

	// 是否开启删除保护,false不开启,true开启。[不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	DeletionProtectionEnable *bool `json:"deletion_protection_enable,omitempty"`

	// 下联面子网类型。  取值: - ipv4:ipv4。 - dualstack:双栈。  支持多值查询,查询条件格式: *elb_virsubnet_type=ipv4&elb_virsubnet_type=dualstack*。
	ElbVirsubnetType *[]string `json:"elb_virsubnet_type,omitempty"`

	// 是否开启弹性扩缩容。示例如下: \"autoscaling\": {             \"enable\": \"true\"         }  支持多值查询,查询条件格式:  *autoscaling=enable=true&autoscaling=enable=false*。  [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,fcs)
	Autoscaling *[]string `json:"autoscaling,omitempty"`
}

Request Object

func (ListLoadBalancersRequest) String

func (o ListLoadBalancersRequest) String() string

type ListLoadBalancersResponse

type ListLoadBalancersResponse struct {

	// Loadbalancer的列表。
	Loadbalancers *[]LoadBalancer `json:"loadbalancers,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListLoadBalancersResponse) String

func (o ListLoadBalancersResponse) String() string

type ListLogtanksRequest added in v0.0.80

type ListLogtanksRequest struct {

	// 每页返回的个数。
	Limit *int32 `json:"limit,omitempty"`

	// 上一页最后一条记录的ID。  使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
	Marker *string `json:"marker,omitempty"`

	// 是否反向查询。  取值: - true:查询上一页。 - false:查询下一页,默认。  使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker
	PageReverse *bool `json:"page_reverse,omitempty"`

	// 企业项目ID。 支持多值查询,查询条件格式:enterprise_project_id=xxx&enterprise_project_id=xxx。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`

	// 云日志记录ID。 支持多值查询,查询条件格式:id=xxx&id=xxx。
	Id *[]string `json:"id,omitempty"`

	// 负载均衡器ID。 支持多值查询,查询条件格式:loadbalancer_id=xxx&loadbalancer_id=xxx。
	LoadbalancerId *[]string `json:"loadbalancer_id,omitempty"`

	// 云日志分组ID。 支持多值查询,查询条件格式:log_group_id=xxx&log_group_id=xxx。
	LogGroupId *[]string `json:"log_group_id,omitempty"`

	// 云日志主题ID 支持多值查询,查询条件格式:log_topic_id=xxx&log_topic_id=xxx。
	LogTopicId *[]string `json:"log_topic_id,omitempty"`
}

Request Object

func (ListLogtanksRequest) String added in v0.0.80

func (o ListLogtanksRequest) String() string

type ListLogtanksResponse added in v0.0.80

type ListLogtanksResponse struct {

	// 描述信息
	Logtanks *[]Logtank `json:"logtanks,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListLogtanksResponse) String added in v0.0.80

func (o ListLogtanksResponse) String() string

type ListMembersRequest

type ListMembersRequest struct {

	// 后端服务器组ID。
	PoolId string `json:"pool_id"`

	// 上一页最后一条记录的ID。  使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的个数。
	Limit *int32 `json:"limit,omitempty"`

	// 是否反向查询。  取值: - true:查询上一页。 - false:查询下一页,默认。  使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// 后端云服务器名称。  支持多值查询,查询条件格式:*name=xxx&name=xxx*。
	Name *[]string `json:"name,omitempty"`

	// 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。  取值:0-100。  支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。
	Weight *[]int32 `json:"weight,omitempty"`

	// 后端云服务器的管理状态。  取值:true、false。  虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。  支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。  [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
	SubnetCidrId *[]string `json:"subnet_cidr_id,omitempty"`

	// 后端服务器对应的IPv4或IPv6地址。  支持多值查询,查询条件格式:*address=xxx&address=xxx*。  [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
	Address *[]string `json:"address,omitempty"`

	// 后端服务器业务端口号。  支持多值查询,查询条件格式:*protocol_port=xxx&protocol_port=xxx*。
	ProtocolPort *[]int32 `json:"protocol_port,omitempty"`

	// 后端云服务器ID。  支持多值查询,查询条件格式:*id=xxx&id=xxx*。
	Id *[]string `json:"id,omitempty"`

	// 后端云服务器的健康状态。  取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。  支持多值查询,查询条件格式:*operating_status=xxx&operating_status=xxx*。
	OperatingStatus *[]string `json:"operating_status,omitempty"`

	// 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。  支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`

	// 当前后端服务器的IP地址版本。取值:v4、v6。
	IpVersion *[]string `json:"ip_version,omitempty"`

	// 后端云服务器的类型。  取值: - ip:跨VPC的member。 - instance:关联到ECS的member。  支持多值查询,查询条件格式:*member_type=xxx&member_type=xxx*。
	MemberType *[]string `json:"member_type,omitempty"`

	// member关联的ECS实例ID,空表示跨VPC场景的member。  支持多值查询,查询条件格式:*instance_id=xxx&instance_id=xxx*。
	InstanceId *[]string `json:"instance_id,omitempty"`
}

Request Object

func (ListMembersRequest) String

func (o ListMembersRequest) String() string

type ListMembersResponse

type ListMembersResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 后端服务器对象列表。
	Members        *[]Member `json:"members,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListMembersResponse) String

func (o ListMembersResponse) String() string

type ListPoolsRequest

type ListPoolsRequest struct {

	// 上一页最后一条记录的ID。  使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的个数。
	Limit *int32 `json:"limit,omitempty"`

	// 是否反向查询。  取值: - true:查询上一页。 - false:查询下一页,默认。  使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// 后端云服务器组的描述信息。  支持多值查询,查询条件格式:*description=xxx&description=xxx*。
	Description *[]string `json:"description,omitempty"`

	// 后端云服务器组的管理状态。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 后端云服务器组关联的健康检查的ID。  支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。
	HealthmonitorId *[]string `json:"healthmonitor_id,omitempty"`

	// 后端云服务器组的ID。  支持多值查询,查询条件格式:*id=xxx&id=xxx*。
	Id *[]string `json:"id,omitempty"`

	// 后端云服务器组的名称。  支持多值查询,查询条件格式:*name=xxx&name=xxx*。
	Name *[]string `json:"name,omitempty"`

	// 后端云服务器组绑定的负载均衡器ID。  支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。
	LoadbalancerId *[]string `json:"loadbalancer_id,omitempty"`

	// 后端云服务器组的后端协议。  取值:TCP、UDP、HTTP、HTTPS和QUIC。  支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。  [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt)  [荷兰region不支持QUIC。](tag:dt)
	Protocol *[]string `json:"protocol,omitempty"`

	// 后端云服务器组的负载均衡算法。  取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。  支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。  [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt)  [荷兰region不支持QUIC。](tag:dt)
	LbAlgorithm *[]string `json:"lb_algorithm,omitempty"`

	// 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。  支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`

	// 后端云服务器组支持的IP版本。  支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。
	IpVersion *[]string `json:"ip_version,omitempty"`

	// 后端云服务器的IP地址。仅用于查询条件,不作为响应参数字段。  支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。
	MemberAddress *[]string `json:"member_address,omitempty"`

	// 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。  支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。
	MemberDeviceId *[]string `json:"member_device_id,omitempty"`

	// 是否开启删除保护,false不开启,true开启,不传查询全部。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	MemberDeletionProtectionEnable *bool `json:"member_deletion_protection_enable,omitempty"`

	// 关联的监听器ID,包括通过l7policy关联的。  支持多值查询,查询条件格式:*listener_id=xxx&listener_id=xxx*。
	ListenerId *[]string `json:"listener_id,omitempty"`

	// 后端云服务器ID。仅用于查询条件,不作为响应参数字段。  支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。
	MemberInstanceId *[]string `json:"member_instance_id,omitempty"`

	// 后端云服务器组关联的虚拟私有云的ID。
	VpcId *[]string `json:"vpc_id,omitempty"`

	// 后端服务器组的类型。  取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端
	Type *[]string `json:"type,omitempty"`
}

Request Object

func (ListPoolsRequest) String

func (o ListPoolsRequest) String() string

type ListPoolsResponse

type ListPoolsResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 后端服务器组列表。
	Pools          *[]Pool `json:"pools,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListPoolsResponse) String

func (o ListPoolsResponse) String() string

type ListQuotaDetailsRequest added in v0.0.70

type ListQuotaDetailsRequest struct {

	// 资源类型。  取值: loadbalancer、listener、ipgroup、pool、member、members_per_pool、 healthmonitor、l7policy、certificate、security_policy、 ipgroup_bindings、ipgroup_max_length。  members_per_pool表示一个pool下最多可关联的member数量。  ipgroup_bindings表示一个ipgroup下最多可关联的listener数量。  ipgroup_max_length表示一个ipgroup下最多设置的ip地址数量。  支持多值查询,查询条件格式:quota_key=xxx&quota_key=xxx。
	QuotaKey *[]string `json:"quota_key,omitempty"`
}

Request Object

func (ListQuotaDetailsRequest) String added in v0.0.70

func (o ListQuotaDetailsRequest) String() string

type ListQuotaDetailsResponse added in v0.0.70

type ListQuotaDetailsResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	// 资源配额信息列表。
	Quotas         *[]QuotaInfo `json:"quotas,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ListQuotaDetailsResponse) String added in v0.0.70

func (o ListQuotaDetailsResponse) String() string

type ListSecurityPoliciesRequest added in v0.0.70

type ListSecurityPoliciesRequest struct {

	// 上一页最后一条记录的ID。  使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
	Marker *string `json:"marker,omitempty"`

	// 每页返回的个数。
	Limit *int32 `json:"limit,omitempty"`

	// 是否反向查询。  取值: - true:查询上一页。 - false:查询下一页,默认。  使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
	PageReverse *bool `json:"page_reverse,omitempty"`

	// 自定义安全策略的ID。  支持多值查询,查询条件格式:*id=xxx&id=xxx*。
	Id *[]string `json:"id,omitempty"`

	// 自定义安全策略的名称。  支持多值查询,查询条件格式:*name=xxx&name=xxx*。
	Name *[]string `json:"name,omitempty"`

	// 自定义安全策略的描述信息。  支持多值查询,查询条件格式:*description=xxx&description=xxx*。
	Description *[]string `json:"description,omitempty"`

	// 空格分隔的自定义安全策略的TLS协议。  支持多值查询,查询条件格式:*protocols=xxx&protocols=xxx*。
	Protocols *[]string `json:"protocols,omitempty"`

	// 冒号分隔的自定义安全策略的加密套件。  支持多值查询,查询条件格式:*ciphers=xxx&ciphers=xxx*。
	Ciphers *[]string `json:"ciphers,omitempty"`
}

Request Object

func (ListSecurityPoliciesRequest) String added in v0.0.70

type ListSecurityPoliciesResponse added in v0.0.70

type ListSecurityPoliciesResponse struct {

	// 自定义安全策略列表返回对象。
	SecurityPolicies *[]SecurityPolicy `json:"security_policies,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

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

Response Object

func (ListSecurityPoliciesResponse) String added in v0.0.70

type ListSystemSecurityPoliciesRequest added in v0.0.70

type ListSystemSecurityPoliciesRequest struct {
}

Request Object

func (ListSystemSecurityPoliciesRequest) String added in v0.0.70

type ListSystemSecurityPoliciesResponse added in v0.0.70

type ListSystemSecurityPoliciesResponse struct {

	// 系统安全策略列表。
	SystemSecurityPolicies *[]SystemSecurityPolicy `json:"system_security_policies,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListSystemSecurityPoliciesResponse) String added in v0.0.70

type Listener

type Listener struct {

	// 监听器的管理状态。只能设置为true。  不支持该字段,请勿使用。
	AdminStateUp bool `json:"admin_state_up"`

	// 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。
	ClientCaTlsContainerRef string `json:"client_ca_tls_container_ref"`

	// 监听器的最大连接数。  取值:-1表示不限制,默认为-1。  不支持该字段,请勿使用。
	ConnectionLimit int32 `json:"connection_limit"`

	// 监听器的创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z
	CreatedAt string `json:"created_at"`

	// 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。
	DefaultPoolId string `json:"default_pool_id"`

	// 监听器使用的服务器证书ID。
	DefaultTlsContainerRef string `json:"default_tls_container_ref"`

	// 监听器的描述信息。
	Description string `json:"description"`

	// 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。  使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。  [荷兰region不支持QUIC。](tag:dt)
	Http2Enable bool `json:"http2_enable"`

	// 监听器ID。
	Id string `json:"id"`

	InsertHeaders *ListenerInsertHeaders `json:"insert_headers"`

	// 监听器所属的负载均衡器的ID列表。一个监听器只支持关联到一个LB。
	Loadbalancers []LoadBalancerRef `json:"loadbalancers"`

	// 监听器的名称。
	Name string `json:"name"`

	// 监听器所在的项目ID。
	ProjectId string `json:"project_id"`

	// 监听器的监听协议。  [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC。  使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS, 创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  [取值:TCP、UDP、HTTP、HTTPS。](tag:hws_eu,hcso_dt)  [荷兰region不支持QUIC。](tag:dt)
	Protocol string `json:"protocol"`

	// 监听器的前端监听端口。客户端将请求发送到该端口中。
	ProtocolPort int32 `json:"protocol_port"`

	// 监听器使用的SNI证书(带域名的服务器证书)ID列表。  使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过30。
	SniContainerRefs []string `json:"sni_container_refs"`

	// 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。
	SniMatchAlgo string `json:"sni_match_algo"`

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

	// 监听器的更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z
	UpdatedAt string `json:"updated_at"`

	// 监听器使用的安全策略。  [取值:tls-1-0-inherit,tls-1-0, tls-1-1, tls-1-2,tls-1-2-strict,tls-1-2-fs,tls-1-0-with-1-3, tls-1-2-fs-with-1-3, hybrid-policy-1-0,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt)  [取值:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt)  [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt)  [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt)  [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42)  [荷兰region不支持QUIC。](tag:dt)
	TlsCiphersPolicy string `json:"tls_ciphers_policy"`

	// 自定义安全策略的ID。  [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt)  [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt)  [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42)
	SecurityPolicyId string `json:"security_policy_id"`

	// 是否开启后端服务器的重试。  取值:true 开启重试,false 不开启重试。默认:true。  [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt)  [荷兰region不支持QUIC。](tag:dt)
	EnableMemberRetry bool `json:"enable_member_retry"`

	// 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到一下次请求时重新建立新的连接。  取值: - 若为TCP监听器,取值范围为(10-4000s)默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。  UDP监听器不支持此字段。
	KeepaliveTimeout int32 `json:"keepalive_timeout"`

	// 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。  取值范围为1-300s,默认值为60s。  使用说明:仅协议为HTTP/HTTPS的监听器支持该字段。
	ClientTimeout int32 `json:"client_timeout"`

	// 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。  取值:1-300s,默认为60s。  使用说明:仅支持协议为HTTP/HTTPS的监听器。
	MemberTimeout int32 `json:"member_timeout"`

	Ipgroup *ListenerIpGroup `json:"ipgroup"`

	// 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。  取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。  使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
	TransparentClientIpEnable bool `json:"transparent_client_ip_enable"`

	// 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。  取值:true开启,false不开启,默认false。  开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。  [荷兰region不支持该字段,请勿使用。](tag:dt)
	EnhanceL7policyEnable bool `json:"enhance_l7policy_enable"`

	QuicConfig *ListenerQuicConfig `json:"quic_config,omitempty"`
}

监听器信息。

func (Listener) String

func (o Listener) String() string

type ListenerInsertHeaders

type ListenerInsertHeaders struct {

	// X-Forwarded-ELB-IP设为true可以将ELB实例的eip地址从报文的http头中带到后端云服务器。
	XForwardedELBIP *bool `json:"X-Forwarded-ELB-IP,omitempty"`

	// X-Forwarded-Port设为true可以将ELB实例的监听端口从报文的http头中带到后端云服务器。
	XForwardedPort *bool `json:"X-Forwarded-Port,omitempty"`

	// X-Forwarded-For-Port设为true可以将客户端的源端口从报文的http头中带到后端云服务器。
	XForwardedForPort *bool `json:"X-Forwarded-For-Port,omitempty"`

	// X-Forwarded-Host设为true可以将客户请求头的X-Forwarded-Host设置为请求头的Host带到后端云服务器。
	XForwardedHost *bool `json:"X-Forwarded-Host,omitempty"`
}

可选的HTTP头插入,可以将从负载均衡器到后端云服务器的路径中需要被后端云服务器用到的信息写入HTTP中, 随报文传递到后端云服务器使。例如可通过X-Forwarded-ELB-IP开关,将负载均衡器的弹性公网IP传到后端云服务器。

func (ListenerInsertHeaders) String

func (o ListenerInsertHeaders) String() string

type ListenerIpGroup

type ListenerIpGroup struct {

	// 监听器关联的访问控制组的id。 创建时必选,更新时非必选。 指定的ipgroup必须已存在,不能指定为null,否则与enable_ipgroup冲突。
	IpgroupId string `json:"ipgroup_id"`

	// 访问控制组的状态。 True:开启访问控制; Flase:关闭访问控制; 开启访问控制的监听器,允许直接删除。
	EnableIpgroup bool `json:"enable_ipgroup"`

	// 访问控制组的类型。 white:白名单,只允许指定ip访问; black:黑名单,不允许指定ip访问;
	Type string `json:"type"`
}

listener对象中的ipgroup信息

func (ListenerIpGroup) String

func (o ListenerIpGroup) String() string

type ListenerQuicConfig added in v0.0.97

type ListenerQuicConfig struct {

	// 监听器关联的QUIC监听器ID。 创建时必选,更新时非必选。 指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。  [荷兰region不支持QUIC。](tag:dt)
	QuicListenerId *string `json:"quic_listener_id,omitempty"`

	// QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级; 开启HTTPS监听器升级QUIC监听器能力  [荷兰region不支持QUIC。](tag:dt)
	EnableQuicUpgrade *bool `json:"enable_quic_upgrade,omitempty"`
}

当前监听器关联的QUIC监听器配置信息,仅protocol为HTTPS时有效。 对于TCP/UDP/HTTP/QUIC监听器,若该字段非空则报错。 > 客户端向服务端发送正常的HTTP协议请求并携带了支持QUIC协议的信息。 如果服务端监听器开启了升级QUIC,那么就会在响应头中加入服务端支持的QUIC端口和版本信息。 客户端再次请求时会同时发送TCP(HTTPS)和UDP(QUIC)请求,若QUIC请求成功,则后续继续使用QUIC交互。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt)

func (ListenerQuicConfig) String added in v0.0.97

func (o ListenerQuicConfig) String() string

type ListenerRef

type ListenerRef struct {

	// 监听器ID。
	Id string `json:"id"`
}

监听器

func (ListenerRef) String

func (o ListenerRef) String() string

type LoadBalancer

type LoadBalancer struct {

	// 负载均衡器ID。
	Id string `json:"id"`

	// 负载均衡器描述信息。
	Description string `json:"description"`

	// 负载均衡器的配置状态。  取值: - ACTIVE:使用中。 - PENDING_DELETE:删除中。
	ProvisioningStatus string `json:"provisioning_status"`

	// 负载均衡器的管理状态。固定为true。
	AdminStateUp bool `json:"admin_state_up"`

	// 负载均衡器的生产者名称。固定为vlb。
	Provider string `json:"provider"`

	// 负载均衡器直接关联的后端云服务器组的ID列表。
	Pools []PoolRef `json:"pools"`

	// 负载均衡器关联的监听器的ID列表。
	Listeners []ListenerRef `json:"listeners"`

	// 负载均衡器的操作状态。  取值: - ONLINE:在线。
	OperatingStatus string `json:"operating_status"`

	// 负载均衡器的名称。
	Name string `json:"name"`

	// 负载均衡器所属的项目ID。
	ProjectId string `json:"project_id"`

	// 负载均衡器所在子网的IPv4子网ID。
	VipSubnetCidrId string `json:"vip_subnet_cidr_id"`

	// 负载均衡器的IPv4虚拟IP地址。
	VipAddress string `json:"vip_address"`

	// 负载均衡器的IPv4对应的port ID。 [该port创建时关联默认安全组,这个安全组对所有流量不生效。](tag:dt,dt_test,hcso_dt)
	VipPortId string `json:"vip_port_id"`

	// 负载均衡的标签列表。
	Tags []Tag `json:"tags"`

	// 负载均衡器的创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z'
	CreatedAt string `json:"created_at"`

	// 负载均衡器的更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z'
	UpdatedAt string `json:"updated_at"`

	// 是否独享型LB。  取值: - false:共享型。 - true:独享型。
	Guaranteed bool `json:"guaranteed"`

	// 负载均衡器所在VPC ID。
	VpcId string `json:"vpc_id"`

	// 负载均衡器绑定的EIP。只支持绑定一个EIP。  注:该字段与publicips一致。
	Eips []EipInfo `json:"eips"`

	// 双栈类型负载均衡器的IPv6地址。  [不支持IPv6,请勿使用。](tag:dt,dt_test)
	Ipv6VipAddress string `json:"ipv6_vip_address"`

	// 双栈类型负载均衡器所在子网的IPv6网络ID。  [不支持IPv6,请勿使用。](tag:dt,dt_test)
	Ipv6VipVirsubnetId string `json:"ipv6_vip_virsubnet_id"`

	// 双栈类型负载均衡器的IPv6对应的port ID。  [不支持IPv6,请勿使用。](tag:dt,dt_test)
	Ipv6VipPortId string `json:"ipv6_vip_port_id"`

	// 负载均衡器所在的可用区列表。
	AvailabilityZoneList []string `json:"availability_zone_list"`

	// 企业项目ID。创建时不传则返回\"0\",表示资源属于default企业项目。  注:\"0\"并不是真实存在的企业项目ID,在创建、更新和查询时不能作为请求参数传入。  [不支持该字段,请勿使用](tag:dt,dt_test,hcso_dt)
	EnterpriseProjectId string `json:"enterprise_project_id"`

	// 资源账单信息。  取值: - 空:按需计费。 - 非空:包周期计费,  包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id,如:  CS2107161019CDJZZ:OFFI569702121789763584: az:057ef081eb00d2732fd1c01a9be75e6f  [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,fcs)
	BillingInfo string `json:"billing_info"`

	// 四层Flavor ID。  对于弹性扩缩容实例,表示上限规格。  [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso)
	L4FlavorId string `json:"l4_flavor_id"`

	// 四层弹性Flavor ID。  不支持该字段,请勿使用。
	L4ScaleFlavorId string `json:"l4_scale_flavor_id"`

	// 七层Flavor ID。 对于弹性扩缩容实例,表示上限规格ID。  [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso)
	L7FlavorId string `json:"l7_flavor_id"`

	// 七层弹性Flavor ID。  不支持该字段,请勿使用。
	L7ScaleFlavorId string `json:"l7_scale_flavor_id"`

	// 负载均衡器绑定的公网IP。只支持绑定一个公网IP。  注:该字段与eips一致。
	Publicips []PublicIpInfo `json:"publicips"`

	// 负载均衡器绑定的global eip。只支持绑定一个globaleip。  [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,fcs,ctc)
	GlobalEips []GlobalEipInfo `json:"global_eips"`

	// 下联面子网的网络ID列表。
	ElbVirsubnetIds []string `json:"elb_virsubnet_ids"`

	// 下联面子网类型 - ipv4:ipv4 - dualstack:双栈
	ElbVirsubnetType LoadBalancerElbVirsubnetType `json:"elb_virsubnet_type"`

	// 是否启用跨VPC后端转发。  开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加 [其他VPC、](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) 其他公有云、云下数据中心的服务器。  [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  取值: - true:开启。 - false:不开启。  使用说明: - 开启不能关闭。  [荷兰region不支持该字段,请勿使用。](tag:dt)
	IpTargetEnable bool `json:"ip_target_enable"`

	// 负载均衡器的冻结场景。若负载均衡器有多个冻结场景,用逗号分隔。  取值: - POLICE:公安冻结场景。 - ILLEGAL:违规冻结场景。 - VERIFY:客户未实名认证冻结场景。 - PARTNER:合作伙伴冻结(合作伙伴冻结子客户资源)。 - REAR:欠费冻结场景。  [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt)
	FrozenScene string `json:"frozen_scene"`

	Ipv6Bandwidth *BandwidthRef `json:"ipv6_bandwidth"`

	// 是否开启删除保护。  取值: - false:不开启。 - true:开启。 >退场时需要先关闭所有资源的删除保护开关。  仅当前局点启用删除保护特性后才会返回该字段。  [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	DeletionProtectionEnable *bool `json:"deletion_protection_enable,omitempty"`

	Autoscaling *AutoscalingRef `json:"autoscaling,omitempty"`

	// LB所属AZ组
	PublicBorderGroup *string `json:"public_border_group,omitempty"`

	// WAF故障时的流量处理策略。discard:丢弃,forward: 转发到后端(默认)  使用说明:只有绑定了waf的LB实例,该字段才会生效。  [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,fcs,ctc)
	WafFailureAction *string `json:"waf_failure_action,omitempty"`
}

负载均衡器的详细信息。

func (LoadBalancer) String

func (o LoadBalancer) String() string

type LoadBalancerElbVirsubnetType

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

func (LoadBalancerElbVirsubnetType) MarshalJSON

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

func (*LoadBalancerElbVirsubnetType) UnmarshalJSON

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

func (LoadBalancerElbVirsubnetType) Value added in v0.0.90

type LoadBalancerElbVirsubnetTypeEnum

type LoadBalancerElbVirsubnetTypeEnum struct {
	IPV4      LoadBalancerElbVirsubnetType
	DUALSTACK LoadBalancerElbVirsubnetType
}

func GetLoadBalancerElbVirsubnetTypeEnum

func GetLoadBalancerElbVirsubnetTypeEnum() LoadBalancerElbVirsubnetTypeEnum

type LoadBalancerRef

type LoadBalancerRef struct {

	// 负载均衡器ID。
	Id *string `json:"id,omitempty"`
}

负载均衡器信息

func (LoadBalancerRef) String

func (o LoadBalancerRef) String() string

type LoadBalancerStatus

type LoadBalancerStatus struct {

	// 负载均衡器名称。
	Name string `json:"name"`

	// 负载均衡器的配置状态。  取值: - ACTIVE:使用中。 - PENDING_DELETE:删除中。
	ProvisioningStatus string `json:"provisioning_status"`

	// 负载均衡器关联的监听器列表。
	Listeners []LoadBalancerStatusListener `json:"listeners"`

	// 负载均衡器关联的后端云服务器组列表。
	Pools []LoadBalancerStatusPool `json:"pools"`

	// 负载均衡器ID。
	Id string `json:"id"`

	// 负载均衡器的操作状态。  取值: - ONLINE:创建时默认状态,表示负载均衡器正常运行。 - FROZEN:已冻结。 - DEGRADED:负载均衡器下存在member的operating_status为OFFLINE时返回这个状态。 - DISABLED:负载均衡器的admin_state_up属性值为false。  说明:DEGRADED和DISABLED状态仅在当前接口中返回,LB详情等其他接口不返回这两个状态值。
	OperatingStatus string `json:"operating_status"`
}

func (LoadBalancerStatus) String

func (o LoadBalancerStatus) String() string

type LoadBalancerStatusHealthMonitor

type LoadBalancerStatusHealthMonitor struct {

	// 协议类型。取值:TCP、UDP_CONNECT或HTTP。
	Type *string `json:"type,omitempty"`

	// 健康检查器ID。
	Id *string `json:"id,omitempty"`

	// 健康检查器名称。
	Name *string `json:"name,omitempty"`

	// 健康检查器的配置状态。取值:ACTIVE表示使用中。
	ProvisioningStatus *string `json:"provisioning_status,omitempty"`
}

LB状态树的后端服务器组健康检查器状态信息。

func (LoadBalancerStatusHealthMonitor) String

type LoadBalancerStatusL7Rule

type LoadBalancerStatusL7Rule struct {

	// L7转发规则ID。
	Id string `json:"id"`

	// 匹配内容类型。  取值: - HOST_NAME:域名匹配。 - PATH:URL路径匹配。  使用说明: 同一个l7policy下创建的所有的l7rule的HOST_NAME不能重复。
	Type string `json:"type"`

	// 转发规则的配置状态。  取值: - ACTIVE:使用中,默认值。 - ERROR:当前规则所属策略与同一监听器下的其他策略存在相同的规则配置。
	ProvisioningStatus string `json:"provisioning_status"`
}

查询负载均衡状态树返回对象中的rule数据模型。

func (LoadBalancerStatusL7Rule) String

func (o LoadBalancerStatusL7Rule) String() string

type LoadBalancerStatusListener

type LoadBalancerStatusListener struct {

	// 监听器的名称。
	Name *string `json:"name,omitempty"`

	// 监听器的配置状态。  取值: - ACTIVE:使用中。
	ProvisioningStatus *string `json:"provisioning_status,omitempty"`

	// 监听器下的后端主机组操作状态。
	Pools *[]LoadBalancerStatusPool `json:"pools,omitempty"`

	// 监听器下的7层转发策略操作状态。
	L7policies *[]LoadBalancerStatusPolicy `json:"l7policies,omitempty"`

	// 监听器ID。
	Id *string `json:"id,omitempty"`

	// 监听器的操作状态。  取值: - ONLINE:创建时默认状态,表示监听器正常运行。 - DEGRADED:该监听器下存在l7policy或l7rule的Provisioning_status=ERROR时返回这个状态。 或者状态树该监听器下存在member的operating_status=OFFLINE。 - DISABLED:负载均衡器或监听器的admin_state_up=false。  说明: DEGRADED和DISABLED状态仅在当前接口返回,查询监听器详情等其他接口返回字段operating_status不存在这两个状态值。
	OperatingStatus *string `json:"operating_status,omitempty"`
}

LB状态树的监听器状态信息

func (LoadBalancerStatusListener) String

type LoadBalancerStatusMember

type LoadBalancerStatusMember struct {

	// 后端服务器配置状态。取值:ACTIVE表示使用中。
	ProvisioningStatus *string `json:"provisioning_status,omitempty"`

	// 后端服务器的IP地址。
	Address *string `json:"address,omitempty"`

	// 后端服务器的端口号。取值范围[1, 65535]。
	ProtocolPort *int32 `json:"protocol_port,omitempty"`

	// 后端服务器ID。
	Id *string `json:"id,omitempty"`

	// 后端服务器的操作状态。  取值: - ONLINE:后端服务器正常运行。 - NO_MONITOR:后端服务器健康检查未开启。 - DISABLED:后端服务器不可用。所属负载均衡器或后端服务器组或该后端服务器的admin_state_up=flase时, 会出现该状态。注意该状态仅在当前接口中返回。 - OFFLINE:关联ECS已下线。
	OperatingStatus *string `json:"operating_status,omitempty"`
}

LB状态树的后端服务器组的后端服务器状态信息

func (LoadBalancerStatusMember) String

func (o LoadBalancerStatusMember) String() string

type LoadBalancerStatusPolicy

type LoadBalancerStatusPolicy struct {

	// 匹配后动作。  取值: - REDIRECT_TO_POOL:转发到后端服务器组。 - REDIRECT_TO_LISTENER:转发到监听器。
	Action *string `json:"action,omitempty"`

	// 转发策略ID。
	Id *string `json:"id,omitempty"`

	// 转发策略的配置状态。  取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs)
	ProvisioningStatus *string `json:"provisioning_status,omitempty"`

	// 转发策略名称。
	Name *string `json:"name,omitempty"`

	// 转发规则状态信息。
	Rules *[]LoadBalancerStatusL7Rule `json:"rules,omitempty"`
}

LB状态树的转发策略状态信息

func (LoadBalancerStatusPolicy) String

func (o LoadBalancerStatusPolicy) String() string

type LoadBalancerStatusPool

type LoadBalancerStatusPool struct {

	// 后端服务器组的配置状态。  取值: - ACTIVE:使用中。
	ProvisioningStatus *string `json:"provisioning_status,omitempty"`

	// 后端服务器组名。
	Name *string `json:"name,omitempty"`

	Healthmonitor *LoadBalancerStatusHealthMonitor `json:"healthmonitor,omitempty"`

	// 后端服务器状态信息。
	Members *[]LoadBalancerStatusMember `json:"members,omitempty"`

	// 后端服务器组ID。
	Id *string `json:"id,omitempty"`

	// 后端服务器组的操作状态。  取值: - ONLINE:创建时默认状态,表后端服务器组正常。 - DEGRADED:该后端服务器组下存在member为的operating_status=OFFLINE。 - DISABLED:负载均衡器或后端服务器组的admin_state_up=false。  说明: DEGRADED和DISABLED仅在当前接口返回, 查询后端服务器组详情等其他接口返回的operating_status字段不存在这两个状态值。
	OperatingStatus *string `json:"operating_status,omitempty"`
}

LB状态树的后端服务器组状态信息。

func (LoadBalancerStatusPool) String

func (o LoadBalancerStatusPool) String() string

type LoadBalancerStatusResult

type LoadBalancerStatusResult struct {
	Loadbalancer *LoadBalancerStatus `json:"loadbalancer"`
}

func (LoadBalancerStatusResult) String

func (o LoadBalancerStatusResult) String() string

type Logtank added in v0.0.80

type Logtank struct {

	// 云日志ID。
	Id string `json:"id"`

	// 项目ID。
	ProjectId string `json:"project_id"`

	// 负载均衡器ID。
	LoadbalancerId string `json:"loadbalancer_id"`

	// 云日志分组ID。
	LogGroupId string `json:"log_group_id"`

	// 云日志主题ID。
	LogTopicId string `json:"log_topic_id"`
}

云日志信息。

func (Logtank) String added in v0.0.80

func (o Logtank) String() string

type Member

type Member struct {

	// 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
	Id string `json:"id"`

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

	// 后端服务器所在的项目ID。
	ProjectId string `json:"project_id"`

	// 所在后端服务器组ID。  不支持该字段,请勿使用。
	PoolId *string `json:"pool_id,omitempty"`

	// 后端云服务器的管理状态。  取值:true、false。  虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
	AdminStateUp bool `json:"admin_state_up"`

	// 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。  若所属的LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。  使用说明:该子网和关联的负载均衡器的子网必须在同一VPC下。  [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
	SubnetCidrId *string `json:"subnet_cidr_id,omitempty"`

	// 后端服务器业务端口号。
	ProtocolPort int32 `json:"protocol_port"`

	// 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。  取值:0-100,默认1。  使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。
	Weight int32 `json:"weight"`

	// 后端服务器对应的IP地址。  使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡IP。  [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
	Address string `json:"address"`

	// 当前后端服务器的IP地址版本,由后端系统自动根据传入的address字段确定。取值:v4、v6。
	IpVersion string `json:"ip_version"`

	// 设备所有者。  取值: - 空,表示后端服务器未关联到ECS。 - compute:{az_name},表示关联到ECS,其中{az_name}表示ECS所在可用区名。  不支持该字段,请勿使用。
	DeviceOwner *string `json:"device_owner,omitempty"`

	// 关联的ECS ID,为空表示后端服务器未关联到ECS。  不支持该字段,请勿使用。
	DeviceId *string `json:"device_id,omitempty"`

	// 后端云服务器的健康状态。  取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。
	OperatingStatus string `json:"operating_status"`

	// 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
	Status []MemberStatus `json:"status"`

	// 所属负载均衡器ID。  不支持该字段,请勿使用。
	LoadbalancerId *string `json:"loadbalancer_id,omitempty"`

	// 后端云服务器关联的负载均衡器ID列表。  不支持该字段,请勿使用。
	Loadbalancers *[]ResourceId `json:"loadbalancers,omitempty"`

	// 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。  [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。  [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 后端云服务器的类型。  取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
	MemberType *string `json:"member_type,omitempty"`

	// member关联的实例ID。空表示member关联的实例为非真实设备 (如:跨VPC场景)
	InstanceId *string `json:"instance_id,omitempty"`
}

后端服务器信息。

func (Member) String

func (o Member) String() string

type MemberRef

type MemberRef struct {

	// 后端服务器ID。
	Id string `json:"id"`
}

func (MemberRef) String

func (o MemberRef) String() string

type MemberStatus added in v0.0.97

type MemberStatus struct {

	// 监听器ID
	ListenerId string `json:"listener_id"`

	// 后端云服务器的健康状态。  取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。
	OperatingStatus string `json:"operating_status"`
}

后端服务器操作状态。

func (MemberStatus) String added in v0.0.97

func (o MemberStatus) String() string

type PageInfo

type PageInfo struct {

	// 分页查询结果中第一条记录的ID。通常用于配合page_reverse=true查询上一页。
	PreviousMarker string `json:"previous_marker"`

	// 分页查询结果中最后一条记录的ID。通常用于查询下一页。
	NextMarker *string `json:"next_marker,omitempty"`

	// 当前的记录数。
	CurrentCount int32 `json:"current_count"`
}

分页信息

func (PageInfo) String

func (o PageInfo) String() string

type Pool

type Pool struct {

	// 后端云服务器组的管理状态,只支持设置为true。  不支持该字段,请勿使用。
	AdminStateUp bool `json:"admin_state_up"`

	// 后端云服务器组的描述信息。
	Description string `json:"description"`

	// 后端云服务器组关联的健康检查的ID。
	HealthmonitorId string `json:"healthmonitor_id"`

	// 后端云服务器组的ID。
	Id string `json:"id"`

	// 后端云服务器组的负载均衡算法。  取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。  使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。  [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt)  [荷兰region不支持QUIC。](tag:dt)
	LbAlgorithm string `json:"lb_algorithm"`

	// 后端云服务器组关联的监听器ID列表。
	Listeners []ListenerRef `json:"listeners"`

	// 后端云服务器组关联的负载均衡器ID列表。
	Loadbalancers []LoadBalancerRef `json:"loadbalancers"`

	// 后端云服务器组中的后端云服务器ID列表。
	Members []MemberRef `json:"members"`

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

	// 后端云服务器组所在的项目ID。
	ProjectId string `json:"project_id"`

	// 后端云服务器组的后端协议。  取值:TCP、UDP、HTTP、HTTPS和QUIC。  使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC; - listener的protocol为TCP时pool的protocol必须为TCP; - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP或HTTPS。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。  [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt)  [荷兰region不支持QUIC。](tag:dt)
	Protocol string `json:"protocol"`

	SessionPersistence *SessionPersistence `json:"session_persistence"`

	// 后端云服务器组支持的IP版本。  [取值: - 共享型:固定为v4; -  独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。  当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs)  [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt)  [不支持IPv6,只会返回v4。](tag:dt,dt_test)
	IpVersion string `json:"ip_version"`

	SlowStart *SlowStart `json:"slow_start"`

	// 是否开启误删保护。  取值:false不开启,true开启。  > 退场时需要先关闭所有资源的删除保护开关。  [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	MemberDeletionProtectionEnable bool `json:"member_deletion_protection_enable"`

	// 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。  [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。  [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 后端云服务器组关联的虚拟私有云的ID。
	VpcId string `json:"vpc_id"`

	// 后端服务器组的类型。  取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端
	Type string `json:"type"`
}

创建云服务器组请求返回对象

func (Pool) String

func (o Pool) String() string

type PoolRef

type PoolRef struct {

	// 后端服务器组ID。
	Id string `json:"id"`
}

func (PoolRef) String

func (o PoolRef) String() string

type PreoccupyIp

type PreoccupyIp struct {

	// 预占IP总数
	Total int32 `json:"total"`
}

func (PreoccupyIp) String

func (o PreoccupyIp) String() string

type PrepaidChangeChargeModeOption added in v0.0.70

type PrepaidChangeChargeModeOption struct {

	// 是否连同独享按带宽计费的弹性公网IP一起转包周期。 1. 弹性公网IP转包周期之后可以单独解绑,绑定到其他实例,删除 2. 只有独享且按带宽计费的弹性公网IP才被允许转包周期 默认值:false
	IncludePublicip *bool `json:"include_publicip,omitempty"`

	// 订购周期类型,当前支持包月和包年: month:月(默认); year:年;
	PeriodType PrepaidChangeChargeModeOptionPeriodType `json:"period_type"`

	// 订购周期数(默认1),取值会随运营策略变化。 period_type为month时,为[1,9], period_type为year时,为[1,3]
	PeriodNum *int32 `json:"period_num,omitempty"`

	// 是否自动续订; true:自动续订 false:不自动续订(默认)
	AutoRenew *bool `json:"auto_renew,omitempty"`

	// 下单订购后,是否自动从客户的账户中支付; true:自动支付; false:不自动支付(默认)。 自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。
	AutoPay *bool `json:"auto_pay,omitempty"`
}

包周期选项,charge_mode为prepaid时填写。

func (PrepaidChangeChargeModeOption) String added in v0.0.70

type PrepaidChangeChargeModeOptionPeriodType added in v0.0.70

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

func (PrepaidChangeChargeModeOptionPeriodType) MarshalJSON added in v0.0.70

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

func (*PrepaidChangeChargeModeOptionPeriodType) UnmarshalJSON added in v0.0.70

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

func (PrepaidChangeChargeModeOptionPeriodType) Value added in v0.0.90

type PrepaidChangeChargeModeOptionPeriodTypeEnum added in v0.0.70

type PrepaidChangeChargeModeOptionPeriodTypeEnum struct {
	MONTH PrepaidChangeChargeModeOptionPeriodType
	YEAR  PrepaidChangeChargeModeOptionPeriodType
}

func GetPrepaidChangeChargeModeOptionPeriodTypeEnum added in v0.0.70

func GetPrepaidChangeChargeModeOptionPeriodTypeEnum() PrepaidChangeChargeModeOptionPeriodTypeEnum

type PrepaidCreateOption added in v0.0.70

type PrepaidCreateOption struct {

	// 订购周期类型,当前支持包月和包年: month:月; year:年;
	PeriodType PrepaidCreateOptionPeriodType `json:"period_type"`

	// 订购周期数,取值会随运营策略变化。 period_type为month时,为[1,9], period_type为year时,为[1,3]
	PeriodNum *int32 `json:"period_num,omitempty"`

	// 是否自动续订; true:自动续订 false:不自动续订
	AutoRenew *bool `json:"auto_renew,omitempty"`

	// 下单订购后,是否自动从客户的账户中支付; true:自动支付; false:不自动支付。 自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。
	AutoPay *bool `json:"auto_pay,omitempty"`
}

创建负载均衡器的包周期信息,若传入该结构体,则创建包周期的LB。 [不支持该字段,请勿使用](tag:dt,dt_test,hcso_dt)

func (PrepaidCreateOption) String added in v0.0.70

func (o PrepaidCreateOption) String() string

type PrepaidCreateOptionPeriodType added in v0.0.70

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

func (PrepaidCreateOptionPeriodType) MarshalJSON added in v0.0.70

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

func (*PrepaidCreateOptionPeriodType) UnmarshalJSON added in v0.0.70

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

func (PrepaidCreateOptionPeriodType) Value added in v0.0.90

type PrepaidCreateOptionPeriodTypeEnum added in v0.0.70

type PrepaidCreateOptionPeriodTypeEnum struct {
	MONTH PrepaidCreateOptionPeriodType
	YEAR  PrepaidCreateOptionPeriodType
}

func GetPrepaidCreateOptionPeriodTypeEnum added in v0.0.70

func GetPrepaidCreateOptionPeriodTypeEnum() PrepaidCreateOptionPeriodTypeEnum

type PrepaidUpdateOption added in v0.0.70

type PrepaidUpdateOption struct {

	// 下单订购后,是否自动从客户的账户中支付; true:自动支付; false:不自动支付(默认)。 自动支付时,只能使用账户的现金支付;如果要使用代金券,请选择不自动支付,然后在用户费用中心,选择代金券支付。
	AutoPay *bool `json:"auto_pay,omitempty"`

	// 规格变更类型: immediate:即时变更,规格变更立即生效。(默认) delay:续费变更,当前周期结束后变更为目标规格。
	ChangeMode *PrepaidUpdateOptionChangeMode `json:"change_mode,omitempty"`

	// 订购周期数(默认1),取值会随运营策略变化。(仅在change_mode为delay时生效) period_type为month时,为[1,9], period_type为year时,为[1,3]
	PeriodNum *int32 `json:"period_num,omitempty"`

	// 订购周期类型,当前支持包月和包年: (仅在change_mode为delay时生效) month:月(默认); year:年;
	PeriodType *PrepaidUpdateOptionPeriodType `json:"period_type,omitempty"`
}

负载均衡器的包周期规格变更信息

func (PrepaidUpdateOption) String added in v0.0.70

func (o PrepaidUpdateOption) String() string

type PrepaidUpdateOptionChangeMode added in v0.0.70

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

func (PrepaidUpdateOptionChangeMode) MarshalJSON added in v0.0.70

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

func (*PrepaidUpdateOptionChangeMode) UnmarshalJSON added in v0.0.70

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

func (PrepaidUpdateOptionChangeMode) Value added in v0.0.90

type PrepaidUpdateOptionChangeModeEnum added in v0.0.70

type PrepaidUpdateOptionChangeModeEnum struct {
	IMMEDIATE PrepaidUpdateOptionChangeMode
	DELAY     PrepaidUpdateOptionChangeMode
}

func GetPrepaidUpdateOptionChangeModeEnum added in v0.0.70

func GetPrepaidUpdateOptionChangeModeEnum() PrepaidUpdateOptionChangeModeEnum

type PrepaidUpdateOptionPeriodType added in v0.0.70

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

func (PrepaidUpdateOptionPeriodType) MarshalJSON added in v0.0.70

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

func (*PrepaidUpdateOptionPeriodType) UnmarshalJSON added in v0.0.70

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

func (PrepaidUpdateOptionPeriodType) Value added in v0.0.90

type PrepaidUpdateOptionPeriodTypeEnum added in v0.0.70

type PrepaidUpdateOptionPeriodTypeEnum struct {
	MONTH PrepaidUpdateOptionPeriodType
	YEAR  PrepaidUpdateOptionPeriodType
}

func GetPrepaidUpdateOptionPeriodTypeEnum added in v0.0.70

func GetPrepaidUpdateOptionPeriodTypeEnum() PrepaidUpdateOptionPeriodTypeEnum

type PublicIpInfo

type PublicIpInfo struct {

	// 弹性公网ip配置id
	PublicipId string `json:"publicip_id"`

	// IP地址
	PublicipAddress string `json:"publicip_address"`

	// IP版本信息。 取值范围:4和6 4:IPv4 6:IPv6  [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
	IpVersion int32 `json:"ip_version"`
}

弹性公网EIP信息

func (PublicIpInfo) String

func (o PublicIpInfo) String() string

type Quota

type Quota struct {

	// 项目ID。
	ProjectId string `json:"project_id"`

	// 负载均衡器配额。  取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
	Loadbalancer int32 `json:"loadbalancer"`

	// 证书配额。  取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
	Certificate int32 `json:"certificate"`

	// 监听器配额。  取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
	Listener int32 `json:"listener"`

	// 转发策略配额。  取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
	L7policy int32 `json:"l7policy"`

	// 后端云服务器组配额。  取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
	Pool int32 `json:"pool"`

	// 健康检查配额。  取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
	Healthmonitor int32 `json:"healthmonitor"`

	// 后端云服务器配额。  取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
	Member int32 `json:"member"`

	// 单个pool下的member的配额。  取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
	MembersPerPool int32 `json:"members_per_pool"`

	// IP地址组配额。  取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。  [不支持该字段,请勿使用。](tag:hcso_dt)
	Ipgroup int32 `json:"ipgroup"`

	// 自定义安全策略配额。  取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。  [不支持该字段,请勿使用。](tag:hcso_dt)
	SecurityPolicy int32 `json:"security_policy"`

	// ipgroup最大可关联的监听器数量。  取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。  [不支持该字段,请勿使用。](tag:hcso_dt)
	IpgroupBindings string `json:"ipgroup_bindings"`

	// 单个ipgroup最多可设置的ip地址数量。  取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。  [不支持该字段,请勿使用。](tag:hcso_dt)
	IpgroupMaxLength string `json:"ipgroup_max_length"`
}

负载均衡相关各类资源的配额信息。仅返回资源的总配额,不包括剩余可用配额。

func (Quota) String

func (o Quota) String() string

type QuotaInfo added in v0.0.70

type QuotaInfo struct {

	// 资源类型。  取值: loadbalancer、listener、ipgroup、pool、member、members_per_pool、 healthmonitor、l7policy、certificate、security_policy、 ipgroup_bindings、ipgroup_max_length。  members_per_pool表示一个pool下最多可关联的member数量。  ipgroup_bindings表示一个ipgroup下最多可关联的listener数量。  ipgroup_max_length表示一个ipgroup下最多设置的ip地址数量。
	QuotaKey string `json:"quota_key"`

	// 总配额。  取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
	QuotaLimit int32 `json:"quota_limit"`

	// 已使用配额。
	Used int32 `json:"used"`

	// 配额单位。  取值:count,表示个数。
	Unit string `json:"unit"`
}

配额信息,包括总配额和已使用配额。

func (QuotaInfo) String added in v0.0.70

func (o QuotaInfo) String() string

type RedirectUrlConfig added in v0.0.70

type RedirectUrlConfig struct {

	// 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。  取值: - HTTP - HTTPS - ${protocol}
	Protocol RedirectUrlConfigProtocol `json:"protocol"`

	// 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”。 且必须以字母、数字开头。默认值${host}表示继承原值(即与被转发请求保持一致)。
	Host string `json:"host"`

	// 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。
	Port string `json:"port"`

	// 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。  支持英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。
	Path string `json:"path"`

	// 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下:  若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.xxx.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.xxx.com:8080/elb?type=loadbalancer&name=my_name。  只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。
	Query string `json:"query"`

	// 重定向后的返回码。  取值范围: - 301 - 302 - 303 - 307 - 308
	StatusCode RedirectUrlConfigStatusCode `json:"status_code"`
}

转发到的url配置。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_URL时生效,且为必选字段,其他action不可指定,否则报错。 格式:protocol://host:port/path?query protocol、host、port、path不允许同时不传或同时传${xxx} (${xxx}表示原值,如${host}表示被转发的请求URL的host部分)。 protocol和port传入的值不能与l7policy关联的监听器一致且host、path同时不传或同时传${xxx}。 [共享型负载均衡器下的转发策略不支持该字段,传入会报错。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)

func (RedirectUrlConfig) String added in v0.0.70

func (o RedirectUrlConfig) String() string

type RedirectUrlConfigProtocol added in v0.0.70

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

func (RedirectUrlConfigProtocol) MarshalJSON added in v0.0.70

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

func (*RedirectUrlConfigProtocol) UnmarshalJSON added in v0.0.70

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

func (RedirectUrlConfigProtocol) Value added in v0.0.90

type RedirectUrlConfigProtocolEnum added in v0.0.70

type RedirectUrlConfigProtocolEnum struct {
	HTTP  RedirectUrlConfigProtocol
	HTTPS RedirectUrlConfigProtocol
	// contains filtered or unexported fields
}

func GetRedirectUrlConfigProtocolEnum added in v0.0.70

func GetRedirectUrlConfigProtocolEnum() RedirectUrlConfigProtocolEnum

type RedirectUrlConfigStatusCode added in v0.0.70

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

func (RedirectUrlConfigStatusCode) MarshalJSON added in v0.0.70

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

func (*RedirectUrlConfigStatusCode) UnmarshalJSON added in v0.0.70

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

func (RedirectUrlConfigStatusCode) Value added in v0.0.90

type RedirectUrlConfigStatusCodeEnum added in v0.0.70

func GetRedirectUrlConfigStatusCodeEnum added in v0.0.70

func GetRedirectUrlConfigStatusCodeEnum() RedirectUrlConfigStatusCodeEnum

type ResourceId added in v0.0.97

type ResourceId struct {

	// 资源ID
	Id string `json:"id"`
}

资源ID

func (ResourceId) String added in v0.0.97

func (o ResourceId) String() string

type RuleCondition added in v0.0.70

type RuleCondition struct {

	// 匹配项的名称。  当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。  当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。  当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。  同一个rule内的conditions列表中所有key必须相同。
	Key string `json:"key"`

	// 匹配项的值。  当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、“-”、“.”或“*”, 必须以字母、数字或“*”开头,“*”只能出现在开头且必须以*.开始。  当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。  当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。  当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)  当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。  当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。   同一个rule内的conditions列表中所有value不允许重复。
	Value string `json:"value"`
}

func (RuleCondition) String added in v0.0.70

func (o RuleCondition) String() string

type RuleRef

type RuleRef struct {

	// 规则ID。
	Id string `json:"id"`
}

func (RuleRef) String

func (o RuleRef) String() string

type SecurityPolicy added in v0.0.70

type SecurityPolicy struct {

	// 自定义安全安全策略的id。
	Id string `json:"id"`

	// 自定义安全策略的项目id。
	ProjectId string `json:"project_id"`

	// 自定义安全策略的名称
	Name string `json:"name"`

	// 自定义安全策略的描述。
	Description string `json:"description"`

	// 自定义安全策略关联的监听器。
	Listeners []ListenerRef `json:"listeners"`

	// 自定义安全策略的TLS协议列表。
	Protocols []string `json:"protocols"`

	// 自定义安全策略的加密套件列表。
	Ciphers []string `json:"ciphers"`

	// 自定义安全策略的创建时间。
	CreatedAt string `json:"created_at"`

	// 自定义安全策略的更新时间。
	UpdatedAt string `json:"updated_at"`
}

自定义安全策略信息

func (SecurityPolicy) String added in v0.0.70

func (o SecurityPolicy) String() string

type SessionPersistence

type SessionPersistence struct {

	// cookie名称。  格式:仅支持字母、数字、中划线(-)、下划线(_)和点号(.)。  使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。  [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
	CookieName *string `json:"cookie_name,omitempty"`

	// 会话保持类型。  取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。  [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool, 则type只能为HTTP_COOKIE,其他取值会话保持失效。 如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt)
	Type string `json:"type"`

	// 会话保持的时间。当type为APP_COOKIE时不生效。  适用范围:如果pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1; 如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。  [荷兰region不支持QUIC。](tag:dt)
	PersistenceTimeout *int32 `json:"persistence_timeout,omitempty"`
}

会话持久性对象。

func (SessionPersistence) String

func (o SessionPersistence) String() string

type ShowCertificateRequest

type ShowCertificateRequest struct {

	// 证书ID。
	CertificateId string `json:"certificate_id"`
}

Request Object

func (ShowCertificateRequest) String

func (o ShowCertificateRequest) String() string

type ShowCertificateResponse

type ShowCertificateResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Certificate    *CertificateInfo `json:"certificate,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ShowCertificateResponse) String

func (o ShowCertificateResponse) String() string

type ShowFlavorRequest

type ShowFlavorRequest struct {

	// 规格ID。
	FlavorId string `json:"flavor_id"`
}

Request Object

func (ShowFlavorRequest) String

func (o ShowFlavorRequest) String() string

type ShowFlavorResponse

type ShowFlavorResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Flavor         *Flavor `json:"flavor,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowFlavorResponse) String

func (o ShowFlavorResponse) String() string

type ShowHealthMonitorRequest

type ShowHealthMonitorRequest struct {

	// 健康检查ID。
	HealthmonitorId string `json:"healthmonitor_id"`
}

Request Object

func (ShowHealthMonitorRequest) String

func (o ShowHealthMonitorRequest) String() string

type ShowHealthMonitorResponse

type ShowHealthMonitorResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Healthmonitor  *HealthMonitor `json:"healthmonitor,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ShowHealthMonitorResponse) String

func (o ShowHealthMonitorResponse) String() string

type ShowIpGroupRequest

type ShowIpGroupRequest struct {

	// IP地址组ID。
	IpgroupId string `json:"ipgroup_id"`
}

Request Object

func (ShowIpGroupRequest) String

func (o ShowIpGroupRequest) String() string

type ShowIpGroupResponse

type ShowIpGroupResponse struct {
	Ipgroup *IpGroup `json:"ipgroup,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowIpGroupResponse) String

func (o ShowIpGroupResponse) String() string

type ShowL7PolicyRequest

type ShowL7PolicyRequest struct {

	// 转发策略ID。
	L7policyId string `json:"l7policy_id"`
}

Request Object

func (ShowL7PolicyRequest) String

func (o ShowL7PolicyRequest) String() string

type ShowL7PolicyResponse

type ShowL7PolicyResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	L7policy       *L7Policy `json:"l7policy,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ShowL7PolicyResponse) String

func (o ShowL7PolicyResponse) String() string

type ShowL7RuleRequest

type ShowL7RuleRequest struct {

	// 7层转发策略。
	L7policyId string `json:"l7policy_id"`

	// 7层转发规则。
	L7ruleId string `json:"l7rule_id"`
}

Request Object

func (ShowL7RuleRequest) String

func (o ShowL7RuleRequest) String() string

type ShowL7RuleResponse

type ShowL7RuleResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Rule           *L7Rule `json:"rule,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowL7RuleResponse) String

func (o ShowL7RuleResponse) String() string

type ShowListenerRequest

type ShowListenerRequest struct {

	// 监听器ID。
	ListenerId string `json:"listener_id"`
}

Request Object

func (ShowListenerRequest) String

func (o ShowListenerRequest) String() string

type ShowListenerResponse

type ShowListenerResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Listener       *Listener `json:"listener,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ShowListenerResponse) String

func (o ShowListenerResponse) String() string

type ShowLoadBalancerRequest

type ShowLoadBalancerRequest struct {

	// 负载均衡器ID。
	LoadbalancerId string `json:"loadbalancer_id"`
}

Request Object

func (ShowLoadBalancerRequest) String

func (o ShowLoadBalancerRequest) String() string

type ShowLoadBalancerResponse

type ShowLoadBalancerResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Loadbalancer   *LoadBalancer `json:"loadbalancer,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ShowLoadBalancerResponse) String

func (o ShowLoadBalancerResponse) String() string

type ShowLoadBalancerStatusRequest

type ShowLoadBalancerStatusRequest struct {

	// 负载均衡器ID。
	LoadbalancerId string `json:"loadbalancer_id"`
}

Request Object

func (ShowLoadBalancerStatusRequest) String

type ShowLoadBalancerStatusResponse

type ShowLoadBalancerStatusResponse struct {
	Statuses *LoadBalancerStatusResult `json:"statuses,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowLoadBalancerStatusResponse) String

type ShowLogtankRequest added in v0.0.80

type ShowLogtankRequest struct {

	// 云日志ID。
	LogtankId string `json:"logtank_id"`
}

Request Object

func (ShowLogtankRequest) String added in v0.0.80

func (o ShowLogtankRequest) String() string

type ShowLogtankResponse added in v0.0.80

type ShowLogtankResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Logtank        *Logtank `json:"logtank,omitempty"`
	HttpStatusCode int      `json:"-"`
}

Response Object

func (ShowLogtankResponse) String added in v0.0.80

func (o ShowLogtankResponse) String() string

type ShowMemberRequest

type ShowMemberRequest struct {

	// 后端服务器组ID。
	PoolId string `json:"pool_id"`

	// 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
	MemberId string `json:"member_id"`
}

Request Object

func (ShowMemberRequest) String

func (o ShowMemberRequest) String() string

type ShowMemberResponse

type ShowMemberResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Member         *Member `json:"member,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowMemberResponse) String

func (o ShowMemberResponse) String() string

type ShowPoolRequest

type ShowPoolRequest struct {

	// 后端服务器组ID。
	PoolId string `json:"pool_id"`
}

Request Object

func (ShowPoolRequest) String

func (o ShowPoolRequest) String() string

type ShowPoolResponse

type ShowPoolResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Pool           *Pool `json:"pool,omitempty"`
	HttpStatusCode int   `json:"-"`
}

Response Object

func (ShowPoolResponse) String

func (o ShowPoolResponse) String() string

type ShowQuotaRequest

type ShowQuotaRequest struct {
}

Request Object

func (ShowQuotaRequest) String

func (o ShowQuotaRequest) String() string

type ShowQuotaResponse

type ShowQuotaResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Quota          *Quota `json:"quota,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowQuotaResponse) String

func (o ShowQuotaResponse) String() string

type ShowSecurityPolicyRequest added in v0.0.70

type ShowSecurityPolicyRequest struct {

	// 自定义安全策略ID。
	SecurityPolicyId string `json:"security_policy_id"`
}

Request Object

func (ShowSecurityPolicyRequest) String added in v0.0.70

func (o ShowSecurityPolicyRequest) String() string

type ShowSecurityPolicyResponse added in v0.0.70

type ShowSecurityPolicyResponse struct {
	SecurityPolicy *SecurityPolicy `json:"security_policy,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowSecurityPolicyResponse) String added in v0.0.70

type SlowStart

type SlowStart struct {

	// 慢启动的开关,默认值:false; true:开启; false:关闭
	Enable bool `json:"enable"`

	// 慢启动的持续时间。取值:30~1200s,默认30s;
	Duration int32 `json:"duration"`
}

慢启动信息。开启慢启动后,将会在设定的时间段(duration)内对新添加到后端服务器组的后端服务器进行预热,转发到该服务器的请求数量线性增加。 当后端服务器组的协议为HTTP/HTTPS时有效,其他协议传入该字段将报错。 [荷兰region不支持该字段,请勿使用。](tag:dt)

func (SlowStart) String

func (o SlowStart) String() string

type SystemSecurityPolicy added in v0.0.70

type SystemSecurityPolicy struct {

	// 系统安全策略的名称。
	Name string `json:"name"`

	// 系统安全策略的TLS协议列表。
	Protocols string `json:"protocols"`

	// 系统安全策略的加密套件列表。
	Ciphers string `json:"ciphers"`

	// 项目id。
	ProjectId string `json:"project_id"`
}

func (SystemSecurityPolicy) String added in v0.0.70

func (o SystemSecurityPolicy) String() string

type Tag

type Tag struct {

	// 标签键
	Key *string `json:"key,omitempty"`

	// 标签值
	Value *string `json:"value,omitempty"`
}

标签

func (Tag) String

func (o Tag) String() string

type UpadateIpGroupIpOption

type UpadateIpGroupIpOption struct {

	// IP地址。支持IPv4、IPv6。  [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
	Ip string `json:"ip"`

	// 备注信息。
	Description *string `json:"description,omitempty"`
}

IP地址更新参数。

func (UpadateIpGroupIpOption) String

func (o UpadateIpGroupIpOption) String() string

type UpdateCertificateOption

type UpdateCertificateOption struct {

	// 证书的内容。PEM编码格式。 最大长度65536字符。 支持证书链,最大11层(含证书和证书链)。
	Certificate *string `json:"certificate,omitempty"`

	// 证书的描述。
	Description *string `json:"description,omitempty"`

	// 证书的名称。
	Name *string `json:"name,omitempty"`

	// 服务器证书的私钥。PEM编码格式。 当type为client时,该参数被忽略,不影响证书的创建和使用。且若不符合格式,不报错但会被设置为空。 当type为server时,该字段必须符合格式要求,且私钥必须是有效的。 最大长度8192字符。
	PrivateKey *string `json:"private_key,omitempty"`

	// 服务器证书所签域名。该字段仅type为server时有效。  总长度为0-1024,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过30个域名。  普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com;  泛域名:在普通域名的基础上仅允许首字母为\"*\"。例:*.test.com
	Domain *string `json:"domain,omitempty"`

	// HTTPS协议使用的SM加密证书内容。支持证书链,最大11层(含证书和证书链)。  取值:PEM编码格式。最大长度65536字符。  使用说明:仅type为server_sm时有效。
	EncCertificate *string `json:"enc_certificate,omitempty"`

	// HTTPS协议使用的SM加密证书内容。  取值:PEM编码格式。最大长度8192字符。  使用说明:仅type为server_sm时有效。
	EncPrivateKey *string `json:"enc_private_key,omitempty"`
}

func (UpdateCertificateOption) String

func (o UpdateCertificateOption) String() string

type UpdateCertificateRequest

type UpdateCertificateRequest struct {

	// 证书ID。
	CertificateId string `json:"certificate_id"`

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

Request Object

func (UpdateCertificateRequest) String

func (o UpdateCertificateRequest) String() string

type UpdateCertificateRequestBody

type UpdateCertificateRequestBody struct {
	Certificate *UpdateCertificateOption `json:"certificate"`
}

This is a auto create Body Object

func (UpdateCertificateRequestBody) String

type UpdateCertificateResponse

type UpdateCertificateResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Certificate    *CertificateInfo `json:"certificate,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (UpdateCertificateResponse) String

func (o UpdateCertificateResponse) String() string

type UpdateFixtedResponseConfig added in v0.0.70

type UpdateFixtedResponseConfig struct {

	// 返回码。支持200~299,400~499,500~599。
	StatusCode *string `json:"status_code,omitempty"`

	// 返回body的格式。  取值范围: - text/plain - text/css - text/html - application/javascript - application/json application/json
	ContentType *UpdateFixtedResponseConfigContentType `json:"content_type,omitempty"`

	// 返回消息内容。
	MessageBody *string `json:"message_body,omitempty"`
}

固定返回页面的配置。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为FIXED_RESPONSE时生效,且为必选字段,其他action不可指定,否则报错。 [共享型负载均衡器下的转发策略不支持该字段,传入会报错。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)

func (UpdateFixtedResponseConfig) String added in v0.0.70

type UpdateFixtedResponseConfigContentType added in v0.0.70

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

func (UpdateFixtedResponseConfigContentType) MarshalJSON added in v0.0.70

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

func (*UpdateFixtedResponseConfigContentType) UnmarshalJSON added in v0.0.70

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

func (UpdateFixtedResponseConfigContentType) Value added in v0.0.90

type UpdateFixtedResponseConfigContentTypeEnum added in v0.0.70

type UpdateFixtedResponseConfigContentTypeEnum struct {
	TEXT_PLAIN             UpdateFixtedResponseConfigContentType
	TEXT_CSS               UpdateFixtedResponseConfigContentType
	TEXT_HTML              UpdateFixtedResponseConfigContentType
	APPLICATION_JAVASCRIPT UpdateFixtedResponseConfigContentType
	APPLICATION_JSON       UpdateFixtedResponseConfigContentType
}

func GetUpdateFixtedResponseConfigContentTypeEnum added in v0.0.70

func GetUpdateFixtedResponseConfigContentTypeEnum() UpdateFixtedResponseConfigContentTypeEnum

type UpdateHealthMonitorOption

type UpdateHealthMonitorOption struct {

	// 健康检查的管理状态。  取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 健康检查间隔。健康检查间隔。取值:1-50s。
	Delay *int32 `json:"delay,omitempty"`

	// 发送健康检查请求的域名。  取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 不能传空,但可传null或不传,表示使用负载均衡器的vip作为http请求的目的地址。  使用说明:当type为HTTP/HTTPS时生效。
	DomainName *string `json:"domain_name,omitempty"`

	// 期望响应状态码。  取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。   默认值:200。  仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。
	ExpectedCodes *string `json:"expected_codes,omitempty"`

	// HTTP请求方法。  取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH,默认GET。  使用说明:当type为HTTP/HTTPS时生效。  不支持该字段,请勿使用。
	HttpMethod *UpdateHealthMonitorOptionHttpMethod `json:"http_method,omitempty"`

	// 健康检查连续成功多少次后,将后端服务器的健康检查状态由OFFLINE判定为ONLINE。取值范围:1-10。
	MaxRetries *int32 `json:"max_retries,omitempty"`

	// 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10。
	MaxRetriesDown *int32 `json:"max_retries_down,omitempty"`

	// 健康检查端口号。取值:1-65535,不可传入空,但可传入null,表示使用后端云服务器端口号。
	MonitorPort *int32 `json:"monitor_port,omitempty"`

	// 健康检查名称。
	Name *string `json:"name,omitempty"`

	// 一次健康检查请求的超时时间。  建议该值小于delay的值。
	Timeout *int32 `json:"timeout,omitempty"`

	// 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。  使用说明:当type为HTTP/HTTPS时生效。
	UrlPath *string `json:"url_path,omitempty"`

	// 健康检查请求协议。  取值:TCP、UDP_CONNECT、HTTP、HTTPS。  使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。  [荷兰region不支持QUIC。](tag:dt)
	Type *string `json:"type,omitempty"`
}

更新健康检查请求参数。

func (UpdateHealthMonitorOption) String

func (o UpdateHealthMonitorOption) String() string

type UpdateHealthMonitorOptionHttpMethod added in v0.0.70

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

func (UpdateHealthMonitorOptionHttpMethod) MarshalJSON added in v0.0.70

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

func (*UpdateHealthMonitorOptionHttpMethod) UnmarshalJSON added in v0.0.70

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

func (UpdateHealthMonitorOptionHttpMethod) Value added in v0.0.90

type UpdateHealthMonitorRequest

type UpdateHealthMonitorRequest struct {

	// 健康检查ID
	HealthmonitorId string `json:"healthmonitor_id"`

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

Request Object

func (UpdateHealthMonitorRequest) String

type UpdateHealthMonitorRequestBody

type UpdateHealthMonitorRequestBody struct {
	Healthmonitor *UpdateHealthMonitorOption `json:"healthmonitor"`
}

This is a auto create Body Object

func (UpdateHealthMonitorRequestBody) String

type UpdateHealthMonitorResponse

type UpdateHealthMonitorResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Healthmonitor  *HealthMonitor `json:"healthmonitor,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (UpdateHealthMonitorResponse) String

type UpdateIpGroupOption

type UpdateIpGroupOption struct {

	// IP地址组的描述信息
	Description *string `json:"description,omitempty"`

	// IP地址组的名称
	Name *string `json:"name,omitempty"`

	// IP地址组中包含的IP列表。
	IpList *[]UpadateIpGroupIpOption `json:"ip_list,omitempty"`
}

func (UpdateIpGroupOption) String

func (o UpdateIpGroupOption) String() string

type UpdateIpGroupRequest

type UpdateIpGroupRequest struct {

	// 待更新的IP地址组的ID。
	IpgroupId string `json:"ipgroup_id"`

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

Request Object

func (UpdateIpGroupRequest) String

func (o UpdateIpGroupRequest) String() string

type UpdateIpGroupRequestBody

type UpdateIpGroupRequestBody struct {
	Ipgroup *UpdateIpGroupOption `json:"ipgroup"`
}

This is a auto create Body Object

func (UpdateIpGroupRequestBody) String

func (o UpdateIpGroupRequestBody) String() string

type UpdateIpGroupResponse

type UpdateIpGroupResponse struct {
	Ipgroup *IpGroup `json:"ipgroup,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateIpGroupResponse) String

func (o UpdateIpGroupResponse) String() string

type UpdateIpListOption added in v0.0.97

type UpdateIpListOption struct {

	// IP地址组的名称
	Name *string `json:"name,omitempty"`

	// IP地址组中包含的IP列表。
	IpList *[]UpadateIpGroupIpOption `json:"ip_list,omitempty"`

	// IP地址组的描述信息
	Description *string `json:"description,omitempty"`
}

更新IP地址组IP列表请求参数。

func (UpdateIpListOption) String added in v0.0.97

func (o UpdateIpListOption) String() string

type UpdateIpListRequest added in v0.0.70

type UpdateIpListRequest struct {

	// IP地址组ID。
	IpgroupId string `json:"ipgroup_id"`

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

Request Object

func (UpdateIpListRequest) String added in v0.0.70

func (o UpdateIpListRequest) String() string

type UpdateIpListRequestBody added in v0.0.70

type UpdateIpListRequestBody struct {
	Ipgroup *UpdateIpListOption `json:"ipgroup,omitempty"`
}

This is a auto create Body Object

func (UpdateIpListRequestBody) String added in v0.0.70

func (o UpdateIpListRequestBody) String() string

type UpdateIpListResponse added in v0.0.70

type UpdateIpListResponse struct {
	Ipgroup *IpGroup `json:"ipgroup,omitempty"`

	// 请求ID。 注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateIpListResponse) String added in v0.0.70

func (o UpdateIpListResponse) String() string

type UpdateL7PolicyOption

type UpdateL7PolicyOption struct {

	// 转发策略的管理状态,默认为true。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 转发策略描述信息。
	Description *string `json:"description,omitempty"`

	// 转发策略名称。
	Name *string `json:"name,omitempty"`

	// 转发到的listener的ID。  使用说明: - 当action为REDIRECT_TO_LISTENER时不能更新为空或null。 - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。
	RedirectListenerId *string `json:"redirect_listener_id,omitempty"`

	// 转发到pool的ID。  使用说明: - 指定的pool不能是listener的default_pool。不能是其他listener的l7policy使用的pool。 - 当action为REDIRECT_TO_POOL时为必选字段,不能更新为空或null。 当action为REDIRECT_TO_LISTENER时,不可指定。
	RedirectPoolId *string `json:"redirect_pool_id,omitempty"`

	RedirectUrlConfig *UpdateRedirectUrlConfig `json:"redirect_url_config,omitempty"`

	FixedResponseConfig *UpdateFixtedResponseConfig `json:"fixed_response_config,omitempty"`

	// 转发策略关联的转发规则对象。 详细参考表l7rule字段说明。rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。
	Rules *[]CreateRuleOption `json:"rules,omitempty"`

	// 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。  当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。  当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。  当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。  当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。  [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)  [不支持该字段,请勿使用。](tag:hcso_dt)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	Priority *int32 `json:"priority,omitempty"`

	// 转发到的后端主机组的配置。当action为REDIRECT_TO_POOL时生效。  使用说明: - 当action为REDIRECT_TO_POOL时redirect_pool_id和redirect_pools_config 必须指定一个,两个都指定时按redirect_pools_config生效。 - 当action为REDIRECT_TO_LISTENER时,不可指定。  只支持全量覆盖。
	RedirectPoolsConfig *[]CreateRedirectPoolsConfig `json:"redirect_pools_config,omitempty"`
}

更新七层转发策略的请求参数。

func (UpdateL7PolicyOption) String

func (o UpdateL7PolicyOption) String() string

type UpdateL7PolicyRequest

type UpdateL7PolicyRequest struct {

	// 转发策略ID。
	L7policyId string `json:"l7policy_id"`

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

Request Object

func (UpdateL7PolicyRequest) String

func (o UpdateL7PolicyRequest) String() string

type UpdateL7PolicyRequestBody

type UpdateL7PolicyRequestBody struct {
	L7policy *UpdateL7PolicyOption `json:"l7policy"`
}

This is a auto create Body Object

func (UpdateL7PolicyRequestBody) String

func (o UpdateL7PolicyRequestBody) String() string

type UpdateL7PolicyResponse

type UpdateL7PolicyResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	L7policy       *L7Policy `json:"l7policy,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (UpdateL7PolicyResponse) String

func (o UpdateL7PolicyResponse) String() string

type UpdateL7RuleOption

type UpdateL7RuleOption struct {

	// 转发规则的管理状态,默认为true。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 转发匹配方式。  取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。  使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。
	CompareType *string `json:"compare_type,omitempty"`

	// 是否反向匹配。  取值:true、false。  不支持该字段,请勿使用。
	Invert *bool `json:"invert,omitempty"`

	// 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。  不支持该字段,请勿使用。
	Key *string `json:"key,omitempty"`

	// 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。  当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头。 若域名中包含“*”,则“*”只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。  当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。  当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。
	Value *string `json:"value,omitempty"`

	// 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。  [不支持该字段,请勿使用。](tag:hcso_dt)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	Conditions *[]UpdateRuleCondition `json:"conditions,omitempty"`
}

更新七层转发规则的请求参数。

func (UpdateL7RuleOption) String

func (o UpdateL7RuleOption) String() string

type UpdateL7RuleRequest

type UpdateL7RuleRequest struct {

	// 策略ID。
	L7policyId string `json:"l7policy_id"`

	// 规则ID。
	L7ruleId string `json:"l7rule_id"`

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

Request Object

func (UpdateL7RuleRequest) String

func (o UpdateL7RuleRequest) String() string

type UpdateL7RuleRequestBody

type UpdateL7RuleRequestBody struct {
	Rule *UpdateL7RuleOption `json:"rule"`
}

This is a auto create Body Object

func (UpdateL7RuleRequestBody) String

func (o UpdateL7RuleRequestBody) String() string

type UpdateL7RuleResponse

type UpdateL7RuleResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Rule           *L7Rule `json:"rule,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateL7RuleResponse) String

func (o UpdateL7RuleResponse) String() string

type UpdateListenerIpGroupOption

type UpdateListenerIpGroupOption struct {

	// 监听器关联的访问控制组的id。 创建时必选,更新时非必选。 指定的ipgroup必须已存在,不能指定为null,否则与enable_ipgroup冲突。
	IpgroupId *string `json:"ipgroup_id,omitempty"`

	// 访问控制组的状态。 True:开启访问控制; Flase:关闭访问控制; 开启访问控制的监听器,允许直接删除。
	EnableIpgroup *bool `json:"enable_ipgroup,omitempty"`

	// 访问控制组的类型。 white:白名单,只允许指定ip访问; black:黑名单,不允许指定ip访问;
	Type *UpdateListenerIpGroupOptionType `json:"type,omitempty"`
}

listener对象中的ipgroup信息

func (UpdateListenerIpGroupOption) String

type UpdateListenerIpGroupOptionType

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

func (UpdateListenerIpGroupOptionType) MarshalJSON

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

func (*UpdateListenerIpGroupOptionType) UnmarshalJSON

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

func (UpdateListenerIpGroupOptionType) Value added in v0.0.90

type UpdateListenerIpGroupOptionTypeEnum

type UpdateListenerIpGroupOptionTypeEnum struct {
	WHITE UpdateListenerIpGroupOptionType
	BLACK UpdateListenerIpGroupOptionType
}

func GetUpdateListenerIpGroupOptionTypeEnum

func GetUpdateListenerIpGroupOptionTypeEnum() UpdateListenerIpGroupOptionTypeEnum

type UpdateListenerOption

type UpdateListenerOption struct {

	// 监听器的管理状态。只能设置为true。  不支持该字段,请勿使用。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。  监听器协议为QUIC时不支持该字段。  [荷兰region不支持QUIC。](tag:dt)
	ClientCaTlsContainerRef *string `json:"client_ca_tls_container_ref,omitempty"`

	// 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。
	DefaultPoolId *string `json:"default_pool_id,omitempty"`

	// 监听器使用的服务器证书ID。  使用说明:当监听器协议为HTTPS时,该字段必传,且对应的证书的type必须是server类型。
	DefaultTlsContainerRef *string `json:"default_tls_container_ref,omitempty"`

	// 监听器的描述信息。
	Description *string `json:"description,omitempty"`

	// 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。  使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。  [荷兰region不支持QUIC。](tag:dt)
	Http2Enable *bool `json:"http2_enable,omitempty"`

	InsertHeaders *ListenerInsertHeaders `json:"insert_headers,omitempty"`

	// 监听器的名称。
	Name *string `json:"name,omitempty"`

	// 监听器使用的SNI证书(带域名的服务器证书)ID列表。  使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过30。
	SniContainerRefs *[]string `json:"sni_container_refs,omitempty"`

	// 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。
	SniMatchAlgo *string `json:"sni_match_algo,omitempty"`

	// 监听器使用的安全策略。  [取值:tls-1-0-inherit,tls-1-0, tls-1-1, tls-1-2,tls-1-2-strict,tls-1-2-fs,tls-1-0-with-1-3, tls-1-2-fs-with-1-3, hybrid-policy-1-0,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt)  [取值:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt)  [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt)  [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt)  [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42)  [荷兰region不支持QUIC。](tag:dt)
	TlsCiphersPolicy *string `json:"tls_ciphers_policy,omitempty"`

	// 自定义安全策略的ID。  [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt)  [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt)  [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42)
	SecurityPolicyId *string `json:"security_policy_id,omitempty"`

	// 是否开启后端服务器的重试。  取值:true 开启重试,false 不开启重试。默认:true。  [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt)  [荷兰region不支持QUIC。](tag:dt)
	EnableMemberRetry *bool `json:"enable_member_retry,omitempty"`

	// 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。  取值:1-300s。  使用说明:仅支持协议为HTTP/HTTPS的监听器。
	MemberTimeout *int32 `json:"member_timeout,omitempty"`

	// 等待客户端请求超时时间,仅限协议为HTTP,HTTPS的监听器配置。取值范围为1-300s, 默认值为60s TCP,UDP协议的监听器不支持此字段
	ClientTimeout *int32 `json:"client_timeout,omitempty"`

	// 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到一下次请求时重新建立新的连接。  取值: - 若为TCP监听器,取值范围为(10-4000s)默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。  UDP监听器不支持此字段。
	KeepaliveTimeout *int32 `json:"keepalive_timeout,omitempty"`

	Ipgroup *UpdateListenerIpGroupOption `json:"ipgroup,omitempty"`

	// 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。  取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。  使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
	TransparentClientIpEnable *bool `json:"transparent_client_ip_enable,omitempty"`

	// 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。  取值:true开启,false不开启。  开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。  [荷兰region不支持该字段,请勿使用。](tag:dt)
	EnhanceL7policyEnable *bool `json:"enhance_l7policy_enable,omitempty"`

	QuicConfig *UpdateListenerQuicConfigOption `json:"quic_config,omitempty"`
}

更新监听器请求参数

func (UpdateListenerOption) String

func (o UpdateListenerOption) String() string

type UpdateListenerQuicConfigOption added in v0.0.97

type UpdateListenerQuicConfigOption struct {

	// 监听器关联的QUIC监听器ID。指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。  [荷兰region不支持QUIC。](tag:dt)
	QuicListenerId *string `json:"quic_listener_id,omitempty"`

	// QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级; 开启HTTPS监听器升级QUIC监听器能力  [荷兰region不支持QUIC。](tag:dt)
	EnableQuicUpgrade *bool `json:"enable_quic_upgrade,omitempty"`
}

当前监听器关联的QUIC监听器配置信息,仅protocol为HTTPS时有效。 对于TCP/UDP/HTTP/QUIC监听器,若该字段非空则报错。 > 客户端向服务端发送正常的HTTP协议请求并携带了支持QUIC协议的信息。 如果服务端监听器开启了升级QUIC,那么就会在响应头中加入服务端支持的QUIC端口和版本信息。 客户端再次请求时会同时发送TCP(HTTPS)和UDP(QUIC)请求,若QUIC请求成功,则后续继续使用QUIC交互。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt)

func (UpdateListenerQuicConfigOption) String added in v0.0.97

type UpdateListenerRequest

type UpdateListenerRequest struct {

	// 监听器ID。
	ListenerId string `json:"listener_id"`

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

Request Object

func (UpdateListenerRequest) String

func (o UpdateListenerRequest) String() string

type UpdateListenerRequestBody

type UpdateListenerRequestBody struct {
	Listener *UpdateListenerOption `json:"listener"`
}

This is a auto create Body Object

func (UpdateListenerRequestBody) String

func (o UpdateListenerRequestBody) String() string

type UpdateListenerResponse

type UpdateListenerResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Listener       *Listener `json:"listener,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (UpdateListenerResponse) String

func (o UpdateListenerResponse) String() string

type UpdateLoadBalancerOption

type UpdateLoadBalancerOption struct {

	// 负载均衡器的名称。
	Name *string `json:"name,omitempty"`

	// 负载均衡器的管理状态。只能设置为true。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 负载均衡器的描述。
	Description *string `json:"description,omitempty"`

	// 双栈类型负载均衡器所在子网的IPv6网络ID。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的id得到。  通过更新ipv6_vip_virsubnet_id可以更新负载均衡器所在IPv6子网,且负载均衡器的内网IPv6地址将发生变化。  使用说明: - ipv6_vip_virsubnet_id 对应的子网必须属于当前负载均衡器所在VPC,且子网需开启支持IPv6。 - 只有guaranteed是true的负载均衡器才支持更新ipv6_vip_virsubnet_id。 - *传入为null表示解绑IPv6子网。* - 更新IPv6子网不会导致IPv4子网发生变化。  [不支持IPv6,请勿使用。](tag:dt,dt_test)
	Ipv6VipVirsubnetId *string `json:"ipv6_vip_virsubnet_id,omitempty"`

	// 负载均衡器所在的IPv4子网ID。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。  通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。  使用说明: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv子网不会导致IPv4子网发生变化。
	VipSubnetCidrId *string `json:"vip_subnet_cidr_id,omitempty"`

	// 负载均衡器的IPv4虚拟IP。该地址必须包含在所在子网的IPv4网段内,且未被占用。  注:仅当guaranteed是true的场合,才支持更新。
	VipAddress *string `json:"vip_address,omitempty"`

	// 四层Flavor ID。  [使用说明: - 仅当guaranteed是true的场合,才支持更新。 - 不允许非null变成null,null变成非null,即不配置七层规格和配置七层规格之间不允许切换; - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt)  [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt)  [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:fcs)
	L4FlavorId *string `json:"l4_flavor_id,omitempty"`

	// 七层Flavor ID。  [使用说明: - 仅当guaranteed是true的场合,才支持更新。 - 不允许非null变成null,null变成非null,即不配置七层规格和配置七层规格之间不允许切换; - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt)  [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt)   [所有LB实例共享带宽,该字段无效,请勿使用。](tag:fcs)
	L7FlavorId *string `json:"l7_flavor_id,omitempty"`

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

	// 是否启用跨VPC后端转发。  开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加 [其他VPC、](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) 其他公有云、云下数据中心的服务器。  [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  取值: - true:开启。 - false:不开启。  使用说明: - 开启不能关闭。  [荷兰region不支持该字段,请勿使用。](tag:dt)
	IpTargetEnable *bool `json:"ip_target_enable,omitempty"`

	// 下联面子网的网络ID列表。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets  响应参数中的neutron_network_id得到。  已绑定的下联面子网也在传参elb_virsubnet_ids列表中,则绑定关系保留。  已绑定的下联面子网若不在传参elb_virsubnet_ids列表中, 则将移除LB与该下联面子网的关联关系。但不允许移除已被ELB使用的子网,否则将报错,不做任何修改。  在传参elb_virsubnet_ids列表中但不在已绑定的下联面子网列表中,则将新增LB与下联面的绑定关系。  使用说明: - 所有ID同属于该LB所在的VPC。 - 不支持边缘云子网。
	ElbVirsubnetIds *[]string `json:"elb_virsubnet_ids,omitempty"`

	// 是否开启删除保护。  取值:false不开启,true开启。  > 退场时需要先关闭所有资源的删除保护开关。  [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	DeletionProtectionEnable *bool `json:"deletion_protection_enable,omitempty"`

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

	Autoscaling *UpdateLoadbalancerAutoscalingOption `json:"autoscaling,omitempty"`

	// WAF故障时的流量处理策略。discard:丢弃,forward: 转发到后端(默认)  使用说明:只有绑定了waf的LB实例,该字段才会生效。  [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,fcs,ctc)
	WafFailureAction *UpdateLoadBalancerOptionWafFailureAction `json:"waf_failure_action,omitempty"`
}

更新负载均衡器参数。

func (UpdateLoadBalancerOption) String

func (o UpdateLoadBalancerOption) String() string

type UpdateLoadBalancerOptionWafFailureAction added in v0.0.106

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

func (UpdateLoadBalancerOptionWafFailureAction) MarshalJSON added in v0.0.106

func (*UpdateLoadBalancerOptionWafFailureAction) UnmarshalJSON added in v0.0.106

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

func (UpdateLoadBalancerOptionWafFailureAction) Value added in v0.0.106

type UpdateLoadBalancerOptionWafFailureActionEnum added in v0.0.106

type UpdateLoadBalancerOptionWafFailureActionEnum struct {
	DISCARD UpdateLoadBalancerOptionWafFailureAction
	FORWARD UpdateLoadBalancerOptionWafFailureAction
}

func GetUpdateLoadBalancerOptionWafFailureActionEnum added in v0.0.106

func GetUpdateLoadBalancerOptionWafFailureActionEnum() UpdateLoadBalancerOptionWafFailureActionEnum

type UpdateLoadBalancerRequest

type UpdateLoadBalancerRequest struct {

	// 负载均衡器ID。
	LoadbalancerId string `json:"loadbalancer_id"`

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

Request Object

func (UpdateLoadBalancerRequest) String

func (o UpdateLoadBalancerRequest) String() string

type UpdateLoadBalancerRequestBody

type UpdateLoadBalancerRequestBody struct {
	Loadbalancer *UpdateLoadBalancerOption `json:"loadbalancer"`
}

This is a auto create Body Object

func (UpdateLoadBalancerRequestBody) String

type UpdateLoadBalancerResponse

type UpdateLoadBalancerResponse struct {
	Loadbalancer *LoadBalancer `json:"loadbalancer,omitempty"`

	// 负载均衡器的id(包周期场景返回该字段)
	LoadbalancerId *string `json:"loadbalancer_id,omitempty"`

	// 订单号(包周期规格变更场景返回该字段)
	OrderId *string `json:"order_id,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateLoadBalancerResponse) String

type UpdateLoadbalancerAutoscalingOption added in v0.0.70

type UpdateLoadbalancerAutoscalingOption struct {

	// 当前负载均衡器是否开启弹性扩缩容。  取值: - true:开启。 - false:不开启。
	Enable bool `json:"enable"`

	// 弹性扩缩容的最小七层规格ID(规格类型L7_elastic),有七层监听器时,该字段不能为空。
	MinL7FlavorId *string `json:"min_l7_flavor_id,omitempty"`
}

弹性扩缩容配置信息。负载均衡器配置并开启弹性扩缩容后,可根据负载情况自动调整负载均衡器的规格。 使用说明: - 仅当租户白名单放开后该字段才有效 - 开启弹性扩缩容后,l4_flavor_id和l7_flavor_id表示该LB实例弹性规格的上限。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,fcs)

func (UpdateLoadbalancerAutoscalingOption) String added in v0.0.70

type UpdateLogtankOption added in v0.0.80

type UpdateLogtankOption struct {

	// 日志组别id,其他(非ELB)服务提供
	LogGroupId *string `json:"log_group_id,omitempty"`

	// 日志订阅主题id,其他(非ELB)服务提供
	LogTopicId *string `json:"log_topic_id,omitempty"`
}

更新云日志请求参数。

func (UpdateLogtankOption) String added in v0.0.80

func (o UpdateLogtankOption) String() string

type UpdateLogtankRequest added in v0.0.80

type UpdateLogtankRequest struct {

	// 云日志ID。
	LogtankId string `json:"logtank_id"`

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

Request Object

func (UpdateLogtankRequest) String added in v0.0.80

func (o UpdateLogtankRequest) String() string

type UpdateLogtankRequestBody added in v0.0.80

type UpdateLogtankRequestBody struct {
	Logtank *UpdateLogtankOption `json:"logtank"`
}

更新云日志请求体

func (UpdateLogtankRequestBody) String added in v0.0.80

func (o UpdateLogtankRequestBody) String() string

type UpdateLogtankResponse added in v0.0.80

type UpdateLogtankResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Logtank        *Logtank `json:"logtank,omitempty"`
	HttpStatusCode int      `json:"-"`
}

Response Object

func (UpdateLogtankResponse) String added in v0.0.80

func (o UpdateLogtankResponse) String() string

type UpdateMemberOption

type UpdateMemberOption struct {

	// 后端云服务器的管理状态。  取值:true、false。  虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。  请勿传入该字段。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

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

	// 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。  取值:0-100,默认1。  使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。
	Weight *int32 `json:"weight,omitempty"`
}

更新后端服务器请求参数。

func (UpdateMemberOption) String

func (o UpdateMemberOption) String() string

type UpdateMemberRequest

type UpdateMemberRequest struct {

	// 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
	MemberId string `json:"member_id"`

	// 后端服务器组ID。
	PoolId string `json:"pool_id"`

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

Request Object

func (UpdateMemberRequest) String

func (o UpdateMemberRequest) String() string

type UpdateMemberRequestBody

type UpdateMemberRequestBody struct {
	Member *UpdateMemberOption `json:"member"`
}

This is a auto create Body Object

func (UpdateMemberRequestBody) String

func (o UpdateMemberRequestBody) String() string

type UpdateMemberResponse

type UpdateMemberResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Member         *Member `json:"member,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateMemberResponse) String

func (o UpdateMemberResponse) String() string

type UpdatePoolOption

type UpdatePoolOption struct {

	// 后端云服务器组的管理状态,只支持更新为true。  [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
	AdminStateUp *bool `json:"admin_state_up,omitempty"`

	// 后端云服务器组的描述信息。
	Description *string `json:"description,omitempty"`

	// 后端云服务器组的负载均衡算法。  取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。  使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。  [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt)  [荷兰region不支持QUIC。](tag:dt)
	LbAlgorithm *string `json:"lb_algorithm,omitempty"`

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

	SessionPersistence *UpdatePoolSessionPersistenceOption `json:"session_persistence,omitempty"`

	SlowStart *UpdatePoolSlowStartOption `json:"slow_start,omitempty"`

	// 是否开启删除保护。  取值:false不开启,true开启。  > 退场时需要先关闭所有资源的删除保护开关。  [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42)  [荷兰region不支持该字段,请勿使用。](tag:dt)
	MemberDeletionProtectionEnable *bool `json:"member_deletion_protection_enable,omitempty"`

	// 后端云服务器组关联的虚拟私有云的ID。  只有vpc_id为空时允许更新。
	VpcId *string `json:"vpc_id,omitempty"`

	// 后端服务器组的类型。  取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端  使用说明: - 只有type为空时允许更新,不允许从非空更新为空。
	Type *string `json:"type,omitempty"`
}

更新后端服务器组请求参数。

func (UpdatePoolOption) String

func (o UpdatePoolOption) String() string

type UpdatePoolRequest

type UpdatePoolRequest struct {

	// 后端服务器组ID。
	PoolId string `json:"pool_id"`

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

Request Object

func (UpdatePoolRequest) String

func (o UpdatePoolRequest) String() string

type UpdatePoolRequestBody

type UpdatePoolRequestBody struct {
	Pool *UpdatePoolOption `json:"pool"`
}

This is a auto create Body Object

func (UpdatePoolRequestBody) String

func (o UpdatePoolRequestBody) String() string

type UpdatePoolResponse

type UpdatePoolResponse struct {

	// 请求ID。  注:自动生成 。
	RequestId *string `json:"request_id,omitempty"`

	Pool           *Pool `json:"pool,omitempty"`
	HttpStatusCode int   `json:"-"`
}

Response Object

func (UpdatePoolResponse) String

func (o UpdatePoolResponse) String() string

type UpdatePoolSessionPersistenceOption

type UpdatePoolSessionPersistenceOption struct {

	// cookie名称。  格式:仅支持字母、数字、中划线(-)、下划线(_)和点号(.)。  使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。  [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
	CookieName *string `json:"cookie_name,omitempty"`

	// 会话保持类型。  取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。  [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool, 则type只能为HTTP_COOKIE,其他取值会话保持失效。 如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt)  [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt)
	Type *UpdatePoolSessionPersistenceOptionType `json:"type,omitempty"`

	// 会话保持的时间。当type为APP_COOKIE时不生效。  适用范围:如果pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1; 如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。  [荷兰region不支持QUIC。](tag:dt)
	PersistenceTimeout *int32 `json:"persistence_timeout,omitempty"`
}

会话持久性对象。

func (UpdatePoolSessionPersistenceOption) String

type UpdatePoolSessionPersistenceOptionType added in v0.0.70

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

func (UpdatePoolSessionPersistenceOptionType) MarshalJSON added in v0.0.70

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

func (*UpdatePoolSessionPersistenceOptionType) UnmarshalJSON added in v0.0.70

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

func (UpdatePoolSessionPersistenceOptionType) Value added in v0.0.90

type UpdatePoolSessionPersistenceOptionTypeEnum added in v0.0.70

type UpdatePoolSessionPersistenceOptionTypeEnum struct {
	SOURCE_IP   UpdatePoolSessionPersistenceOptionType
	HTTP_COOKIE UpdatePoolSessionPersistenceOptionType
	APP_COOKIE  UpdatePoolSessionPersistenceOptionType
}

func GetUpdatePoolSessionPersistenceOptionTypeEnum added in v0.0.70

func GetUpdatePoolSessionPersistenceOptionTypeEnum() UpdatePoolSessionPersistenceOptionTypeEnum

type UpdatePoolSlowStartOption

type UpdatePoolSlowStartOption struct {

	// 慢启动的开关,默认值:false; true:开启; false:关闭
	Enable *bool `json:"enable,omitempty"`

	// 慢启动的持续时间,单位:s。默认:30; 取值范围:30~1200
	Duration *int32 `json:"duration,omitempty"`
}

慢启动信息。开启慢启动后,将会在设定的时间段(duration)内对新添加到后端服务器组的后端服务器进行预热,转发到该服务器的请求数量线性增加。 当后端服务器组的协议为HTTP/HTTPS时有效,其他协议传入该字段将报错。 [荷兰region不支持该字段,请勿使用。](tag:dt)

func (UpdatePoolSlowStartOption) String

func (o UpdatePoolSlowStartOption) String() string

type UpdateRedirectUrlConfig added in v0.0.70

type UpdateRedirectUrlConfig struct {

	// 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。  取值范围: - HTTP - HTTPS - ${protocol}
	Protocol *UpdateRedirectUrlConfigProtocol `json:"protocol,omitempty"`

	// 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host}表示继承原值(即与被转发请求保持一致)。
	Host *string `json:"host,omitempty"`

	// 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。
	Port *string `json:"port,omitempty"`

	// 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。  只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头
	Path *string `json:"path,omitempty"`

	// 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下:  若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.xxx.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.xxx.com:8080/elb?type=loadbalancer&name=my_name。  只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。
	Query *string `json:"query,omitempty"`

	// 重定向后的返回码。  取值范围: - 301 - 302 - 303 - 307 - 308
	StatusCode *UpdateRedirectUrlConfigStatusCode `json:"status_code,omitempty"`
}

转发到的url配置。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_URL时生效,且为必选字段,其他action不可指定,否则报错。 格式:protocol://host:port/path?query protocol、host、port、path不允许同时不传或同时传${xxx} (${xxx}表示原值,如${host}表示被转发的请求URL的host部分)。 protocol和port传入的值不能与l7policy关联的监听器一致且host、path同时不传或同时传${xxx}。 [共享型负载均衡器下的转发策略不支持该字段,传入会报错。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)

func (UpdateRedirectUrlConfig) String added in v0.0.70

func (o UpdateRedirectUrlConfig) String() string

type UpdateRedirectUrlConfigProtocol added in v0.0.70

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

func (UpdateRedirectUrlConfigProtocol) MarshalJSON added in v0.0.70

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

func (*UpdateRedirectUrlConfigProtocol) UnmarshalJSON added in v0.0.70

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

func (UpdateRedirectUrlConfigProtocol) Value added in v0.0.90

type UpdateRedirectUrlConfigProtocolEnum added in v0.0.70

type UpdateRedirectUrlConfigProtocolEnum struct {
	HTTP  UpdateRedirectUrlConfigProtocol
	HTTPS UpdateRedirectUrlConfigProtocol
	// contains filtered or unexported fields
}

func GetUpdateRedirectUrlConfigProtocolEnum added in v0.0.70

func GetUpdateRedirectUrlConfigProtocolEnum() UpdateRedirectUrlConfigProtocolEnum

type UpdateRedirectUrlConfigStatusCode added in v0.0.70

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

func (UpdateRedirectUrlConfigStatusCode) MarshalJSON added in v0.0.70

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

func (*UpdateRedirectUrlConfigStatusCode) UnmarshalJSON added in v0.0.70

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

func (UpdateRedirectUrlConfigStatusCode) Value added in v0.0.90

type UpdateRuleCondition added in v0.0.70

type UpdateRuleCondition struct {

	// 匹配项的名称。  当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。  当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。  当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。  同一个rule内的conditions列表中所有key必须相同。
	Key *string `json:"key,omitempty"`

	// 匹配项的值。  当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、“-”、“.”或“*”, 必须以字母、数字或“*”开头,“*”只能出现在开头且必须以*.开始。  当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。  当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。  当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)  当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。  当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。   同一个rule内的conditions列表中所有value不允许重复。
	Value *string `json:"value,omitempty"`
}

func (UpdateRuleCondition) String added in v0.0.70

func (o UpdateRuleCondition) String() string

type UpdateSecurityPolicyOption added in v0.0.70

type UpdateSecurityPolicyOption struct {

	// 自定义安全策略的名称。
	Name *string `json:"name,omitempty"`

	// 自定义安全策略的描述信息。
	Description *string `json:"description,omitempty"`

	// 自定义安全策略选择的TLS协议列表。取值:TLSv1, TLSv1.1, TLSv1.2, TLSv1.3
	Protocols *[]string `json:"protocols,omitempty"`

	// 自定义安全策略的加密套件列表。支持以下加密套件:  ECDHE-RSA-AES256-GCM-SHA384,ECDHE-RSA-AES128-GCM-SHA256, ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-ECDSA-AES128-GCM-SHA256, AES128-GCM-SHA256,AES256-GCM-SHA384,ECDHE-ECDSA-AES128-SHA256, ECDHE-RSA-AES128-SHA256,AES128-SHA256,AES256-SHA256, ECDHE-ECDSA-AES256-SHA384,ECDHE-RSA-AES256-SHA384, ECDHE-ECDSA-AES128-SHA,ECDHE-RSA-AES128-SHA,ECDHE-RSA-AES256-SHA, ECDHE-ECDSA-AES256-SHA,AES128-SHA,AES256-SHA,CAMELLIA128-SHA, DES-CBC3-SHA,CAMELLIA256-SHA,ECDHE-RSA-CHACHA20-POLY1305, ECDHE-ECDSA-CHACHA20-POLY1305,TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384,TLS_CHACHA20_POLY1305_SHA256, TLS_AES_128_CCM_SHA256,TLS_AES_128_CCM_8_SHA256  使用说明: - 协议和加密套件必须匹配,即ciphers中必须至少有一种有与协议匹配的加密套件。  > 协议与加密套件的匹配关系可参考系统安全策略
	Ciphers *[]UpdateSecurityPolicyOptionCiphers `json:"ciphers,omitempty"`
}

更新自定义安全策略的请求参数。

func (UpdateSecurityPolicyOption) String added in v0.0.70

type UpdateSecurityPolicyOptionCiphers added in v0.0.70

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

func (UpdateSecurityPolicyOptionCiphers) MarshalJSON added in v0.0.70

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

func (*UpdateSecurityPolicyOptionCiphers) UnmarshalJSON added in v0.0.70

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

func (UpdateSecurityPolicyOptionCiphers) Value added in v0.0.90

type UpdateSecurityPolicyOptionCiphersEnum added in v0.0.70

type UpdateSecurityPolicyOptionCiphersEnum struct {
	ECDHE_RSA_AES256_GCM_SHA384   UpdateSecurityPolicyOptionCiphers
	ECDHE_RSA_AES128_GCM_SHA256   UpdateSecurityPolicyOptionCiphers
	ECDHE_ECDSA_AES256_GCM_SHA384 UpdateSecurityPolicyOptionCiphers
	ECDHE_ECDSA_AES128_GCM_SHA256 UpdateSecurityPolicyOptionCiphers
	AES128_GCM_SHA256             UpdateSecurityPolicyOptionCiphers
	AES256_GCM_SHA384             UpdateSecurityPolicyOptionCiphers
	ECDHE_ECDSA_AES128_SHA256     UpdateSecurityPolicyOptionCiphers
	ECDHE_RSA_AES128_SHA256       UpdateSecurityPolicyOptionCiphers
	AES128_SHA256                 UpdateSecurityPolicyOptionCiphers
	AES256_SHA256                 UpdateSecurityPolicyOptionCiphers
	ECDHE_ECDSA_AES256_SHA384     UpdateSecurityPolicyOptionCiphers
	ECDHE_RSA_AES256_SHA384       UpdateSecurityPolicyOptionCiphers
	ECDHE_ECDSA_AES128_SHA        UpdateSecurityPolicyOptionCiphers
	ECDHE_RSA_AES128_SHA          UpdateSecurityPolicyOptionCiphers
	ECDHE_RSA_AES256_SHA          UpdateSecurityPolicyOptionCiphers
	ECDHE_ECDSA_AES256_SHA        UpdateSecurityPolicyOptionCiphers
	AES128_SHA                    UpdateSecurityPolicyOptionCiphers
	AES256_SHA                    UpdateSecurityPolicyOptionCiphers
	CAMELLIA128_SHA               UpdateSecurityPolicyOptionCiphers
	DES_CBC3_SHA                  UpdateSecurityPolicyOptionCiphers
	CAMELLIA256_SHA               UpdateSecurityPolicyOptionCiphers
	ECDHE_RSA_CHACHA20_POLY1305   UpdateSecurityPolicyOptionCiphers
	ECDHE_ECDSA_CHACHA20_POLY1305 UpdateSecurityPolicyOptionCiphers
	TLS_AES_128_GCM_SHA256        UpdateSecurityPolicyOptionCiphers
	TLS_AES_256_GCM_SHA384        UpdateSecurityPolicyOptionCiphers
	TLS_CHACHA20_POLY1305_SHA256  UpdateSecurityPolicyOptionCiphers
	TLS_AES_128_CCM_SHA256        UpdateSecurityPolicyOptionCiphers
	TLS_AES_128_CCM_8_SHA256      UpdateSecurityPolicyOptionCiphers
}

func GetUpdateSecurityPolicyOptionCiphersEnum added in v0.0.70

func GetUpdateSecurityPolicyOptionCiphersEnum() UpdateSecurityPolicyOptionCiphersEnum

type UpdateSecurityPolicyRequest added in v0.0.70

type UpdateSecurityPolicyRequest struct {

	// 自定义安全策略的ID。
	SecurityPolicyId string `json:"security_policy_id"`

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

Request Object

func (UpdateSecurityPolicyRequest) String added in v0.0.70

type UpdateSecurityPolicyRequestBody added in v0.0.70

type UpdateSecurityPolicyRequestBody struct {
	SecurityPolicy *UpdateSecurityPolicyOption `json:"security_policy"`
}

This is a auto create Body Object

func (UpdateSecurityPolicyRequestBody) String added in v0.0.70

type UpdateSecurityPolicyResponse added in v0.0.70

type UpdateSecurityPolicyResponse struct {
	SecurityPolicy *SecurityPolicy `json:"security_policy,omitempty"`

	// 请求ID。  注:自动生成 。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateSecurityPolicyResponse) String added in v0.0.70

Source Files

Jump to

Keyboard shortcuts

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