Help Center/ Enterprise Router/ CLI Reference/ CLI Command Reference
Updated on 2026-09-07 GMT+08:00

CLI Command Reference

Enterprise Routers

API Name

Command

Description

Operation

Querying Enterprise Routers

hcloud ER ListEnterpriseRouters

This API is used to query enterprise routers.

Go debug

Creating an Enterprise Router

hcloud ER CreateEnterpriseRouter

This API is used to create an enterprise router. If both Default Route Table Association and Default Route Table Propagation are enabled, the system will create a route table as both the default association route table and the default propagation route table.

Go debug

Querying Details About an Enterprise Router

hcloud ER ShowEnterpriseRouter

This API is used to query details about an enterprise router.

Go debug

Updating an Enterprise Router

hcloud ER UpdateEnterpriseRouter

This API is used to update basic information about the enterprise router.

Go debug

Deleting an Enterprise Router

hcloud ER DeleteEnterpriseRouter

This API is used to delete an enterprise router.

Go debug

Changing Enterprise Router AZs

hcloud ER ChangeAvailabilityZone

This API is used to change enterprise router AZs. The AZs can be changed only when the enterprise router is in the available state.

Go debug

VPC Attachments

API Name

Command

Description

Operation

Querying VPC Attachments

hcloud ER ListVpcAttachments

This API is used to query the VPC attachments of the enterprise router.

Go debug

Creating a VPC Attachment

hcloud ER CreateVpcAttachment

This API is used to create a VPC attachment for an enterprise router.

Go debug

Querying Details About a VPC Attachment

hcloud ER ShowVpcAttachment

This API is used to query details about a VPC attachment.

Go debug

Updating a VPC Attachment

hcloud ER UpdateVpcAttachment

This API is used to update basic information about a VPC attachment.

Go debug

Deleting a VPC Attachment

hcloud ER DeleteVpcAttachment

This API is used to delete a VPC attachment.

Go debug

Attachments

API Name

Command

Description

Operation

Querying Details About an Attachment

hcloud ER ShowAttachment

This API is used to query details about an attachment.

Go debug

Updating an Attachment

hcloud ER UpdateAttachment

This API is used to update basic information about an attachment.

Go debug

Querying Attachments

hcloud ER ListAttachments

This API is used to query the attachments of the enterprise router.

Go debug

Accept creating shared attachment

hcloud ER AcceptAttachment

Accept creating shared attachment

Go debug

Reject creating shared attachment

hcloud ER RejectAttachment

Reject creating shared attachment

Go debug

Route Tables

API Name

Command

Description

Operation

Querying Route Tables

hcloud ER ListRouteTables

This API is used to query route tables.

Go debug

Creating a Route Table

hcloud ER CreateRouteTable

This API is used to create a route table. A route table is the basis for an enterprise router to send and receive packets. It contains attachment associations, propagations, and routes.

Go debug

Querying Details About a Route Table

hcloud ER ShowRouteTable

This API is used to query details about a route table.

Go debug

Updating Route Table Information

hcloud ER UpdateRouteTable

This API is used to update basic information about a route table, such as the name and description.

Go debug

Deleting a Route Table

hcloud ER DeleteRouteTable

This API is used to delete a route table.

Go debug

Associations

API Name

Command

Description

Operation

Querying Route Associations

hcloud ER ListAssociations

This API is used to query route associations.

Go debug

Creating a Route Association

hcloud ER AssociateRouteTable

This API is used to create a route association. Each attachment only can be associated with one route table of its enterprise router for packet forwarding.

Go debug

Deleting a Route Association

hcloud ER DisassociateRouteTable

This API is used to delete an association from the route table of an enterprise router for an attachment.

Go debug

Modifying the Route Policy of an Association

hcloud ER ChangeAssociationRoutePolicy

This API is used to modify the route policy of an association.

Go debug

Propagations

API Name

Command

Description

Operation

Querying Route Propagations

hcloud ER ListPropagations

This API is used to query route propagations.

Go debug

Creating a Route Propagation

hcloud ER EnablePropagation

This API is used to create a route propagation. A propagation can be created for each attachment to propagate routes to one or more route tables on an enterprise router.

Go debug

Deleting a Route Propagation

hcloud ER DisablePropagation

This API is used to delete a propagation from the route table of an enterprise router for an attachment.

Go debug

Modifying a Route Policy

hcloud ER UpdatePropagationRoutePolicy

This API is used to modify a route policy.

Go debug

Routes

API Name

Command

Description

Operation

Querying Details About a Static Route

hcloud ER ShowStaticRoute

This API is used to query details about a static route.

Go debug

Updating a Static Route

hcloud ER UpdateStaticRoute

This API is used to update a static route.

Go debug

Deleting a Static Route

hcloud ER DeleteStaticRoute

This API is used to delete a static route.

Go debug

Querying Static Routes

hcloud ER ListStaticRoutes

This API is used to query static routes.

Go debug

Creating a Static Route

hcloud ER CreateStaticRoute

This API is used to create a static route.

Go debug

Querying Valid Routes

hcloud ER ListEffectiveRoutes

This API is used to query valid routes. Pagination query is supported.

Go debug

Tags

API Name

Command

Description

Operation

Querying Project Tags

hcloud ER ListProjectTags

This API is used to query tags of resources of a specific type.

Go debug

Querying Resource Tags

hcloud ER ShowResourceTag

This API is used to query tags of resources of a specific type.

Go debug

Creating Resource Tags

hcloud ER CreateResourceTag

This API is used to create tags for resources of a specific type.

Go debug

Add and delete resource tags in batches

hcloud ER BatchCreateResourceTags

  • Batch add or delete tags for specified instances

Go debug

Deleting Resource Tags

hcloud ER DeleteResourceTag

This API is used to delete tags for resources of a specific type.

Go debug

Resource Quotas

API Name

Command

Description

Operation

query quota

hcloud ER ShowQuotas

Query the usage of various resources of tenants, such as the usage of enterprise routers and the usage of VPC attachments.

Go debug

AZs

API Name

Command

Description

Operation

Querying AZs

hcloud ER ListAvailabilityZone

This API is used to query AZs where enterprise routers can be created. An enterprise router can be created only when an AZ is in the available state.

Go debug

Flow Logs

API Name

Command

Description

Operation

Query the flow log list

hcloud ER ListFlowLogs

Query the flow log list under the enterprise router instance

Go debug

Create a flow log

hcloud ER CreateFlowLog

Create flow logs for ER instances.

Go debug

Querying Flow Log Details

hcloud ER ShowFlowLog

Querying Flow Log Details

Go debug

Update the basic information of the flow log

hcloud ER UpdateFlowLog

Update the basic information of the flow log

Go debug

Delete flow log

hcloud ER DeleteFlowLog

Delete flow log

Go debug

enable flow log

hcloud ER EnableFlowLog

enable flow log

Go debug

disable flow log

hcloud ER DisableFlowLog

disable flow log

Go debug