Help Center/ Elastic Load Balance/ CLI Reference/ CLI Command Reference (V2)
Updated on 2026-08-26 GMT+08:00

CLI Command Reference (V2)

SSL Certificate Management

API Name

Command

Description

Operation

Querying SSL Certificates

hcloud ELB ListCertificates/v2

This API is used to query the certificate. Filter query and pagination query are supported.

Go debug

Creating an SSL Certificate

hcloud ELB CreateCertificate/v2

This API is used to create an SSL certificate. After an SSL certificate is bound to a listener, the load balancer authenticates the client using this certificate, and backend servers can establish secure and reliable HTTP connections with the client.

Go debug

Querying Details of an SSL Certificate

hcloud ELB ShowCertificate/v2

This API is used to query details of a specific SSL certificate.

Go debug

Updating an SSL Certificate

hcloud ELB UpdateCertificate/v2

This API is used to update a specific SSL certificate.

Go debug

Deleting an SSL Certificate

hcloud ELB DeleteCertificate/v2

This API is used to delete a specific SSL certificate.

Go debug

Health Check

API Name

Command

Description

Operation

Querying Health Checks

hcloud ELB ListHealthmonitors/v2

This API is used to query the health checks.

Go debug

Configuring a Health Check

hcloud ELB CreateHealthmonitor/v2

This API is used to configure a health check for a backend server group.

Go debug

Querying Details of a Health Check

hcloud ELB ShowHealthmonitors/v2

This API is used to query details about a health check using its ID.

Go debug

Updating a Health Check

hcloud ELB UpdateHealthmonitor/v2

This API is used to update a health check.

Go debug

Deleting a Health Check

hcloud ELB DeleteHealthmonitor/v2

This API is used to delete a health check.

Go debug

Backend Server

API Name

Command

Description

Operation

Querying Backend Servers

hcloud ELB ListMembers/v2

This API is used to query backend servers in a specific backend server group.

Go debug

Adding a Backend Server

hcloud ELB CreateMember/v2

This API is used to add a backend server to a specific backend server group.

Go debug

Querying Details of a Backend Server

hcloud ELB ShowMember/v2

This API is used to query details about a backend server using its ID.

Go debug

Updating a Backend Server

hcloud ELB UpdateMember/v2

This API is used to update a backend server.

Go debug

Removing a Backend Server

hcloud ELB DeleteMember/v2

This API is used to remove a backend server.

Go debug

Backend Server Group

API Name

Command

Description

Operation

Querying Backend Server Groups

hcloud ELB ListPools/v2

This API is used to query the backend server groups.

Go debug

Adding a Backend Server Group

hcloud ELB CreatePool/v2

This API is used to add a backend server group. After multiple backend servers are added to a backend server group, requests are distributed among backend servers based on the load balancing algorithm configured for the backend server group and the weight set for each backend server.

Go debug

Querying Details of a Backend Server Group

hcloud ELB ShowPool/v2

This API is used to query details about a backend server group using its ID.

Go debug

Updating a Backend Server Group

hcloud ELB UpdatePool/v2

This API is used to update a backend server group.

Go debug

Deleting a Backend Server Group

hcloud ELB DeletePool/v2

This API is used to delete a backend server group.

Go debug

Whitelist

API Name

Command

Description

Operation

Querying Whitelists

hcloud ELB ListWhitelists/v2

This API is used to query the whitelists. Filter query and pagination query are supported.

Go debug

Adding a Whitelist

hcloud ELB CreateWhitelist/v2

This API is used to add a whitelist to control access to a specific listener. After a whitelist is added, only IP addresses in the whitelist can access the listener.

Go debug

Querying Details of a Whitelist

hcloud ELB ShowWhitelist/v2

This API is used to query details about a whitelist using its ID

Go debug

Updating a Whitelist

hcloud ELB UpdateWhitelist/v2

This API is used to update a whitelist. You can enable or disable the whitelist function or change IP addresses in the whitelist.

Go debug

Deleting a Whitelist

hcloud ELB DeleteWhitelist/v2

This API is used to delete a whitelist.

Go debug

Listener

API Name

Command

Description

Operation

Querying Listeners

hcloud ELB ListListeners/v2

This API is used to query listeners. Filter query and pagination query are supported. You can query listeners by ID, protocol, port number, and backend server's IP address.

Go debug

Creating a Listener

hcloud ELB CreateListener/v2

This API is used to add a listener to a specific load balancer.

Go debug

Querying Details of a Listener

hcloud ELB ShowListener/v2

This API is used to query details of a listener using its ID.

Go debug

Updating a Listener

hcloud ELB UpdateListener/v2

This API is used to update a listener.

Go debug

Deleting a Listener

hcloud ELB DeleteListener/v2

This API is used to delete a listener using its ID.

Go debug

Load Balancer

API Name

Command

Description

Operation

Querying Load Balancers

hcloud ELB ListLoadbalancers/v2

This API is used to query load balancers.

Go debug

Creating a Load Balancer

hcloud ELB CreateLoadbalancer/v2

This API is used to create a private enhanced network load balancer. After the load balancer is created, its details, such as load balancer ID, IP address, and subnet ID, are returned. To create a public network load balancer, you also need to call the API for assigning an EIP and associate this IP address to the port bound to the IP address of the private network load balancer.

Go debug

Querying Details of a Load Balancer

hcloud ELB ShowLoadbalancer/v2

This API is used to query details of a load balancer using its ID.

Go debug

Updating a Load Balancer

hcloud ELB UpdateLoadbalancer/v2

This API is used to update a load balancer.

Go debug

Deleting a Load Balancer

hcloud ELB DeleteLoadbalancer/v2

This API is used to delete a load balancer using its ID.

Go debug

Querying the Status Tree of a Load Balancer

hcloud ELB ShowLoadbalancersStatus/v2

This API is used to query the status tree of a load balancer. You can use this API to query details about the associated listeners, backend server groups, backend servers, health checks, forwarding policies, and forwarding rules, helping you understand the topology of resources associated with the load balancer.

Go debug

Forwarding Policy

API Name

Command

Description

Operation

Querying Forwarding Policies

hcloud ELB ListL7policies/v2

This API is used to query the forwarding policies. Filter query and pagination query are supported.

Go debug

Adding a Forwarding Policy

hcloud ELB CreateL7policy/v2

This API is used to add a forwarding policy to a listener.

Go debug

Querying Details of a Forwarding Policy

hcloud ELB ShowL7policy/v2

This API is used to query details about a forwarding policy using its ID.

Go debug

Updating a Forwarding Policy

hcloud ELB UpdateL7policies/v2

This API is used to update a forwarding policy.

Go debug

Deleting a Forwarding Policy

hcloud ELB DeleteL7policy/v2

Deleting a Forwarding Policy

Go debug

Forwarding Rule

API Name

Command

Description

Operation

Querying Forwarding Rules

hcloud ELB ListL7rules/v2

This API is used to query the forwarding rules in the forwarding policy.

Go debug

Adding a Forwarding Rule

hcloud ELB CreateL7rule/v2

This API is used to add a forwarding rule.

Go debug

Querying Details of a Forwarding Rule

hcloud ELB ShowL7rule/v2

This API is used to query details about a forwarding rule in a forwarding policy using its ID.

Go debug

Updating a Forwarding Rule

hcloud ELB UpdateL7rule/v2

This API is used to update a specific forwarding rule.

Go debug

Deleting a Forwarding Rule

hcloud ELB DeleteL7rule/v2

This API is used to delete a forwarding rule.

Go debug