### Get Listener Health Status Example Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-getlistenerhealthstatus This section provides an example of a successful response when retrieving the health status of SLB listeners. ```APIDOC ## GET /websites/help_aliyun_zh_slb/listenerHealthStatus ### Description Retrieves the health status of Server Load Balancer (SLB) listeners and their associated server groups. ### Method GET ### Endpoint /websites/help_aliyun_zh_slb/listenerHealthStatus ### Parameters #### Query Parameters - **ListenerId** (string) - Optional - The ID of the listener to query. - **ServerGroupId** (string) - Optional - The ID of the server group to query. ### Request Example ```json { "action": "DescribeListenerHealthStatus" } ``` ### Response #### Success Response (200) - **ListenerHealthStatus** (array) - An array of listener health status objects. - **ListenerId** (string) - The ID of the listener. - **ListenerPort** (integer) - The port of the listener. - **ListenerProtocol** (string) - The protocol of the listener. - **ServerGroupInfos** (array) - Information about server groups associated with the listener. - **HealthCheckEnabled** (string) - Indicates if health checks are enabled ('on' or 'off'). - **NonNormalServers** (array) - A list of servers that are not in a normal state. - **Port** (integer) - The port of the non-normal server. - **Reason** (object) - Details about why the server is not normal. - **ActualResponse** (any) - The actual response received during health check. - **ExpectedResponse** (string) - The expected response for a healthy server. - **ReasonCode** (string) - The code indicating the reason for the abnormal status. - **ServerId** (string) - The ID of the non-normal server. - **ServerIp** (string) - The IP address of the non-normal server. - **Status** (string) - The current status of the server ('Initial', 'Unhealthy', etc.). - **ServerGroupId** (string) - The ID of the server group. - **ActionType** (string) - The action type associated with the server group in the context of health status. - **RequestId** (string) - The request ID for tracing. - **RuleHealthStatus** (array) - Health status for rules associated with listeners. - **RuleId** (string) - The ID of the rule. - **ServerGroupInfos** (array) - Server group information for the rule (similar structure to ListenerHealthStatus). - **NextToken** (string) - Token for paginating results if there are more items. #### Response Example ```json { "ListenerHealthStatus": [ { "ListenerId": "lsn-o4u54y73wq7b******", "ListenerPort": 80, "ListenerProtocol": "http", "ServerGroupInfos": [ { "HealthCheckEnabled": "on", "NonNormalServers": [ { "Port": 90, "Reason": { "ActualResponse": 302, "ExpectedResponse": "HTTP_2xx", "ReasonCode": "RESPONSE_MISMATCH" }, "ServerId": "i-uf62h8v******", "ServerIp": "192.168.8.10", "Status": "Initial" } ], "ServerGroupId": "sgp-8ilqs4axp6******", "ActionType": "TrafficMirror" } ] } ], "RequestId": "CEF72CEB-54B6-4AE8-B225-F876F******", "RuleHealthStatus": [ { "RuleId": "rule-hp34s2h0xx1ht4nwo****", "ServerGroupInfos": [ { "HealthCheckEnabled": "on", "NonNormalServers": [ { "Port": 90, "Reason": { "ActualResponse": 302, "ExpectedResponse": "HTTP_2xx", "ReasonCode": "RESPONSE_MISMATCH" }, "ServerId": "i-uf62h8v******", "ServerIp": "192.168.2.11", "Status": "Initial" } ], "ServerGroupId": "sgp-8ilqs4axp6******", "ActionType": "TrafficMirror" } ] } ], "NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****" } ``` ### Error Codes | HTTP status code | Error Code | Error Message | Description | |---|---|---|---| | 403 | Forbidden.LoadBalancer | Authentication is failed for %s. | 负载均衡操作鉴权失败。 | | 404 | ResourceNotFound.LoadBalancer | The specified resource %s is not found. | 资源%s不存在。 | | 404 | ResourceNotFound.Listener | The specified resource %s is not found. | 监听不存在。 | ``` -------------------------------- ### SLB Normal Response Example (JSON) Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-getlistenerhealthstatus This JSON snippet demonstrates a typical successful response from the Aliyun SLB API. It includes details about listener health status, rule health status, and server group information. The 'NextToken' field is used for pagination. ```json { "ListenerHealthStatus": [ { "ListenerId": "lsn-o4u54y73wq7b******", "ListenerPort": 80, "ListenerProtocol": "http", "ServerGroupInfos": [ { "HealthCheckEnabled": "on", "NonNormalServers": [ { "Port": 90, "Reason": { "ActualResponse": 302, "ExpectedResponse": "HTTP_2xx", "ReasonCode": "RESPONSE_MISMATCH" }, "ServerId": "i-uf62h8v******", "ServerIp": "192.168.8.10", "Status": "Initial" } ], "ServerGroupId": "sgp-8ilqs4axp6******", "ActionType": "TrafficMirror" } ] } ], "RequestId": "CEF72CEB-54B6-4AE8-B225-F876F******", "RuleHealthStatus": [ { "RuleId": "rule-hp34s2h0xx1ht4nwo****", "ServerGroupInfos": [ { "HealthCheckEnabled": "on", "NonNormalServers": [ { "Port": 90, "Reason": { "ActualResponse": 302, "ExpectedResponse": "HTTP_2xx", "ReasonCode": "RESPONSE_MISMATCH" }, "ServerId": "i-uf62h8v******", "ServerIp": "192.168.2.11", "Status": "Initial" } ], "ServerGroupId": "sgp-8ilqs4axp6******", "ActionType": "TrafficMirror" } ] } ], "NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****" } ``` -------------------------------- ### Query Capacity Reservation - JSON Example Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-describecapacityreservation This code snippet demonstrates a successful response from the DescribeCapacityReservation API call in JSON format. It includes details about the request ID, capacity reservation status, remaining decrease requests, last modified time, and minimum load balancer capacity. ```json { "RequestId": "365F4154-92F6-4AE4-92F8-7FF3******", "CapacityReservationState": [ { "AvailabilityZone": "cn-hangzhou-k", "EffectiveCapacityUnits": 50, "Status": "Provisioned", "Reason": "INSUFFICIENT_CAPACITY" } ], "DecreaseRequestsRemaining": 2, "LastModifiedTime": "2025-08-22 05:06:58", "MinimumLoadBalancerCapacity": { "CapacityUnits": 100 } } ``` -------------------------------- ### LoadBalancerJoinSecurityGroup API Request Example (JSON) Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-loadbalancerjoinsecuritygroup This example demonstrates a typical JSON request to the LoadBalancerJoinSecurityGroup API. It includes the necessary parameters such as LoadBalancerId and SecurityGroupIds. Ensure that the provided IDs are valid and that the security group functionality has been approved for your account. ```json { "LoadBalancerId": "alb-h7kcw4g4nnvtqp****", "SecurityGroupIds": [ "sg-m5e7xkprgt1pi1ik****" ], "ClientToken": "123e4567-e89b-12d3-a456-426655440000" } ``` -------------------------------- ### Batch Delete Health Check Templates - Example Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-deletehealthchecktemplates This example demonstrates how to use the DeleteHealthCheckTemplates API to batch delete health check templates. It shows the expected JSON response upon successful execution. ```json { "RequestId": "365F4154-92F6-4AE4-92F8-7FF3******" } ``` -------------------------------- ### Unbind Security Group from Load Balancer (Example) Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-loadbalancerleavesecuritygroup This example demonstrates how to unbind a security group from an application-based load balancer instance using the LoadBalancerLeaveSecurityGroup API. It shows the expected JSON response containing the RequestId and JobId for the asynchronous operation. ```json { "RequestId": "EC0C96E4-7CCB-599C-9329-3A5DB6FF****", "JobId": "51c5b627-3500-487c-b17d-5cc583f0****" } ``` -------------------------------- ### ALB Instance Bandwidth Monitoring Items Source: https://help.aliyun.com/zh/slb/application-load-balancer/user-guide/alb-monitoring-metrics This section outlines the monitoring metrics for ALB instance bandwidth, covering both inbound and outbound data transfer rates. ```APIDOC ## ALB Instance Bandwidth Monitoring Items ### Description Provides metrics for monitoring the data transfer volume for ALB instances. ### Method GET ### Endpoint `/cloudmonitor/ListMetrics` (Hypothetical endpoint) ### Parameters #### Query Parameters - **Namespace** (string) - Required - `acs_alb` - **Period** (integer) - Optional - Defaults to 60 seconds (must be a multiple of 60). - **MetricName** (string) - Required - The name of the metric to query (e.g., `LoadBalancerOutBits`, `LoadBalancerInBits`). - **Dimensions** (string) - Required - JSON string representing dimensions, e.g., `[{"loadBalancerId":"alb-xxxxxxxxxxxx"}]`. - **Statistics** (string) - Required - The statistical method to use (e.g., `Value`). #### Request Example ```json { "Namespace": "acs_alb", "MetricName": "LoadBalancerInBits", "Dimensions": "[{\"loadBalancerId\":\"alb-t93aj3yndojot5****\"}]", "Statistics": "Value", "Period": 60 } ``` ### Response #### Success Response (200) - **Datapoints** (array) - An array of data points, each containing timestamp and value. - **Timestamp** (string) - The time at which the metric was recorded. - **Value** (number) - The value of the metric. #### Response Example ```json { "Datapoints": [ { "Timestamp": "2023-10-27T10:00:00Z", "Value": 10000000 }, { "Timestamp": "2023-10-27T10:01:00Z", "Value": 12000000 } ] } ``` ``` -------------------------------- ### CreateListener Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-ram Creates a new listener for a load balancer. Listeners define how the load balancer receives and processes incoming traffic. ```APIDOC ## POST /websites/help_aliyun_zh_slb/alb:CreateListener ### Description Creates a new listener for a load balancer. Listeners define how the load balancer receives and processes incoming traffic. ### Method POST ### Endpoint `/websites/help_aliyun_zh_slb/alb:CreateListener` ### Parameters #### Path Parameters - **loadbalancerId** (string) - Required - The ID of the load balancer. #### Query Parameters - **ListenerProtocol** (string) - Required - The protocol for the listener (e.g., HTTP, HTTPS). - **ListenerPort** (integer) - Required - The port for the listener. - **DefaultActions** (array) - Required - The default action for the listener. - **Type** (string) - Required - The type of action (e.g., ForwardToServers). - **ForwardGroup** (object) - Required - Configuration for forwarding traffic. - **ServerGroupId** (string) - Required - The ID of the server group to forward traffic to. - **SecurityPolicyId** (string) - Optional - The ID of the security policy to use for HTTPS listeners. ### Request Example ```json { "loadbalancerId": "lb-xxxxxxxxxxxxxxxxx", "ListenerProtocol": "HTTPS", "ListenerPort": 443, "DefaultActions": [ { "Type": "ForwardToServers", "ForwardGroup": { "ServerGroupId": "sg-xxxxxxxxxxxxxxxxx" } } ], "SecurityPolicyId": "sp-xxxxxxxxxxxxxxxxx" } ``` ### Response #### Success Response (200) - **ListenerId** (string) - The ID of the created listener. - **RequestId** (string) - The ID of the request. #### Response Example ```json { "ListenerId": "lsn-xxxxxxxxxxxxxxxxx", "RequestId": "931A73A4-17A1-430A-8D68-007937A6019F" } ``` ``` -------------------------------- ### Create Health Check Template Example Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-createhealthchecktemplate This example demonstrates how to call the CreateHealthCheckTemplate API to create a health check template. It specifies various parameters such as the template name, protocol, port, interval, timeout, and thresholds. The response includes the HealthCheckTemplateId and RequestId. ```JSON { "HealthCheckTemplateId": "hct-pno8sisi******", "RequestId": "365F4154-92F6-4AE4-92F8-7FF34******" } ``` -------------------------------- ### ListListenerCertificates Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-ram Retrieves the certificates associated with a specific listener. This helps in managing SSL/TLS configurations. ```APIDOC ## GET /websites/help_aliyun_zh_slb/alb:ListListenerCertificates ### Description Retrieves the certificates associated with a specific listener. This helps in managing SSL/TLS configurations. ### Method GET ### Endpoint `/websites/help_aliyun_zh_slb/alb:ListListenerCertificates` ### Parameters #### Path Parameters - **loadbalancerId** (string) - Required - The ID of the load balancer. - **listenerId** (string) - Required - The ID of the listener. ### Response #### Success Response (200) - **Certificates** (array) - A list of certificate details. - **CertificateId** (string) - The ID of the certificate. - **CertificateName** (string) - The name of the certificate. - **RequestId** (string) - The ID of the request. #### Response Example ```json { "Certificates": [ { "CertificateId": "cert-xxxxxxxxxxxxxxxxx", "CertificateName": "MySslCert" } ], "RequestId": "931A73A4-17A1-430A-8D68-007937A6019F" } ``` ``` -------------------------------- ### LoadBalancerJoinSecurityGroup API Response Example (JSON) Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-loadbalancerjoinsecuritygroup This is an example of a successful JSON response from the LoadBalancerJoinSecurityGroup API. It returns a JobId for asynchronous task tracking and a RequestId for reference. The actual security group binding is an asynchronous process, and its completion status can be checked using the ListAsynJobs API. ```json { "JobId": "8fe81f25-79a0-4fa0-9036-f2601fda****", "RequestId": "D3B9AE45-F5DB-58E3-A4B5-EE58F1EC****" } ``` -------------------------------- ### Apply Health Check Template to Server Group Example (JSON) Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-applyhealthchecktemplatetoservergroup This JSON example demonstrates a successful response when applying a health check template to a server group. It includes the Job ID for tracking the asynchronous operation and the Request ID for unique identification of the API call. ```json { "JobId": "72dcd26b-f12d-4c27-b3af-18f6aed5****", "RequestId": "365F4154-92F6-4AE4-92F8-7FF******" } ``` -------------------------------- ### POST /websites/help_aliyun_zh_slb Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-modifycapacityreservation Updates the resource reservation for an Application Load Balancer (ALB) instance. This is an asynchronous operation, and the status can be tracked using DescribeCapacityReservation. ```APIDOC ## POST /websites/help_aliyun_zh_slb ### Description Updates the resource reservation for an Application Load Balancer (ALB) instance. This is an asynchronous operation, and the status can be tracked using `DescribeCapacityReservation`. ### Method POST ### Endpoint /websites/help_aliyun_zh_slb ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **LoadBalancerId** (string) - Required - The ID of the Application Load Balancer instance. - **ResetCapacityReservation** (boolean) - Optional - Whether to cancel the resource reservation. `true` to cancel, `false` (default) to not cancel. - **MinimumLoadBalancerCapacity** (object) - Optional - The minimum reserved capacity for the load balancer. - **CapacityUnits** (integer) - Optional - The number of reserved LCUs per hour. - **DryRun** (boolean) - Optional - Whether to perform a dry run. `true` to check without making changes, `false` (default) to proceed with the operation. - **ClientToken** (string) - Optional - A unique value to ensure request idempotency. If not specified, `RequestId` is used. ### Request Example ```json { "LoadBalancerId": "alb-iv9gj3spak6fbj****", "ResetCapacityReservation": false, "MinimumLoadBalancerCapacity": { "CapacityUnits": 100 }, "DryRun": false, "ClientToken": "5A2CFF0E-5718-45B5-9D4D-70B3FF3898" } ``` ### Response #### Success Response (200) - **RequestId** (string) - The request ID. #### Response Example ```json { "RequestId": "593B0448-D13E-4C56-AC0D-FDF0F******" } ``` ### Error Codes - **400**: OperationDenied.ListenerNotFound, OperationDenied.CapacityReservationNotSupport, OperationDenied.CapacityUnitsBelowMinimum, OperationDenied.CapacityDecreaseRequestLimitExceeded, OperationDenied.PriorRequestNotComplete, OperationDenied.DeploymentSetExists, OperationDenied.DeploymentSetIsEmpty, OperationDenied.DeploymentSetsConflicts, OperationDenied.DeploymentSetsNotSupport, OperationDenied.DeploymentSetsStrategyNotMatch, QuotaExceeded.ReservationMaxLcuPerLb, QuotaExceeded.ReservationMaxLcuPerRegion, QuotaExceeded.DeploymentSetsNum - **404**: ResourceNotFound.LoadBalancer ``` -------------------------------- ### Listener Bandwidth Monitoring Source: https://help.aliyun.com/zh/slb/application-load-balancer/user-guide/alb-monitoring-metrics Retrieve metrics related to inbound and outbound bandwidth for SLB listeners. ```APIDOC ## GET /websites/help_aliyun_zh_slb/listeners/bandwidth_monitoring ### Description Retrieves monitoring data for inbound and outbound bandwidth on an SLB listener. ### Method GET ### Endpoint `/websites/help_aliyun_zh_slb/listeners/bandwidth_monitoring` ### Parameters #### Query Parameters - **userId** (string) - Required - The ID of the user. - **loadBalancerId** (string) - Required - The ID of the load balancer. - **listenerProtocol** (string) - Required - The protocol of the listener (e.g., HTTP, HTTPS). - **listenerPort** (integer) - Required - The port number of the listener. - **metricName** (string) - Required - The name of the metric to retrieve (`ListenerOutBits` or `ListenerInBits`). - **statistics** (string) - Required - The type of statistics to retrieve (e.g., `Value`). ### Response #### Success Response (200) - **metricData** (object) - Contains the monitoring data for the requested metric. - **timestamp** (string) - The timestamp of the data point. - **value** (number) - The value of the metric (in bits/s). #### Response Example ```json { "metricData": [ { "timestamp": "2023-10-27T10:00:00Z", "value": 1000000 } ] } ``` ``` -------------------------------- ### Get SLB Health Status Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-getlistenerhealthstatus Retrieves the health status of SLB listeners, their associated server groups, and forwarding rules. ```APIDOC ## GET /websites/help_aliyun_zh_slb ### Description Retrieves the health status of SLB listeners and their associated server groups and forwarding rules. ### Method GET ### Endpoint /websites/help_aliyun_zh_slb ### Parameters #### Query Parameters - **NextToken** (string) - Optional - Used for pagination to retrieve the next set of results. ### Response #### Success Response (200) - **ListenerHealthStatus** (array) - A list of health status objects for each listener. - **ListenerId** (string) - The ID of the listener. - **ListenerPort** (integer) - The port number of the listener. - **ListenerProtocol** (string) - The protocol of the listener. - **ServerGroupInfos** (array) - Information about the associated server groups. - **ServerGroupHealthStatusModel** (object) - Health status details for a server group. - **HealthCheckEnabled** (string) - The health check status ('on' or 'off'). - **NonNormalServers** (array) - A list of backend servers that are not in a normal state. - **BackendServerHealthStatusModel** (object) - Health status details for a non-normal backend server. - **Port** (integer) - The port of the backend server. - **Reason** (object) - The reason for the abnormal status. - **ActualResponse** (string) - The actual response code received from the backend server (only if ReasonCode is RESPONSE_MISMATCH). - **ExpectedResponse** (string) - The expected response code configured for the backend server (only if ReasonCode is RESPONSE_MISMATCH). - **ReasonCode** (string) - The detailed reason for the abnormal status (e.g., CONNECT_TIMEOUT, RESPONSE_MISMATCH). - **ServerId** (string) - The ID of the backend server. - **ServerIp** (string) - The IP address of the backend server. - **Status** (string) - The health status of the backend server (Initial, Unhealthy, Unused, Unavailable). - **ServerGroupId** (string) - The ID of the associated server group. - **ActionType** (string) - The type of action for the server group (ForwardGroup, TrafficMirror). - **ServerGroupId** (string) - The ID of the server group. - **ActionType** (string) - The type of action for the server group (ForwardGroup, TrafficMirror). - **RuleHealthStatus** (array) - A list of health status objects for each forwarding rule. - **RuleId** (string) - The ID of the forwarding rule. - **ServerGroupInfos** (array) - Information about the server groups associated with the rule. - **ServerGroupHealthStatusModel** (object) - Health status details for a server group. - **HealthCheckEnabled** (string) - The health check status ('on' or 'off'). - **NonNormalServers** (array) - A list of backend servers that are not in a normal state. - **NonNormalServer** (object) - Details of a non-normal backend server. - **Port** (integer) - The port of the backend server. - **Reason** (object) - The reason for the abnormal status. - **ActualResponse** (string) - The actual response code received from the backend server (only if ReasonCode is RESPONSE_MISMATCH). - **ExpectedResponse** (string) - The expected response code configured for the backend server (only if ReasonCode is RESPONSE_MISMATCH). - **ReasonCode** (string) - The detailed reason for the abnormal status (e.g., CONNECT_TIMEOUT, RESPONSE_MISMATCH). - **ServerId** (string) - The ID of the backend server. - **ServerIp** (string) - The IP address of the backend server. - **Status** (string) - The health status of the backend server (Initial, Unhealthy, Unused, Unavailable). - **ServerGroupId** (string) - The ID of the associated server group. - **ActionType** (string) - The type of action for the server group (ForwardGroup, TrafficMirror). - **ServerGroupId** (string) - The ID of the server group. - **ActionType** (string) - The type of action for the server group (ForwardGroup, TrafficMirror). - **NextToken** (string) - Token for the next page of results, if available. - **RequestId** (string) - The ID of the request. #### Response Example { "ListenerHealthStatus": [ { "ListenerId": "lsn-o4u54y73wq7b******", "ListenerPort": 80, "ListenerProtocol": "http", "ServerGroupInfos": [ { "ServerGroupHealthStatusModel": { "HealthCheckEnabled": "on", "NonNormalServers": [ { "BackendServerHealthStatusModel": { "Port": 90, "Reason": { "ActualResponse": "302", "ExpectedResponse": "HTTP_2xx", "ReasonCode": "RESPONSE_MISMATCH" }, "ServerId": "i-uf62h8v******", "ServerIp": "192.168.8.10", "Status": "Unhealthy", "ServerGroupId": "sgp-8ilqs4axp6******", "ActionType": "TrafficMirror" } } ], "ServerGroupId": "sgp-8ilqs4axp6******", "ActionType": "TrafficMirror" } } ] } ], "RuleHealthStatus": [ { "RuleId": "rule-hp34s2h0xx1ht4nwo****", "ServerGroupInfos": [ { "ServerGroupHealthStatusModel": { "HealthCheckEnabled": "on", "NonNormalServers": [ { "NonNormalServer": { "Port": 90, "Reason": { "ActualResponse": "302", "ExpectedResponse": "HTTP_2xx", "ReasonCode": "RESPONSE_MISMATCH" }, "ServerId": "i-uf62h8v******", "ServerIp": "192.168.2.11", "Status": "Initial", "ServerGroupId": "sgp-8ilqs4axp6******", "ActionType": "TrafficMirror" } } ], "ServerGroupId": "sgp-8ilqs4axp6******", "ActionType": "TrafficMirror" } } ] } ], "NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****", "RequestId": "CEF72CEB-54B6-4AE8-B225-F876F******" } ``` -------------------------------- ### GetHealthCheckTemplateAttribute API Response Example (JSON) Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-gethealthchecktemplateattribute 展示了调用 GetHealthCheckTemplateAttribute 接口成功后返回的 JSON 格式的健康检查模板详细信息。包含端口、域名、状态码、协议版本、模板 ID、时间间隔、方法、路径、协议、模板名称、超时时间、阈值、请求 ID、标签和资源组 ID 等字段。 ```json { "HealthCheckConnectPort": 80, "HealthCheckHost": "$SERVER_IP", "HealthCheckCodes": [ "http_2xx" ], "HealthCheckHttpVersion": "HTTP1.0", "HealthCheckTemplateId": "hct-x4jazoyi6tvsq9****", "HealthCheckInterval": 3, "HealthCheckMethod": "GET", "HealthCheckPath": "/test/index.html", "HealthCheckProtocol": "HTTP", "HealthCheckTemplateName": "HealthCheckTemplate1", "HealthCheckTimeout": 200, "HealthyThreshold": 5, "RequestId": "DB1AFC33-DAE8-528E-AA4D-4A6A******", "UnhealthyThreshold": 5, "Tags": [ { "Key": "env", "Value": "product" } ], "ResourceGroupId": "rg-atstuj3rtop****" } ``` -------------------------------- ### Listener Management Source: https://help.aliyun.com/zh/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-ram Operations for managing listeners, including starting/stopping and associating certificates. ```APIDOC ## POST /loadbalancers/{loadbalancerId}/listeners/{listenerId}/start ### Description Starts a specified listener for a load balancer. ### Method POST ### Endpoint `/loadbalancers/{loadbalancerId}/listeners/{listenerId}/start` ### Parameters #### Path Parameters - **loadbalancerId** (string) - Required - The ID of the load balancer. - **listenerId** (string) - Required - The ID of the listener to start. ### Response #### Success Response (200) - **Success** (boolean) - Indicates if the operation was successful. #### Response Example ```json { "Success": true } ``` ## POST /loadbalancers/{loadbalancerId}/listeners/{listenerId}/stop ### Description Stops a specified listener for a load balancer. ### Method POST ### Endpoint `/loadbalancers/{loadbalancerId}/listeners/{listenerId}/stop` ### Parameters #### Path Parameters - **loadbalancerId** (string) - Required - The ID of the load balancer. - **listenerId** (string) - Required - The ID of the listener to stop. ### Response #### Success Response (200) - **Success** (boolean) - Indicates if the operation was successful. #### Response Example ```json { "Success": true } ``` ## POST /loadbalancers/{loadbalancerId}/additionalcertificates ### Description Associates additional certificates with a listener for a load balancer. ### Method POST ### Endpoint `/loadbalancers/{loadbalancerId}/additionalcertificates` ### Parameters #### Path Parameters - **loadbalancerId** (string) - Required - The ID of the load balancer. #### Request Body - **ListenerId** (string) - Required - The ID of the listener. - **Certificates** (array) - Required - A list of certificate information. - **CertificateId** (string) - Required - The ID of the certificate. ### Response #### Success Response (200) - **Success** (boolean) - Indicates if the operation was successful. #### Response Example ```json { "Success": true } ``` ```