apis

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddListenerCertificatesRequest added in v1.41.0

type AddListenerCertificatesRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 监听器ID  */
	ListenerId string `json:"listenerId"`

	/* 【alb Https和Tls协议】ssl server证书列表  */
	Certificates []lb.ExtCertificateSpec `json:"certificates"`
}

func NewAddListenerCertificatesRequest added in v1.41.0

func NewAddListenerCertificatesRequest(
	regionId string,
	listenerId string,
	certificates []lb.ExtCertificateSpec,
) *AddListenerCertificatesRequest

* param regionId: Region ID (Required) * param listenerId: 监听器ID (Required) * param certificates: 【alb Https和Tls协议】ssl server证书列表 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewAddListenerCertificatesRequestWithAllParams added in v1.41.0

func NewAddListenerCertificatesRequestWithAllParams(
	regionId string,
	listenerId string,
	certificates []lb.ExtCertificateSpec,
) *AddListenerCertificatesRequest

* param regionId: Region ID (Required) * param listenerId: 监听器ID (Required) * param certificates: 【alb Https和Tls协议】ssl server证书列表 (Required)

func NewAddListenerCertificatesRequestWithoutParam added in v1.41.0

func NewAddListenerCertificatesRequestWithoutParam() *AddListenerCertificatesRequest

This constructor has better compatible ability when API parameters changed

func (AddListenerCertificatesRequest) GetRegionId added in v1.41.0

func (r AddListenerCertificatesRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AddListenerCertificatesRequest) SetCertificates added in v1.41.0

func (r *AddListenerCertificatesRequest) SetCertificates(certificates []lb.ExtCertificateSpec)

param certificates: 【alb Https和Tls协议】ssl server证书列表(Required)

func (*AddListenerCertificatesRequest) SetListenerId added in v1.41.0

func (r *AddListenerCertificatesRequest) SetListenerId(listenerId string)

param listenerId: 监听器ID(Required)

func (*AddListenerCertificatesRequest) SetRegionId added in v1.41.0

func (r *AddListenerCertificatesRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type AddListenerCertificatesResponse added in v1.41.0

type AddListenerCertificatesResponse struct {
	RequestID string                        `json:"requestId"`
	Error     core.ErrorResponse            `json:"error"`
	Result    AddListenerCertificatesResult `json:"result"`
}

type AddListenerCertificatesResult added in v1.41.0

type AddListenerCertificatesResult struct {
}

type AddRulesRequest

type AddRulesRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 转发规则组Id  */
	UrlMapId string `json:"urlMapId"`

	/* 转发规则的信息  */
	RuleSpecs []lb.RuleSpec `json:"ruleSpecs"`
}

func NewAddRulesRequest

func NewAddRulesRequest(
	regionId string,
	urlMapId string,
	ruleSpecs []lb.RuleSpec,
) *AddRulesRequest

* param regionId: Region ID (Required) * param urlMapId: 转发规则组Id (Required) * param ruleSpecs: 转发规则的信息 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewAddRulesRequestWithAllParams

func NewAddRulesRequestWithAllParams(
	regionId string,
	urlMapId string,
	ruleSpecs []lb.RuleSpec,
) *AddRulesRequest

* param regionId: Region ID (Required) * param urlMapId: 转发规则组Id (Required) * param ruleSpecs: 转发规则的信息 (Required)

func NewAddRulesRequestWithoutParam

func NewAddRulesRequestWithoutParam() *AddRulesRequest

This constructor has better compatible ability when API parameters changed

func (AddRulesRequest) GetRegionId

func (r AddRulesRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AddRulesRequest) SetRegionId

func (r *AddRulesRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*AddRulesRequest) SetRuleSpecs

func (r *AddRulesRequest) SetRuleSpecs(ruleSpecs []lb.RuleSpec)

param ruleSpecs: 转发规则的信息(Required)

func (*AddRulesRequest) SetUrlMapId

func (r *AddRulesRequest) SetUrlMapId(urlMapId string)

param urlMapId: 转发规则组Id(Required)

type AddRulesResponse

type AddRulesResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    AddRulesResult     `json:"result"`
}

type AddRulesResult

type AddRulesResult struct {
}

type AssociateElasticIpRequest

type AssociateElasticIpRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* LB ID  */
	LoadBalancerId string `json:"loadBalancerId"`

	/* 弹性公网IP ID  */
	ElasticIpId string `json:"elasticIpId"`
}

func NewAssociateElasticIpRequest

func NewAssociateElasticIpRequest(
	regionId string,
	loadBalancerId string,
	elasticIpId string,
) *AssociateElasticIpRequest

* param regionId: Region ID (Required) * param loadBalancerId: LB ID (Required) * param elasticIpId: 弹性公网IP ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewAssociateElasticIpRequestWithAllParams

func NewAssociateElasticIpRequestWithAllParams(
	regionId string,
	loadBalancerId string,
	elasticIpId string,
) *AssociateElasticIpRequest

* param regionId: Region ID (Required) * param loadBalancerId: LB ID (Required) * param elasticIpId: 弹性公网IP ID (Required)

func NewAssociateElasticIpRequestWithoutParam

func NewAssociateElasticIpRequestWithoutParam() *AssociateElasticIpRequest

This constructor has better compatible ability when API parameters changed

func (AssociateElasticIpRequest) GetRegionId

func (r AssociateElasticIpRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AssociateElasticIpRequest) SetElasticIpId

func (r *AssociateElasticIpRequest) SetElasticIpId(elasticIpId string)

param elasticIpId: 弹性公网IP ID(Required)

func (*AssociateElasticIpRequest) SetLoadBalancerId

func (r *AssociateElasticIpRequest) SetLoadBalancerId(loadBalancerId string)

param loadBalancerId: LB ID(Required)

func (*AssociateElasticIpRequest) SetRegionId

func (r *AssociateElasticIpRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type AssociateElasticIpResponse

type AssociateElasticIpResponse struct {
	RequestID string                   `json:"requestId"`
	Error     core.ErrorResponse       `json:"error"`
	Result    AssociateElasticIpResult `json:"result"`
}

type AssociateElasticIpResult

type AssociateElasticIpResult struct {
}

type AssociateSecurityGroupRequest

type AssociateSecurityGroupRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* LB ID  */
	LoadBalancerId string `json:"loadBalancerId"`

	/* 安全组 ID列表  */
	SecurityGroupIds []string `json:"securityGroupIds"`
}

func NewAssociateSecurityGroupRequest

func NewAssociateSecurityGroupRequest(
	regionId string,
	loadBalancerId string,
	securityGroupIds []string,
) *AssociateSecurityGroupRequest

* param regionId: Region ID (Required) * param loadBalancerId: LB ID (Required) * param securityGroupIds: 安全组 ID列表 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewAssociateSecurityGroupRequestWithAllParams

func NewAssociateSecurityGroupRequestWithAllParams(
	regionId string,
	loadBalancerId string,
	securityGroupIds []string,
) *AssociateSecurityGroupRequest

* param regionId: Region ID (Required) * param loadBalancerId: LB ID (Required) * param securityGroupIds: 安全组 ID列表 (Required)

func NewAssociateSecurityGroupRequestWithoutParam

func NewAssociateSecurityGroupRequestWithoutParam() *AssociateSecurityGroupRequest

This constructor has better compatible ability when API parameters changed

func (AssociateSecurityGroupRequest) GetRegionId

func (r AssociateSecurityGroupRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*AssociateSecurityGroupRequest) SetLoadBalancerId

func (r *AssociateSecurityGroupRequest) SetLoadBalancerId(loadBalancerId string)

param loadBalancerId: LB ID(Required)

func (*AssociateSecurityGroupRequest) SetRegionId

func (r *AssociateSecurityGroupRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*AssociateSecurityGroupRequest) SetSecurityGroupIds

func (r *AssociateSecurityGroupRequest) SetSecurityGroupIds(securityGroupIds []string)

param securityGroupIds: 安全组 ID列表(Required)

type AssociateSecurityGroupResponse

type AssociateSecurityGroupResponse struct {
	RequestID string                       `json:"requestId"`
	Error     core.ErrorResponse           `json:"error"`
	Result    AssociateSecurityGroupResult `json:"result"`
}

type AssociateSecurityGroupResult

type AssociateSecurityGroupResult struct {
}

type CreateBackendRequest

type CreateBackendRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 后端服务名字,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符  */
	BackendName string `json:"backendName"`

	/* 后端服务所属负载均衡的Id  */
	LoadBalancerId string `json:"loadBalancerId"`

	/* 后端服务的协议 <br>【alb】取值范围:Http、Tcp <br>【nlb】取值范围:Tcp <br>【dnlb】取值范围:Tcp  */
	Protocol string `json:"protocol"`

	/* 后端服务的端口,取值范围为[1, 65535],如指定了TargetSpec中的port,实际按照target指定的port进行转发  */
	Port int `json:"port"`

	/* 健康检查信息  */
	HealthCheckSpec *lb.HealthCheckSpec `json:"healthCheckSpec"`

	/* 调度算法 <br>【alb,nlb】取值范围为[IpHash, RoundRobin, LeastConn](取值范围的含义:加权源Ip哈希,加权轮询和加权最小连接),alb和nlb默认为加权轮询 <br>【dnlb】取值范围为[IpHash, QuintupleHash](取值范围的含义分别为:加权源Ip哈希和加权五元组哈希),dnlb默认为加权源Ip哈希 (Optional) */
	Algorithm *string `json:"algorithm"`

	/* 虚拟服务器组的Id列表,目前只支持一个,且与agIds不能同时存在 (Optional) */
	TargetGroupIds []string `json:"targetGroupIds"`

	/* 高可用组的Id列表,目前只支持一个,且与targetGroupIds不能同时存在 (Optional) */
	AgIds []string `json:"agIds"`

	/* 【alb Tcp协议】获取真实ip, 取值为False(不获取)或者True(获取,支持Proxy Protocol v1版本),默认为False (Optional) */
	ProxyProtocol *bool `json:"proxyProtocol"`

	/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
	Description *string `json:"description"`

	/* 会话保持, 取值为false(不开启)或者true(开启),默认为false <br>【alb Http协议,RoundRobin算法】支持基于cookie的会话保持 <br>【nlb】支持基于报文源目的IP的会话保持 (Optional) */
	SessionStickiness *bool `json:"sessionStickiness"`

	/* 【nlb】会话保持超时时间,sessionStickiness开启时生效,默认300s, 取值范围[1-3600] (Optional) */
	SessionStickyTimeout *int `json:"sessionStickyTimeout"`

	/* 【nlb】连接耗尽超时。移除target前,连接的最大保持时间,默认300s,取值范围[0-3600] (Optional) */
	ConnectionDrainingSeconds *int `json:"connectionDrainingSeconds"`

	/* 【alb Http协议】cookie的过期时间,sessionStickiness开启时生效,取值范围为[0-86400], 默认为0(表示cookie与浏览器同生命周期) (Optional) */
	HttpCookieExpireSeconds *int `json:"httpCookieExpireSeconds"`

	/* 【alb Http协议】获取负载均衡的协议, 取值为False(不获取)或True(获取), 默认为False (Optional) */
	HttpForwardedProtocol *bool `json:"httpForwardedProtocol"`

	/* 【alb Http协议】获取负载均衡的端口, 取值为False(不获取)或True(获取), 默认为False (Optional) */
	HttpForwardedPort *bool `json:"httpForwardedPort"`

	/* 【alb Http协议】获取负载均衡的host信息, 取值为False(不获取)或True(获取), 默认为False (Optional) */
	HttpForwardedHost *bool `json:"httpForwardedHost"`

	/* 【alb Http协议】获取负载均衡的vip, 取值为False(不获取)或True(获取), 默认为False (Optional) */
	HttpForwardedVip *bool `json:"httpForwardedVip"`
}

func NewCreateBackendRequest

func NewCreateBackendRequest(
	regionId string,
	backendName string,
	loadBalancerId string,
	protocol string,
	port int,
	healthCheckSpec *lb.HealthCheckSpec,
) *CreateBackendRequest

* param regionId: Region ID (Required) * param backendName: 后端服务名字,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Required) * param loadBalancerId: 后端服务所属负载均衡的Id (Required) * param protocol: 后端服务的协议 <br>【alb】取值范围:Http、Tcp <br>【nlb】取值范围:Tcp <br>【dnlb】取值范围:Tcp (Required) * param port: 后端服务的端口,取值范围为[1, 65535],如指定了TargetSpec中的port,实际按照target指定的port进行转发 (Required) * param healthCheckSpec: 健康检查信息 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateBackendRequestWithAllParams

func NewCreateBackendRequestWithAllParams(
	regionId string,
	backendName string,
	loadBalancerId string,
	protocol string,
	port int,
	healthCheckSpec *lb.HealthCheckSpec,
	algorithm *string,
	targetGroupIds []string,
	agIds []string,
	proxyProtocol *bool,
	description *string,
	sessionStickiness *bool,
	sessionStickyTimeout *int,
	connectionDrainingSeconds *int,
	httpCookieExpireSeconds *int,
	httpForwardedProtocol *bool,
	httpForwardedPort *bool,
	httpForwardedHost *bool,
	httpForwardedVip *bool,
) *CreateBackendRequest

* param regionId: Region ID (Required) * param backendName: 后端服务名字,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Required) * param loadBalancerId: 后端服务所属负载均衡的Id (Required) * param protocol: 后端服务的协议 <br>【alb】取值范围:Http、Tcp <br>【nlb】取值范围:Tcp <br>【dnlb】取值范围:Tcp (Required) * param port: 后端服务的端口,取值范围为[1, 65535],如指定了TargetSpec中的port,实际按照target指定的port进行转发 (Required) * param healthCheckSpec: 健康检查信息 (Required) * param algorithm: 调度算法 <br>【alb,nlb】取值范围为[IpHash, RoundRobin, LeastConn](取值范围的含义:加权源Ip哈希,加权轮询和加权最小连接),alb和nlb默认为加权轮询 <br>【dnlb】取值范围为[IpHash, QuintupleHash](取值范围的含义分别为:加权源Ip哈希和加权五元组哈希),dnlb默认为加权源Ip哈希 (Optional) * param targetGroupIds: 虚拟服务器组的Id列表,目前只支持一个,且与agIds不能同时存在 (Optional) * param agIds: 高可用组的Id列表,目前只支持一个,且与targetGroupIds不能同时存在 (Optional) * param proxyProtocol: 【alb Tcp协议】获取真实ip, 取值为False(不获取)或者True(获取,支持Proxy Protocol v1版本),默认为False (Optional) * param description: 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) * param sessionStickiness: 会话保持, 取值为false(不开启)或者true(开启),默认为false <br>【alb Http协议,RoundRobin算法】支持基于cookie的会话保持 <br>【nlb】支持基于报文源目的IP的会话保持 (Optional) * param sessionStickyTimeout: 【nlb】会话保持超时时间,sessionStickiness开启时生效,默认300s, 取值范围[1-3600] (Optional) * param connectionDrainingSeconds: 【nlb】连接耗尽超时。移除target前,连接的最大保持时间,默认300s,取值范围[0-3600] (Optional) * param httpCookieExpireSeconds: 【alb Http协议】cookie的过期时间,sessionStickiness开启时生效,取值范围为[0-86400], 默认为0(表示cookie与浏览器同生命周期) (Optional) * param httpForwardedProtocol: 【alb Http协议】获取负载均衡的协议, 取值为False(不获取)或True(获取), 默认为False (Optional) * param httpForwardedPort: 【alb Http协议】获取负载均衡的端口, 取值为False(不获取)或True(获取), 默认为False (Optional) * param httpForwardedHost: 【alb Http协议】获取负载均衡的host信息, 取值为False(不获取)或True(获取), 默认为False (Optional) * param httpForwardedVip: 【alb Http协议】获取负载均衡的vip, 取值为False(不获取)或True(获取), 默认为False (Optional)

func NewCreateBackendRequestWithoutParam

func NewCreateBackendRequestWithoutParam() *CreateBackendRequest

This constructor has better compatible ability when API parameters changed

func (CreateBackendRequest) GetRegionId

func (r CreateBackendRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateBackendRequest) SetAgIds

func (r *CreateBackendRequest) SetAgIds(agIds []string)

param agIds: 高可用组的Id列表,目前只支持一个,且与targetGroupIds不能同时存在(Optional)

func (*CreateBackendRequest) SetAlgorithm

func (r *CreateBackendRequest) SetAlgorithm(algorithm string)

param algorithm: 调度算法 <br>【alb,nlb】取值范围为[IpHash, RoundRobin, LeastConn](取值范围的含义:加权源Ip哈希,加权轮询和加权最小连接),alb和nlb默认为加权轮询 <br>【dnlb】取值范围为[IpHash, QuintupleHash](取值范围的含义分别为:加权源Ip哈希和加权五元组哈希),dnlb默认为加权源Ip哈希(Optional)

func (*CreateBackendRequest) SetBackendName

func (r *CreateBackendRequest) SetBackendName(backendName string)

param backendName: 后端服务名字,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符(Required)

func (*CreateBackendRequest) SetConnectionDrainingSeconds

func (r *CreateBackendRequest) SetConnectionDrainingSeconds(connectionDrainingSeconds int)

param connectionDrainingSeconds: 【nlb】连接耗尽超时。移除target前,连接的最大保持时间,默认300s,取值范围[0-3600](Optional)

func (*CreateBackendRequest) SetDescription

func (r *CreateBackendRequest) SetDescription(description string)

param description: 描述,允许输入UTF-8编码下的全部字符,不超过256字符(Optional)

func (*CreateBackendRequest) SetHealthCheckSpec

func (r *CreateBackendRequest) SetHealthCheckSpec(healthCheckSpec *lb.HealthCheckSpec)

param healthCheckSpec: 健康检查信息(Required)

func (*CreateBackendRequest) SetHttpCookieExpireSeconds

func (r *CreateBackendRequest) SetHttpCookieExpireSeconds(httpCookieExpireSeconds int)

param httpCookieExpireSeconds: 【alb Http协议】cookie的过期时间,sessionStickiness开启时生效,取值范围为[0-86400], 默认为0(表示cookie与浏览器同生命周期)(Optional)

func (*CreateBackendRequest) SetHttpForwardedHost

func (r *CreateBackendRequest) SetHttpForwardedHost(httpForwardedHost bool)

param httpForwardedHost: 【alb Http协议】获取负载均衡的host信息, 取值为False(不获取)或True(获取), 默认为False(Optional)

func (*CreateBackendRequest) SetHttpForwardedPort

func (r *CreateBackendRequest) SetHttpForwardedPort(httpForwardedPort bool)

param httpForwardedPort: 【alb Http协议】获取负载均衡的端口, 取值为False(不获取)或True(获取), 默认为False(Optional)

func (*CreateBackendRequest) SetHttpForwardedProtocol

func (r *CreateBackendRequest) SetHttpForwardedProtocol(httpForwardedProtocol bool)

param httpForwardedProtocol: 【alb Http协议】获取负载均衡的协议, 取值为False(不获取)或True(获取), 默认为False(Optional)

func (*CreateBackendRequest) SetHttpForwardedVip

func (r *CreateBackendRequest) SetHttpForwardedVip(httpForwardedVip bool)

param httpForwardedVip: 【alb Http协议】获取负载均衡的vip, 取值为False(不获取)或True(获取), 默认为False(Optional)

func (*CreateBackendRequest) SetLoadBalancerId

func (r *CreateBackendRequest) SetLoadBalancerId(loadBalancerId string)

param loadBalancerId: 后端服务所属负载均衡的Id(Required)

func (*CreateBackendRequest) SetPort

func (r *CreateBackendRequest) SetPort(port int)

param port: 后端服务的端口,取值范围为[1, 65535],如指定了TargetSpec中的port,实际按照target指定的port进行转发(Required)

func (*CreateBackendRequest) SetProtocol

func (r *CreateBackendRequest) SetProtocol(protocol string)

param protocol: 后端服务的协议 <br>【alb】取值范围:Http、Tcp <br>【nlb】取值范围:Tcp <br>【dnlb】取值范围:Tcp(Required)

func (*CreateBackendRequest) SetProxyProtocol

func (r *CreateBackendRequest) SetProxyProtocol(proxyProtocol bool)

param proxyProtocol: 【alb Tcp协议】获取真实ip, 取值为False(不获取)或者True(获取,支持Proxy Protocol v1版本),默认为False(Optional)

func (*CreateBackendRequest) SetRegionId

func (r *CreateBackendRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*CreateBackendRequest) SetSessionStickiness

func (r *CreateBackendRequest) SetSessionStickiness(sessionStickiness bool)

param sessionStickiness: 会话保持, 取值为false(不开启)或者true(开启),默认为false <br>【alb Http协议,RoundRobin算法】支持基于cookie的会话保持 <br>【nlb】支持基于报文源目的IP的会话保持(Optional)

func (*CreateBackendRequest) SetSessionStickyTimeout

func (r *CreateBackendRequest) SetSessionStickyTimeout(sessionStickyTimeout int)

param sessionStickyTimeout: 【nlb】会话保持超时时间,sessionStickiness开启时生效,默认300s, 取值范围[1-3600](Optional)

func (*CreateBackendRequest) SetTargetGroupIds

func (r *CreateBackendRequest) SetTargetGroupIds(targetGroupIds []string)

param targetGroupIds: 虚拟服务器组的Id列表,目前只支持一个,且与agIds不能同时存在(Optional)

type CreateBackendResponse

type CreateBackendResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    CreateBackendResult `json:"result"`
}

type CreateBackendResult

type CreateBackendResult struct {
	BackendId string `json:"backendId"`
}

type CreateListenerRequest

type CreateListenerRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Listener的名字,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符  */
	ListenerName string `json:"listenerName"`

	/* 监听协议, 取值为Tcp, Tls, Http, Https <br>【alb】支持Http, Https,Tcp和Tls <br>【nlb】支持Tcp  <br>【dnlb】支持Tcp  */
	Protocol string `json:"protocol"`

	/* 监听端口,取值范围为[1, 65535]  */
	Port int `json:"port"`

	/* 默认的后端服务Id  */
	BackendId string `json:"backendId"`

	/* Listener所属loadBalancer的Id  */
	LoadBalancerId string `json:"loadBalancerId"`

	/* 【alb Https和Http协议】转发规则组Id (Optional) */
	UrlMapId *string `json:"urlMapId"`

	/* 默认后端服务的转发策略,取值为Forward或Redirect, 现只支持Forward, 默认为Forward (Optional) */
	Action *string `json:"action"`

	/* 【alb Https和Tls协议】Listener绑定的默认证书,只支持一个证书 (Optional) */
	CertificateSpecs []lb.CertificateSpec `json:"certificateSpecs"`

	/* 【alb、nlb】空闲连接超时时间, 范围为[1,86400]。 <br>(Tcp和Tls协议)默认为:1800s <br>(Http和Https协议)默认为:60s <br>【dnlb】不支持 (Optional) */
	ConnectionIdleTimeSeconds *int `json:"connectionIdleTimeSeconds"`

	/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
	Description *string `json:"description"`
}

func NewCreateListenerRequest

func NewCreateListenerRequest(
	regionId string,
	listenerName string,
	protocol string,
	port int,
	backendId string,
	loadBalancerId string,
) *CreateListenerRequest

* param regionId: Region ID (Required) * param listenerName: Listener的名字,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Required) * param protocol: 监听协议, 取值为Tcp, Tls, Http, Https <br>【alb】支持Http, Https,Tcp和Tls <br>【nlb】支持Tcp <br>【dnlb】支持Tcp (Required) * param port: 监听端口,取值范围为[1, 65535] (Required) * param backendId: 默认的后端服务Id (Required) * param loadBalancerId: Listener所属loadBalancer的Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateListenerRequestWithAllParams

func NewCreateListenerRequestWithAllParams(
	regionId string,
	listenerName string,
	protocol string,
	port int,
	backendId string,
	loadBalancerId string,
	urlMapId *string,
	action *string,
	certificateSpecs []lb.CertificateSpec,
	connectionIdleTimeSeconds *int,
	description *string,
) *CreateListenerRequest

* param regionId: Region ID (Required) * param listenerName: Listener的名字,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Required) * param protocol: 监听协议, 取值为Tcp, Tls, Http, Https <br>【alb】支持Http, Https,Tcp和Tls <br>【nlb】支持Tcp <br>【dnlb】支持Tcp (Required) * param port: 监听端口,取值范围为[1, 65535] (Required) * param backendId: 默认的后端服务Id (Required) * param loadBalancerId: Listener所属loadBalancer的Id (Required) * param urlMapId: 【alb Https和Http协议】转发规则组Id (Optional) * param action: 默认后端服务的转发策略,取值为Forward或Redirect, 现只支持Forward, 默认为Forward (Optional) * param certificateSpecs: 【alb Https和Tls协议】Listener绑定的默认证书,只支持一个证书 (Optional) * param connectionIdleTimeSeconds: 【alb、nlb】空闲连接超时时间, 范围为[1,86400]。 <br>(Tcp和Tls协议)默认为:1800s <br>(Http和Https协议)默认为:60s <br>【dnlb】不支持 (Optional) * param description: 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional)

func NewCreateListenerRequestWithoutParam

func NewCreateListenerRequestWithoutParam() *CreateListenerRequest

This constructor has better compatible ability when API parameters changed

func (CreateListenerRequest) GetRegionId

func (r CreateListenerRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateListenerRequest) SetAction

func (r *CreateListenerRequest) SetAction(action string)

param action: 默认后端服务的转发策略,取值为Forward或Redirect, 现只支持Forward, 默认为Forward(Optional)

func (*CreateListenerRequest) SetBackendId

func (r *CreateListenerRequest) SetBackendId(backendId string)

param backendId: 默认的后端服务Id(Required)

func (*CreateListenerRequest) SetCertificateSpecs

func (r *CreateListenerRequest) SetCertificateSpecs(certificateSpecs []lb.CertificateSpec)

param certificateSpecs: 【alb Https和Tls协议】Listener绑定的默认证书,只支持一个证书(Optional)

func (*CreateListenerRequest) SetConnectionIdleTimeSeconds

func (r *CreateListenerRequest) SetConnectionIdleTimeSeconds(connectionIdleTimeSeconds int)

param connectionIdleTimeSeconds: 【alb、nlb】空闲连接超时时间, 范围为[1,86400]。 <br>(Tcp和Tls协议)默认为:1800s <br>(Http和Https协议)默认为:60s <br>【dnlb】不支持(Optional)

func (*CreateListenerRequest) SetDescription

func (r *CreateListenerRequest) SetDescription(description string)

param description: 描述,允许输入UTF-8编码下的全部字符,不超过256字符(Optional)

func (*CreateListenerRequest) SetListenerName

func (r *CreateListenerRequest) SetListenerName(listenerName string)

param listenerName: Listener的名字,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符(Required)

func (*CreateListenerRequest) SetLoadBalancerId

func (r *CreateListenerRequest) SetLoadBalancerId(loadBalancerId string)

param loadBalancerId: Listener所属loadBalancer的Id(Required)

func (*CreateListenerRequest) SetPort

func (r *CreateListenerRequest) SetPort(port int)

param port: 监听端口,取值范围为[1, 65535](Required)

func (*CreateListenerRequest) SetProtocol

func (r *CreateListenerRequest) SetProtocol(protocol string)

param protocol: 监听协议, 取值为Tcp, Tls, Http, Https <br>【alb】支持Http, Https,Tcp和Tls <br>【nlb】支持Tcp <br>【dnlb】支持Tcp(Required)

func (*CreateListenerRequest) SetRegionId

func (r *CreateListenerRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*CreateListenerRequest) SetUrlMapId

func (r *CreateListenerRequest) SetUrlMapId(urlMapId string)

param urlMapId: 【alb Https和Http协议】转发规则组Id(Optional)

type CreateListenerResponse

type CreateListenerResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    CreateListenerResult `json:"result"`
}

type CreateListenerResult

type CreateListenerResult struct {
	ListenerId string `json:"listenerId"`
}

type CreateLoadBalancerRequest

type CreateLoadBalancerRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* LoadBalancer的名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符  */
	LoadBalancerName string `json:"loadBalancerName"`

	/* LoadBalancer所属子网的Id  */
	SubnetId string `json:"subnetId"`

	/* LoadBalancer的类型,取值:alb、nlb、dnlb,默认为alb (Optional) */
	Type *string `json:"type"`

	/* 【alb,nlb】LoadBalancer所属availability Zone列表,对于alb,nlb是必选参数 <br>【dnlb】全可用区可用,不必传该参数  */
	Azs []string `json:"azs"`

	/* 【alb】支持按用量计费,默认为按用量。【nlb】支持按用量计费。【dnlb】支持按配置计费 (Optional) */
	ChargeSpec *charge.ChargeSpec `json:"chargeSpec"`

	/* 负载均衡关联的弹性IP规格 (Optional) */
	ElasticIp *vpc.ElasticIpSpec `json:"elasticIp"`

	/* 【alb】 安全组 ID列表 (Optional) */
	SecurityGroupIds []string `json:"securityGroupIds"`

	/* LoadBalancer的描述信息,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
	Description *string `json:"description"`

	/* 删除保护,取值为True(开启)或False(关闭),默认为False (Optional) */
	DeleteProtection *bool `json:"deleteProtection"`

	/* 用户tag 信息 (Optional) */
	UserTags []lb.Tag `json:"userTags"`
}

func NewCreateLoadBalancerRequest

func NewCreateLoadBalancerRequest(
	regionId string,
	loadBalancerName string,
	subnetId string,
	azs []string,
) *CreateLoadBalancerRequest

* param regionId: Region ID (Required) * param loadBalancerName: LoadBalancer的名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Required) * param subnetId: LoadBalancer所属子网的Id (Required) * param azs: 【alb,nlb】LoadBalancer所属availability Zone列表,对于alb,nlb是必选参数 <br>【dnlb】全可用区可用,不必传该参数 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateLoadBalancerRequestWithAllParams

func NewCreateLoadBalancerRequestWithAllParams(
	regionId string,
	loadBalancerName string,
	subnetId string,
	type_ *string,
	azs []string,
	chargeSpec *charge.ChargeSpec,
	elasticIp *vpc.ElasticIpSpec,
	securityGroupIds []string,
	description *string,
	deleteProtection *bool,
	userTags []lb.Tag,
) *CreateLoadBalancerRequest

* param regionId: Region ID (Required) * param loadBalancerName: LoadBalancer的名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Required) * param subnetId: LoadBalancer所属子网的Id (Required) * param type_: LoadBalancer的类型,取值:alb、nlb、dnlb,默认为alb (Optional) * param azs: 【alb,nlb】LoadBalancer所属availability Zone列表,对于alb,nlb是必选参数 <br>【dnlb】全可用区可用,不必传该参数 (Required) * param chargeSpec: 【alb】支持按用量计费,默认为按用量。【nlb】支持按用量计费。【dnlb】支持按配置计费 (Optional) * param elasticIp: 负载均衡关联的弹性IP规格 (Optional) * param securityGroupIds: 【alb】 安全组 ID列表 (Optional) * param description: LoadBalancer的描述信息,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) * param deleteProtection: 删除保护,取值为True(开启)或False(关闭),默认为False (Optional) * param userTags: 用户tag 信息 (Optional)

func NewCreateLoadBalancerRequestWithoutParam

func NewCreateLoadBalancerRequestWithoutParam() *CreateLoadBalancerRequest

This constructor has better compatible ability when API parameters changed

func (CreateLoadBalancerRequest) GetRegionId

func (r CreateLoadBalancerRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateLoadBalancerRequest) SetAzs

func (r *CreateLoadBalancerRequest) SetAzs(azs []string)

param azs: 【alb,nlb】LoadBalancer所属availability Zone列表,对于alb,nlb是必选参数 <br>【dnlb】全可用区可用,不必传该参数(Required)

func (*CreateLoadBalancerRequest) SetChargeSpec

func (r *CreateLoadBalancerRequest) SetChargeSpec(chargeSpec *charge.ChargeSpec)

param chargeSpec: 【alb】支持按用量计费,默认为按用量。【nlb】支持按用量计费。【dnlb】支持按配置计费(Optional)

func (*CreateLoadBalancerRequest) SetDeleteProtection

func (r *CreateLoadBalancerRequest) SetDeleteProtection(deleteProtection bool)

param deleteProtection: 删除保护,取值为True(开启)或False(关闭),默认为False(Optional)

func (*CreateLoadBalancerRequest) SetDescription

func (r *CreateLoadBalancerRequest) SetDescription(description string)

param description: LoadBalancer的描述信息,允许输入UTF-8编码下的全部字符,不超过256字符(Optional)

func (*CreateLoadBalancerRequest) SetElasticIp

func (r *CreateLoadBalancerRequest) SetElasticIp(elasticIp *vpc.ElasticIpSpec)

param elasticIp: 负载均衡关联的弹性IP规格(Optional)

func (*CreateLoadBalancerRequest) SetLoadBalancerName

func (r *CreateLoadBalancerRequest) SetLoadBalancerName(loadBalancerName string)

param loadBalancerName: LoadBalancer的名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符(Required)

func (*CreateLoadBalancerRequest) SetRegionId

func (r *CreateLoadBalancerRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*CreateLoadBalancerRequest) SetSecurityGroupIds

func (r *CreateLoadBalancerRequest) SetSecurityGroupIds(securityGroupIds []string)

param securityGroupIds: 【alb】 安全组 ID列表(Optional)

func (*CreateLoadBalancerRequest) SetSubnetId

func (r *CreateLoadBalancerRequest) SetSubnetId(subnetId string)

param subnetId: LoadBalancer所属子网的Id(Required)

func (*CreateLoadBalancerRequest) SetType

func (r *CreateLoadBalancerRequest) SetType(type_ string)

param type_: LoadBalancer的类型,取值:alb、nlb、dnlb,默认为alb(Optional)

func (*CreateLoadBalancerRequest) SetUserTags added in v1.41.0

func (r *CreateLoadBalancerRequest) SetUserTags(userTags []lb.Tag)

param userTags: 用户tag 信息(Optional)

type CreateLoadBalancerResponse

type CreateLoadBalancerResponse struct {
	RequestID string                   `json:"requestId"`
	Error     core.ErrorResponse       `json:"error"`
	Result    CreateLoadBalancerResult `json:"result"`
}

type CreateLoadBalancerResult

type CreateLoadBalancerResult struct {
	LoadBalancerId string `json:"loadBalancerId"`
}

type CreateTargetGroupRequest

type CreateTargetGroupRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 虚拟服务器组名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符  */
	TargetGroupName string `json:"targetGroupName"`

	/* 负载均衡的Id  */
	LoadBalancerId string `json:"loadBalancerId"`

	/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
	Description *string `json:"description"`

	/* 类型,取值为instance或ip (Optional) */
	Type *string `json:"type"`
}

func NewCreateTargetGroupRequest

func NewCreateTargetGroupRequest(
	regionId string,
	targetGroupName string,
	loadBalancerId string,
) *CreateTargetGroupRequest

* param regionId: Region ID (Required) * param targetGroupName: 虚拟服务器组名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Required) * param loadBalancerId: 负载均衡的Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateTargetGroupRequestWithAllParams

func NewCreateTargetGroupRequestWithAllParams(
	regionId string,
	targetGroupName string,
	loadBalancerId string,
	description *string,
	type_ *string,
) *CreateTargetGroupRequest

* param regionId: Region ID (Required) * param targetGroupName: 虚拟服务器组名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Required) * param loadBalancerId: 负载均衡的Id (Required) * param description: 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) * param type_: 类型,取值为instance或ip (Optional)

func NewCreateTargetGroupRequestWithoutParam

func NewCreateTargetGroupRequestWithoutParam() *CreateTargetGroupRequest

This constructor has better compatible ability when API parameters changed

func (CreateTargetGroupRequest) GetRegionId

func (r CreateTargetGroupRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateTargetGroupRequest) SetDescription

func (r *CreateTargetGroupRequest) SetDescription(description string)

param description: 描述,允许输入UTF-8编码下的全部字符,不超过256字符(Optional)

func (*CreateTargetGroupRequest) SetLoadBalancerId

func (r *CreateTargetGroupRequest) SetLoadBalancerId(loadBalancerId string)

param loadBalancerId: 负载均衡的Id(Required)

func (*CreateTargetGroupRequest) SetRegionId

func (r *CreateTargetGroupRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*CreateTargetGroupRequest) SetTargetGroupName

func (r *CreateTargetGroupRequest) SetTargetGroupName(targetGroupName string)

param targetGroupName: 虚拟服务器组名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符(Required)

func (*CreateTargetGroupRequest) SetType added in v1.41.0

func (r *CreateTargetGroupRequest) SetType(type_ string)

param type_: 类型,取值为instance或ip(Optional)

type CreateTargetGroupResponse

type CreateTargetGroupResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    CreateTargetGroupResult `json:"result"`
}

type CreateTargetGroupResult

type CreateTargetGroupResult struct {
	TargetGroupId string `json:"targetGroupId"`
}

type CreateUrlMapRequest

type CreateUrlMapRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 转发规则组名称,同一个负载均衡下,名称不能重复,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符  */
	UrlMapName string `json:"urlMapName"`

	/* 转发规则组所属负载均衡的Id  */
	LoadBalancerId string `json:"loadBalancerId"`

	/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
	Description *string `json:"description"`
}

func NewCreateUrlMapRequest

func NewCreateUrlMapRequest(
	regionId string,
	urlMapName string,
	loadBalancerId string,
) *CreateUrlMapRequest

* param regionId: Region ID (Required) * param urlMapName: 转发规则组名称,同一个负载均衡下,名称不能重复,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Required) * param loadBalancerId: 转发规则组所属负载均衡的Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateUrlMapRequestWithAllParams

func NewCreateUrlMapRequestWithAllParams(
	regionId string,
	urlMapName string,
	loadBalancerId string,
	description *string,
) *CreateUrlMapRequest

* param regionId: Region ID (Required) * param urlMapName: 转发规则组名称,同一个负载均衡下,名称不能重复,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Required) * param loadBalancerId: 转发规则组所属负载均衡的Id (Required) * param description: 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional)

func NewCreateUrlMapRequestWithoutParam

func NewCreateUrlMapRequestWithoutParam() *CreateUrlMapRequest

This constructor has better compatible ability when API parameters changed

func (CreateUrlMapRequest) GetRegionId

func (r CreateUrlMapRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateUrlMapRequest) SetDescription

func (r *CreateUrlMapRequest) SetDescription(description string)

param description: 描述,允许输入UTF-8编码下的全部字符,不超过256字符(Optional)

func (*CreateUrlMapRequest) SetLoadBalancerId

func (r *CreateUrlMapRequest) SetLoadBalancerId(loadBalancerId string)

param loadBalancerId: 转发规则组所属负载均衡的Id(Required)

func (*CreateUrlMapRequest) SetRegionId

func (r *CreateUrlMapRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*CreateUrlMapRequest) SetUrlMapName

func (r *CreateUrlMapRequest) SetUrlMapName(urlMapName string)

param urlMapName: 转发规则组名称,同一个负载均衡下,名称不能重复,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符(Required)

type CreateUrlMapResponse

type CreateUrlMapResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    CreateUrlMapResult `json:"result"`
}

type CreateUrlMapResult

type CreateUrlMapResult struct {
	UrlMapId string `json:"urlMapId"`
}

type DeRegisterTargetsRequest

type DeRegisterTargetsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* TargetGroup Id  */
	TargetGroupId string `json:"targetGroupId"`

	/* Target Id列表  */
	TargetIds []string `json:"targetIds"`
}

func NewDeRegisterTargetsRequest

func NewDeRegisterTargetsRequest(
	regionId string,
	targetGroupId string,
	targetIds []string,
) *DeRegisterTargetsRequest

* param regionId: Region ID (Required) * param targetGroupId: TargetGroup Id (Required) * param targetIds: Target Id列表 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeRegisterTargetsRequestWithAllParams

func NewDeRegisterTargetsRequestWithAllParams(
	regionId string,
	targetGroupId string,
	targetIds []string,
) *DeRegisterTargetsRequest

* param regionId: Region ID (Required) * param targetGroupId: TargetGroup Id (Required) * param targetIds: Target Id列表 (Required)

func NewDeRegisterTargetsRequestWithoutParam

func NewDeRegisterTargetsRequestWithoutParam() *DeRegisterTargetsRequest

This constructor has better compatible ability when API parameters changed

func (DeRegisterTargetsRequest) GetRegionId

func (r DeRegisterTargetsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeRegisterTargetsRequest) SetRegionId

func (r *DeRegisterTargetsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DeRegisterTargetsRequest) SetTargetGroupId

func (r *DeRegisterTargetsRequest) SetTargetGroupId(targetGroupId string)

param targetGroupId: TargetGroup Id(Required)

func (*DeRegisterTargetsRequest) SetTargetIds

func (r *DeRegisterTargetsRequest) SetTargetIds(targetIds []string)

param targetIds: Target Id列表(Required)

type DeRegisterTargetsResponse

type DeRegisterTargetsResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    DeRegisterTargetsResult `json:"result"`
}

type DeRegisterTargetsResult

type DeRegisterTargetsResult struct {
}

type DeleteBackendRequest

type DeleteBackendRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Backend Id  */
	BackendId string `json:"backendId"`
}

func NewDeleteBackendRequest

func NewDeleteBackendRequest(
	regionId string,
	backendId string,
) *DeleteBackendRequest

* param regionId: Region ID (Required) * param backendId: Backend Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteBackendRequestWithAllParams

func NewDeleteBackendRequestWithAllParams(
	regionId string,
	backendId string,
) *DeleteBackendRequest

* param regionId: Region ID (Required) * param backendId: Backend Id (Required)

func NewDeleteBackendRequestWithoutParam

func NewDeleteBackendRequestWithoutParam() *DeleteBackendRequest

This constructor has better compatible ability when API parameters changed

func (DeleteBackendRequest) GetRegionId

func (r DeleteBackendRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteBackendRequest) SetBackendId

func (r *DeleteBackendRequest) SetBackendId(backendId string)

param backendId: Backend Id(Required)

func (*DeleteBackendRequest) SetRegionId

func (r *DeleteBackendRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DeleteBackendResponse

type DeleteBackendResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    DeleteBackendResult `json:"result"`
}

type DeleteBackendResult

type DeleteBackendResult struct {
}

type DeleteListenerCertificatesRequest added in v1.41.0

type DeleteListenerCertificatesRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 监听器ID  */
	ListenerId string `json:"listenerId"`

	/* 【alb Https和Tls协议】扩展证书绑定Id  */
	CertificateBindIds []string `json:"certificateBindIds"`
}

func NewDeleteListenerCertificatesRequest added in v1.41.0

func NewDeleteListenerCertificatesRequest(
	regionId string,
	listenerId string,
	certificateBindIds []string,
) *DeleteListenerCertificatesRequest

* param regionId: Region ID (Required) * param listenerId: 监听器ID (Required) * param certificateBindIds: 【alb Https和Tls协议】扩展证书绑定Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteListenerCertificatesRequestWithAllParams added in v1.41.0

func NewDeleteListenerCertificatesRequestWithAllParams(
	regionId string,
	listenerId string,
	certificateBindIds []string,
) *DeleteListenerCertificatesRequest

* param regionId: Region ID (Required) * param listenerId: 监听器ID (Required) * param certificateBindIds: 【alb Https和Tls协议】扩展证书绑定Id (Required)

func NewDeleteListenerCertificatesRequestWithoutParam added in v1.41.0

func NewDeleteListenerCertificatesRequestWithoutParam() *DeleteListenerCertificatesRequest

This constructor has better compatible ability when API parameters changed

func (DeleteListenerCertificatesRequest) GetRegionId added in v1.41.0

func (r DeleteListenerCertificatesRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteListenerCertificatesRequest) SetCertificateBindIds added in v1.41.0

func (r *DeleteListenerCertificatesRequest) SetCertificateBindIds(certificateBindIds []string)

param certificateBindIds: 【alb Https和Tls协议】扩展证书绑定Id(Required)

func (*DeleteListenerCertificatesRequest) SetListenerId added in v1.41.0

func (r *DeleteListenerCertificatesRequest) SetListenerId(listenerId string)

param listenerId: 监听器ID(Required)

func (*DeleteListenerCertificatesRequest) SetRegionId added in v1.41.0

func (r *DeleteListenerCertificatesRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DeleteListenerCertificatesResponse added in v1.41.0

type DeleteListenerCertificatesResponse struct {
	RequestID string                           `json:"requestId"`
	Error     core.ErrorResponse               `json:"error"`
	Result    DeleteListenerCertificatesResult `json:"result"`
}

type DeleteListenerCertificatesResult added in v1.41.0

type DeleteListenerCertificatesResult struct {
}

type DeleteListenerRequest

type DeleteListenerRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 监听器ID  */
	ListenerId string `json:"listenerId"`
}

func NewDeleteListenerRequest

func NewDeleteListenerRequest(
	regionId string,
	listenerId string,
) *DeleteListenerRequest

* param regionId: Region ID (Required) * param listenerId: 监听器ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteListenerRequestWithAllParams

func NewDeleteListenerRequestWithAllParams(
	regionId string,
	listenerId string,
) *DeleteListenerRequest

* param regionId: Region ID (Required) * param listenerId: 监听器ID (Required)

func NewDeleteListenerRequestWithoutParam

func NewDeleteListenerRequestWithoutParam() *DeleteListenerRequest

This constructor has better compatible ability when API parameters changed

func (DeleteListenerRequest) GetRegionId

func (r DeleteListenerRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteListenerRequest) SetListenerId

func (r *DeleteListenerRequest) SetListenerId(listenerId string)

param listenerId: 监听器ID(Required)

func (*DeleteListenerRequest) SetRegionId

func (r *DeleteListenerRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DeleteListenerResponse

type DeleteListenerResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    DeleteListenerResult `json:"result"`
}

type DeleteListenerResult

type DeleteListenerResult struct {
}

type DeleteLoadBalancerRequest

type DeleteLoadBalancerRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* LB ID  */
	LoadBalancerId string `json:"loadBalancerId"`
}

func NewDeleteLoadBalancerRequest

func NewDeleteLoadBalancerRequest(
	regionId string,
	loadBalancerId string,
) *DeleteLoadBalancerRequest

* param regionId: Region ID (Required) * param loadBalancerId: LB ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteLoadBalancerRequestWithAllParams

func NewDeleteLoadBalancerRequestWithAllParams(
	regionId string,
	loadBalancerId string,
) *DeleteLoadBalancerRequest

* param regionId: Region ID (Required) * param loadBalancerId: LB ID (Required)

func NewDeleteLoadBalancerRequestWithoutParam

func NewDeleteLoadBalancerRequestWithoutParam() *DeleteLoadBalancerRequest

This constructor has better compatible ability when API parameters changed

func (DeleteLoadBalancerRequest) GetRegionId

func (r DeleteLoadBalancerRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteLoadBalancerRequest) SetLoadBalancerId

func (r *DeleteLoadBalancerRequest) SetLoadBalancerId(loadBalancerId string)

param loadBalancerId: LB ID(Required)

func (*DeleteLoadBalancerRequest) SetRegionId

func (r *DeleteLoadBalancerRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DeleteLoadBalancerResponse

type DeleteLoadBalancerResponse struct {
	RequestID string                   `json:"requestId"`
	Error     core.ErrorResponse       `json:"error"`
	Result    DeleteLoadBalancerResult `json:"result"`
}

type DeleteLoadBalancerResult

type DeleteLoadBalancerResult struct {
}

type DeleteRulesRequest

type DeleteRulesRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 转发规则组Id  */
	UrlMapId string `json:"urlMapId"`

	/* rule Id列表  */
	RuleIds []string `json:"ruleIds"`
}

func NewDeleteRulesRequest

func NewDeleteRulesRequest(
	regionId string,
	urlMapId string,
	ruleIds []string,
) *DeleteRulesRequest

* param regionId: Region ID (Required) * param urlMapId: 转发规则组Id (Required) * param ruleIds: rule Id列表 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteRulesRequestWithAllParams

func NewDeleteRulesRequestWithAllParams(
	regionId string,
	urlMapId string,
	ruleIds []string,
) *DeleteRulesRequest

* param regionId: Region ID (Required) * param urlMapId: 转发规则组Id (Required) * param ruleIds: rule Id列表 (Required)

func NewDeleteRulesRequestWithoutParam

func NewDeleteRulesRequestWithoutParam() *DeleteRulesRequest

This constructor has better compatible ability when API parameters changed

func (DeleteRulesRequest) GetRegionId

func (r DeleteRulesRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteRulesRequest) SetRegionId

func (r *DeleteRulesRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DeleteRulesRequest) SetRuleIds

func (r *DeleteRulesRequest) SetRuleIds(ruleIds []string)

param ruleIds: rule Id列表(Required)

func (*DeleteRulesRequest) SetUrlMapId

func (r *DeleteRulesRequest) SetUrlMapId(urlMapId string)

param urlMapId: 转发规则组Id(Required)

type DeleteRulesResponse

type DeleteRulesResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    DeleteRulesResult  `json:"result"`
}

type DeleteRulesResult

type DeleteRulesResult struct {
}

type DeleteTargetGroupRequest

type DeleteTargetGroupRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* TargetGroup Id  */
	TargetGroupId string `json:"targetGroupId"`
}

func NewDeleteTargetGroupRequest

func NewDeleteTargetGroupRequest(
	regionId string,
	targetGroupId string,
) *DeleteTargetGroupRequest

* param regionId: Region ID (Required) * param targetGroupId: TargetGroup Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteTargetGroupRequestWithAllParams

func NewDeleteTargetGroupRequestWithAllParams(
	regionId string,
	targetGroupId string,
) *DeleteTargetGroupRequest

* param regionId: Region ID (Required) * param targetGroupId: TargetGroup Id (Required)

func NewDeleteTargetGroupRequestWithoutParam

func NewDeleteTargetGroupRequestWithoutParam() *DeleteTargetGroupRequest

This constructor has better compatible ability when API parameters changed

func (DeleteTargetGroupRequest) GetRegionId

func (r DeleteTargetGroupRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteTargetGroupRequest) SetRegionId

func (r *DeleteTargetGroupRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DeleteTargetGroupRequest) SetTargetGroupId

func (r *DeleteTargetGroupRequest) SetTargetGroupId(targetGroupId string)

param targetGroupId: TargetGroup Id(Required)

type DeleteTargetGroupResponse

type DeleteTargetGroupResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    DeleteTargetGroupResult `json:"result"`
}

type DeleteTargetGroupResult

type DeleteTargetGroupResult struct {
}

type DeleteUrlMapRequest

type DeleteUrlMapRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 转发规则组Id  */
	UrlMapId string `json:"urlMapId"`
}

func NewDeleteUrlMapRequest

func NewDeleteUrlMapRequest(
	regionId string,
	urlMapId string,
) *DeleteUrlMapRequest

* param regionId: Region ID (Required) * param urlMapId: 转发规则组Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteUrlMapRequestWithAllParams

func NewDeleteUrlMapRequestWithAllParams(
	regionId string,
	urlMapId string,
) *DeleteUrlMapRequest

* param regionId: Region ID (Required) * param urlMapId: 转发规则组Id (Required)

func NewDeleteUrlMapRequestWithoutParam

func NewDeleteUrlMapRequestWithoutParam() *DeleteUrlMapRequest

This constructor has better compatible ability when API parameters changed

func (DeleteUrlMapRequest) GetRegionId

func (r DeleteUrlMapRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteUrlMapRequest) SetRegionId

func (r *DeleteUrlMapRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DeleteUrlMapRequest) SetUrlMapId

func (r *DeleteUrlMapRequest) SetUrlMapId(urlMapId string)

param urlMapId: 转发规则组Id(Required)

type DeleteUrlMapResponse

type DeleteUrlMapResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    DeleteUrlMapResult `json:"result"`
}

type DeleteUrlMapResult

type DeleteUrlMapResult struct {
}

type DescribeBackendRequest

type DescribeBackendRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Backend Id  */
	BackendId string `json:"backendId"`
}

func NewDescribeBackendRequest

func NewDescribeBackendRequest(
	regionId string,
	backendId string,
) *DescribeBackendRequest

* param regionId: Region ID (Required) * param backendId: Backend Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeBackendRequestWithAllParams

func NewDescribeBackendRequestWithAllParams(
	regionId string,
	backendId string,
) *DescribeBackendRequest

* param regionId: Region ID (Required) * param backendId: Backend Id (Required)

func NewDescribeBackendRequestWithoutParam

func NewDescribeBackendRequestWithoutParam() *DescribeBackendRequest

This constructor has better compatible ability when API parameters changed

func (DescribeBackendRequest) GetRegionId

func (r DescribeBackendRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeBackendRequest) SetBackendId

func (r *DescribeBackendRequest) SetBackendId(backendId string)

param backendId: Backend Id(Required)

func (*DescribeBackendRequest) SetRegionId

func (r *DescribeBackendRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeBackendResponse

type DescribeBackendResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    DescribeBackendResult `json:"result"`
}

type DescribeBackendResult

type DescribeBackendResult struct {
	Backend lb.Backend `json:"backend"`
}

type DescribeBackendsRequest

type DescribeBackendsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小,默认为20,取值范围:[10,100] (Optional) */
	PageSize *int `json:"pageSize"`

	/* backendIds - 后端服务Id列表,支持多个
	backendNames - 后端服务名字列表,支持多个
	loadBalancerId - 负载均衡器Id,支持单个
	agId - 可用性组Id,支持单个
	loadBalancerType - 负载均衡类型,取值为:alb、nlb、dnlb,默认alb,支持单个
	protocol - 后端服务的协议【alb】支持Http、Tcp,【nlb】支持Tcp,默认查询所有,支持单个
	 (Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeBackendsRequest

func NewDescribeBackendsRequest(
	regionId string,
) *DescribeBackendsRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeBackendsRequestWithAllParams

func NewDescribeBackendsRequestWithAllParams(
	regionId string,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
) *DescribeBackendsRequest
  • param regionId: Region ID (Required)
  • param pageNumber: 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页 (Optional)
  • param pageSize: 分页大小,默认为20,取值范围:[10,100] (Optional)
  • param filters: backendIds - 后端服务Id列表,支持多个

backendNames - 后端服务名字列表,支持多个 loadBalancerId - 负载均衡器Id,支持单个 agId - 可用性组Id,支持单个 loadBalancerType - 负载均衡类型,取值为:alb、nlb、dnlb,默认alb,支持单个 protocol - 后端服务的协议【alb】支持Http、Tcp,【nlb】支持Tcp,默认查询所有,支持单个

(Optional)

func NewDescribeBackendsRequestWithoutParam

func NewDescribeBackendsRequestWithoutParam() *DescribeBackendsRequest

This constructor has better compatible ability when API parameters changed

func (DescribeBackendsRequest) GetRegionId

func (r DescribeBackendsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeBackendsRequest) SetFilters

func (r *DescribeBackendsRequest) SetFilters(filters []common.Filter)
param filters: backendIds - 后端服务Id列表,支持多个

backendNames - 后端服务名字列表,支持多个 loadBalancerId - 负载均衡器Id,支持单个 agId - 可用性组Id,支持单个 loadBalancerType - 负载均衡类型,取值为:alb、nlb、dnlb,默认alb,支持单个 protocol - 后端服务的协议【alb】支持Http、Tcp,【nlb】支持Tcp,默认查询所有,支持单个 (Optional)

func (*DescribeBackendsRequest) SetPageNumber

func (r *DescribeBackendsRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页(Optional)

func (*DescribeBackendsRequest) SetPageSize

func (r *DescribeBackendsRequest) SetPageSize(pageSize int)

param pageSize: 分页大小,默认为20,取值范围:[10,100](Optional)

func (*DescribeBackendsRequest) SetRegionId

func (r *DescribeBackendsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeBackendsResponse

type DescribeBackendsResponse struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    DescribeBackendsResult `json:"result"`
}

type DescribeBackendsResult

type DescribeBackendsResult struct {
	Backends   []lb.Backend `json:"backends"`
	TotalCount int          `json:"totalCount"`
}

type DescribeListenerRequest

type DescribeListenerRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 监听器ID  */
	ListenerId string `json:"listenerId"`
}

func NewDescribeListenerRequest

func NewDescribeListenerRequest(
	regionId string,
	listenerId string,
) *DescribeListenerRequest

* param regionId: Region ID (Required) * param listenerId: 监听器ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeListenerRequestWithAllParams

func NewDescribeListenerRequestWithAllParams(
	regionId string,
	listenerId string,
) *DescribeListenerRequest

* param regionId: Region ID (Required) * param listenerId: 监听器ID (Required)

func NewDescribeListenerRequestWithoutParam

func NewDescribeListenerRequestWithoutParam() *DescribeListenerRequest

This constructor has better compatible ability when API parameters changed

func (DescribeListenerRequest) GetRegionId

func (r DescribeListenerRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeListenerRequest) SetListenerId

func (r *DescribeListenerRequest) SetListenerId(listenerId string)

param listenerId: 监听器ID(Required)

func (*DescribeListenerRequest) SetRegionId

func (r *DescribeListenerRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeListenerResponse

type DescribeListenerResponse struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    DescribeListenerResult `json:"result"`
}

type DescribeListenerResult

type DescribeListenerResult struct {
	Listener lb.Listener `json:"listener"`
}

type DescribeListenersRequest

type DescribeListenersRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小,默认为20,取值范围:[10,100] (Optional) */
	PageSize *int `json:"pageSize"`

	/* listenerNames - 监听器名称列表,支持多个
	listenerIds - 监听器Id列表,支持多个
	loadBalancerId - 负载均衡器Id,支持单个
	loadBalancerType - 负载均衡类型,取值为:alb、nlb、dnlb,默认alb,支持单个
	urlMapIds - 【仅alb支持】转发规则组Id列表,支持多个
	 (Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeListenersRequest

func NewDescribeListenersRequest(
	regionId string,
) *DescribeListenersRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeListenersRequestWithAllParams

func NewDescribeListenersRequestWithAllParams(
	regionId string,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
) *DescribeListenersRequest
  • param regionId: Region ID (Required)
  • param pageNumber: 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页 (Optional)
  • param pageSize: 分页大小,默认为20,取值范围:[10,100] (Optional)
  • param filters: listenerNames - 监听器名称列表,支持多个

listenerIds - 监听器Id列表,支持多个 loadBalancerId - 负载均衡器Id,支持单个 loadBalancerType - 负载均衡类型,取值为:alb、nlb、dnlb,默认alb,支持单个 urlMapIds - 【仅alb支持】转发规则组Id列表,支持多个

(Optional)

func NewDescribeListenersRequestWithoutParam

func NewDescribeListenersRequestWithoutParam() *DescribeListenersRequest

This constructor has better compatible ability when API parameters changed

func (DescribeListenersRequest) GetRegionId

func (r DescribeListenersRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeListenersRequest) SetFilters

func (r *DescribeListenersRequest) SetFilters(filters []common.Filter)
param filters: listenerNames - 监听器名称列表,支持多个

listenerIds - 监听器Id列表,支持多个 loadBalancerId - 负载均衡器Id,支持单个 loadBalancerType - 负载均衡类型,取值为:alb、nlb、dnlb,默认alb,支持单个 urlMapIds - 【仅alb支持】转发规则组Id列表,支持多个 (Optional)

func (*DescribeListenersRequest) SetPageNumber

func (r *DescribeListenersRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页(Optional)

func (*DescribeListenersRequest) SetPageSize

func (r *DescribeListenersRequest) SetPageSize(pageSize int)

param pageSize: 分页大小,默认为20,取值范围:[10,100](Optional)

func (*DescribeListenersRequest) SetRegionId

func (r *DescribeListenersRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeListenersResponse

type DescribeListenersResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    DescribeListenersResult `json:"result"`
}

type DescribeListenersResult

type DescribeListenersResult struct {
	Listeners  []lb.Listener `json:"listeners"`
	TotalCount int           `json:"totalCount"`
}

type DescribeLoadBalancerRequest

type DescribeLoadBalancerRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* LB ID  */
	LoadBalancerId string `json:"loadBalancerId"`
}

func NewDescribeLoadBalancerRequest

func NewDescribeLoadBalancerRequest(
	regionId string,
	loadBalancerId string,
) *DescribeLoadBalancerRequest

* param regionId: Region ID (Required) * param loadBalancerId: LB ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeLoadBalancerRequestWithAllParams

func NewDescribeLoadBalancerRequestWithAllParams(
	regionId string,
	loadBalancerId string,
) *DescribeLoadBalancerRequest

* param regionId: Region ID (Required) * param loadBalancerId: LB ID (Required)

func NewDescribeLoadBalancerRequestWithoutParam

func NewDescribeLoadBalancerRequestWithoutParam() *DescribeLoadBalancerRequest

This constructor has better compatible ability when API parameters changed

func (DescribeLoadBalancerRequest) GetRegionId

func (r DescribeLoadBalancerRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeLoadBalancerRequest) SetLoadBalancerId

func (r *DescribeLoadBalancerRequest) SetLoadBalancerId(loadBalancerId string)

param loadBalancerId: LB ID(Required)

func (*DescribeLoadBalancerRequest) SetRegionId

func (r *DescribeLoadBalancerRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeLoadBalancerResponse

type DescribeLoadBalancerResponse struct {
	RequestID string                     `json:"requestId"`
	Error     core.ErrorResponse         `json:"error"`
	Result    DescribeLoadBalancerResult `json:"result"`
}

type DescribeLoadBalancerResult

type DescribeLoadBalancerResult struct {
	LoadBalancer lb.LoadBalancer `json:"loadBalancer"`
}

type DescribeLoadBalancersRequest

type DescribeLoadBalancersRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小,默认为20,取值范围:[10,100] (Optional) */
	PageSize *int `json:"pageSize"`

	/* loadBalancerType - 负载均衡类型,取值为:alb、nlb、dnlb,默认alb,支持单个
	loadBalancerIds - 负载均衡ID列表,支持多个
	loadBalancerNames - 负载均衡名称列表,支持多个
	vpcId - 负载均衡所在Vpc的Id,支持单个
	 (Optional) */
	Filters []common.Filter `json:"filters"`

	/* Tag筛选条件 (Optional) */
	Tags []lb.TagFilter `json:"tags"`
}

func NewDescribeLoadBalancersRequest

func NewDescribeLoadBalancersRequest(
	regionId string,
) *DescribeLoadBalancersRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeLoadBalancersRequestWithAllParams

func NewDescribeLoadBalancersRequestWithAllParams(
	regionId string,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
	tags []lb.TagFilter,
) *DescribeLoadBalancersRequest
  • param regionId: Region ID (Required)
  • param pageNumber: 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页 (Optional)
  • param pageSize: 分页大小,默认为20,取值范围:[10,100] (Optional)
  • param filters: loadBalancerType - 负载均衡类型,取值为:alb、nlb、dnlb,默认alb,支持单个

loadBalancerIds - 负载均衡ID列表,支持多个 loadBalancerNames - 负载均衡名称列表,支持多个 vpcId - 负载均衡所在Vpc的Id,支持单个

(Optional)
* param tags: Tag筛选条件 (Optional)

func NewDescribeLoadBalancersRequestWithoutParam

func NewDescribeLoadBalancersRequestWithoutParam() *DescribeLoadBalancersRequest

This constructor has better compatible ability when API parameters changed

func (DescribeLoadBalancersRequest) GetRegionId

func (r DescribeLoadBalancersRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeLoadBalancersRequest) SetFilters

func (r *DescribeLoadBalancersRequest) SetFilters(filters []common.Filter)
param filters: loadBalancerType - 负载均衡类型,取值为:alb、nlb、dnlb,默认alb,支持单个

loadBalancerIds - 负载均衡ID列表,支持多个 loadBalancerNames - 负载均衡名称列表,支持多个 vpcId - 负载均衡所在Vpc的Id,支持单个 (Optional)

func (*DescribeLoadBalancersRequest) SetPageNumber

func (r *DescribeLoadBalancersRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页(Optional)

func (*DescribeLoadBalancersRequest) SetPageSize

func (r *DescribeLoadBalancersRequest) SetPageSize(pageSize int)

param pageSize: 分页大小,默认为20,取值范围:[10,100](Optional)

func (*DescribeLoadBalancersRequest) SetRegionId

func (r *DescribeLoadBalancersRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DescribeLoadBalancersRequest) SetTags added in v1.41.0

func (r *DescribeLoadBalancersRequest) SetTags(tags []lb.TagFilter)

param tags: Tag筛选条件(Optional)

type DescribeLoadBalancersResponse

type DescribeLoadBalancersResponse struct {
	RequestID string                      `json:"requestId"`
	Error     core.ErrorResponse          `json:"error"`
	Result    DescribeLoadBalancersResult `json:"result"`
}

type DescribeLoadBalancersResult

type DescribeLoadBalancersResult struct {
	LoadBalancers []lb.LoadBalancer `json:"loadBalancers"`
	TotalCount    int               `json:"totalCount"`
}

type DescribeTargetGroupRequest

type DescribeTargetGroupRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* TargetGroup Id  */
	TargetGroupId string `json:"targetGroupId"`
}

func NewDescribeTargetGroupRequest

func NewDescribeTargetGroupRequest(
	regionId string,
	targetGroupId string,
) *DescribeTargetGroupRequest

* param regionId: Region ID (Required) * param targetGroupId: TargetGroup Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeTargetGroupRequestWithAllParams

func NewDescribeTargetGroupRequestWithAllParams(
	regionId string,
	targetGroupId string,
) *DescribeTargetGroupRequest

* param regionId: Region ID (Required) * param targetGroupId: TargetGroup Id (Required)

func NewDescribeTargetGroupRequestWithoutParam

func NewDescribeTargetGroupRequestWithoutParam() *DescribeTargetGroupRequest

This constructor has better compatible ability when API parameters changed

func (DescribeTargetGroupRequest) GetRegionId

func (r DescribeTargetGroupRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeTargetGroupRequest) SetRegionId

func (r *DescribeTargetGroupRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DescribeTargetGroupRequest) SetTargetGroupId

func (r *DescribeTargetGroupRequest) SetTargetGroupId(targetGroupId string)

param targetGroupId: TargetGroup Id(Required)

type DescribeTargetGroupResponse

type DescribeTargetGroupResponse struct {
	RequestID string                    `json:"requestId"`
	Error     core.ErrorResponse        `json:"error"`
	Result    DescribeTargetGroupResult `json:"result"`
}

type DescribeTargetGroupResult

type DescribeTargetGroupResult struct {
	TargetGroup lb.TargetGroup `json:"targetGroup"`
}

type DescribeTargetGroupsRequest

type DescribeTargetGroupsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小,默认为20,取值范围:[10,100] (Optional) */
	PageSize *int `json:"pageSize"`

	/* targetGroupIds - TargetGroup ID列表,支持多个
	targetGroupNames - TargetGroup名称列表,支持多个
	loadBalancerId - TargetGroup所属负载均衡的Id,支持单个
	loadBalancerType - 负载均衡类型,取值为:alb、nlb、dnlb,默认alb,支持单个
	 (Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeTargetGroupsRequest

func NewDescribeTargetGroupsRequest(
	regionId string,
) *DescribeTargetGroupsRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeTargetGroupsRequestWithAllParams

func NewDescribeTargetGroupsRequestWithAllParams(
	regionId string,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
) *DescribeTargetGroupsRequest
  • param regionId: Region ID (Required)
  • param pageNumber: 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页 (Optional)
  • param pageSize: 分页大小,默认为20,取值范围:[10,100] (Optional)
  • param filters: targetGroupIds - TargetGroup ID列表,支持多个

targetGroupNames - TargetGroup名称列表,支持多个 loadBalancerId - TargetGroup所属负载均衡的Id,支持单个 loadBalancerType - 负载均衡类型,取值为:alb、nlb、dnlb,默认alb,支持单个

(Optional)

func NewDescribeTargetGroupsRequestWithoutParam

func NewDescribeTargetGroupsRequestWithoutParam() *DescribeTargetGroupsRequest

This constructor has better compatible ability when API parameters changed

func (DescribeTargetGroupsRequest) GetRegionId

func (r DescribeTargetGroupsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeTargetGroupsRequest) SetFilters

func (r *DescribeTargetGroupsRequest) SetFilters(filters []common.Filter)
param filters: targetGroupIds - TargetGroup ID列表,支持多个

targetGroupNames - TargetGroup名称列表,支持多个 loadBalancerId - TargetGroup所属负载均衡的Id,支持单个 loadBalancerType - 负载均衡类型,取值为:alb、nlb、dnlb,默认alb,支持单个 (Optional)

func (*DescribeTargetGroupsRequest) SetPageNumber

func (r *DescribeTargetGroupsRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页(Optional)

func (*DescribeTargetGroupsRequest) SetPageSize

func (r *DescribeTargetGroupsRequest) SetPageSize(pageSize int)

param pageSize: 分页大小,默认为20,取值范围:[10,100](Optional)

func (*DescribeTargetGroupsRequest) SetRegionId

func (r *DescribeTargetGroupsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeTargetGroupsResponse

type DescribeTargetGroupsResponse struct {
	RequestID string                     `json:"requestId"`
	Error     core.ErrorResponse         `json:"error"`
	Result    DescribeTargetGroupsResult `json:"result"`
}

type DescribeTargetGroupsResult

type DescribeTargetGroupsResult struct {
	TargetGroups []lb.TargetGroup `json:"targetGroups"`
	TotalCount   int              `json:"totalCount"`
}

type DescribeTargetHealthRequest

type DescribeTargetHealthRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Backend Id  */
	BackendId string `json:"backendId"`
}

func NewDescribeTargetHealthRequest

func NewDescribeTargetHealthRequest(
	regionId string,
	backendId string,
) *DescribeTargetHealthRequest

* param regionId: Region ID (Required) * param backendId: Backend Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeTargetHealthRequestWithAllParams

func NewDescribeTargetHealthRequestWithAllParams(
	regionId string,
	backendId string,
) *DescribeTargetHealthRequest

* param regionId: Region ID (Required) * param backendId: Backend Id (Required)

func NewDescribeTargetHealthRequestWithoutParam

func NewDescribeTargetHealthRequestWithoutParam() *DescribeTargetHealthRequest

This constructor has better compatible ability when API parameters changed

func (DescribeTargetHealthRequest) GetRegionId

func (r DescribeTargetHealthRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeTargetHealthRequest) SetBackendId

func (r *DescribeTargetHealthRequest) SetBackendId(backendId string)

param backendId: Backend Id(Required)

func (*DescribeTargetHealthRequest) SetRegionId

func (r *DescribeTargetHealthRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeTargetHealthResponse

type DescribeTargetHealthResponse struct {
	RequestID string                     `json:"requestId"`
	Error     core.ErrorResponse         `json:"error"`
	Result    DescribeTargetHealthResult `json:"result"`
}

type DescribeTargetHealthResult

type DescribeTargetHealthResult struct {
	TargetHealths []lb.TargetHealth `json:"targetHealths"`
}

type DescribeTargetsRequest

type DescribeTargetsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* TargetGroup Id  */
	TargetGroupId string `json:"targetGroupId"`

	/* 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小,默认为20,取值范围:[10,100] (Optional) */
	PageSize *int `json:"pageSize"`

	/* targetIds - Target ID列表,支持多个
	instanceId - Instance ID,仅支持单个
	type - vm, container, ip,仅支持单个
	port - 端口,仅支持单个
	ipAddress - ip地址,仅支持单个
	 (Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeTargetsRequest

func NewDescribeTargetsRequest(
	regionId string,
	targetGroupId string,
) *DescribeTargetsRequest

* param regionId: Region ID (Required) * param targetGroupId: TargetGroup Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeTargetsRequestWithAllParams

func NewDescribeTargetsRequestWithAllParams(
	regionId string,
	targetGroupId string,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
) *DescribeTargetsRequest
  • param regionId: Region ID (Required)
  • param targetGroupId: TargetGroup Id (Required)
  • param pageNumber: 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页 (Optional)
  • param pageSize: 分页大小,默认为20,取值范围:[10,100] (Optional)
  • param filters: targetIds - Target ID列表,支持多个

instanceId - Instance ID,仅支持单个 type - vm, container, ip,仅支持单个 port - 端口,仅支持单个 ipAddress - ip地址,仅支持单个

(Optional)

func NewDescribeTargetsRequestWithoutParam

func NewDescribeTargetsRequestWithoutParam() *DescribeTargetsRequest

This constructor has better compatible ability when API parameters changed

func (DescribeTargetsRequest) GetRegionId

func (r DescribeTargetsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeTargetsRequest) SetFilters

func (r *DescribeTargetsRequest) SetFilters(filters []common.Filter)
param filters: targetIds - Target ID列表,支持多个

instanceId - Instance ID,仅支持单个 type - vm, container, ip,仅支持单个 port - 端口,仅支持单个 ipAddress - ip地址,仅支持单个 (Optional)

func (*DescribeTargetsRequest) SetPageNumber

func (r *DescribeTargetsRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页(Optional)

func (*DescribeTargetsRequest) SetPageSize

func (r *DescribeTargetsRequest) SetPageSize(pageSize int)

param pageSize: 分页大小,默认为20,取值范围:[10,100](Optional)

func (*DescribeTargetsRequest) SetRegionId

func (r *DescribeTargetsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DescribeTargetsRequest) SetTargetGroupId

func (r *DescribeTargetsRequest) SetTargetGroupId(targetGroupId string)

param targetGroupId: TargetGroup Id(Required)

type DescribeTargetsResponse

type DescribeTargetsResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    DescribeTargetsResult `json:"result"`
}

type DescribeTargetsResult

type DescribeTargetsResult struct {
	Targets    []lb.Target `json:"targets"`
	TotalCount int         `json:"totalCount"`
}

type DescribeUrlMapRequest

type DescribeUrlMapRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 转发规则组Id  */
	UrlMapId string `json:"urlMapId"`
}

func NewDescribeUrlMapRequest

func NewDescribeUrlMapRequest(
	regionId string,
	urlMapId string,
) *DescribeUrlMapRequest

* param regionId: Region ID (Required) * param urlMapId: 转发规则组Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeUrlMapRequestWithAllParams

func NewDescribeUrlMapRequestWithAllParams(
	regionId string,
	urlMapId string,
) *DescribeUrlMapRequest

* param regionId: Region ID (Required) * param urlMapId: 转发规则组Id (Required)

func NewDescribeUrlMapRequestWithoutParam

func NewDescribeUrlMapRequestWithoutParam() *DescribeUrlMapRequest

This constructor has better compatible ability when API parameters changed

func (DescribeUrlMapRequest) GetRegionId

func (r DescribeUrlMapRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeUrlMapRequest) SetRegionId

func (r *DescribeUrlMapRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DescribeUrlMapRequest) SetUrlMapId

func (r *DescribeUrlMapRequest) SetUrlMapId(urlMapId string)

param urlMapId: 转发规则组Id(Required)

type DescribeUrlMapResponse

type DescribeUrlMapResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    DescribeUrlMapResult `json:"result"`
}

type DescribeUrlMapResult

type DescribeUrlMapResult struct {
	UrlMap lb.UrlMap `json:"urlMap"`
}

type DescribeUrlMapsRequest

type DescribeUrlMapsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小,默认为20,取值范围:[10,100] (Optional) */
	PageSize *int `json:"pageSize"`

	/* urlMapIds - 转发规则组Id列表,支持多个
	urlMapNames -转发规则组名称列表,支持多个
	loadBalancerId - 负载均衡器Id,支持单个
	 (Optional) */
	Filters []common.Filter `json:"filters"`
}

func NewDescribeUrlMapsRequest

func NewDescribeUrlMapsRequest(
	regionId string,
) *DescribeUrlMapsRequest

* param regionId: Region ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDescribeUrlMapsRequestWithAllParams

func NewDescribeUrlMapsRequestWithAllParams(
	regionId string,
	pageNumber *int,
	pageSize *int,
	filters []common.Filter,
) *DescribeUrlMapsRequest
  • param regionId: Region ID (Required)
  • param pageNumber: 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页 (Optional)
  • param pageSize: 分页大小,默认为20,取值范围:[10,100] (Optional)
  • param filters: urlMapIds - 转发规则组Id列表,支持多个

urlMapNames -转发规则组名称列表,支持多个 loadBalancerId - 负载均衡器Id,支持单个

(Optional)

func NewDescribeUrlMapsRequestWithoutParam

func NewDescribeUrlMapsRequestWithoutParam() *DescribeUrlMapsRequest

This constructor has better compatible ability when API parameters changed

func (DescribeUrlMapsRequest) GetRegionId

func (r DescribeUrlMapsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DescribeUrlMapsRequest) SetFilters

func (r *DescribeUrlMapsRequest) SetFilters(filters []common.Filter)
param filters: urlMapIds - 转发规则组Id列表,支持多个

urlMapNames -转发规则组名称列表,支持多个 loadBalancerId - 负载均衡器Id,支持单个 (Optional)

func (*DescribeUrlMapsRequest) SetPageNumber

func (r *DescribeUrlMapsRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码, 默认为1, 取值范围:[1,∞), 页码超过总页数时, 显示最后一页(Optional)

func (*DescribeUrlMapsRequest) SetPageSize

func (r *DescribeUrlMapsRequest) SetPageSize(pageSize int)

param pageSize: 分页大小,默认为20,取值范围:[10,100](Optional)

func (*DescribeUrlMapsRequest) SetRegionId

func (r *DescribeUrlMapsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DescribeUrlMapsResponse

type DescribeUrlMapsResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    DescribeUrlMapsResult `json:"result"`
}

type DescribeUrlMapsResult

type DescribeUrlMapsResult struct {
	UrlMaps    []lb.UrlMap `json:"urlMaps"`
	TotalCount int         `json:"totalCount"`
}

type DisassociateElasticIpRequest

type DisassociateElasticIpRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* LB ID  */
	LoadBalancerId string `json:"loadBalancerId"`

	/* 弹性公网IP ID  */
	ElasticIpId string `json:"elasticIpId"`
}

func NewDisassociateElasticIpRequest

func NewDisassociateElasticIpRequest(
	regionId string,
	loadBalancerId string,
	elasticIpId string,
) *DisassociateElasticIpRequest

* param regionId: Region ID (Required) * param loadBalancerId: LB ID (Required) * param elasticIpId: 弹性公网IP ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDisassociateElasticIpRequestWithAllParams

func NewDisassociateElasticIpRequestWithAllParams(
	regionId string,
	loadBalancerId string,
	elasticIpId string,
) *DisassociateElasticIpRequest

* param regionId: Region ID (Required) * param loadBalancerId: LB ID (Required) * param elasticIpId: 弹性公网IP ID (Required)

func NewDisassociateElasticIpRequestWithoutParam

func NewDisassociateElasticIpRequestWithoutParam() *DisassociateElasticIpRequest

This constructor has better compatible ability when API parameters changed

func (DisassociateElasticIpRequest) GetRegionId

func (r DisassociateElasticIpRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DisassociateElasticIpRequest) SetElasticIpId

func (r *DisassociateElasticIpRequest) SetElasticIpId(elasticIpId string)

param elasticIpId: 弹性公网IP ID(Required)

func (*DisassociateElasticIpRequest) SetLoadBalancerId

func (r *DisassociateElasticIpRequest) SetLoadBalancerId(loadBalancerId string)

param loadBalancerId: LB ID(Required)

func (*DisassociateElasticIpRequest) SetRegionId

func (r *DisassociateElasticIpRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type DisassociateElasticIpResponse

type DisassociateElasticIpResponse struct {
	RequestID string                      `json:"requestId"`
	Error     core.ErrorResponse          `json:"error"`
	Result    DisassociateElasticIpResult `json:"result"`
}

type DisassociateElasticIpResult

type DisassociateElasticIpResult struct {
}

type DisassociateSecurityGroupRequest

type DisassociateSecurityGroupRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* LB ID  */
	LoadBalancerId string `json:"loadBalancerId"`

	/* 安全组 ID列表  */
	SecurityGroupIds []string `json:"securityGroupIds"`
}

func NewDisassociateSecurityGroupRequest

func NewDisassociateSecurityGroupRequest(
	regionId string,
	loadBalancerId string,
	securityGroupIds []string,
) *DisassociateSecurityGroupRequest

* param regionId: Region ID (Required) * param loadBalancerId: LB ID (Required) * param securityGroupIds: 安全组 ID列表 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDisassociateSecurityGroupRequestWithAllParams

func NewDisassociateSecurityGroupRequestWithAllParams(
	regionId string,
	loadBalancerId string,
	securityGroupIds []string,
) *DisassociateSecurityGroupRequest

* param regionId: Region ID (Required) * param loadBalancerId: LB ID (Required) * param securityGroupIds: 安全组 ID列表 (Required)

func NewDisassociateSecurityGroupRequestWithoutParam

func NewDisassociateSecurityGroupRequestWithoutParam() *DisassociateSecurityGroupRequest

This constructor has better compatible ability when API parameters changed

func (DisassociateSecurityGroupRequest) GetRegionId

func (r DisassociateSecurityGroupRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DisassociateSecurityGroupRequest) SetLoadBalancerId

func (r *DisassociateSecurityGroupRequest) SetLoadBalancerId(loadBalancerId string)

param loadBalancerId: LB ID(Required)

func (*DisassociateSecurityGroupRequest) SetRegionId

func (r *DisassociateSecurityGroupRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*DisassociateSecurityGroupRequest) SetSecurityGroupIds

func (r *DisassociateSecurityGroupRequest) SetSecurityGroupIds(securityGroupIds []string)

param securityGroupIds: 安全组 ID列表(Required)

type DisassociateSecurityGroupResponse

type DisassociateSecurityGroupResponse struct {
	RequestID string                          `json:"requestId"`
	Error     core.ErrorResponse              `json:"error"`
	Result    DisassociateSecurityGroupResult `json:"result"`
}

type DisassociateSecurityGroupResult

type DisassociateSecurityGroupResult struct {
}

type RegisterTargetsRequest

type RegisterTargetsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* TargetGroup Id  */
	TargetGroupId string `json:"targetGroupId"`

	/* 注册Target列表  */
	TargetSpecs []lb.TargetSpec `json:"targetSpecs"`
}

func NewRegisterTargetsRequest

func NewRegisterTargetsRequest(
	regionId string,
	targetGroupId string,
	targetSpecs []lb.TargetSpec,
) *RegisterTargetsRequest

* param regionId: Region ID (Required) * param targetGroupId: TargetGroup Id (Required) * param targetSpecs: 注册Target列表 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewRegisterTargetsRequestWithAllParams

func NewRegisterTargetsRequestWithAllParams(
	regionId string,
	targetGroupId string,
	targetSpecs []lb.TargetSpec,
) *RegisterTargetsRequest

* param regionId: Region ID (Required) * param targetGroupId: TargetGroup Id (Required) * param targetSpecs: 注册Target列表 (Required)

func NewRegisterTargetsRequestWithoutParam

func NewRegisterTargetsRequestWithoutParam() *RegisterTargetsRequest

This constructor has better compatible ability when API parameters changed

func (RegisterTargetsRequest) GetRegionId

func (r RegisterTargetsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*RegisterTargetsRequest) SetRegionId

func (r *RegisterTargetsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*RegisterTargetsRequest) SetTargetGroupId

func (r *RegisterTargetsRequest) SetTargetGroupId(targetGroupId string)

param targetGroupId: TargetGroup Id(Required)

func (*RegisterTargetsRequest) SetTargetSpecs

func (r *RegisterTargetsRequest) SetTargetSpecs(targetSpecs []lb.TargetSpec)

param targetSpecs: 注册Target列表(Required)

type RegisterTargetsResponse

type RegisterTargetsResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    RegisterTargetsResult `json:"result"`
}

type RegisterTargetsResult

type RegisterTargetsResult struct {
}

type UpdateBackendRequest

type UpdateBackendRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* Backend Id  */
	BackendId string `json:"backendId"`

	/* 后端服务名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Optional) */
	BackendName *string `json:"backendName"`

	/* 健康检查信息 (Optional) */
	HealthCheckSpec *lb.HealthCheckSpec `json:"healthCheckSpec"`

	/* 调度算法 <br>【alb,nlb】取值范围为[IpHash, RoundRobin, LeastConn](含义分别为:加权源Ip哈希,加权轮询和加权最小连接) <br>【dnlb】取值范围为[IpHash, QuintupleHash](含义分别为:加权源Ip哈希和加权五元组哈希) (Optional) */
	Algorithm *string `json:"algorithm"`

	/* 虚拟服务器组的Id列表,目前只支持一个,且与agIds不能同时存在 (Optional) */
	TargetGroupIds []string `json:"targetGroupIds"`

	/* 高可用组的Id列表,目前只支持一个,且与targetGroupIds不能同时存在 (Optional) */
	AgIds []string `json:"agIds"`

	/* 【alb Tcp协议】是否启用Proxy ProtocolV1协议获取真实源ip, 取值为false(不开启)或者true(开启), 默认为false (Optional) */
	ProxyProtocol *bool `json:"proxyProtocol"`

	/* 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
	Description *string `json:"description"`

	/* 会话保持, 取值为false(不开启)或者true(开启),默认为false <br>【alb Http协议,RoundRobin算法】支持基于cookie的会话保持 <br>【nlb】支持基于报文源目的IP的会话保持 (Optional) */
	SessionStickiness *bool `json:"sessionStickiness"`

	/* 【nlb】会话保持超时时间,sessionStickiness开启时生效, 取值范围[1-3600] (Optional) */
	SessionStickyTimeout *int `json:"sessionStickyTimeout"`

	/* 【nlb】连接耗尽超时,移除target前,连接的最大保持时间,默认300s,取值范围[0-3600] (Optional) */
	ConnectionDrainingSeconds *int `json:"connectionDrainingSeconds"`

	/* 【alb Http协议】cookie的过期时间,sessionStickiness开启时生效,取值范围为[0-86400], 0表示cookie与浏览器同生命周期 (Optional) */
	HttpCookieExpireSeconds *int `json:"httpCookieExpireSeconds"`

	/* 【alb Http协议】获取负载均衡的协议, 取值为False(不获取)或True(获取) (Optional) */
	HttpForwardedProtocol *bool `json:"httpForwardedProtocol"`

	/* 【alb Http协议】获取负载均衡的端口, 取值为False(不获取)或True(获取) (Optional) */
	HttpForwardedPort *bool `json:"httpForwardedPort"`

	/* 【alb Http协议】获取负载均衡的host信息, 取值为False(不获取)或True(获取) (Optional) */
	HttpForwardedHost *bool `json:"httpForwardedHost"`

	/* 【alb Http协议】获取负载均衡的vip, 取值为False(不获取)或True(获取) (Optional) */
	HttpForwardedVip *bool `json:"httpForwardedVip"`

	/* 【alb,dnlb】关闭健康检查,取值为false(不关闭)或true(关闭) (Optional) */
	CloseHealthCheck *bool `json:"closeHealthCheck"`
}

func NewUpdateBackendRequest

func NewUpdateBackendRequest(
	regionId string,
	backendId string,
) *UpdateBackendRequest

* param regionId: Region ID (Required) * param backendId: Backend Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateBackendRequestWithAllParams

func NewUpdateBackendRequestWithAllParams(
	regionId string,
	backendId string,
	backendName *string,
	healthCheckSpec *lb.HealthCheckSpec,
	algorithm *string,
	targetGroupIds []string,
	agIds []string,
	proxyProtocol *bool,
	description *string,
	sessionStickiness *bool,
	sessionStickyTimeout *int,
	connectionDrainingSeconds *int,
	httpCookieExpireSeconds *int,
	httpForwardedProtocol *bool,
	httpForwardedPort *bool,
	httpForwardedHost *bool,
	httpForwardedVip *bool,
	closeHealthCheck *bool,
) *UpdateBackendRequest

* param regionId: Region ID (Required) * param backendId: Backend Id (Required) * param backendName: 后端服务名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Optional) * param healthCheckSpec: 健康检查信息 (Optional) * param algorithm: 调度算法 <br>【alb,nlb】取值范围为[IpHash, RoundRobin, LeastConn](含义分别为:加权源Ip哈希,加权轮询和加权最小连接) <br>【dnlb】取值范围为[IpHash, QuintupleHash](含义分别为:加权源Ip哈希和加权五元组哈希) (Optional) * param targetGroupIds: 虚拟服务器组的Id列表,目前只支持一个,且与agIds不能同时存在 (Optional) * param agIds: 高可用组的Id列表,目前只支持一个,且与targetGroupIds不能同时存在 (Optional) * param proxyProtocol: 【alb Tcp协议】是否启用Proxy ProtocolV1协议获取真实源ip, 取值为false(不开启)或者true(开启), 默认为false (Optional) * param description: 描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) * param sessionStickiness: 会话保持, 取值为false(不开启)或者true(开启),默认为false <br>【alb Http协议,RoundRobin算法】支持基于cookie的会话保持 <br>【nlb】支持基于报文源目的IP的会话保持 (Optional) * param sessionStickyTimeout: 【nlb】会话保持超时时间,sessionStickiness开启时生效, 取值范围[1-3600] (Optional) * param connectionDrainingSeconds: 【nlb】连接耗尽超时,移除target前,连接的最大保持时间,默认300s,取值范围[0-3600] (Optional) * param httpCookieExpireSeconds: 【alb Http协议】cookie的过期时间,sessionStickiness开启时生效,取值范围为[0-86400], 0表示cookie与浏览器同生命周期 (Optional) * param httpForwardedProtocol: 【alb Http协议】获取负载均衡的协议, 取值为False(不获取)或True(获取) (Optional) * param httpForwardedPort: 【alb Http协议】获取负载均衡的端口, 取值为False(不获取)或True(获取) (Optional) * param httpForwardedHost: 【alb Http协议】获取负载均衡的host信息, 取值为False(不获取)或True(获取) (Optional) * param httpForwardedVip: 【alb Http协议】获取负载均衡的vip, 取值为False(不获取)或True(获取) (Optional) * param closeHealthCheck: 【alb,dnlb】关闭健康检查,取值为false(不关闭)或true(关闭) (Optional)

func NewUpdateBackendRequestWithoutParam

func NewUpdateBackendRequestWithoutParam() *UpdateBackendRequest

This constructor has better compatible ability when API parameters changed

func (UpdateBackendRequest) GetRegionId

func (r UpdateBackendRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateBackendRequest) SetAgIds

func (r *UpdateBackendRequest) SetAgIds(agIds []string)

param agIds: 高可用组的Id列表,目前只支持一个,且与targetGroupIds不能同时存在(Optional)

func (*UpdateBackendRequest) SetAlgorithm

func (r *UpdateBackendRequest) SetAlgorithm(algorithm string)

param algorithm: 调度算法 <br>【alb,nlb】取值范围为[IpHash, RoundRobin, LeastConn](含义分别为:加权源Ip哈希,加权轮询和加权最小连接) <br>【dnlb】取值范围为[IpHash, QuintupleHash](含义分别为:加权源Ip哈希和加权五元组哈希)(Optional)

func (*UpdateBackendRequest) SetBackendId

func (r *UpdateBackendRequest) SetBackendId(backendId string)

param backendId: Backend Id(Required)

func (*UpdateBackendRequest) SetBackendName

func (r *UpdateBackendRequest) SetBackendName(backendName string)

param backendName: 后端服务名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符(Optional)

func (*UpdateBackendRequest) SetCloseHealthCheck

func (r *UpdateBackendRequest) SetCloseHealthCheck(closeHealthCheck bool)

param closeHealthCheck: 【alb,dnlb】关闭健康检查,取值为false(不关闭)或true(关闭)(Optional)

func (*UpdateBackendRequest) SetConnectionDrainingSeconds

func (r *UpdateBackendRequest) SetConnectionDrainingSeconds(connectionDrainingSeconds int)

param connectionDrainingSeconds: 【nlb】连接耗尽超时,移除target前,连接的最大保持时间,默认300s,取值范围[0-3600](Optional)

func (*UpdateBackendRequest) SetDescription

func (r *UpdateBackendRequest) SetDescription(description string)

param description: 描述,允许输入UTF-8编码下的全部字符,不超过256字符(Optional)

func (*UpdateBackendRequest) SetHealthCheckSpec

func (r *UpdateBackendRequest) SetHealthCheckSpec(healthCheckSpec *lb.HealthCheckSpec)

param healthCheckSpec: 健康检查信息(Optional)

func (*UpdateBackendRequest) SetHttpCookieExpireSeconds

func (r *UpdateBackendRequest) SetHttpCookieExpireSeconds(httpCookieExpireSeconds int)

param httpCookieExpireSeconds: 【alb Http协议】cookie的过期时间,sessionStickiness开启时生效,取值范围为[0-86400], 0表示cookie与浏览器同生命周期(Optional)

func (*UpdateBackendRequest) SetHttpForwardedHost

func (r *UpdateBackendRequest) SetHttpForwardedHost(httpForwardedHost bool)

param httpForwardedHost: 【alb Http协议】获取负载均衡的host信息, 取值为False(不获取)或True(获取)(Optional)

func (*UpdateBackendRequest) SetHttpForwardedPort

func (r *UpdateBackendRequest) SetHttpForwardedPort(httpForwardedPort bool)

param httpForwardedPort: 【alb Http协议】获取负载均衡的端口, 取值为False(不获取)或True(获取)(Optional)

func (*UpdateBackendRequest) SetHttpForwardedProtocol

func (r *UpdateBackendRequest) SetHttpForwardedProtocol(httpForwardedProtocol bool)

param httpForwardedProtocol: 【alb Http协议】获取负载均衡的协议, 取值为False(不获取)或True(获取)(Optional)

func (*UpdateBackendRequest) SetHttpForwardedVip

func (r *UpdateBackendRequest) SetHttpForwardedVip(httpForwardedVip bool)

param httpForwardedVip: 【alb Http协议】获取负载均衡的vip, 取值为False(不获取)或True(获取)(Optional)

func (*UpdateBackendRequest) SetProxyProtocol

func (r *UpdateBackendRequest) SetProxyProtocol(proxyProtocol bool)

param proxyProtocol: 【alb Tcp协议】是否启用Proxy ProtocolV1协议获取真实源ip, 取值为false(不开启)或者true(开启), 默认为false(Optional)

func (*UpdateBackendRequest) SetRegionId

func (r *UpdateBackendRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*UpdateBackendRequest) SetSessionStickiness

func (r *UpdateBackendRequest) SetSessionStickiness(sessionStickiness bool)

param sessionStickiness: 会话保持, 取值为false(不开启)或者true(开启),默认为false <br>【alb Http协议,RoundRobin算法】支持基于cookie的会话保持 <br>【nlb】支持基于报文源目的IP的会话保持(Optional)

func (*UpdateBackendRequest) SetSessionStickyTimeout

func (r *UpdateBackendRequest) SetSessionStickyTimeout(sessionStickyTimeout int)

param sessionStickyTimeout: 【nlb】会话保持超时时间,sessionStickiness开启时生效, 取值范围[1-3600](Optional)

func (*UpdateBackendRequest) SetTargetGroupIds

func (r *UpdateBackendRequest) SetTargetGroupIds(targetGroupIds []string)

param targetGroupIds: 虚拟服务器组的Id列表,目前只支持一个,且与agIds不能同时存在(Optional)

type UpdateBackendResponse

type UpdateBackendResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    UpdateBackendResult `json:"result"`
}

type UpdateBackendResult

type UpdateBackendResult struct {
}

type UpdateListenerCertificatesRequest added in v1.41.0

type UpdateListenerCertificatesRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 监听器ID  */
	ListenerId string `json:"listenerId"`

	/* 【alb Https和Tls协议】Listener绑定的扩展证书列表  */
	Certificates []lb.ExtCertificateUpdateSpec `json:"certificates"`
}

func NewUpdateListenerCertificatesRequest added in v1.41.0

func NewUpdateListenerCertificatesRequest(
	regionId string,
	listenerId string,
	certificates []lb.ExtCertificateUpdateSpec,
) *UpdateListenerCertificatesRequest

* param regionId: Region ID (Required) * param listenerId: 监听器ID (Required) * param certificates: 【alb Https和Tls协议】Listener绑定的扩展证书列表 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateListenerCertificatesRequestWithAllParams added in v1.41.0

func NewUpdateListenerCertificatesRequestWithAllParams(
	regionId string,
	listenerId string,
	certificates []lb.ExtCertificateUpdateSpec,
) *UpdateListenerCertificatesRequest

* param regionId: Region ID (Required) * param listenerId: 监听器ID (Required) * param certificates: 【alb Https和Tls协议】Listener绑定的扩展证书列表 (Required)

func NewUpdateListenerCertificatesRequestWithoutParam added in v1.41.0

func NewUpdateListenerCertificatesRequestWithoutParam() *UpdateListenerCertificatesRequest

This constructor has better compatible ability when API parameters changed

func (UpdateListenerCertificatesRequest) GetRegionId added in v1.41.0

func (r UpdateListenerCertificatesRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateListenerCertificatesRequest) SetCertificates added in v1.41.0

func (r *UpdateListenerCertificatesRequest) SetCertificates(certificates []lb.ExtCertificateUpdateSpec)

param certificates: 【alb Https和Tls协议】Listener绑定的扩展证书列表(Required)

func (*UpdateListenerCertificatesRequest) SetListenerId added in v1.41.0

func (r *UpdateListenerCertificatesRequest) SetListenerId(listenerId string)

param listenerId: 监听器ID(Required)

func (*UpdateListenerCertificatesRequest) SetRegionId added in v1.41.0

func (r *UpdateListenerCertificatesRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type UpdateListenerCertificatesResponse added in v1.41.0

type UpdateListenerCertificatesResponse struct {
	RequestID string                           `json:"requestId"`
	Error     core.ErrorResponse               `json:"error"`
	Result    UpdateListenerCertificatesResult `json:"result"`
}

type UpdateListenerCertificatesResult added in v1.41.0

type UpdateListenerCertificatesResult struct {
}

type UpdateListenerRequest

type UpdateListenerRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 监听器ID  */
	ListenerId string `json:"listenerId"`

	/* 监听器名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Optional) */
	ListenerName *string `json:"listenerName"`

	/* Listener状态, 取值为On或者为Off (Optional) */
	Status *string `json:"status"`

	/* 【alb Https和Tls协议】Listener绑定的默认证书,只支持一个证书 (Optional) */
	CertificateSpecs []lb.CertificateSpec `json:"certificateSpecs"`

	/* 【alb、nlb】空闲连接超时时间, 范围为[1,86400]。 <br>(Tcp和Tls协议)默认为:1800s <br>(Http和Https协议)默认为:60s <br>【dnlb】不支持该功能 (Optional) */
	ConnectionIdleTimeSeconds *int `json:"connectionIdleTimeSeconds"`

	/* 默认后端服务Id (Optional) */
	BackendId *string `json:"backendId"`

	/* 【alb Https和Http协议】转发规则组Id (Optional) */
	UrlMapId *string `json:"urlMapId"`

	/* 监听器描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
	Description *string `json:"description"`
}

func NewUpdateListenerRequest

func NewUpdateListenerRequest(
	regionId string,
	listenerId string,
) *UpdateListenerRequest

* param regionId: Region ID (Required) * param listenerId: 监听器ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateListenerRequestWithAllParams

func NewUpdateListenerRequestWithAllParams(
	regionId string,
	listenerId string,
	listenerName *string,
	status *string,
	certificateSpecs []lb.CertificateSpec,
	connectionIdleTimeSeconds *int,
	backendId *string,
	urlMapId *string,
	description *string,
) *UpdateListenerRequest

* param regionId: Region ID (Required) * param listenerId: 监听器ID (Required) * param listenerName: 监听器名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Optional) * param status: Listener状态, 取值为On或者为Off (Optional) * param certificateSpecs: 【alb Https和Tls协议】Listener绑定的默认证书,只支持一个证书 (Optional) * param connectionIdleTimeSeconds: 【alb、nlb】空闲连接超时时间, 范围为[1,86400]。 <br>(Tcp和Tls协议)默认为:1800s <br>(Http和Https协议)默认为:60s <br>【dnlb】不支持该功能 (Optional) * param backendId: 默认后端服务Id (Optional) * param urlMapId: 【alb Https和Http协议】转发规则组Id (Optional) * param description: 监听器描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional)

func NewUpdateListenerRequestWithoutParam

func NewUpdateListenerRequestWithoutParam() *UpdateListenerRequest

This constructor has better compatible ability when API parameters changed

func (UpdateListenerRequest) GetRegionId

func (r UpdateListenerRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateListenerRequest) SetBackendId

func (r *UpdateListenerRequest) SetBackendId(backendId string)

param backendId: 默认后端服务Id(Optional)

func (*UpdateListenerRequest) SetCertificateSpecs

func (r *UpdateListenerRequest) SetCertificateSpecs(certificateSpecs []lb.CertificateSpec)

param certificateSpecs: 【alb Https和Tls协议】Listener绑定的默认证书,只支持一个证书(Optional)

func (*UpdateListenerRequest) SetConnectionIdleTimeSeconds

func (r *UpdateListenerRequest) SetConnectionIdleTimeSeconds(connectionIdleTimeSeconds int)

param connectionIdleTimeSeconds: 【alb、nlb】空闲连接超时时间, 范围为[1,86400]。 <br>(Tcp和Tls协议)默认为:1800s <br>(Http和Https协议)默认为:60s <br>【dnlb】不支持该功能(Optional)

func (*UpdateListenerRequest) SetDescription

func (r *UpdateListenerRequest) SetDescription(description string)

param description: 监听器描述,允许输入UTF-8编码下的全部字符,不超过256字符(Optional)

func (*UpdateListenerRequest) SetListenerId

func (r *UpdateListenerRequest) SetListenerId(listenerId string)

param listenerId: 监听器ID(Required)

func (*UpdateListenerRequest) SetListenerName

func (r *UpdateListenerRequest) SetListenerName(listenerName string)

param listenerName: 监听器名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符(Optional)

func (*UpdateListenerRequest) SetRegionId

func (r *UpdateListenerRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*UpdateListenerRequest) SetStatus

func (r *UpdateListenerRequest) SetStatus(status string)

param status: Listener状态, 取值为On或者为Off(Optional)

func (*UpdateListenerRequest) SetUrlMapId

func (r *UpdateListenerRequest) SetUrlMapId(urlMapId string)

param urlMapId: 【alb Https和Http协议】转发规则组Id(Optional)

type UpdateListenerResponse

type UpdateListenerResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    UpdateListenerResult `json:"result"`
}

type UpdateListenerResult

type UpdateListenerResult struct {
}

type UpdateLoadBalancerRequest

type UpdateLoadBalancerRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* LB ID  */
	LoadBalancerId string `json:"loadBalancerId"`

	/* LoadBalancer的名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Optional) */
	LoadBalancerName *string `json:"loadBalancerName"`

	/* 启用或停止LoadBalancer,取值为Start(启用)或Stop(停止) (Optional) */
	Action *string `json:"action"`

	/* LoadBalancer的描述信息,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
	Description *string `json:"description"`

	/* 删除保护,取值为True(开启)或False(关闭),默认为False (Optional) */
	DeleteProtection *bool `json:"deleteProtection"`
}

func NewUpdateLoadBalancerRequest

func NewUpdateLoadBalancerRequest(
	regionId string,
	loadBalancerId string,
) *UpdateLoadBalancerRequest

* param regionId: Region ID (Required) * param loadBalancerId: LB ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateLoadBalancerRequestWithAllParams

func NewUpdateLoadBalancerRequestWithAllParams(
	regionId string,
	loadBalancerId string,
	loadBalancerName *string,
	action *string,
	description *string,
	deleteProtection *bool,
) *UpdateLoadBalancerRequest

* param regionId: Region ID (Required) * param loadBalancerId: LB ID (Required) * param loadBalancerName: LoadBalancer的名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Optional) * param action: 启用或停止LoadBalancer,取值为Start(启用)或Stop(停止) (Optional) * param description: LoadBalancer的描述信息,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) * param deleteProtection: 删除保护,取值为True(开启)或False(关闭),默认为False (Optional)

func NewUpdateLoadBalancerRequestWithoutParam

func NewUpdateLoadBalancerRequestWithoutParam() *UpdateLoadBalancerRequest

This constructor has better compatible ability when API parameters changed

func (UpdateLoadBalancerRequest) GetRegionId

func (r UpdateLoadBalancerRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateLoadBalancerRequest) SetAction

func (r *UpdateLoadBalancerRequest) SetAction(action string)

param action: 启用或停止LoadBalancer,取值为Start(启用)或Stop(停止)(Optional)

func (*UpdateLoadBalancerRequest) SetDeleteProtection

func (r *UpdateLoadBalancerRequest) SetDeleteProtection(deleteProtection bool)

param deleteProtection: 删除保护,取值为True(开启)或False(关闭),默认为False(Optional)

func (*UpdateLoadBalancerRequest) SetDescription

func (r *UpdateLoadBalancerRequest) SetDescription(description string)

param description: LoadBalancer的描述信息,允许输入UTF-8编码下的全部字符,不超过256字符(Optional)

func (*UpdateLoadBalancerRequest) SetLoadBalancerId

func (r *UpdateLoadBalancerRequest) SetLoadBalancerId(loadBalancerId string)

param loadBalancerId: LB ID(Required)

func (*UpdateLoadBalancerRequest) SetLoadBalancerName

func (r *UpdateLoadBalancerRequest) SetLoadBalancerName(loadBalancerName string)

param loadBalancerName: LoadBalancer的名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符(Optional)

func (*UpdateLoadBalancerRequest) SetRegionId

func (r *UpdateLoadBalancerRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

type UpdateLoadBalancerResponse

type UpdateLoadBalancerResponse struct {
	RequestID string                   `json:"requestId"`
	Error     core.ErrorResponse       `json:"error"`
	Result    UpdateLoadBalancerResult `json:"result"`
}

type UpdateLoadBalancerResult

type UpdateLoadBalancerResult struct {
}

type UpdateRulesRequest

type UpdateRulesRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 转发规则组Id  */
	UrlMapId string `json:"urlMapId"`

	/* 更新转发规则rules信息  */
	RuleUpdateSpecs []lb.RuleUpdateSpec `json:"ruleUpdateSpecs"`
}

func NewUpdateRulesRequest

func NewUpdateRulesRequest(
	regionId string,
	urlMapId string,
	ruleUpdateSpecs []lb.RuleUpdateSpec,
) *UpdateRulesRequest

* param regionId: Region ID (Required) * param urlMapId: 转发规则组Id (Required) * param ruleUpdateSpecs: 更新转发规则rules信息 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateRulesRequestWithAllParams

func NewUpdateRulesRequestWithAllParams(
	regionId string,
	urlMapId string,
	ruleUpdateSpecs []lb.RuleUpdateSpec,
) *UpdateRulesRequest

* param regionId: Region ID (Required) * param urlMapId: 转发规则组Id (Required) * param ruleUpdateSpecs: 更新转发规则rules信息 (Required)

func NewUpdateRulesRequestWithoutParam

func NewUpdateRulesRequestWithoutParam() *UpdateRulesRequest

This constructor has better compatible ability when API parameters changed

func (UpdateRulesRequest) GetRegionId

func (r UpdateRulesRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateRulesRequest) SetRegionId

func (r *UpdateRulesRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*UpdateRulesRequest) SetRuleUpdateSpecs

func (r *UpdateRulesRequest) SetRuleUpdateSpecs(ruleUpdateSpecs []lb.RuleUpdateSpec)

param ruleUpdateSpecs: 更新转发规则rules信息(Required)

func (*UpdateRulesRequest) SetUrlMapId

func (r *UpdateRulesRequest) SetUrlMapId(urlMapId string)

param urlMapId: 转发规则组Id(Required)

type UpdateRulesResponse

type UpdateRulesResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    UpdateRulesResult  `json:"result"`
}

type UpdateRulesResult

type UpdateRulesResult struct {
}

type UpdateTargetGroupRequest

type UpdateTargetGroupRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* TargetGroup Id  */
	TargetGroupId string `json:"targetGroupId"`

	/* 虚拟服务器组描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
	Description *string `json:"description"`

	/* 虚拟服务器组名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Optional) */
	TargetGroupName *string `json:"targetGroupName"`
}

func NewUpdateTargetGroupRequest

func NewUpdateTargetGroupRequest(
	regionId string,
	targetGroupId string,
) *UpdateTargetGroupRequest

* param regionId: Region ID (Required) * param targetGroupId: TargetGroup Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateTargetGroupRequestWithAllParams

func NewUpdateTargetGroupRequestWithAllParams(
	regionId string,
	targetGroupId string,
	description *string,
	targetGroupName *string,
) *UpdateTargetGroupRequest

* param regionId: Region ID (Required) * param targetGroupId: TargetGroup Id (Required) * param description: 虚拟服务器组描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) * param targetGroupName: 虚拟服务器组名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Optional)

func NewUpdateTargetGroupRequestWithoutParam

func NewUpdateTargetGroupRequestWithoutParam() *UpdateTargetGroupRequest

This constructor has better compatible ability when API parameters changed

func (UpdateTargetGroupRequest) GetRegionId

func (r UpdateTargetGroupRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateTargetGroupRequest) SetDescription

func (r *UpdateTargetGroupRequest) SetDescription(description string)

param description: 虚拟服务器组描述,允许输入UTF-8编码下的全部字符,不超过256字符(Optional)

func (*UpdateTargetGroupRequest) SetRegionId

func (r *UpdateTargetGroupRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*UpdateTargetGroupRequest) SetTargetGroupId

func (r *UpdateTargetGroupRequest) SetTargetGroupId(targetGroupId string)

param targetGroupId: TargetGroup Id(Required)

func (*UpdateTargetGroupRequest) SetTargetGroupName

func (r *UpdateTargetGroupRequest) SetTargetGroupName(targetGroupName string)

param targetGroupName: 虚拟服务器组名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符(Optional)

type UpdateTargetGroupResponse

type UpdateTargetGroupResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    UpdateTargetGroupResult `json:"result"`
}

type UpdateTargetGroupResult

type UpdateTargetGroupResult struct {
}

type UpdateTargetsRequest

type UpdateTargetsRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* TargetGroup Id  */
	TargetGroupId string `json:"targetGroupId"`

	/* 修改target信息  */
	TargetUpdateSpecs []lb.TargetUpdateSpec `json:"targetUpdateSpecs"`
}

func NewUpdateTargetsRequest

func NewUpdateTargetsRequest(
	regionId string,
	targetGroupId string,
	targetUpdateSpecs []lb.TargetUpdateSpec,
) *UpdateTargetsRequest

* param regionId: Region ID (Required) * param targetGroupId: TargetGroup Id (Required) * param targetUpdateSpecs: 修改target信息 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateTargetsRequestWithAllParams

func NewUpdateTargetsRequestWithAllParams(
	regionId string,
	targetGroupId string,
	targetUpdateSpecs []lb.TargetUpdateSpec,
) *UpdateTargetsRequest

* param regionId: Region ID (Required) * param targetGroupId: TargetGroup Id (Required) * param targetUpdateSpecs: 修改target信息 (Required)

func NewUpdateTargetsRequestWithoutParam

func NewUpdateTargetsRequestWithoutParam() *UpdateTargetsRequest

This constructor has better compatible ability when API parameters changed

func (UpdateTargetsRequest) GetRegionId

func (r UpdateTargetsRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateTargetsRequest) SetRegionId

func (r *UpdateTargetsRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*UpdateTargetsRequest) SetTargetGroupId

func (r *UpdateTargetsRequest) SetTargetGroupId(targetGroupId string)

param targetGroupId: TargetGroup Id(Required)

func (*UpdateTargetsRequest) SetTargetUpdateSpecs

func (r *UpdateTargetsRequest) SetTargetUpdateSpecs(targetUpdateSpecs []lb.TargetUpdateSpec)

param targetUpdateSpecs: 修改target信息(Required)

type UpdateTargetsResponse

type UpdateTargetsResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    UpdateTargetsResult `json:"result"`
}

type UpdateTargetsResult

type UpdateTargetsResult struct {
}

type UpdateUrlMapRequest

type UpdateUrlMapRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 转发规则组Id  */
	UrlMapId string `json:"urlMapId"`

	/* 转发规则组描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) */
	Description *string `json:"description"`

	/* 转发规则组名称,同一个负载均衡下,名称不能重复,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Optional) */
	UrlMapName *string `json:"urlMapName"`
}

func NewUpdateUrlMapRequest

func NewUpdateUrlMapRequest(
	regionId string,
	urlMapId string,
) *UpdateUrlMapRequest

* param regionId: Region ID (Required) * param urlMapId: 转发规则组Id (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateUrlMapRequestWithAllParams

func NewUpdateUrlMapRequestWithAllParams(
	regionId string,
	urlMapId string,
	description *string,
	urlMapName *string,
) *UpdateUrlMapRequest

* param regionId: Region ID (Required) * param urlMapId: 转发规则组Id (Required) * param description: 转发规则组描述,允许输入UTF-8编码下的全部字符,不超过256字符 (Optional) * param urlMapName: 转发规则组名称,同一个负载均衡下,名称不能重复,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符 (Optional)

func NewUpdateUrlMapRequestWithoutParam

func NewUpdateUrlMapRequestWithoutParam() *UpdateUrlMapRequest

This constructor has better compatible ability when API parameters changed

func (UpdateUrlMapRequest) GetRegionId

func (r UpdateUrlMapRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateUrlMapRequest) SetDescription

func (r *UpdateUrlMapRequest) SetDescription(description string)

param description: 转发规则组描述,允许输入UTF-8编码下的全部字符,不超过256字符(Optional)

func (*UpdateUrlMapRequest) SetRegionId

func (r *UpdateUrlMapRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*UpdateUrlMapRequest) SetUrlMapId

func (r *UpdateUrlMapRequest) SetUrlMapId(urlMapId string)

param urlMapId: 转发规则组Id(Required)

func (*UpdateUrlMapRequest) SetUrlMapName

func (r *UpdateUrlMapRequest) SetUrlMapName(urlMapName string)

param urlMapName: 转发规则组名称,同一个负载均衡下,名称不能重复,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符(Optional)

type UpdateUrlMapResponse

type UpdateUrlMapResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    UpdateUrlMapResult `json:"result"`
}

type UpdateUrlMapResult

type UpdateUrlMapResult struct {
}

Jump to

Keyboard shortcuts

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