model

package
v0.0.19-beta Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateV2Resp

type CertificateV2Resp 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 CertificateV2RespType `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 (CertificateV2Resp) String

func (o CertificateV2Resp) String() string

type CertificateV2RespType

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

func (CertificateV2RespType) MarshalJSON

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

func (*CertificateV2RespType) UnmarshalJSON

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

type CertificateV2RespTypeEnum

type CertificateV2RespTypeEnum struct {
	SERVER CertificateV2RespType
	CLIENT CertificateV2RespType
}

func GetCertificateV2RespTypeEnum

func GetCertificateV2RespTypeEnum() CertificateV2RespTypeEnum

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"`
}

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 CreateHealthmonitorRequest

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

Request Object

func (CreateHealthmonitorRequest) String

type CreateHealthmonitorRequestBody

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

This is a auto create Body Object

func (CreateHealthmonitorRequestBody) String

type CreateHealthmonitorResponse

type CreateHealthmonitorResponse struct {
	Healthmonitor *HealthmonitorV2Resp `json:"healthmonitor,omitempty"`
}

Response Object

func (CreateHealthmonitorResponse) String

type CreateHealthmonitorV2Req

type CreateHealthmonitorV2Req 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 CreateHealthmonitorV2ReqType `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 (CreateHealthmonitorV2Req) String

func (o CreateHealthmonitorV2Req) String() string

type CreateHealthmonitorV2ReqType

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

func (CreateHealthmonitorV2ReqType) MarshalJSON

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

func (*CreateHealthmonitorV2ReqType) UnmarshalJSON

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

type CreateHealthmonitorV2ReqTypeEnum

type CreateHealthmonitorV2ReqTypeEnum struct {
	TCP         CreateHealthmonitorV2ReqType
	UDP_CONNECT CreateHealthmonitorV2ReqType
	HTTP        CreateHealthmonitorV2ReqType
}

func GetCreateHealthmonitorV2ReqTypeEnum

func GetCreateHealthmonitorV2ReqTypeEnum() CreateHealthmonitorV2ReqTypeEnum

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

This is a auto create Body Object

func (CreateL7policyRequestBody) String

func (o CreateL7policyRequestBody) String() string

type CreateL7policyResponse

type CreateL7policyResponse struct {
	L7policy *L7policyV2Resp `json:"l7policy,omitempty"`
}

Response Object

func (CreateL7policyResponse) String

func (o CreateL7policyResponse) String() string

type CreateL7policyV2Req

type CreateL7policyV2Req struct {
	// 转发策略名称
	Name *string `json:"name,omitempty"`
	// 转发策略的转发动作;取值:REDIRECT_TO_POOL:转发到后端云服务器组;REDIRECT_TO_LISTENER:重定向到监听器
	Action CreateL7policyV2ReqAction `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 *[]CreateL7ruleV2ReqInPolicy `json:"rules,omitempty"`
}

转发策略对象

func (CreateL7policyV2Req) String

func (o CreateL7policyV2Req) String() string

type CreateL7policyV2ReqAction

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

func (CreateL7policyV2ReqAction) MarshalJSON

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

func (*CreateL7policyV2ReqAction) UnmarshalJSON

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

type CreateL7policyV2ReqActionEnum

type CreateL7policyV2ReqActionEnum struct {
	REDIRECT_TO_POOL     CreateL7policyV2ReqAction
	REDIRECT_TO_LISTENER CreateL7policyV2ReqAction
}

func GetCreateL7policyV2ReqActionEnum

func GetCreateL7policyV2ReqActionEnum() CreateL7policyV2ReqActionEnum

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 {
	L7rule *CreateL7ruleV2Req `json:"l7rule"`
}

This is a auto create Body Object

func (CreateL7ruleRequestBody) String

func (o CreateL7ruleRequestBody) String() string

type CreateL7ruleResponse

type CreateL7ruleResponse struct {
	Rule *L7ruleV2Resp `json:"rule,omitempty"`
}

Response Object

func (CreateL7ruleResponse) String

func (o CreateL7ruleResponse) String() string

type CreateL7ruleV2Req

type CreateL7ruleV2Req struct {
	// 转发规则所在的项目ID。
	TenantId *string `json:"tenant_id,omitempty"`
	// 转发规则的管理状态;该字段为预留字段,暂未启用。默认为true。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// 转发规则的匹配内容
	Type CreateL7ruleV2ReqType `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 (CreateL7ruleV2Req) String

func (o CreateL7ruleV2Req) String() string

type CreateL7ruleV2ReqInPolicy

type CreateL7ruleV2ReqInPolicy struct {
	// 转发规则的管理状态;该字段为预留字段,暂未启用。默认为true。
	AdminStateUp *bool `json:"admin_state_up,omitempty"`
	// 转发规则的匹配内容
	Type CreateL7ruleV2ReqInPolicyType `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 (CreateL7ruleV2ReqInPolicy) String

func (o CreateL7ruleV2ReqInPolicy) String() string

type CreateL7ruleV2ReqInPolicyType

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

func (CreateL7ruleV2ReqInPolicyType) MarshalJSON

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

func (*CreateL7ruleV2ReqInPolicyType) UnmarshalJSON

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

type CreateL7ruleV2ReqInPolicyTypeEnum

type CreateL7ruleV2ReqInPolicyTypeEnum struct {
	HOST_NAME CreateL7ruleV2ReqInPolicyType
	PATH      CreateL7ruleV2ReqInPolicyType
}

func GetCreateL7ruleV2ReqInPolicyTypeEnum

func GetCreateL7ruleV2ReqInPolicyTypeEnum() CreateL7ruleV2ReqInPolicyTypeEnum

type CreateL7ruleV2ReqType

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

func (CreateL7ruleV2ReqType) MarshalJSON

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

func (*CreateL7ruleV2ReqType) UnmarshalJSON

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

type CreateL7ruleV2ReqTypeEnum

type CreateL7ruleV2ReqTypeEnum struct {
	HOST_NAME CreateL7ruleV2ReqType
	PATH      CreateL7ruleV2ReqType
}

func GetCreateL7ruleV2ReqTypeEnum

func GetCreateL7ruleV2ReqTypeEnum() CreateL7ruleV2ReqTypeEnum

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

This is a auto create Body Object

func (CreateListenerRequestBody) String

func (o CreateListenerRequestBody) String() string

type CreateListenerResponse

type CreateListenerResponse struct {
	// 监听器ID
	Id *string `json:"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"`
	// 监听器绑定的负载均衡器ID的列表。
	Loadbalancers *[]ResourceList `json:"loadbalancers,omitempty"`
	// 监听器的最大连接数。该字段为预留字段,暂未启用。默认为-1。
	ConnectionLimit *int32 `json:"connection_limit,omitempty"`
	// HTTP2功能的开启状态。该字段只有当监听器的协议是TERMINATED_HTTPS时生效。
	Http2Enable *bool `json:"http2_enable,omitempty"`
	// 监听器的监听协议
	Protocol *CreateListenerResponseProtocol `json:"protocol,omitempty"`
	// 监听器的监听端口。
	ProtocolPort *int32 `json:"protocol_port,omitempty"`
	// 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。
	DefaultPoolId *string `json:"default_pool_id,omitempty"`
	// 监听器使用的服务器证书ID。
	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"`
	// 监听器的标签。
	Tags *[]string `json:"tags,omitempty"`
	// 监听器的创建时间。
	CreatedAt *string `json:"created_at,omitempty"`
	// 监听器的更新时间。
	UpdatedAt     *string       `json:"updated_at,omitempty"`
	InsertHeaders *InsertHeader `json:"insert_headers,omitempty"`
	// 监听器所在的项目ID。
	ProjectId *string `json:"project_id,omitempty"`
	// 监听器使用的安全策略,仅对TERMINATED_HTTPS协议类型的监听器有效,且默认值为tls-1-0。  取值包括:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict多种安全策略
	TlsCiphersPolicy *string `json:"tls_ciphers_policy,omitempty"`
}

Response Object

func (CreateListenerResponse) String

func (o CreateListenerResponse) String() string

type CreateListenerResponseProtocol

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

func (CreateListenerResponseProtocol) MarshalJSON

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

func (*CreateListenerResponseProtocol) UnmarshalJSON

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

type CreateListenerV2Req

type CreateListenerV2Req struct {
	// 监听器关联的负载均衡器 ID
	LoadbalancerId string `json:"loadbalancer_id"`
	// 监听器的监听协议
	Protocol CreateListenerV2ReqProtocol `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 *CreateListenerV2ReqTlsCiphersPolicy `json:"tls_ciphers_policy,omitempty"`
}

创建监听器的结构体

func (CreateListenerV2Req) String

func (o CreateListenerV2Req) String() string

type CreateListenerV2ReqProtocol

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

func (CreateListenerV2ReqProtocol) MarshalJSON

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

func (*CreateListenerV2ReqProtocol) UnmarshalJSON

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

type CreateListenerV2ReqProtocolEnum

type CreateListenerV2ReqProtocolEnum struct {
	UDP              CreateListenerV2ReqProtocol
	TCP              CreateListenerV2ReqProtocol
	HTTP             CreateListenerV2ReqProtocol
	TERMINATED_HTTPS CreateListenerV2ReqProtocol
}

func GetCreateListenerV2ReqProtocolEnum

func GetCreateListenerV2ReqProtocolEnum() CreateListenerV2ReqProtocolEnum

type CreateListenerV2ReqTlsCiphersPolicy

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

func (CreateListenerV2ReqTlsCiphersPolicy) MarshalJSON

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

func (*CreateListenerV2ReqTlsCiphersPolicy) UnmarshalJSON

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

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

This is a auto create Body Object

func (CreateLoadbalancerRequestBody) String

type CreateLoadbalancerResponse

type CreateLoadbalancerResponse struct {
	Loadbalancer *LoadbalancerV2Resp `json:"loadbalancer,omitempty"`
}

Response Object

func (CreateLoadbalancerResponse) String

type CreateLoadbalancerV2Req

type CreateLoadbalancerV2Req 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 *CreateLoadbalancerV2ReqProvider `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 (CreateLoadbalancerV2Req) String

func (o CreateLoadbalancerV2Req) String() string

type CreateLoadbalancerV2ReqProvider

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

func (CreateLoadbalancerV2ReqProvider) MarshalJSON

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

func (*CreateLoadbalancerV2ReqProvider) UnmarshalJSON

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

type CreateLoadbalancerV2ReqProviderEnum

type CreateLoadbalancerV2ReqProviderEnum struct {
	VLB CreateLoadbalancerV2ReqProvider
}

func GetCreateLoadbalancerV2ReqProviderEnum

func GetCreateLoadbalancerV2ReqProviderEnum() CreateLoadbalancerV2ReqProviderEnum

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 *CreateMemberV2Req `json:"member"`
}

This is a auto create Body Object

func (CreateMemberRequestBody) String

func (o CreateMemberRequestBody) String() string

type CreateMemberResponse

type CreateMemberResponse struct {
	Member *MemberV2Resp `json:"member,omitempty"`
}

Response Object

func (CreateMemberResponse) String

func (o CreateMemberResponse) String() string

type CreateMemberV2Req

type CreateMemberV2Req 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 (CreateMemberV2Req) String

func (o CreateMemberV2Req) 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 *CreatePoolV2Req `json:"pool"`
}

This is a auto create Body Object

func (CreatePoolRequestBody) String

func (o CreatePoolRequestBody) String() string

type CreatePoolResponse

type CreatePoolResponse struct {
	Pool *PoolV2Resp `json:"pool,omitempty"`
}

Response Object

func (CreatePoolResponse) String

func (o CreatePoolResponse) String() string

type CreatePoolV2Req

type CreatePoolV2Req struct {
	// 后端云服务器组的后端协议。取值:UDP、TCP、HTTP。当指定istener_id创建后端云服务器组时,后端云服务器组的protocol和它关联的监听器的protocol有如下关系:监听器的protocol为TCP时,后端云服务器组的protocol必须为TCP。监听器的protocol为UDP时,后端云服务器组的protocol必须为UDP。监听器的protocol为HTTP或TERMINATED_HTTPS时,后端云服务器组的protocol必须为HTTP。
	Protocol CreatePoolV2ReqProtocol `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 (CreatePoolV2Req) String

func (o CreatePoolV2Req) String() string

type CreatePoolV2ReqProtocol

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

func (CreatePoolV2ReqProtocol) MarshalJSON

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

func (*CreatePoolV2ReqProtocol) UnmarshalJSON

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

type CreatePoolV2ReqProtocolEnum

type CreatePoolV2ReqProtocolEnum struct {
	UDP  CreatePoolV2ReqProtocol
	TCP  CreatePoolV2ReqProtocol
	HTTP CreatePoolV2ReqProtocol
}

func GetCreatePoolV2ReqProtocolEnum

func GetCreatePoolV2ReqProtocolEnum() CreatePoolV2ReqProtocolEnum

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 *CreateWhitelistV2Req `json:"whitelist"`
}

This is a auto create Body Object

func (CreateWhitelistRequestBody) String

type CreateWhitelistResponse

type CreateWhitelistResponse struct {
	Whitelist *WhitelistV2Resp `json:"whitelist,omitempty"`
}

Response Object

func (CreateWhitelistResponse) String

func (o CreateWhitelistResponse) String() string

type CreateWhitelistV2Req

type CreateWhitelistV2Req 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 (CreateWhitelistV2Req) String

func (o CreateWhitelistV2Req) 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 {
}

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 {
}

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 {
}

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 {
}

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 {
}

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 {
}

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 {
}

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 {
}

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 {
}

Response Object

func (DeleteWhitelistResponse) String

func (o DeleteWhitelistResponse) String() string

type HealthmonitorV2Resp

type HealthmonitorV2Resp 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 HealthmonitorV2RespType `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 (HealthmonitorV2Resp) String

func (o HealthmonitorV2Resp) String() string

type HealthmonitorV2RespType

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

func (HealthmonitorV2RespType) MarshalJSON

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

func (*HealthmonitorV2RespType) UnmarshalJSON

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

type HealthmonitorV2RespTypeEnum

type HealthmonitorV2RespTypeEnum struct {
	TCP         HealthmonitorV2RespType
	UDP_CONNECT HealthmonitorV2RespType
	HTTP        HealthmonitorV2RespType
}

func GetHealthmonitorV2RespTypeEnum

func GetHealthmonitorV2RespTypeEnum() HealthmonitorV2RespTypeEnum

type HealthmonitorsV2InStatusResp

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

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

func (HealthmonitorsV2InStatusResp) String

type HealthmonitorsV2InStatusRespType

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

func (HealthmonitorsV2InStatusRespType) MarshalJSON

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

func (*HealthmonitorsV2InStatusRespType) UnmarshalJSON

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

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 L7policiesV2InStatusResp

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

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

func (L7policiesV2InStatusResp) String

func (o L7policiesV2InStatusResp) String() string

type L7policiesV2InStatusRespAction

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

func (L7policiesV2InStatusRespAction) MarshalJSON

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

func (*L7policiesV2InStatusRespAction) UnmarshalJSON

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

type L7policiesV2InStatusRespActionEnum

type L7policiesV2InStatusRespActionEnum struct {
	REDIRECT_TO_POOL     L7policiesV2InStatusRespAction
	REDIRECT_TO_LISTENER L7policiesV2InStatusRespAction
}

func GetL7policiesV2InStatusRespActionEnum

func GetL7policiesV2InStatusRespActionEnum() L7policiesV2InStatusRespActionEnum

type L7policyV2Resp

type L7policyV2Resp struct {
	// 转发策略ID
	Id string `json:"id"`
	// 转发策略名称
	Name string `json:"name"`
	// 转发策略关联的转发规则列表
	Rules []ResourceList `json:"rules"`
	// 转发策略的转发动作;取值:REDIRECT_TO_POOL:转发到后端云服务器组;REDIRECT_TO_LISTENER:重定向到监听器
	Action L7policyV2RespAction `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 (L7policyV2Resp) String

func (o L7policyV2Resp) String() string

type L7policyV2RespAction

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

func (L7policyV2RespAction) MarshalJSON

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

func (*L7policyV2RespAction) UnmarshalJSON

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

type L7policyV2RespActionEnum

type L7policyV2RespActionEnum struct {
	REDIRECT_TO_POOL     L7policyV2RespAction
	REDIRECT_TO_LISTENER L7policyV2RespAction
}

func GetL7policyV2RespActionEnum

func GetL7policyV2RespActionEnum() L7policyV2RespActionEnum

type L7ruleV2Resp

type L7ruleV2Resp 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 L7ruleV2RespType `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 (L7ruleV2Resp) String

func (o L7ruleV2Resp) String() string

type L7ruleV2RespType

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

func (L7ruleV2RespType) MarshalJSON

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

func (*L7ruleV2RespType) UnmarshalJSON

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

type L7ruleV2RespTypeEnum

type L7ruleV2RespTypeEnum struct {
	HOST_NAME L7ruleV2RespType
	PATH      L7ruleV2RespType
}

func GetL7ruleV2RespTypeEnum

func GetL7ruleV2RespTypeEnum() L7ruleV2RespTypeEnum

type L7rulesV2InStatusResp

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

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

func (L7rulesV2InStatusResp) String

func (o L7rulesV2InStatusResp) String() string

type L7rulesV2InStatusRespType

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

func (L7rulesV2InStatusRespType) MarshalJSON

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

func (*L7rulesV2InStatusRespType) UnmarshalJSON

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

type L7rulesV2InStatusRespTypeEnum

type L7rulesV2InStatusRespTypeEnum struct {
	PATH      L7rulesV2InStatusRespType
	HOST_NAME L7rulesV2InStatusRespType
}

func GetL7rulesV2InStatusRespTypeEnum

func GetL7rulesV2InStatusRespTypeEnum() L7rulesV2InStatusRespTypeEnum

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 {
	Certificates *CertificateV2Resp `json:"certificates,omitempty"`
	// 证书的个数
	InstanceNum *int32 `json:"instance_num,omitempty"`
}

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 *[]HealthmonitorV2Resp `json:"healthmonitors,omitempty"`
}

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 *[]L7policyV2Resp `json:"l7policies,omitempty"`
}

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 *[]L7ruleV2Resp `json:"rules,omitempty"`
}

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 *[]ListenerV2Resp `json:"listeners,omitempty"`
}

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 *[]LoadbalancerV2Resp `json:"loadbalancers,omitempty"`
}

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 *[]MemberV2Resp `json:"members,omitempty"`
}

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 *[]PoolV2Resp `json:"pools,omitempty"`
}

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 *[]WhitelistV2Resp `json:"whitelists,omitempty"`
}

Response Object

func (ListWhitelistsResponse) String

func (o ListWhitelistsResponse) String() string

type ListenerV2Resp

type ListenerV2Resp 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 ListenerV2RespProtocol `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 (ListenerV2Resp) String

func (o ListenerV2Resp) String() string

type ListenerV2RespProtocol

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

func (ListenerV2RespProtocol) MarshalJSON

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

func (*ListenerV2RespProtocol) UnmarshalJSON

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

type ListenerV2RespProtocolEnum

type ListenerV2RespProtocolEnum struct {
	UDP              ListenerV2RespProtocol
	TCP              ListenerV2RespProtocol
	HTTP             ListenerV2RespProtocol
	TERMINATED_HTTPS ListenerV2RespProtocol
}

func GetListenerV2RespProtocolEnum

func GetListenerV2RespProtocolEnum() ListenerV2RespProtocolEnum

type ListenersV2InStatusResp

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

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

func (ListenersV2InStatusResp) String

func (o ListenersV2InStatusResp) String() string

type LoadbalancerV2InStatusResp

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

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

func (LoadbalancerV2InStatusResp) String

type LoadbalancerV2InStatusRespOperatingStatus

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

func (LoadbalancerV2InStatusRespOperatingStatus) MarshalJSON

func (*LoadbalancerV2InStatusRespOperatingStatus) UnmarshalJSON

type LoadbalancerV2InStatusRespProvisioningStatus

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

func (LoadbalancerV2InStatusRespProvisioningStatus) MarshalJSON

func (*LoadbalancerV2InStatusRespProvisioningStatus) UnmarshalJSON

type LoadbalancerV2Resp

type LoadbalancerV2Resp 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 LoadbalancerV2RespOperatingStatus `json:"operating_status"`
	// 负载均衡器的配置状态
	ProvisioningStatus LoadbalancerV2RespProvisioningStatus `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 (LoadbalancerV2Resp) String

func (o LoadbalancerV2Resp) String() string

type LoadbalancerV2RespOperatingStatus

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

func (LoadbalancerV2RespOperatingStatus) MarshalJSON

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

func (*LoadbalancerV2RespOperatingStatus) UnmarshalJSON

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

type LoadbalancerV2RespProvisioningStatus

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

func (LoadbalancerV2RespProvisioningStatus) MarshalJSON

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

func (*LoadbalancerV2RespProvisioningStatus) UnmarshalJSON

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

type MemberV2Resp

type MemberV2Resp 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 (MemberV2Resp) String

func (o MemberV2Resp) String() string

type MembersV2InStatusResp

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

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

func (MembersV2InStatusResp) String

func (o MembersV2InStatusResp) String() string

type MembersV2InStatusRespOperatingStatus

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

func (MembersV2InStatusRespOperatingStatus) MarshalJSON

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

func (*MembersV2InStatusRespOperatingStatus) UnmarshalJSON

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

type PoolV2Resp

type PoolV2Resp 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 PoolV2RespProtocol `json:"protocol"`
	// 后端云服务器组的负载均衡算法,取值:ROUND_ROBIN:加权轮询算法;LEAST_CONNECTIONS:加权最少连接算法;SOURCE_IP:源IP算法。当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。
	LbAlgorithm PoolV2RespLbAlgorithm `json:"lb_algorithm"`
}

后端云服务器组响应体

func (PoolV2Resp) String

func (o PoolV2Resp) String() string

type PoolV2RespLbAlgorithm

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

func (PoolV2RespLbAlgorithm) MarshalJSON

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

func (*PoolV2RespLbAlgorithm) UnmarshalJSON

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

type PoolV2RespLbAlgorithmEnum

type PoolV2RespLbAlgorithmEnum struct {
	ROUND_ROBIN       PoolV2RespLbAlgorithm
	LEAST_CONNECTIONS PoolV2RespLbAlgorithm
	SOURCE_IP         PoolV2RespLbAlgorithm
}

func GetPoolV2RespLbAlgorithmEnum

func GetPoolV2RespLbAlgorithmEnum() PoolV2RespLbAlgorithmEnum

type PoolV2RespProtocol

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

func (PoolV2RespProtocol) MarshalJSON

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

func (*PoolV2RespProtocol) UnmarshalJSON

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

type PoolV2RespProtocolEnum

type PoolV2RespProtocolEnum struct {
	UDP  PoolV2RespProtocol
	TCP  PoolV2RespProtocol
	HTTP PoolV2RespProtocol
}

func GetPoolV2RespProtocolEnum

func GetPoolV2RespProtocolEnum() PoolV2RespProtocolEnum

type PoolsV2InStatusResp

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

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

func (PoolsV2InStatusResp) String

func (o PoolsV2InStatusResp) 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"`
}

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 *HealthmonitorV2Resp `json:"healthmonitor,omitempty"`
}

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 *L7policyV2Resp `json:"l7policy,omitempty"`
}

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 *L7ruleV2Resp `json:"rule,omitempty"`
}

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 *ListenerV2Resp `json:"listener,omitempty"`
}

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 *LoadbalancerV2Resp `json:"loadbalancer,omitempty"`
}

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 *StatusV2Resp `json:"statuses,omitempty"`
}

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 *MemberV2Resp `json:"member,omitempty"`
}

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 *PoolV2Resp `json:"pool,omitempty"`
}

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 *WhitelistV2Resp `json:"whitelist,omitempty"`
}

Response Object

func (ShowWhitelistResponse) String

func (o ShowWhitelistResponse) String() string

type StatusV2Resp

type StatusV2Resp struct {
	Loadbalancer *LoadbalancerV2InStatusResp `json:"loadbalancer"`
}

负载均衡器状态树对象

func (StatusV2Resp) String

func (o StatusV2Resp) 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"`
}

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 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 *UpdateHealthmonitorV2Req `json:"healthmonitor"`
}

This is a auto create Body Object

func (UpdateHealthmonitorRequestBody) String

type UpdateHealthmonitorResponse

type UpdateHealthmonitorResponse struct {
	Healthmonitor *HealthmonitorV2Resp `json:"healthmonitor,omitempty"`
}

Response Object

func (UpdateHealthmonitorResponse) String

type UpdateHealthmonitorV2Req

type UpdateHealthmonitorV2Req 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 (UpdateHealthmonitorV2Req) String

func (o UpdateHealthmonitorV2Req) String() 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 *UpdateL7policyV2Req `json:"l7policy"`
}

This is a auto create Body Object

func (UpdateL7policiesRequestBody) String

type UpdateL7policiesResponse

type UpdateL7policiesResponse struct {
	L7policy *L7policyV2Resp `json:"l7policy,omitempty"`
}

Response Object

func (UpdateL7policiesResponse) String

func (o UpdateL7policiesResponse) String() string

type UpdateL7policyV2Req

type UpdateL7policyV2Req 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 (UpdateL7policyV2Req) String

func (o UpdateL7policyV2Req) 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 *UpdateL7ruleV2Req `json:"rule"`
}

This is a auto create Body Object

func (UpdateL7ruleRequestBody) String

func (o UpdateL7ruleRequestBody) String() string

type UpdateL7ruleResponse

type UpdateL7ruleResponse struct {
	Rule *L7ruleV2Resp `json:"rule,omitempty"`
}

Response Object

func (UpdateL7ruleResponse) String

func (o UpdateL7ruleResponse) String() string

type UpdateL7ruleV2Req

type UpdateL7ruleV2Req 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 (UpdateL7ruleV2Req) String

func (o UpdateL7ruleV2Req) 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 *UpdateListenerV2Req `json:"listener"`
}

This is a auto create Body Object

func (UpdateListenerRequestBody) String

func (o UpdateListenerRequestBody) String() string

type UpdateListenerResponse

type UpdateListenerResponse struct {
	Listener *ListenerV2Resp `json:"listener,omitempty"`
}

Response Object

func (UpdateListenerResponse) String

func (o UpdateListenerResponse) String() string

type UpdateListenerV2Req

type UpdateListenerV2Req 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 (UpdateListenerV2Req) String

func (o UpdateListenerV2Req) 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 *UpdateLoadbalancerV2Req `json:"loadbalancer"`
}

This is a auto create Body Object

func (UpdateLoadbalancerRequestBody) String

type UpdateLoadbalancerResponse

type UpdateLoadbalancerResponse struct {
	Loadbalancer *LoadbalancerV2Resp `json:"loadbalancer,omitempty"`
}

Response Object

func (UpdateLoadbalancerResponse) String

type UpdateLoadbalancerV2Req

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

更新负载均衡器的请求体

func (UpdateLoadbalancerV2Req) String

func (o UpdateLoadbalancerV2Req) 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 *UpdateMemberV2Req `json:"member"`
}

This is a auto create Body Object

func (UpdateMemberRequestBody) String

func (o UpdateMemberRequestBody) String() string

type UpdateMemberResponse

type UpdateMemberResponse struct {
	Member *MemberV2Resp `json:"member,omitempty"`
}

Response Object

func (UpdateMemberResponse) String

func (o UpdateMemberResponse) String() string

type UpdateMemberV2Req

type UpdateMemberV2Req 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 (UpdateMemberV2Req) String

func (o UpdateMemberV2Req) 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 *UpdatePoolV2Req `json:"pool"`
}

This is a auto create Body Object

func (UpdatePoolRequestBody) String

func (o UpdatePoolRequestBody) String() string

type UpdatePoolResponse

type UpdatePoolResponse struct {
	Pool *PoolV2Resp `json:"pool,omitempty"`
}

Response Object

func (UpdatePoolResponse) String

func (o UpdatePoolResponse) String() string

type UpdatePoolV2Req

type UpdatePoolV2Req 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 (UpdatePoolV2Req) String

func (o UpdatePoolV2Req) 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 *UpdateWhitelistV2Req `json:"whitelist"`
}

This is a auto create Body Object

func (UpdateWhitelistRequestBody) String

type UpdateWhitelistResponse

type UpdateWhitelistResponse struct {
	Whitelist *WhitelistV2Resp `json:"whitelist,omitempty"`
}

Response Object

func (UpdateWhitelistResponse) String

func (o UpdateWhitelistResponse) String() string

type UpdateWhitelistV2Req

type UpdateWhitelistV2Req 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 (UpdateWhitelistV2Req) String

func (o UpdateWhitelistV2Req) String() string

type WhitelistV2Resp

type WhitelistV2Resp 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 (WhitelistV2Resp) String

func (o WhitelistV2Resp) String() string

Source Files

Jump to

Keyboard shortcuts

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