Actions47
- Image Actions
- Server Type Actions
- Server Actions
- Server Action Actions
- Primary IP Actions
- Floating IP Actions
- Firewall Actions
- Certificate Actions
- Load Balancer Actions
- Network Actions
- SSH Keys Actions
- Volume Actions
Network → Update
AI-generatedSummary
Update an existing Hetzner Cloud network by specifying its ID and optionally modifying its labels and the exposure of routes to the network's vSwitch.
Inputs
- Id (required) — The numeric ID of the network to update.
- Labels — An optional collection of key-value pairs to add or update as labels for the network.
- Expose Routes to Vswitch — An optional boolean flag to toggle whether routes are exposed to the network's vSwitch.
Output shape
a single network object containing updated network details
The operation returns the updated network resource as a single record. No pagination applies.
Examples
Example 1: Update network with ID 1234 to have a label 'environment' set to 'production' and expose routes to vSwitch.
Set Id to 1234, add Labels with key 'environment' and value 'production', and set Expose Routes to Vswitch to true.