gcloud compute routers

NAME
gcloud compute routers - list, create, and delete Compute Engine routers
SYNOPSIS
gcloud compute routersGROUP |COMMAND[GCLOUD_WIDE_FLAG]
DESCRIPTION
List, create, and delete Cloud Routers.

For more information about Cloud Routers, see theCloudRouter documentation.

See also:RoutersAPI.

GCLOUD WIDE FLAGS
These flags are available to all commands:--help.

Run$gcloud help for details.

GROUPS
GROUP is one of the following:
nats
List, create, describe, and delete Cloud NAT.
COMMANDS
COMMAND is one of the following:
add-bgp-peer
Add a BGP peer to a Compute Engine router.
add-interface
Add an interface to a Compute Engine router.
add-route-policy
Add an empty route policy to a Compute Engine router.
add-route-policy-term
Adds a new term to an existing route policy of a Comute Engine router.
create
Create a Compute Engine router.
delete
Delete Compute Engine routers.
describe
Describe a Compute Engine router.
download-route-policy
Download a route policy from a Compute Engine router.
get-nat-ip-info
Display NAT IP information in a router.
get-nat-mapping-info
Display NAT Mapping information in a router.
get-route-policy
Get a route policy from a Compute Engine router.
get-status
Get status of a Compute Engine router.
list
List Google Compute Engine routers.
list-bgp-routes
List routes advertised and learned on individual BGP sessions, both pre- andpost-policy evaluation.
list-route-policies
List route policies from a Compute Engine router.
remove-bgp-peer
Remove a BGP peer from a Compute Engine router.
remove-interface
Remove an interface from a Compute Engine router.
remove-route-policy
Remove a route policy from a Compute Engine router.
remove-route-policy-term
Remove a route policy term of a Compute Engine router.
update
Update a Compute Engine router.
update-bgp-peer
Update a BGP peer on a Compute Engine router.
update-interface
Update an interface on a Compute Engine router.
update-route-policy-term
Updates a term of an existing route policy of a Comute Engine router.
upload-route-policy
Upload a route policy into a Compute Engine router.
NOTES
These variants are also available:
gcloudalphacomputerouters
gcloudbetacomputerouters

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.