model

package
v0.0.28-beta.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateResp

type CertificateResp struct {
	// SSL证书id
	Id string `json:"id"`
	// SSL证书所在的项目ID
	TenantId string `json:"tenant_id"`
	// SSL证书的管理状态;暂不支持
	AdminStateUp bool `json:"admin_state_up"`
	// SSL证书的名称。
	Name string `json:"name"`
	// SSL证书的描述。
	Description string `json:"description"`
	// SSL证书的类型。分为服务器证书(server)和CA证书(client)。
	Type CertificateRespType `json:"type"`
	// 服务器证书所签域名。该字段仅type为server时有效。
	Domain string `json:"domain"`
	// 服务器证书的私钥。仅type为server时有效。type为server时必选。
	PrivateKey string `json:"private_key"`
	// 当type为server时,表示服务器证书的公钥;当type为client时,表示用于认证客户端证书的CA证书。
	Certificate string `json:"certificate"`
	// SSL证书的过期时间。 UTC时间,格式为:yyyy-MM-dd HH:mm:ss ,如2020-05-28 08:30:09
	ExpireTime string `json:"expire_time"`
	// SSL证书的创建时间。 UTC时间,格式为:yyyy-MM-dd HH:mm:ss ,如2020-05-28 08:30:09
	CreateTime string `json:"create_time"`
	// SSL证书的更新时间。 UTC时间,格式为:yyyy-MM-dd HH:mm:ss ,如2020-05-28 08:30:09
	UpdateTime string `json:"update_time"`
}

证书接口增删改查响应体

func (CertificateResp) String

func (o CertificateResp) String() string

type CertificateRespType

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

func (CertificateRespType) MarshalJSON

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

func (*CertificateRespType) UnmarshalJSON

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

type CertificateRespTypeEnum

type CertificateRespTypeEnum struct {
	SERVER CertificateRespType
	CLIENT CertificateRespType
}

func GetCertificateRespTypeEnum

func GetCertificateRespTypeEnum() CertificateRespTypeEnum

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 {
	// 服务端公有密钥证书或者用于认证客户端证书的CA证书,由type字段区分。 格式:证书为PEM格式。
	Certificate string `json:"certificate"`
	// 服务端的私有密钥。 格式:私钥为PEM格式。 该字段仅type为server时有效且为必选。 该字段在type为client时无效。
	PrivateKey *string `json:"private_key,omitempty"`
	// SSL证书的描述信息。支持的最大字符长度:255
	Description *string `json:"description,omitempty"`
	// 服务端证书所签的域名。默认值:null;支持的最大字符长度:100 取值范围: 普通域名由若干字符串组成,总长度为0-100,字符串间以\".\"分割,单个字符串长度不超过63个字符,只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。 泛域名在普通域名的基础上仅允许首字母为\"*\"。 该字段仅type为server时有效。
	Domain *string `json:"domain,omitempty"`
	// SSL证书的名称。支持的最大字符长度:255
	Name *string `json:"name,omitempty"`
	// SSL证书的管理状态; 取值范围: true/false。 该字段为预留字段,暂未启用。只支持设定为true。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// SSL证书的类型。默认值:server; 取值范围: server:服务端证书; client:客户端证书;
	Type *string `json:"type,omitempty"`
	// 企业项目ID。创建负载均衡器时,给负载均衡器绑定企业项目ID。取值范围:带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。默认值:\"0\"
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

This is a auto create Body Object

func (CreateCertificateRequestBody) String

type CreateCertificateResponse

type CreateCertificateResponse struct {
	// SSL证书id
	Id *string `json:"id,omitempty"`
	// SSL证书所在的项目ID
	TenantId *string `json:"tenant_id,omitempty"`
	// SSL证书的管理状态;暂不支持
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// SSL证书的名称。
	Name *string `json:"name,omitempty"`
	// SSL证书的描述。
	Description *string `json:"description,omitempty"`
	// SSL证书的类型。分为服务器证书(server)和CA证书(client)。
	Type *CreateCertificateResponseType `json:"type,omitempty"`
	// 服务器证书所签域名。该字段仅type为server时有效。
	Domain *string `json:"domain,omitempty"`
	// 服务器证书的私钥。仅type为server时有效。type为server时必选。
	PrivateKey *string `json:"private_key,omitempty"`
	// 当type为server时,表示服务器证书的公钥;当type为client时,表示用于认证客户端证书的CA证书。
	Certificate *string `json:"certificate,omitempty"`
	// SSL证书的过期时间。 UTC时间,格式为:yyyy-MM-dd HH:mm:ss ,如2020-05-28 08:30:09
	ExpireTime *string `json:"expire_time,omitempty"`
	// SSL证书的创建时间。 UTC时间,格式为:yyyy-MM-dd HH:mm:ss ,如2020-05-28 08:30:09
	CreateTime *string `json:"create_time,omitempty"`
	// SSL证书的更新时间。 UTC时间,格式为:yyyy-MM-dd HH:mm:ss ,如2020-05-28 08:30:09
	UpdateTime     *string `json:"update_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateCertificateResponse) String

func (o CreateCertificateResponse) String() string

type CreateCertificateResponseType

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

func (CreateCertificateResponseType) MarshalJSON

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

func (*CreateCertificateResponseType) UnmarshalJSON

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

type CreateCertificateResponseTypeEnum

type CreateCertificateResponseTypeEnum struct {
	SERVER CreateCertificateResponseType
	CLIENT CreateCertificateResponseType
}

func GetCreateCertificateResponseTypeEnum

func GetCreateCertificateResponseTypeEnum() CreateCertificateResponseTypeEnum

type CreateHealthmonitorReq

type CreateHealthmonitorReq struct {
	// 健康检查所在的项目ID。
	TenantId *string `json:"tenant_id,omitempty"`
	// 健康检查名称。
	Name *string `json:"name,omitempty"`
	// 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// 健康检查端口号。默认为空,表示使用后端云服务器组的端口。
	MonitorPort *int32 `json:"monitor_port,omitempty"`
	// 健康检查的超时时间。建议该值小于delay的值。
	Timeout int32 `json:"timeout"`
	// 健康检查类型
	Type CreateHealthmonitorReqType `json:"type"`
	// 期望HTTP响应状态码,指定下列值:单值,例如200;列表,例如200,202;区间,例如200-204。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
	ExpectedCodes *string `json:"expected_codes,omitempty"`
	// 功能说明:健康检查测试member健康状态时,发送的http请求的域名。仅当type为HTTP时生效。使用说明:默认为空,表示使用负载均衡器的vip作为http请求的目的地址。以数字或字母开头,只能包含数字、字母、’-’、’.’。
	DomainName *string `json:"domain_name,omitempty"`
	// HTTP方法,可以为GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
	UrlPath *string `json:"url_path,omitempty"`
	// HTTP方法,可以为GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
	HttpMethod *string `json:"http_method,omitempty"`
	// 健康检查间隔
	Delay int32 `json:"delay"`
	// 最大重试次数
	MaxRetries int32 `json:"max_retries"`
	// 健康检查关联的后端云服务器组ID
	PoolId string `json:"pool_id"`
}

创建健康检查请求

func (CreateHealthmonitorReq) String

func (o CreateHealthmonitorReq) String() string

type CreateHealthmonitorReqType

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

func (CreateHealthmonitorReqType) MarshalJSON

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

func (*CreateHealthmonitorReqType) UnmarshalJSON

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

type CreateHealthmonitorReqTypeEnum

type CreateHealthmonitorReqTypeEnum struct {
	TCP         CreateHealthmonitorReqType
	UDP_CONNECT CreateHealthmonitorReqType
	HTTP        CreateHealthmonitorReqType
}

func GetCreateHealthmonitorReqTypeEnum

func GetCreateHealthmonitorReqTypeEnum() CreateHealthmonitorReqTypeEnum

type CreateHealthmonitorRequest

type CreateHealthmonitorRequest struct {
	Body *CreateHealthmonitorRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateHealthmonitorRequest) String

type CreateHealthmonitorRequestBody

type CreateHealthmonitorRequestBody struct {
	Healthmonitor *CreateHealthmonitorReq `json:"healthmonitor"`
}

This is a auto create Body Object

func (CreateHealthmonitorRequestBody) String

type CreateHealthmonitorResponse

type CreateHealthmonitorResponse struct {
	Healthmonitor  *HealthmonitorResp `json:"healthmonitor,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (CreateHealthmonitorResponse) String

type CreateL7policyReq

type CreateL7policyReq struct {
	// 转发策略名称
	Name *string `json:"name,omitempty"`
	// 转发策略的转发动作;取值:REDIRECT_TO_POOL:转发到后端云服务器组;REDIRECT_TO_LISTENER:重定向到监听器
	Action CreateL7policyReqAction `json:"action"`
	// 转发策略所在的项目ID。
	TenantId *string `json:"tenant_id,omitempty"`
	// 转发策略的管理状态;该字段为预留字段,暂未启用。默认为true。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// 转发策略额描述信息
	Description *string `json:"description,omitempty"`
	// 转发策略对应的监听器ID。当action为REDIRECT_TO_POOL时,只支持创建在PROTOCOL为HTTP或TERMINATED_HTTPS的listener上。 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。
	ListenerId string `json:"listener_id"`
	// 转发到pool的ID。转发到pool的ID。当action为REDIRECT_TO_POOL时生效。当action为REDIRECT_TO_POOL时必选
	RedirectPoolId *string `json:"redirect_pool_id,omitempty"`
	// 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时生效。当action为REDIRECT_TO_LISTENER时必选
	RedirectListenerId *string `json:"redirect_listener_id,omitempty"`
	// 转发到的url。该字段未启用。
	RedirectUrl *string `json:"redirect_url,omitempty"`
	// 转发策略的优先级,从1递增,最高100。该字段为预留字段,暂未启用。
	Position *int32 `json:"position,omitempty"`
	// 指定L7rule的参数,可以在创建L7policy的同时创建L7rule
	Rules *[]CreateL7ruleReqInPolicy `json:"rules,omitempty"`
}

转发策略对象

func (CreateL7policyReq) String

func (o CreateL7policyReq) String() string

type CreateL7policyReqAction

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

func (CreateL7policyReqAction) MarshalJSON

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

func (*CreateL7policyReqAction) UnmarshalJSON

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

type CreateL7policyReqActionEnum

type CreateL7policyReqActionEnum struct {
	REDIRECT_TO_POOL     CreateL7policyReqAction
	REDIRECT_TO_LISTENER CreateL7policyReqAction
}

func GetCreateL7policyReqActionEnum

func GetCreateL7policyReqActionEnum() CreateL7policyReqActionEnum

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 *CreateL7policyReq `json:"l7policy"`
}

This is a auto create Body Object

func (CreateL7policyRequestBody) String

func (o CreateL7policyRequestBody) String() string

type CreateL7policyResponse

type CreateL7policyResponse struct {
	L7policy       *L7policyResp `json:"l7policy,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (CreateL7policyResponse) String

func (o CreateL7policyResponse) String() string

type CreateL7ruleReq

type CreateL7ruleReq struct {
	// 转发规则所在的项目ID。
	TenantId *string `json:"tenant_id,omitempty"`
	// 转发规则的管理状态;该字段为预留字段,暂未启用。默认为true。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// 转发规则的匹配内容
	Type CreateL7ruleReqType `json:"type"`
	// 转发规则的匹配方式。type为HOST_NAME时可以为EQUAL_TO。type为PATH时可以为REGEX, STARTS_WITH,EQUAL_TO。
	CompareType string `json:"compare_type"`
	// 匹配内容的键值。目前匹配内容为HOST_NAME和PATH时,该字段不生效。该字段能更新但不会生效。
	Key *string `json:"key,omitempty"`
	// 匹配内容的值。其值不能包含空格。使用说明:当type为HOST_NAME时,取值范围:String(100),字符串只能包含英文字母、数字、“-”或“.”,且必须以字母或数字开头。当type为PATH时,取值范围:String(128)。当转发规则的compare_type为STARTS_WITH,EQUAL_TO时,字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:| /()[]{},且必须以\"/\"开头。
	Value string `json:"value"`
	// 是否反向匹配; 取值范围:true/false。默认值:false; 该字段为预留字段,暂未启用。
	Invert *bool `json:"invert,omitempty"`
}

创建转发规则的请求体

func (CreateL7ruleReq) String

func (o CreateL7ruleReq) String() string

type CreateL7ruleReqInPolicy

type CreateL7ruleReqInPolicy struct {
	// 转发规则的管理状态;该字段为预留字段,暂未启用。默认为true。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// 转发规则的匹配内容
	Type CreateL7ruleReqInPolicyType `json:"type"`
	// 转发规则的匹配方式。type为HOST_NAME时可以为EQUAL_TO。type为PATH时可以为REGEX, STARTS_WITH,EQUAL_TO。
	CompareType string `json:"compare_type"`
	// 匹配内容的键值。目前匹配内容为HOST_NAME和PATH时,该字段不生效。该字段能更新但不会生效。
	Key *string `json:"key,omitempty"`
	// 匹配内容的值。其值不能包含空格。使用说明:当type为HOST_NAME时,取值范围:String(100),字符串只能包含英文字母、数字、“-”或“.”,且必须以字母或数字开头。当type为PATH时,取值范围:String(128)。当转发规则的compare_type为STARTS_WITH,EQUAL_TO时,字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:| /()[]{},且必须以\"/\"开头。
	Value string `json:"value"`
	// 是否反向匹配;取值范围:true/false。默认值:false;该字段为预留字段,暂未启用。
	Invert *bool `json:"invert,omitempty"`
}

创建转发规则的请求体

func (CreateL7ruleReqInPolicy) String

func (o CreateL7ruleReqInPolicy) String() string

type CreateL7ruleReqInPolicyType

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

func (CreateL7ruleReqInPolicyType) MarshalJSON

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

func (*CreateL7ruleReqInPolicyType) UnmarshalJSON

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

type CreateL7ruleReqInPolicyTypeEnum

type CreateL7ruleReqInPolicyTypeEnum struct {
	HOST_NAME CreateL7ruleReqInPolicyType
	PATH      CreateL7ruleReqInPolicyType
}

func GetCreateL7ruleReqInPolicyTypeEnum

func GetCreateL7ruleReqInPolicyTypeEnum() CreateL7ruleReqInPolicyTypeEnum

type CreateL7ruleReqType

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

func (CreateL7ruleReqType) MarshalJSON

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

func (*CreateL7ruleReqType) UnmarshalJSON

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

type CreateL7ruleReqTypeEnum

type CreateL7ruleReqTypeEnum struct {
	HOST_NAME CreateL7ruleReqType
	PATH      CreateL7ruleReqType
}

func GetCreateL7ruleReqTypeEnum

func GetCreateL7ruleReqTypeEnum() CreateL7ruleReqTypeEnum

type CreateL7ruleRequest

type CreateL7ruleRequest struct {
	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 *CreateL7ruleReq `json:"rule"`
}

This is a auto create Body Object

func (CreateL7ruleRequestBody) String

func (o CreateL7ruleRequestBody) String() string

type CreateL7ruleResponse

type CreateL7ruleResponse struct {
	Rule           *L7ruleResp `json:"rule,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (CreateL7ruleResponse) String

func (o CreateL7ruleResponse) String() string

type CreateListenerReq

type CreateListenerReq struct {
	// 监听器关联的负载均衡器 ID
	LoadbalancerId string `json:"loadbalancer_id"`
	// 监听器的监听协议
	Protocol CreateListenerReqProtocol `json:"protocol"`
	// 监听器的监听端口。如果监听协议为UDP,端口号不支持4789。
	ProtocolPort int32 `json:"protocol_port"`
	// 监听器所在的项目ID。
	TenantId *string `json:"tenant_id,omitempty"`
	// 监听器名称。
	Name *string `json:"name,omitempty"`
	// 监听器的描述信息
	Description *string `json:"description,omitempty"`
	// 监听器器的管理状态。只支持设定为true,该字段的值无实际意义。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// 监听器的最大连接数。该字段为预留字段,暂未启用。默认为-1。
	ConnectionLimit *int32 `json:"connection_limit,omitempty"`
	// HTTP2功能的开启状态。该字段只有当监听器的协议是TERMINATED_HTTPS时生效。
	Http2Enable *bool `json:"http2_enable,omitempty"`
	// 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。当该字段为null时,表示监听器无默认的后端云服务器组。
	DefaultPoolId *string `json:"default_pool_id,omitempty"`
	// 监听器使用的服务器证书ID。当protocol参数为TERMINATED_HTTPS时,为必选字段
	DefaultTlsContainerRef *string `json:"default_tls_container_ref,omitempty"`
	// 监听器使用的CA证书ID。
	ClientCaTlsContainerRef *string `json:"client_ca_tls_container_ref,omitempty"`
	// 监听器使用的SNI证书(带域名的服务器证书)ID的列表。 该字段不为空列表时,SNI特性开启。该字段为空列表时,SNI特性关闭。
	SniContainerRefs *[]string     `json:"sni_container_refs,omitempty"`
	InsertHeaders    *InsertHeader `json:"insert_headers,omitempty"`
	// 监听器使用的安全策略,仅对TERMINATED_HTTPS协议类型的监听器有效,且默认值为tls-1-0。  取值包括:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict多种安全策略。
	TlsCiphersPolicy *CreateListenerReqTlsCiphersPolicy `json:"tls_ciphers_policy,omitempty"`
}

创建监听器的结构体

func (CreateListenerReq) String

func (o CreateListenerReq) String() string

type CreateListenerReqProtocol

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

func (CreateListenerReqProtocol) MarshalJSON

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

func (*CreateListenerReqProtocol) UnmarshalJSON

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

type CreateListenerReqProtocolEnum

type CreateListenerReqProtocolEnum struct {
	UDP              CreateListenerReqProtocol
	TCP              CreateListenerReqProtocol
	HTTP             CreateListenerReqProtocol
	TERMINATED_HTTPS CreateListenerReqProtocol
}

func GetCreateListenerReqProtocolEnum

func GetCreateListenerReqProtocolEnum() CreateListenerReqProtocolEnum

type CreateListenerReqTlsCiphersPolicy

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

func (CreateListenerReqTlsCiphersPolicy) MarshalJSON

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

func (*CreateListenerReqTlsCiphersPolicy) UnmarshalJSON

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

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 *CreateListenerReq `json:"listener"`
}

This is a auto create Body Object

func (CreateListenerRequestBody) String

func (o CreateListenerRequestBody) String() string

type CreateListenerResponse

type CreateListenerResponse struct {
	Listener       *ListenerResp `json:"listener,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (CreateListenerResponse) String

func (o CreateListenerResponse) String() string

type CreateLoadbalancerReq

type CreateLoadbalancerReq struct {
	// 负载均衡器所在的项目ID。
	TenantId *string `json:"tenant_id,omitempty"`
	// 负载均衡器名称。
	Name *string `json:"name,omitempty"`
	// 负载均衡器的描述信息
	Description *string `json:"description,omitempty"`
	// 负载均衡器所在的子网ID
	VipSubnetId string `json:"vip_subnet_id"`
	// 负载均衡器的虚拟IP。
	VipAddress *string `json:"vip_address,omitempty"`
	// 负载均衡器的供应者名称。只支持vlb
	Provider *CreateLoadbalancerReqProvider `json:"provider,omitempty"`
	// 负载均衡器的管理状态。只支持设定为true,该字段的值无实际意义。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// 企业项目ID。创建负载均衡器时,给负载均衡器绑定企业项目ID。取值范围:最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。“0”表示默认企业项目。 关于企业项目ID的获取及企业项目特性的详细信息,请参见《企业管理用户指南》。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

创建负载均衡器的请求体

func (CreateLoadbalancerReq) String

func (o CreateLoadbalancerReq) String() string

type CreateLoadbalancerReqProvider

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

func (CreateLoadbalancerReqProvider) MarshalJSON

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

func (*CreateLoadbalancerReqProvider) UnmarshalJSON

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

type CreateLoadbalancerReqProviderEnum

type CreateLoadbalancerReqProviderEnum struct {
	VLB CreateLoadbalancerReqProvider
}

func GetCreateLoadbalancerReqProviderEnum

func GetCreateLoadbalancerReqProviderEnum() CreateLoadbalancerReqProviderEnum

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 *CreateLoadbalancerReq `json:"loadbalancer"`
}

This is a auto create Body Object

func (CreateLoadbalancerRequestBody) String

type CreateLoadbalancerResponse

type CreateLoadbalancerResponse struct {
	Loadbalancer   *LoadbalancerResp `json:"loadbalancer,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (CreateLoadbalancerResponse) String

type CreateMemberReq

type CreateMemberReq struct {
	// 后端云服务器所在的项目ID。
	TenantId *string `json:"tenant_id,omitempty"`
	// 后端云服务器名称。
	Name *string `json:"name,omitempty"`
	// 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// 后端端口和协议号
	ProtocolPort int32 `json:"protocol_port"`
	// 后端云服务器所在的子网ID。该子网和后端云服务器关联的负载均衡器的子网必须在同一VPC下。只支持指定IPv4的子网ID。暂不支持IPv6。
	SubnetId string `json:"subnet_id"`
	// 后端云服务器的对应的IP地址,这个IP必须在subnet_id字段的子网网段中。例如:192.168.3.11。只能指定为主网卡的IP。
	Address string `json:"address"`
	// 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。权重为0的后端不再接受新的请求。当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。
	Weight *int32 `json:"weight,omitempty"`
}

创建后端云服务器的请求体

func (CreateMemberReq) String

func (o CreateMemberReq) String() string

type CreateMemberRequest

type CreateMemberRequest struct {
	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 *CreateMemberReq `json:"member"`
}

This is a auto create Body Object

func (CreateMemberRequestBody) String

func (o CreateMemberRequestBody) String() string

type CreateMemberResponse

type CreateMemberResponse struct {
	Member         *MemberResp `json:"member,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (CreateMemberResponse) String

func (o CreateMemberResponse) String() string

type CreatePoolReq

type CreatePoolReq struct {
	// 后端云服务器组的后端协议。取值:UDP、TCP、HTTP。当指定istener_id创建后端云服务器组时,后端云服务器组的protocol和它关联的监听器的protocol有如下关系:监听器的protocol为TCP时,后端云服务器组的protocol必须为TCP。监听器的protocol为UDP时,后端云服务器组的protocol必须为UDP。监听器的protocol为HTTP或TERMINATED_HTTPS时,后端云服务器组的protocol必须为HTTP。
	Protocol CreatePoolReqProtocol `json:"protocol"`
	// 后端云服务器组的负载均衡算法,取值:ROUND_ROBIN:加权轮询算法;LEAST_CONNECTIONS:加权最少连接算法;SOURCE_IP:源IP算法;当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。
	LbAlgorithm string `json:"lb_algorithm"`
	// 后端云服务器组关联的负载均衡器ID。listener_id和loadbalancer_id中至少指定一个。
	LoadbalancerId *string `json:"loadbalancer_id,omitempty"`
	// 后端云服务器组关联的监听器的ID。listener_id和loadbalancer_id中至少指定一个。
	ListenerId *string `json:"listener_id,omitempty"`
	// 后端云服务器组所在的项目ID。
	TenantId *string `json:"tenant_id,omitempty"`
	// 后端云服务器组的名称。
	Name *string `json:"name,omitempty"`
	// 后端云服务器组的描述信息
	Description *string `json:"description,omitempty"`
	// 后端云服务器组的管理状态。只支持设定为true,该字段的值无实际意义。
	AdminStateUp       *bool               `json:"admin_state_up,omitempty"`
	SessionPersistence *SessionPersistence `json:"session_persistence,omitempty"`
}

创建后端云服务器组的请求体

func (CreatePoolReq) String

func (o CreatePoolReq) String() string

type CreatePoolReqProtocol

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

func (CreatePoolReqProtocol) MarshalJSON

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

func (*CreatePoolReqProtocol) UnmarshalJSON

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

type CreatePoolReqProtocolEnum

type CreatePoolReqProtocolEnum struct {
	UDP  CreatePoolReqProtocol
	TCP  CreatePoolReqProtocol
	HTTP CreatePoolReqProtocol
}

func GetCreatePoolReqProtocolEnum

func GetCreatePoolReqProtocolEnum() CreatePoolReqProtocolEnum

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 *CreatePoolReq `json:"pool"`
}

This is a auto create Body Object

func (CreatePoolRequestBody) String

func (o CreatePoolRequestBody) String() string

type CreatePoolResponse

type CreatePoolResponse struct {
	Pool           *PoolResp `json:"pool,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (CreatePoolResponse) String

func (o CreatePoolResponse) String() string

type CreateWhitelistReq

type CreateWhitelistReq struct {
	// 白名单所在的项目ID
	TenantId *string `json:"tenant_id,omitempty"`
	// 白名单关联的监听器ID
	ListenerId string `json:"listener_id"`
	// 是否开启白名单访问控制开关。true:开启;false:关闭
	EnableWhitelist *bool `json:"enable_whitelist,omitempty"`
	// 白名单IP列表。可以是ip,例如192.168.10.123;也可以是一个网段,例如192.168.10.1/24;不同的值之间用逗号分隔
	Whitelist *string `json:"whitelist,omitempty"`
}

func (CreateWhitelistReq) String

func (o CreateWhitelistReq) String() string

type CreateWhitelistRequest

type CreateWhitelistRequest struct {
	Body *CreateWhitelistRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateWhitelistRequest) String

func (o CreateWhitelistRequest) String() string

type CreateWhitelistRequestBody

type CreateWhitelistRequestBody struct {
	Whitelist *CreateWhitelistReq `json:"whitelist"`
}

This is a auto create Body Object

func (CreateWhitelistRequestBody) String

type CreateWhitelistResponse

type CreateWhitelistResponse struct {
	Whitelist      *WhitelistResp `json:"whitelist,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (CreateWhitelistResponse) String

func (o CreateWhitelistResponse) String() string

type DeleteCertificateRequest

type DeleteCertificateRequest struct {
	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 {
	HealthmonitorId string `json:"healthmonitor_id"`
}

Request Object

func (DeleteHealthmonitorRequest) String

type DeleteHealthmonitorResponse

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

Response Object

func (DeleteHealthmonitorResponse) String

type DeleteL7policyRequest

type DeleteL7policyRequest struct {
	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 {
	L7policyId string `json:"l7policy_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 {
	Cascade    *bool  `json:"cascade,omitempty"`
	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 {
	LoadbalancerId string `json:"loadbalancer_id"`
	Cascade        *bool  `json:"cascade,omitempty"`
}

Request Object

func (DeleteLoadbalancerRequest) String

func (o DeleteLoadbalancerRequest) String() string

type DeleteLoadbalancerResponse

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

Response Object

func (DeleteLoadbalancerResponse) String

type DeleteMemberRequest

type DeleteMemberRequest struct {
	PoolId   string `json:"pool_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 {
	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 DeleteWhitelistRequest

type DeleteWhitelistRequest struct {
	WhitelistId string `json:"whitelist_id"`
}

Request Object

func (DeleteWhitelistRequest) String

func (o DeleteWhitelistRequest) String() string

type DeleteWhitelistResponse

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

Response Object

func (DeleteWhitelistResponse) String

func (o DeleteWhitelistResponse) String() string

type HealthmonitorResp

type HealthmonitorResp struct {
	// 健康检查ID
	Id string `json:"id"`
	// 健康检查所在的项目ID。
	ProjectId string `json:"project_id"`
	// 健康检查所在的项目ID。
	TenantId string `json:"tenant_id"`
	// 健康检查名称。
	Name string `json:"name"`
	// 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
	AdminStateUp bool `json:"admin_state_up"`
	// 健康检查端口号。默认为空,表示使用后端云服务器组的端口。
	MonitorPort int32 `json:"monitor_port"`
	// 健康检查的超时时间。建议该值小于delay的值。
	Timeout int32 `json:"timeout"`
	// 健康检查类型
	Type HealthmonitorRespType `json:"type"`
	// 期望HTTP响应状态码,指定下列值:单值,例如200;列表,例如200,202;区间,例如200-204。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
	ExpectedCodes string `json:"expected_codes"`
	// 功能说明:健康检查测试member健康状态时,发送的http请求的域名。仅当type为HTTP时生效。使用说明:默认为空,表示使用负载均衡器的vip作为http请求的目的地址。以数字或字母开头,只能包含数字、字母、’-’、’.’。
	DomainName string `json:"domain_name"`
	// HTTP方法,可以为GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
	UrlPath string `json:"url_path"`
	// HTTP方法,可以为GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
	HttpMethod string `json:"http_method"`
	// 健康检查间隔,单位秒
	Delay int32 `json:"delay"`
	// 最大重试次数
	MaxRetries int32 `json:"max_retries"`
	// 健康检查关联的后端云服务器组列表
	Pools []ResourceList `json:"pools"`
}

健康检查响应体

func (HealthmonitorResp) String

func (o HealthmonitorResp) String() string

type HealthmonitorRespType

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

func (HealthmonitorRespType) MarshalJSON

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

func (*HealthmonitorRespType) UnmarshalJSON

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

type HealthmonitorRespTypeEnum

type HealthmonitorRespTypeEnum struct {
	TCP         HealthmonitorRespType
	UDP_CONNECT HealthmonitorRespType
	HTTP        HealthmonitorRespType
}

func GetHealthmonitorRespTypeEnum

func GetHealthmonitorRespTypeEnum() HealthmonitorRespTypeEnum

type HealthmonitorsInStatusResp

type HealthmonitorsInStatusResp struct {
	// 健康检查ID
	Id string `json:"id"`
	// 健康检查名称
	Name string `json:"name"`
	// 健康检查类型
	Type HealthmonitorsInStatusRespType `json:"type"`
	// 健康检查的配置状态;该字段为预留字段,暂未启用。默认为ACTIVE。
	ProvisioningStatus string `json:"provisioning_status"`
}

健康检查对象,用于状态树中

func (HealthmonitorsInStatusResp) String

type HealthmonitorsInStatusRespType

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

func (HealthmonitorsInStatusRespType) MarshalJSON

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

func (*HealthmonitorsInStatusRespType) UnmarshalJSON

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

type HealthmonitorsInStatusRespTypeEnum

type HealthmonitorsInStatusRespTypeEnum struct {
	UDP_CONNECT HealthmonitorsInStatusRespType
	TCP         HealthmonitorsInStatusRespType
	HTTP        HealthmonitorsInStatusRespType
}

func GetHealthmonitorsInStatusRespTypeEnum

func GetHealthmonitorsInStatusRespTypeEnum() HealthmonitorsInStatusRespTypeEnum

type InsertHeader

type InsertHeader struct {
	// 负载均衡器弹性公网IP透传开关。
	XForwardedELBIP *bool `json:"X-Forwarded-ELB-IP,omitempty"`
	// X-Forwarded-Host设为true可以将客户请求头的第一个X-Forwarded-Host设置为请求头的Host带到后端云服务器。
	XForwardedHost *bool `json:"X-Forwarded-Host,omitempty"`
}

监听器HTTP扩展头部对象。

func (InsertHeader) String

func (o InsertHeader) String() string

type L7policiesInStatusResp

type L7policiesInStatusResp struct {
	// 转发策略ID
	Id string `json:"id"`
	// 转发策略名称
	Name string `json:"name"`
	// 转发策略关联的转发规则列表
	Rules []L7rulesInStatusResp `json:"rules"`
	// 转发策略的转发动作;取值:REDIRECT_TO_POOL:转发到后端云服务器组;REDIRECT_TO_LISTENER:重定向到监听器
	Action L7policiesInStatusRespAction `json:"action"`
	// 健康检查的配置状态;该字段为预留字段,暂未启用。默认为ACTIVE。
	ProvisioningStatus string `json:"provisioning_status"`
}

转发策略对象,用于状态树

func (L7policiesInStatusResp) String

func (o L7policiesInStatusResp) String() string

type L7policiesInStatusRespAction

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

func (L7policiesInStatusRespAction) MarshalJSON

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

func (*L7policiesInStatusRespAction) UnmarshalJSON

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

type L7policiesInStatusRespActionEnum

type L7policiesInStatusRespActionEnum struct {
	REDIRECT_TO_POOL     L7policiesInStatusRespAction
	REDIRECT_TO_LISTENER L7policiesInStatusRespAction
}

func GetL7policiesInStatusRespActionEnum

func GetL7policiesInStatusRespActionEnum() L7policiesInStatusRespActionEnum

type L7policyResp

type L7policyResp struct {
	// 转发策略ID
	Id string `json:"id"`
	// 转发策略名称
	Name string `json:"name"`
	// 转发策略关联的转发规则列表
	Rules []ResourceList `json:"rules"`
	// 转发策略的转发动作;取值:REDIRECT_TO_POOL:转发到后端云服务器组;REDIRECT_TO_LISTENER:重定向到监听器
	Action L7policyRespAction `json:"action"`
	// 健康检查的配置状态;该字段为预留字段,暂未启用。默认为ACTIVE。
	ProvisioningStatus string `json:"provisioning_status"`
	// 转发策略所在的项目ID。
	TenantId string `json:"tenant_id"`
	// 转发策略所在的项目ID。
	ProjectId string `json:"project_id"`
	// 转发策略的管理状态;该字段为预留字段,暂未启用。默认为true。
	AdminStateUp bool `json:"admin_state_up"`
	// 转发策略额描述信息
	Description string `json:"description"`
	// 转发策略对应的监听器ID
	ListenerId string `json:"listener_id"`
	// 转发到pool的ID。转发到pool的ID。当action为REDIRECT_TO_POOL时生效。
	RedirectPoolId string `json:"redirect_pool_id"`
	// 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时生效。
	RedirectListenerId string `json:"redirect_listener_id"`
	// 转发到的url。该字段未启用。
	RedirectUrl string `json:"redirect_url"`
	// 转发策略的优先级,从1递增,最高100。该字段为预留字段,暂未启用。
	Position int32 `json:"position"`
}

转发策略对象

func (L7policyResp) String

func (o L7policyResp) String() string

type L7policyRespAction

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

func (L7policyRespAction) MarshalJSON

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

func (*L7policyRespAction) UnmarshalJSON

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

type L7policyRespActionEnum

type L7policyRespActionEnum struct {
	REDIRECT_TO_POOL     L7policyRespAction
	REDIRECT_TO_LISTENER L7policyRespAction
}

func GetL7policyRespActionEnum

func GetL7policyRespActionEnum() L7policyRespActionEnum

type L7ruleResp

type L7ruleResp struct {
	// 转发规则ID
	Id string `json:"id"`
	// 转发规则的配置状态;该字段为预留字段,暂未启用。默认为ACTIVE。
	ProvisioningStatus string `json:"provisioning_status"`
	// 转发规则所在的项目ID。
	TenantId string `json:"tenant_id"`
	// 转发规则所在的项目ID。
	ProjectId string `json:"project_id"`
	// 转发规则的管理状态;该字段为预留字段,暂未启用。默认为true。
	AdminStateUp bool `json:"admin_state_up"`
	// 转发规则的匹配内容
	Type L7ruleRespType `json:"type"`
	// 转发规则的匹配方式。type为HOST_NAME时可以为EQUAL_TO。type为PATH时可以为REGEX, STARTS_WITH,EQUAL_TO。
	CompareType string `json:"compare_type"`
	// 是否反向匹配。使用说明:固定为false。该字段能更新但不会生效。
	Invert bool `json:"invert"`
	// 匹配内容的键值。目前匹配内容为HOST_NAME和PATH时,该字段不生效。该字段能更新但不会生效。
	Key string `json:"key"`
	// 匹配内容的值。其值不能包含空格。使用说明:当type为HOST_NAME时,取值范围:String(100),字符串只能包含英文字母、数字、“-”或“.”,且必须以字母或数字开头。当type为PATH时,取值范围:String(128)。当转发规则的compare_type为STARTS_WITH,EQUAL_TO时,字符串只能包含英文字母、数字、^-%#&$.*+?,=!:| /()[]{},且必须以\"/\"开头。
	Value string `json:"value"`
}

转发规则对象

func (L7ruleResp) String

func (o L7ruleResp) String() string

type L7ruleRespType

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

func (L7ruleRespType) MarshalJSON

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

func (*L7ruleRespType) UnmarshalJSON

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

type L7ruleRespTypeEnum

type L7ruleRespTypeEnum struct {
	HOST_NAME L7ruleRespType
	PATH      L7ruleRespType
}

func GetL7ruleRespTypeEnum

func GetL7ruleRespTypeEnum() L7ruleRespTypeEnum

type L7rulesInStatusResp

type L7rulesInStatusResp struct {
	// 转发规则的匹配内容。PATH:匹配请求中的路径;HOST_NAME:匹配请求中的域名
	Type L7rulesInStatusRespType `json:"type"`
	// 转发规则ID
	Id string `json:"id"`
	// 转发规则的配置状态;该字段为预留字段,暂未启用。默认为ACTIVE。
	ProvisioningStatus string `json:"provisioning_status"`
}

转发规则对象,用于状态树中

func (L7rulesInStatusResp) String

func (o L7rulesInStatusResp) String() string

type L7rulesInStatusRespType

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

func (L7rulesInStatusRespType) MarshalJSON

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

func (*L7rulesInStatusRespType) UnmarshalJSON

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

type L7rulesInStatusRespTypeEnum

type L7rulesInStatusRespTypeEnum struct {
	PATH      L7rulesInStatusRespType
	HOST_NAME L7rulesInStatusRespType
}

func GetL7rulesInStatusRespTypeEnum

func GetL7rulesInStatusRespTypeEnum() L7rulesInStatusRespTypeEnum

type ListCertificatesRequest

type ListCertificatesRequest struct {
	Limit       *int32  `json:"limit,omitempty"`
	Marker      *string `json:"marker,omitempty"`
	PageReverse *string `json:"page_reverse,omitempty"`
	Id          *string `json:"id,omitempty"`
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	Type        *string `json:"type,omitempty"`
	Domain      *string `json:"domain,omitempty"`
	PrivateKey  *string `json:"private_key,omitempty"`
	Certificate *string `json:"certificate,omitempty"`
}

Request Object

func (ListCertificatesRequest) String

func (o ListCertificatesRequest) String() string

type ListCertificatesResponse

type ListCertificatesResponse struct {
	// SSL证书列表对象
	Certificates *[]CertificateResp `json:"certificates,omitempty"`
	// 证书的个数
	InstanceNum    *int32 `json:"instance_num,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListCertificatesResponse) String

func (o ListCertificatesResponse) String() string

type ListHealthmonitorsRequest

type ListHealthmonitorsRequest struct {
	Limit         *int32  `json:"limit,omitempty"`
	Marker        *string `json:"marker,omitempty"`
	PageReverse   *bool   `json:"page_reverse,omitempty"`
	Id            *string `json:"id,omitempty"`
	Name          *string `json:"name,omitempty"`
	Delay         *int32  `json:"delay,omitempty"`
	MaxRetries    *int32  `json:"max_retries,omitempty"`
	AdminStateUp  *bool   `json:"admin_state_up,omitempty"`
	Timeout       *int32  `json:"timeout,omitempty"`
	Type          *string `json:"type,omitempty"`
	MonitorPort   *int32  `json:"monitor_port,omitempty"`
	ExpectedCodes *string `json:"expected_codes,omitempty"`
	DomainName    *string `json:"domain_name,omitempty"`
	UrlPath       *string `json:"url_path,omitempty"`
	HttpMethod    *string `json:"http_method,omitempty"`
}

Request Object

func (ListHealthmonitorsRequest) String

func (o ListHealthmonitorsRequest) String() string

type ListHealthmonitorsResponse

type ListHealthmonitorsResponse struct {
	// 健康检查对象的列表
	Healthmonitors *[]HealthmonitorResp `json:"healthmonitors,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ListHealthmonitorsResponse) String

type ListL7policiesRequest

type ListL7policiesRequest struct {
	Limit               *int32  `json:"limit,omitempty"`
	Marker              *string `json:"marker,omitempty"`
	PageReverse         *bool   `json:"page_reverse,omitempty"`
	Id                  *string `json:"id,omitempty"`
	Name                *string `json:"name,omitempty"`
	Description         *string `json:"description,omitempty"`
	AdminStateUp        *bool   `json:"admin_state_up,omitempty"`
	ListenerId          *string `json:"listener_id,omitempty"`
	Action              *string `json:"action,omitempty"`
	RedirectPoolId      *string `json:"redirect_pool_id,omitempty"`
	RedirectListenerId  *string `json:"redirect_listener_id,omitempty"`
	RedirectUrl         *string `json:"redirect_url,omitempty"`
	Position            *int32  `json:"position,omitempty"`
	ProvisioningStatus  *string `json:"provisioning_status,omitempty"`
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	DisplayAllRules     *bool   `json:"display_all_rules,omitempty"`
}

Request Object

func (ListL7policiesRequest) String

func (o ListL7policiesRequest) String() string

type ListL7policiesResponse

type ListL7policiesResponse struct {
	// 转发策略对象的列表
	L7policies     *[]L7policyResp `json:"l7policies,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ListL7policiesResponse) String

func (o ListL7policiesResponse) String() string

type ListL7rulesRequest

type ListL7rulesRequest struct {
	Limit              *int32  `json:"limit,omitempty"`
	Marker             *string `json:"marker,omitempty"`
	PageReverse        *bool   `json:"page_reverse,omitempty"`
	L7policyId         string  `json:"l7policy_id"`
	Id                 *string `json:"id,omitempty"`
	AdminStateUp       *bool   `json:"admin_state_up,omitempty"`
	Type               *string `json:"type,omitempty"`
	CompareType        *string `json:"compare_type,omitempty"`
	Invert             *bool   `json:"invert,omitempty"`
	Key                *string `json:"key,omitempty"`
	Value              *string `json:"value,omitempty"`
	ProvisioningStatus *string `json:"provisioning_status,omitempty"`
}

Request Object

func (ListL7rulesRequest) String

func (o ListL7rulesRequest) String() string

type ListL7rulesResponse

type ListL7rulesResponse struct {
	// 转发规则对象的列表
	Rules          *[]L7ruleResp `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"`
	Marker                  *string `json:"marker,omitempty"`
	PageReverse             *bool   `json:"page_reverse,omitempty"`
	Id                      *string `json:"id,omitempty"`
	Name                    *string `json:"name,omitempty"`
	Description             *string `json:"description,omitempty"`
	DefaultPoolId           *string `json:"default_pool_id,omitempty"`
	DefaultTlsContainerRef  *string `json:"default_tls_container_ref,omitempty"`
	ClientCaTlsContainerRef *string `json:"client_ca_tls_container_ref,omitempty"`
	Protocol                *string `json:"protocol,omitempty"`
	ProtocolPort            *int32  `json:"protocol_port,omitempty"`
	TlsCiphersPolicy        *string `json:"tls_ciphers_policy,omitempty"`
	MemberTimeout           *int32  `json:"member_timeout,omitempty"`
	ClientTimeout           *int32  `json:"client_timeout,omitempty"`
	KeepaliveTimeout        *int32  `json:"keepalive_timeout,omitempty"`
	TlsContainerId          *string `json:"tls_container_id,omitempty"`
}

Request Object

func (ListListenersRequest) String

func (o ListListenersRequest) String() string

type ListListenersResponse

type ListListenersResponse struct {
	// 监听器对象列表
	Listeners      *[]ListenerResp `json:"listeners,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ListListenersResponse) String

func (o ListListenersResponse) String() string

type ListLoadbalancersRequest

type ListLoadbalancersRequest struct {
	Limit               *int32  `json:"limit,omitempty"`
	Marker              *string `json:"marker,omitempty"`
	PageReverse         *bool   `json:"page_reverse,omitempty"`
	Id                  *string `json:"id,omitempty"`
	Description         *string `json:"description,omitempty"`
	Name                *string `json:"name,omitempty"`
	OperatingStatus     *string `json:"operating_status,omitempty"`
	ProvisioningStatus  *string `json:"provisioning_status,omitempty"`
	VipAddress          *string `json:"vip_address,omitempty"`
	VipPortId           *string `json:"vip_port_id,omitempty"`
	VipSubnetId         *string `json:"vip_subnet_id,omitempty"`
	VpcId               *string `json:"vpc_id,omitempty"`
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	AdminStateUp        *bool   `json:"admin_state_up,omitempty"`
	MemberAddress       *string `json:"member_address,omitempty"`
	MemberDeviceId      *string `json:"member_device_id,omitempty"`
}

Request Object

func (ListLoadbalancersRequest) String

func (o ListLoadbalancersRequest) String() string

type ListLoadbalancersResponse

type ListLoadbalancersResponse struct {
	// 负载均衡器对象列表
	Loadbalancers  *[]LoadbalancerResp `json:"loadbalancers,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (ListLoadbalancersResponse) String

func (o ListLoadbalancersResponse) String() string

type ListMenbersRequest

type ListMenbersRequest struct {
	PoolId       string  `json:"pool_id"`
	Limit        *int32  `json:"limit,omitempty"`
	Marker       *string `json:"marker,omitempty"`
	PageReverse  *bool   `json:"page_reverse,omitempty"`
	Id           *string `json:"id,omitempty"`
	Name         *string `json:"name,omitempty"`
	Address      *string `json:"address,omitempty"`
	ProtocolPort *int32  `json:"protocol_port,omitempty"`
	SubnetId     *string `json:"subnet_id,omitempty"`
	AdminStateUp *bool   `json:"admin_state_up,omitempty"`
	Weight       *int32  `json:"weight,omitempty"`
}

Request Object

func (ListMenbersRequest) String

func (o ListMenbersRequest) String() string

type ListMenbersResponse

type ListMenbersResponse struct {
	// 后端云服务器对象的列表
	Members        *[]MemberResp `json:"members,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ListMenbersResponse) String

func (o ListMenbersResponse) String() string

type ListPoolsRequest

type ListPoolsRequest struct {
	Limit               *int32  `json:"limit,omitempty"`
	Marker              *string `json:"marker,omitempty"`
	PageReverse         *bool   `json:"page_reverse,omitempty"`
	Id                  *string `json:"id,omitempty"`
	Name                *string `json:"name,omitempty"`
	Description         *string `json:"description,omitempty"`
	HealthmonitorId     *string `json:"healthmonitor_id,omitempty"`
	LoadbalancerId      *string `json:"loadbalancer_id,omitempty"`
	Protocol            *string `json:"protocol,omitempty"`
	LbAlgorithm         *string `json:"lb_algorithm,omitempty"`
	MemberAddress       *string `json:"member_address,omitempty"`
	MemberDeviceId      *string `json:"member_device_id,omitempty"`
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ListPoolsRequest) String

func (o ListPoolsRequest) String() string

type ListPoolsResponse

type ListPoolsResponse struct {
	// 后端云服务器对象组列表
	Pools          *[]PoolResp `json:"pools,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ListPoolsResponse) String

func (o ListPoolsResponse) String() string

type ListWhitelistsRequest

type ListWhitelistsRequest struct {
	Limit           *int32  `json:"limit,omitempty"`
	Marker          *string `json:"marker,omitempty"`
	PageReverse     *bool   `json:"page_reverse,omitempty"`
	Id              *string `json:"id,omitempty"`
	EnableWhitelist *bool   `json:"enable_whitelist,omitempty"`
	ListenerId      *string `json:"listener_id,omitempty"`
	Whitelist       *string `json:"whitelist,omitempty"`
}

Request Object

func (ListWhitelistsRequest) String

func (o ListWhitelistsRequest) String() string

type ListWhitelistsResponse

type ListWhitelistsResponse struct {
	// 白名单对象的列表
	Whitelists     *[]WhitelistResp `json:"whitelists,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ListWhitelistsResponse) String

func (o ListWhitelistsResponse) String() string

type ListenerResp

type ListenerResp struct {
	// 监听器ID
	Id string `json:"id"`
	// 监听器所在的项目ID。
	TenantId string `json:"tenant_id"`
	// 监听器名称。
	Name string `json:"name"`
	// 监听器的描述信息
	Description string `json:"description"`
	// 监听器的管理状态。只支持设定为true,该字段的值无实际意义。
	AdminStateUp bool `json:"admin_state_up"`
	// 监听器绑定的负载均衡器ID的列表。
	Loadbalancers []ResourceList `json:"loadbalancers"`
	// 监听器的最大连接数。该字段为预留字段,暂未启用。默认为-1。
	ConnectionLimit int32 `json:"connection_limit"`
	// HTTP2功能的开启状态。该字段只有当监听器的协议是TERMINATED_HTTPS时生效。
	Http2Enable bool `json:"http2_enable"`
	// 监听器的监听协议
	Protocol ListenerRespProtocol `json:"protocol"`
	// 监听器的监听端口。
	ProtocolPort int32 `json:"protocol_port"`
	// 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。
	DefaultPoolId string `json:"default_pool_id"`
	// 监听器使用的服务器证书ID。
	DefaultTlsContainerRef string `json:"default_tls_container_ref"`
	// 监听器使用的CA证书ID。
	ClientCaTlsContainerRef string `json:"client_ca_tls_container_ref"`
	// 监听器使用的SNI证书(带域名的服务器证书)ID的列表。
	SniContainerRefs []string `json:"sni_container_refs"`
	// 监听器的标签。
	Tags []string `json:"tags"`
	// 监听器的创建时间。
	CreatedAt string `json:"created_at"`
	// 监听器的更新时间。
	UpdatedAt     string        `json:"updated_at"`
	InsertHeaders *InsertHeader `json:"insert_headers"`
	// 监听器所在的项目ID。
	ProjectId string `json:"project_id"`
	// 监听器使用的安全策略,仅对TERMINATED_HTTPS协议类型的监听器有效,且默认值为tls-1-0。  取值包括:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict多种安全策略
	TlsCiphersPolicy string `json:"tls_ciphers_policy"`
}

监听器响应体

func (ListenerResp) String

func (o ListenerResp) String() string

type ListenerRespProtocol

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

func (ListenerRespProtocol) MarshalJSON

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

func (*ListenerRespProtocol) UnmarshalJSON

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

type ListenerRespProtocolEnum

type ListenerRespProtocolEnum struct {
	UDP              ListenerRespProtocol
	TCP              ListenerRespProtocol
	HTTP             ListenerRespProtocol
	TERMINATED_HTTPS ListenerRespProtocol
}

func GetListenerRespProtocolEnum

func GetListenerRespProtocolEnum() ListenerRespProtocolEnum

type ListenersInStatusResp

type ListenersInStatusResp struct {
	// 监听器ID
	Id string `json:"id"`
	// 监听器名称
	Name string `json:"name"`
	// 监听器关联的后端云服务器组列表
	Pools []PoolsInStatusResp `json:"pools"`
	// 监听器关联的转发策略列表
	L7policies []L7policiesInStatusResp `json:"l7policies"`
	// 监听器的操作状态;该字段为预留字段,暂未启用。默认为ONLINE。
	OperatingStatus string `json:"operating_status"`
	// 监听器的配置状态;该字段为预留字段,暂未启用。默认为ACTIVE。
	ProvisioningStatus string `json:"provisioning_status"`
}

监听器对象列表,用于状态树中

func (ListenersInStatusResp) String

func (o ListenersInStatusResp) String() string

type LoadbalancerInStatusResp

type LoadbalancerInStatusResp struct {
	// 负载均衡器名称
	Name string `json:"name"`
	// 负载均衡器ID
	Id string `json:"id"`
	// 负载均衡器关联的监听器列表
	Listeners []ListenersInStatusResp `json:"listeners"`
	// 负载均衡器关联的后端云服务器组列表
	Pools []PoolsInStatusResp `json:"pools"`
	// 负载均衡器的操作状态;该字段为预留字段,暂未启用。默认为ONLINE。
	OperatingStatus LoadbalancerInStatusRespOperatingStatus `json:"operating_status"`
	// 负载均衡器的配置状态;该字段为预留字段,暂未启用。默认为ACTIVE。
	ProvisioningStatus LoadbalancerInStatusRespProvisioningStatus `json:"provisioning_status"`
}

负载均衡器对象,用于负载均衡器状态树中

func (LoadbalancerInStatusResp) String

func (o LoadbalancerInStatusResp) String() string

type LoadbalancerInStatusRespOperatingStatus

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

func (LoadbalancerInStatusRespOperatingStatus) MarshalJSON

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

func (*LoadbalancerInStatusRespOperatingStatus) UnmarshalJSON

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

type LoadbalancerInStatusRespProvisioningStatus

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

func (LoadbalancerInStatusRespProvisioningStatus) MarshalJSON

func (*LoadbalancerInStatusRespProvisioningStatus) UnmarshalJSON

type LoadbalancerResp

type LoadbalancerResp struct {
	// 负载均衡器ID
	Id string `json:"id"`
	// 负载均衡器所在的项目ID。
	TenantId string `json:"tenant_id"`
	// 负载均衡器名称。
	Name string `json:"name"`
	// 负载均衡器的描述信息
	Description string `json:"description"`
	// 负载均衡器所在的子网ID。仅支持内网类型。
	VipSubnetId string `json:"vip_subnet_id"`
	// 负载均衡器虚拟IP对应的端口ID
	VipPortId string `json:"vip_port_id"`
	// 负载均衡器的虚拟IP。
	VipAddress string `json:"vip_address"`
	// 负载均衡器关联的监听器ID的列表
	Listeners []ResourceList `json:"listeners"`
	// 负载均衡器关联的后端云服务器组ID的列表。
	Pools []ResourceList `json:"pools"`
	// 负载均衡器的供应者名称。只支持vlb
	Provider string `json:"provider"`
	// 负载均衡器的操作状态
	OperatingStatus LoadbalancerRespOperatingStatus `json:"operating_status"`
	// 负载均衡器的配置状态
	ProvisioningStatus LoadbalancerRespProvisioningStatus `json:"provisioning_status"`
	// 负载均衡器的管理状态。只支持设定为true,该字段的值无实际意义。
	AdminStateUp bool `json:"admin_state_up"`
	// 负载均衡器的创建时间
	CreatedAt string `json:"created_at"`
	// 负载均衡器的更新时间
	UpdatedAt string `json:"updated_at"`
	// 负载均衡器的企业项目ID。
	EnterpriseProjectId string `json:"enterprise_project_id"`
	// 负载均衡器所在的项目ID。
	ProjectId string `json:"project_id"`
	// 负载均衡器的标签列表
	Tags []string `json:"tags"`
}

负载均衡器响应体

func (LoadbalancerResp) String

func (o LoadbalancerResp) String() string

type LoadbalancerRespOperatingStatus

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

func (LoadbalancerRespOperatingStatus) MarshalJSON

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

func (*LoadbalancerRespOperatingStatus) UnmarshalJSON

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

type LoadbalancerRespProvisioningStatus

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

func (LoadbalancerRespProvisioningStatus) MarshalJSON

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

func (*LoadbalancerRespProvisioningStatus) UnmarshalJSON

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

type LoadbalancerRespProvisioningStatusEnum

type LoadbalancerRespProvisioningStatusEnum struct {
	ACTIVE         LoadbalancerRespProvisioningStatus
	PENDING_CREATE LoadbalancerRespProvisioningStatus
	ERROR          LoadbalancerRespProvisioningStatus
}

func GetLoadbalancerRespProvisioningStatusEnum

func GetLoadbalancerRespProvisioningStatusEnum() LoadbalancerRespProvisioningStatusEnum

type MemberResp

type MemberResp struct {
	// 后端云服务器ID
	Id string `json:"id"`
	// 后端云服务器所在的项目ID。
	ProjectId string `json:"project_id"`
	// 后端云服务器所在的项目ID。
	TenantId string `json:"tenant_id"`
	// 后端云服务器名称。
	Name string `json:"name"`
	// 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
	AdminStateUp bool `json:"admin_state_up"`
	// 后端端口和协议号
	ProtocolPort int32 `json:"protocol_port"`
	// 后端云服务器所在的子网ID。该子网和后端云服务器关联的负载均衡器的子网必须在同一VPC下。只支持指定IPv4的子网ID。暂不支持IPv6。
	SubnetId string `json:"subnet_id"`
	// 后端云服务器的对应的IP地址,这个IP必须在subnet_id字段的子网网段中。例如:192.168.3.11。只能指定为主网卡的IP。
	Address string `json:"address"`
	// 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。权重为0的后端不再接受新的请求。当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。
	Weight int32 `json:"weight"`
	// 后端云服务器的健康状态,取值:  ONLINE:健康检查在线,后端服务正常。 OFFLINE:健康检查离线,后端服务异常,负载均衡器不再向异常的后端发送流量。 NO_MONITOR:无检查检查。未创建检查检查或健康检查的admin_state_up字段为false。
	OperatingStatus string `json:"operating_status"`
}

后端云服务器响应体

func (MemberResp) String

func (o MemberResp) String() string

type MembersInStatusResp

type MembersInStatusResp struct {
	// 后端云服务器ID
	Id string `json:"id"`
	// 后端云服务器的IP地址
	Address string `json:"address"`
	// 后端云服务器的端口号
	ProtocolPort int32 `json:"protocol_port"`
	// 后端云服务器的健康检状态;可以为:ONLINE:健康检查在线;OFFLINE:健康检查离线;DISABLED:后端云服务器无对应的弹性云服务器;NO_MONITOR:健康检查未开启
	OperatingStatus MembersInStatusRespOperatingStatus `json:"operating_status"`
	// 监听器的配置状态;该字段为预留字段,暂未启用。默认为ACTIVE。
	ProvisioningStatus string `json:"provisioning_status"`
}

后端云服务器对象列表,用于状态树中

func (MembersInStatusResp) String

func (o MembersInStatusResp) String() string

type MembersInStatusRespOperatingStatus

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

func (MembersInStatusRespOperatingStatus) MarshalJSON

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

func (*MembersInStatusRespOperatingStatus) UnmarshalJSON

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

type PoolResp

type PoolResp struct {
	// 后端云服务器组的ID
	Id string `json:"id"`
	// 后端云服务器组所在的项目ID。
	ProjectId string `json:"project_id"`
	// 后端云服务器组所在的项目ID。
	TenantId string `json:"tenant_id"`
	// 后端云服务器组的名称。
	Name string `json:"name"`
	// 后端云服务器组的描述信息
	Description string `json:"description"`
	// 后端云服务器组的管理状态。只支持设定为true,该字段的值无实际意义。
	AdminStateUp bool `json:"admin_state_up"`
	// 后端云服务器组绑定的负载均衡器ID的列表。
	Loadbalancers []ResourceList `json:"loadbalancers"`
	// 后端云服务器组关联的监听器ID的列表。
	Listeners []ResourceList `json:"listeners"`
	// 后端云服务器组关联的后端云服务器ID的列表。
	Members []ResourceList `json:"members"`
	// 后端云服务器组关联的健康检查的ID。
	HealthmonitorId    string              `json:"healthmonitor_id"`
	SessionPersistence *SessionPersistence `json:"session_persistence"`
	// 后端云服务器组的后端协议。
	Protocol PoolRespProtocol `json:"protocol"`
	// 后端云服务器组的负载均衡算法,取值:ROUND_ROBIN:加权轮询算法;LEAST_CONNECTIONS:加权最少连接算法;SOURCE_IP:源IP算法。当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。
	LbAlgorithm PoolRespLbAlgorithm `json:"lb_algorithm"`
}

后端云服务器组响应体

func (PoolResp) String

func (o PoolResp) String() string

type PoolRespLbAlgorithm

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

func (PoolRespLbAlgorithm) MarshalJSON

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

func (*PoolRespLbAlgorithm) UnmarshalJSON

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

type PoolRespLbAlgorithmEnum

type PoolRespLbAlgorithmEnum struct {
	ROUND_ROBIN       PoolRespLbAlgorithm
	LEAST_CONNECTIONS PoolRespLbAlgorithm
	SOURCE_IP         PoolRespLbAlgorithm
}

func GetPoolRespLbAlgorithmEnum

func GetPoolRespLbAlgorithmEnum() PoolRespLbAlgorithmEnum

type PoolRespProtocol

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

func (PoolRespProtocol) MarshalJSON

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

func (*PoolRespProtocol) UnmarshalJSON

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

type PoolRespProtocolEnum

type PoolRespProtocolEnum struct {
	UDP  PoolRespProtocol
	TCP  PoolRespProtocol
	HTTP PoolRespProtocol
}

func GetPoolRespProtocolEnum

func GetPoolRespProtocolEnum() PoolRespProtocolEnum

type PoolsInStatusResp

type PoolsInStatusResp struct {
	// 后端云服务器组ID
	Id string `json:"id"`
	// 后端云服务器组名称
	Name string `json:"name"`
	// 后端云服务器组关联的后端云服务器列表
	Members []MembersInStatusResp `json:"members"`
	// 后端云服务器组的操作状态;该字段为预留字段,暂未启用。默认为ONLINE。
	OperatingStatus string `json:"operating_status"`
	// 后端云服务器组的配置状态;该字段为预留字段,暂未启用。默认为ACTIVE。
	ProvisioningStatus string                      `json:"provisioning_status"`
	Healthmonitor      *HealthmonitorsInStatusResp `json:"healthmonitor"`
}

后端云服务器对象列表,用于状态树中

func (PoolsInStatusResp) String

func (o PoolsInStatusResp) String() string

type ResourceList

type ResourceList struct {
	// 资源ID
	Id string `json:"id"`
}

用于资源对象id列表,{“id”:id值}

func (ResourceList) String

func (o ResourceList) String() string

type SessionPersistence

type SessionPersistence struct {
	// 会话保持的类型。SOURCE_IP:根据请求的源IP,将同一IP的请求发送到同一个后端云服务器上。HTTP_COOKIE:客户端第一次发送请求时,负载均衡器自动生成cookie并将该cookie插入响应消息中,后续请求会发送到处理第一个请求的后端云服务器上。APP_COOKIE:客户端第一次发送请求时,后端服务器生成cookie并将该cookie插入响应消息中,后续请求会发送到处理第一个请求的后端云服务器上。当后端云服务器的protocol为TCP时,只按SOURCE_IP生效当后端云服务器的protocol为HTTP时,只按HTTP_COOKIE或APP_COOKIE生效
	Type SessionPersistenceType `json:"type"`
	// cookie的名称。只有当会话保持的类型是APP_COOKIE时可以指定。
	CookieName *string `json:"cookie_name,omitempty"`
	// 会话保持的超时时间。取值范围:[1,60](分钟):当后端云服务器的protocol为TCP、UDP时[1,1440](分钟):当后端云服务器的protocol为HTTP时。当type为APP_COOKIE时该字段不生效。
	PersistenceTimeout *int32 `json:"persistence_timeout,omitempty"`
}

后端云服务器组的会话持久性。 当开启会话保持后,在一定时间内,来自同一客户端的请求会发送到同一个后端云服务器上。 当会话保持关闭时,该字段取值为null。

func (SessionPersistence) String

func (o SessionPersistence) String() string

type SessionPersistenceType

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

func (SessionPersistenceType) MarshalJSON

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

func (*SessionPersistenceType) UnmarshalJSON

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

type SessionPersistenceTypeEnum

type SessionPersistenceTypeEnum struct {
	SOURCE_IP   SessionPersistenceType
	HTTP_COOKIE SessionPersistenceType
	APP_COOKIE  SessionPersistenceType
}

func GetSessionPersistenceTypeEnum

func GetSessionPersistenceTypeEnum() SessionPersistenceTypeEnum

type ShowCertificateRequest

type ShowCertificateRequest struct {
	CertificateId string `json:"certificate_id"`
}

Request Object

func (ShowCertificateRequest) String

func (o ShowCertificateRequest) String() string

type ShowCertificateResponse

type ShowCertificateResponse struct {
	// SSL证书id
	Id *string `json:"id,omitempty"`
	// SSL证书所在的项目ID
	TenantId *string `json:"tenant_id,omitempty"`
	// SSL证书的管理状态;暂不支持
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// SSL证书的名称。
	Name *string `json:"name,omitempty"`
	// SSL证书的描述。
	Description *string `json:"description,omitempty"`
	// SSL证书的类型。分为服务器证书(server)和CA证书(client)。
	Type *ShowCertificateResponseType `json:"type,omitempty"`
	// 服务器证书所签域名。该字段仅type为server时有效。
	Domain *string `json:"domain,omitempty"`
	// 服务器证书的私钥。仅type为server时有效。type为server时必选。
	PrivateKey *string `json:"private_key,omitempty"`
	// 当type为server时,表示服务器证书的公钥;当type为client时,表示用于认证客户端证书的CA证书。
	Certificate *string `json:"certificate,omitempty"`
	// SSL证书的过期时间。 UTC时间,格式为:yyyy-MM-dd HH:mm:ss ,如2020-05-28 08:30:09
	ExpireTime *string `json:"expire_time,omitempty"`
	// SSL证书的创建时间。 UTC时间,格式为:yyyy-MM-dd HH:mm:ss ,如2020-05-28 08:30:09
	CreateTime *string `json:"create_time,omitempty"`
	// SSL证书的更新时间。 UTC时间,格式为:yyyy-MM-dd HH:mm:ss ,如2020-05-28 08:30:09
	UpdateTime     *string `json:"update_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowCertificateResponse) String

func (o ShowCertificateResponse) String() string

type ShowCertificateResponseType

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

func (ShowCertificateResponseType) MarshalJSON

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

func (*ShowCertificateResponseType) UnmarshalJSON

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

type ShowCertificateResponseTypeEnum

type ShowCertificateResponseTypeEnum struct {
	SERVER ShowCertificateResponseType
	CLIENT ShowCertificateResponseType
}

func GetShowCertificateResponseTypeEnum

func GetShowCertificateResponseTypeEnum() ShowCertificateResponseTypeEnum

type ShowHealthmonitorsRequest

type ShowHealthmonitorsRequest struct {
	HealthmonitorId string `json:"healthmonitor_id"`
}

Request Object

func (ShowHealthmonitorsRequest) String

func (o ShowHealthmonitorsRequest) String() string

type ShowHealthmonitorsResponse

type ShowHealthmonitorsResponse struct {
	Healthmonitor  *HealthmonitorResp `json:"healthmonitor,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ShowHealthmonitorsResponse) String

type ShowL7policyRequest

type ShowL7policyRequest struct {
	L7policyId string `json:"l7policy_id"`
}

Request Object

func (ShowL7policyRequest) String

func (o ShowL7policyRequest) String() string

type ShowL7policyResponse

type ShowL7policyResponse struct {
	L7policy       *L7policyResp `json:"l7policy,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ShowL7policyResponse) String

func (o ShowL7policyResponse) String() string

type ShowL7ruleRequest

type ShowL7ruleRequest struct {
	L7policyId string `json:"l7policy_id"`
	L7ruleId   string `json:"l7rule_id"`
}

Request Object

func (ShowL7ruleRequest) String

func (o ShowL7ruleRequest) String() string

type ShowL7ruleResponse

type ShowL7ruleResponse struct {
	Rule           *L7ruleResp `json:"rule,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ShowL7ruleResponse) String

func (o ShowL7ruleResponse) String() string

type ShowListenerRequest

type ShowListenerRequest struct {
	ListenerId string `json:"listener_id"`
}

Request Object

func (ShowListenerRequest) String

func (o ShowListenerRequest) String() string

type ShowListenerResponse

type ShowListenerResponse struct {
	Listener       *ListenerResp `json:"listener,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ShowListenerResponse) String

func (o ShowListenerResponse) String() string

type ShowLoadbalancerRequest

type ShowLoadbalancerRequest struct {
	LoadbalancerId string `json:"loadbalancer_id"`
}

Request Object

func (ShowLoadbalancerRequest) String

func (o ShowLoadbalancerRequest) String() string

type ShowLoadbalancerResponse

type ShowLoadbalancerResponse struct {
	Loadbalancer   *LoadbalancerResp `json:"loadbalancer,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (ShowLoadbalancerResponse) String

func (o ShowLoadbalancerResponse) String() string

type ShowLoadbalancersStatusRequest

type ShowLoadbalancersStatusRequest struct {
	LoadbalancerId string `json:"loadbalancer_id"`
}

Request Object

func (ShowLoadbalancersStatusRequest) String

type ShowLoadbalancersStatusResponse

type ShowLoadbalancersStatusResponse struct {
	Statuses       *StatusResp `json:"statuses,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ShowLoadbalancersStatusResponse) String

type ShowMemberRequest

type ShowMemberRequest struct {
	PoolId   string `json:"pool_id"`
	MemberId string `json:"member_id"`
}

Request Object

func (ShowMemberRequest) String

func (o ShowMemberRequest) String() string

type ShowMemberResponse

type ShowMemberResponse struct {
	Member         *MemberResp `json:"member,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ShowMemberResponse) String

func (o ShowMemberResponse) String() string

type ShowPoolRequest

type ShowPoolRequest struct {
	PoolId string `json:"pool_id"`
}

Request Object

func (ShowPoolRequest) String

func (o ShowPoolRequest) String() string

type ShowPoolResponse

type ShowPoolResponse struct {
	Pool           *PoolResp `json:"pool,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ShowPoolResponse) String

func (o ShowPoolResponse) String() string

type ShowWhitelistRequest

type ShowWhitelistRequest struct {
	WhitelistId string `json:"whitelist_id"`
}

Request Object

func (ShowWhitelistRequest) String

func (o ShowWhitelistRequest) String() string

type ShowWhitelistResponse

type ShowWhitelistResponse struct {
	Whitelist      *WhitelistResp `json:"whitelist,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ShowWhitelistResponse) String

func (o ShowWhitelistResponse) String() string

type StatusResp

type StatusResp struct {
	Loadbalancer *LoadbalancerInStatusResp `json:"loadbalancer"`
}

负载均衡器状态树对象

func (StatusResp) String

func (o StatusResp) String() string

type UpdateCertificateRequest

type UpdateCertificateRequest struct {
	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 {
	// SSL证书对象
	Certificate *string `json:"certificate,omitempty"`
	// 服务端的私有密钥。  格式:私钥为PEM格式。
	PrivateKey *string `json:"private_key,omitempty"`
	// SSL证书的描述信息。  支持的最大字符长度:255
	Description *string `json:"description,omitempty"`
	// 服务端证书所签的域名。默认值:null;  支持的最大字符长度:100  取值范围:  普通域名由若干字符串组成,总长度为0-100,字符串间以\".\"分割,单个字符串长度不超过63个字符,只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。 泛域名在普通域名的基础上仅允许首字母为\"*\"。该字段仅type为server时有效。
	Domain *string `json:"domain,omitempty"`
	// SSL证书的名称。  支持的最大字符长度:255
	Name *string `json:"name,omitempty"`
	// SSL证书的管理状态;  取值范围: true/false。  该字段为预留字段,暂未启用。只支持设定为true。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
}

This is a auto create Body Object

func (UpdateCertificateRequestBody) String

type UpdateCertificateResponse

type UpdateCertificateResponse struct {
	// SSL证书id
	Id *string `json:"id,omitempty"`
	// SSL证书所在的项目ID
	TenantId *string `json:"tenant_id,omitempty"`
	// SSL证书的管理状态;暂不支持
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// SSL证书的名称。
	Name *string `json:"name,omitempty"`
	// SSL证书的描述。
	Description *string `json:"description,omitempty"`
	// SSL证书的类型。分为服务器证书(server)和CA证书(client)。
	Type *UpdateCertificateResponseType `json:"type,omitempty"`
	// 服务器证书所签域名。该字段仅type为server时有效。
	Domain *string `json:"domain,omitempty"`
	// 服务器证书的私钥。仅type为server时有效。type为server时必选。
	PrivateKey *string `json:"private_key,omitempty"`
	// 当type为server时,表示服务器证书的公钥;当type为client时,表示用于认证客户端证书的CA证书。
	Certificate *string `json:"certificate,omitempty"`
	// SSL证书的过期时间。 UTC时间,格式为:yyyy-MM-dd HH:mm:ss ,如2020-05-28 08:30:09
	ExpireTime *string `json:"expire_time,omitempty"`
	// SSL证书的创建时间。 UTC时间,格式为:yyyy-MM-dd HH:mm:ss ,如2020-05-28 08:30:09
	CreateTime *string `json:"create_time,omitempty"`
	// SSL证书的更新时间。 UTC时间,格式为:yyyy-MM-dd HH:mm:ss ,如2020-05-28 08:30:09
	UpdateTime     *string `json:"update_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateCertificateResponse) String

func (o UpdateCertificateResponse) String() string

type UpdateCertificateResponseType

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

func (UpdateCertificateResponseType) MarshalJSON

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

func (*UpdateCertificateResponseType) UnmarshalJSON

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

type UpdateCertificateResponseTypeEnum

type UpdateCertificateResponseTypeEnum struct {
	SERVER UpdateCertificateResponseType
	CLIENT UpdateCertificateResponseType
}

func GetUpdateCertificateResponseTypeEnum

func GetUpdateCertificateResponseTypeEnum() UpdateCertificateResponseTypeEnum

type UpdateHealthmonitorReq

type UpdateHealthmonitorReq struct {
	// 健康检查名称。
	Name *string `json:"name,omitempty"`
	// 健康检查的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// 健康检查端口号。默认为空,表示使用后端云服务器组的端口。
	MonitorPort *int32 `json:"monitor_port,omitempty"`
	// 健康检查的超时时间。建议该值小于delay的值。
	Timeout *int32 `json:"timeout,omitempty"`
	// 期望HTTP响应状态码,指定下列值:单值,例如200;列表,例如200,202;区间,例如200-204。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
	ExpectedCodes *string `json:"expected_codes,omitempty"`
	// 功能说明:健康检查测试member健康状态时,发送的http请求的域名。仅当type为HTTP时生效。使用说明:默认为空,表示使用负载均衡器的vip作为http请求的目的地址。以数字或字母开头,只能包含数字、字母、’-’、’.’。
	DomainName *string `json:"domain_name,omitempty"`
	// HTTP方法,可以为GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
	UrlPath *string `json:"url_path,omitempty"`
	// HTTP方法,可以为GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH。仅当type为HTTP时生效。该字段为预留字段,暂未启用。
	HttpMethod *string `json:"http_method,omitempty"`
	// 健康检查间隔
	Delay *int32 `json:"delay,omitempty"`
	// 最大重试次数
	MaxRetries *int32 `json:"max_retries,omitempty"`
	// 健康检查的类型。  取值范围:TCP、UDP_CONNECT、HTTP。
	Type *string `json:"type,omitempty"`
}

更新健康检查请求

func (UpdateHealthmonitorReq) String

func (o UpdateHealthmonitorReq) String() string

type UpdateHealthmonitorRequest

type UpdateHealthmonitorRequest struct {
	HealthmonitorId string                          `json:"healthmonitor_id"`
	Body            *UpdateHealthmonitorRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateHealthmonitorRequest) String

type UpdateHealthmonitorRequestBody

type UpdateHealthmonitorRequestBody struct {
	Healthmonitor *UpdateHealthmonitorReq `json:"healthmonitor"`
}

This is a auto create Body Object

func (UpdateHealthmonitorRequestBody) String

type UpdateHealthmonitorResponse

type UpdateHealthmonitorResponse struct {
	Healthmonitor  *HealthmonitorResp `json:"healthmonitor,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (UpdateHealthmonitorResponse) String

type UpdateL7policiesRequest

type UpdateL7policiesRequest struct {
	L7policyId string                       `json:"l7policy_id"`
	Body       *UpdateL7policiesRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateL7policiesRequest) String

func (o UpdateL7policiesRequest) String() string

type UpdateL7policiesRequestBody

type UpdateL7policiesRequestBody struct {
	L7policy *UpdateL7policyReq `json:"l7policy"`
}

This is a auto create Body Object

func (UpdateL7policiesRequestBody) String

type UpdateL7policiesResponse

type UpdateL7policiesResponse struct {
	L7policy       *L7policyResp `json:"l7policy,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (UpdateL7policiesResponse) String

func (o UpdateL7policiesResponse) String() string

type UpdateL7policyReq

type UpdateL7policyReq struct {
	// 转发策略名称
	Name *string `json:"name,omitempty"`
	// 转发策略的管理状态;该字段为预留字段,暂未启用。默认为true。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// 转发策略额描述信息
	Description *string `json:"description,omitempty"`
	// 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时生效。当action为REDIRECT_TO_LISTENER时必选
	RedirectListenerId *string `json:"redirect_listener_id,omitempty"`
	// 转发到pool的ID。当action为REDIRECT_TO_POOL时生效。使用说明:redirect_pool不能是listener的default_pool,不能已经被其他listener的l7policy所使用。当action为REDIRECT_TO_LISTENER时,不可指定。不允许更新为空。
	RedirectPoolId *string `json:"redirect_pool_id,omitempty"`
}

更新转发策略对象请求体

func (UpdateL7policyReq) String

func (o UpdateL7policyReq) String() string

type UpdateL7ruleReq

type UpdateL7ruleReq struct {
	// 转发匹配方式: type为HOST_NAME时,取值范围:EQUAL_TO:精确匹配;t ype为PATH时,取值范围:REGEX:正则匹配;STARTS_WITH:前缀匹配;EQUAL_TO:精确匹配。
	CompareType *string `json:"compare_type,omitempty"`
	// 转发规则的管理状态;取值范围: true/false。该字段为预留字段,暂未启用。默认为true。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// 是否反向匹配;取值范围:true/false。默认值:false;该字段为预留字段,暂未启用。
	Invert *bool `json:"invert,omitempty"`
	// 匹配内容的键值。默认为null。该字段为预留字段,暂未启用。
	Key *string `json:"key,omitempty"`
	// 匹配内容的值。不能包含空格。 当type为HOST_NAME时,取值范围:String (100),字符串只能包含英文字母、数字、“-”或“.”,且必须以字母或数字开头。 当type为PATH时,取值范围:String (128)。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时,字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:| /()[]{},且必须以\"/\"开头。
	Value *string `json:"value,omitempty"`
}

L7转发策略请求实体

func (UpdateL7ruleReq) String

func (o UpdateL7ruleReq) String() string

type UpdateL7ruleRequest

type UpdateL7ruleRequest struct {
	L7policyId string                   `json:"l7policy_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 *UpdateL7ruleReq `json:"rule"`
}

This is a auto create Body Object

func (UpdateL7ruleRequestBody) String

func (o UpdateL7ruleRequestBody) String() string

type UpdateL7ruleResponse

type UpdateL7ruleResponse struct {
	Rule           *L7ruleResp `json:"rule,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (UpdateL7ruleResponse) String

func (o UpdateL7ruleResponse) String() string

type UpdateListenerReq

type UpdateListenerReq struct {
	// 监听器名称。
	Name *string `json:"name,omitempty"`
	// 监听器的描述信息
	Description *string `json:"description,omitempty"`
	// 监听器的最大连接数。该字段为预留字段,暂未启用。默认为-1。
	ConnectionLimit *int32 `json:"connection_limit,omitempty"`
	// HTTP2功能的开启状态。该字段只有当监听器的协议是TERMINATED_HTTPS时生效。
	Http2Enable *bool `json:"http2_enable,omitempty"`
	// 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。当该字段为null时,表示监听器无默认的后端云服务器组。
	DefaultPoolId *string `json:"default_pool_id,omitempty"`
	// 监听器使用的服务器证书ID。当protocol参数为TERMINATED_HTTPS时,为必选字段
	DefaultTlsContainerRef *string `json:"default_tls_container_ref,omitempty"`
	// 监听器使用的CA证书ID。
	ClientCaTlsContainerRef *string `json:"client_ca_tls_container_ref,omitempty"`
	// 监听器使用的SNI证书(带域名的服务器证书)ID的列表。
	SniContainerRefs *[]string     `json:"sni_container_refs,omitempty"`
	InsertHeaders    *InsertHeader `json:"insert_headers,omitempty"`
	// 监听器使用的安全策略,仅对TERMINATED_HTTPS协议类型的监听器有效。  取值包括:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict多种安全策略。
	TlsCiphersPolicy *string `json:"tls_ciphers_policy,omitempty"`
	// 监听器的管理状态。  该字段为预留字段,暂未启动。只支持设定为true
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
}

更新监听器的结构体

func (UpdateListenerReq) String

func (o UpdateListenerReq) String() string

type UpdateListenerRequest

type UpdateListenerRequest struct {
	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 *UpdateListenerReq `json:"listener"`
}

This is a auto create Body Object

func (UpdateListenerRequestBody) String

func (o UpdateListenerRequestBody) String() string

type UpdateListenerResponse

type UpdateListenerResponse struct {
	Listener       *ListenerResp `json:"listener,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (UpdateListenerResponse) String

func (o UpdateListenerResponse) String() string

type UpdateLoadbalancerReq

type UpdateLoadbalancerReq struct {
	// 负载均衡器名称。
	Name *string `json:"name,omitempty"`
	// 负载均衡器的描述信息
	Description *string `json:"description,omitempty"`
	// 负载均衡器的管理状态。只支持设定为true,该字段的值无实际意义。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
}

更新负载均衡器的请求体

func (UpdateLoadbalancerReq) String

func (o UpdateLoadbalancerReq) String() string

type UpdateLoadbalancerRequest

type UpdateLoadbalancerRequest struct {
	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 *UpdateLoadbalancerReq `json:"loadbalancer"`
}

This is a auto create Body Object

func (UpdateLoadbalancerRequestBody) String

type UpdateLoadbalancerResponse

type UpdateLoadbalancerResponse struct {
	Loadbalancer   *LoadbalancerResp `json:"loadbalancer,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (UpdateLoadbalancerResponse) String

type UpdateMemberReq

type UpdateMemberReq struct {
	// 后端云服务器名称。
	Name *string `json:"name,omitempty"`
	// 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。权重为0的后端不再接受新的请求。当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。
	Weight *int32 `json:"weight,omitempty"`
}

更新后端云服务器的请求体

func (UpdateMemberReq) String

func (o UpdateMemberReq) String() string

type UpdateMemberRequest

type UpdateMemberRequest struct {
	MemberId string                   `json:"member_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 *UpdateMemberReq `json:"member"`
}

This is a auto create Body Object

func (UpdateMemberRequestBody) String

func (o UpdateMemberRequestBody) String() string

type UpdateMemberResponse

type UpdateMemberResponse struct {
	Member         *MemberResp `json:"member,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (UpdateMemberResponse) String

func (o UpdateMemberResponse) String() string

type UpdatePoolReq

type UpdatePoolReq struct {
	// 后端云服务器组的负载均衡算法,取值:ROUND_ROBIN:加权轮询算法;LEAST_CONNECTIONS:加权最少连接算法;SOURCE_IP:源IP算法;当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。
	LbAlgorithm *string `json:"lb_algorithm,omitempty"`
	// 后端云服务器组的名称。
	Name *string `json:"name,omitempty"`
	// 后端云服务器组的描述信息
	Description *string `json:"description,omitempty"`
	// 后端云服务器组的管理状态;该字段为预留字段,暂未启用。只支持更新为true。
	AdminStateUp       *bool               `json:"admin_state_up,omitempty"`
	SessionPersistence *SessionPersistence `json:"session_persistence,omitempty"`
}

更新后端云服务器组的请求体

func (UpdatePoolReq) String

func (o UpdatePoolReq) String() string

type UpdatePoolRequest

type UpdatePoolRequest struct {
	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 *UpdatePoolReq `json:"pool"`
}

This is a auto create Body Object

func (UpdatePoolRequestBody) String

func (o UpdatePoolRequestBody) String() string

type UpdatePoolResponse

type UpdatePoolResponse struct {
	Pool           *PoolResp `json:"pool,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (UpdatePoolResponse) String

func (o UpdatePoolResponse) String() string

type UpdateWhitelistReq

type UpdateWhitelistReq struct {
	// 是否开启白名单访问控制开关。true:开启;false:关闭
	EnableWhitelist *bool `json:"enable_whitelist,omitempty"`
	// 白名单IP列表。可以是ip,例如192.168.10.123;也可以是一个网段,例如192.168.10.1/24;不同的值之间用逗号分隔
	Whitelist *string `json:"whitelist,omitempty"`
}

func (UpdateWhitelistReq) String

func (o UpdateWhitelistReq) String() string

type UpdateWhitelistRequest

type UpdateWhitelistRequest struct {
	WhitelistId string                      `json:"whitelist_id"`
	Body        *UpdateWhitelistRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateWhitelistRequest) String

func (o UpdateWhitelistRequest) String() string

type UpdateWhitelistRequestBody

type UpdateWhitelistRequestBody struct {
	Whitelist *UpdateWhitelistReq `json:"whitelist"`
}

This is a auto create Body Object

func (UpdateWhitelistRequestBody) String

type UpdateWhitelistResponse

type UpdateWhitelistResponse struct {
	Whitelist      *WhitelistResp `json:"whitelist,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (UpdateWhitelistResponse) String

func (o UpdateWhitelistResponse) String() string

type WhitelistResp

type WhitelistResp struct {
	// 白名单id
	Id string `json:"id"`
	// 白名单所在的项目ID
	TenantId string `json:"tenant_id"`
	// 白名单关联的监听器ID
	ListenerId string `json:"listener_id"`
	// 是否开启白名单访问控制开关。true:开启;false:关闭
	EnableWhitelist bool `json:"enable_whitelist"`
	// 白名单IP列表。可以是ip,例如192.168.10.123;也可以是一个网段,例如192.168.10.1/24;不同的值之间用逗号分隔
	Whitelist string `json:"whitelist"`
}

func (WhitelistResp) String

func (o WhitelistResp) String() string

Source Files

Jump to

Keyboard shortcuts

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