检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := elb.NewElbClient( elb.ElbClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := elb.NewElbClient( elb.ElbClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).
Range: A specific value, for example, 200 A list of values that are separated with commas (,), for example, 200, 202 A value range, for example, 200-204 Default value: If type is set to GRPC, the default value is 0.
Range: 1 to 65535, or null (the port of a backend server will be used by default). name String Definition: Specifies the health check name. Range: N/A pools Array of PoolRef objects Specifies the IDs of the backend server groups for which the health check is configured.
If type is set to other values, the status code ranges from 200 to 599. For example, the status code can be 0 or 200. A list of status codes that are separated with commas (,), for example, 200,202 or 0,1. A maximum of five status codes are supported. A status code range.
Range: A specific value, for example, 200 A list of values that are separated with commas (,), for example, 200, 202 A value range, for example, 200-204 Default value: N/A http_method No String Definition: Specifies the HTTP method.
()); System.out.println(e.getRequestId()); System.out.println(e.getErrorCode()); System.out.println(e.getErrorMsg()); } } } Changing the load balancing algorithm of a backend server group 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
( new CreateMasterSlaveMemberOption() .withAddress("120.10.10.16") .withName("My member") .withProtocolPort(89) .withRole(CreateMasterSlaveMemberOption.RoleEnum.fromValue("master")) ); listPoolMembers.add
()); System.out.println(e.getRequestId()); System.out.println(e.getErrorCode()); System.out.println(e.getErrorMsg()); } } } Changing the weight of a backend server 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := elb.NewElbClient( elb.ElbClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).
/elb/v3/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/region" ) func main() { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks.
Status Codes Status Code Description 200 Successful request. Error Codes See Error Codes. Parent Topic: Backend Server
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := elb.NewElbClient( elb.ElbClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).
Status Codes Status Code Description 200 Successful request. Error Codes See Error Codes. Parent Topic: Backend Server Group
Range: server: server certificates client CA certificates server_sm: server SM certificates created_at String Definition: Specifies the creation time.
Status Codes Status Code Description 200 Successful request. Error Codes See Error Codes. Parent Topic: Backend Server
Status Codes Status Code Description 200 Successful request. Error Codes See Error Codes. Parent Topic: Backend Server
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := elb.NewElbClient( elb.ElbClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).
If type is set to other values, the status code ranges from 200 to 599. For example, the status code can be 0 or 200. A list of status codes that are separated with commas (,), for example, 200,202 or 0,1. A maximum of five status codes are supported. A status code range.
Status Codes Status Code Description 200 Successful request. Error Codes See Error Codes. Parent Topic: Backend Server Group