mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-16 12:22:03 +00:00
gcloud: Wed Mar 5 10:41:25 UTC 2025
This commit is contained in:
parent
a597993b2e
commit
6dc93282df
279 changed files with 4198 additions and 801 deletions
|
|
@ -10,6 +10,14 @@ DESCRIPTION
|
|||
(BETA) gcloud beta compute routers add-route-policy adds an empty route
|
||||
policy to a Compute Engine router.
|
||||
|
||||
EXAMPLES
|
||||
To add an import route policy my-policy to a router my-router in region
|
||||
us-central1, run:
|
||||
|
||||
$ gcloud beta compute routers add-route-policy my-router \
|
||||
--region=us-central1 --policy-name=my-policy \
|
||||
--policy-type=IMPORT
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NAME
|
||||
Name of the router to update.
|
||||
|
|
@ -56,8 +64,10 @@ GCLOUD WIDE FLAGS
|
|||
Run $ gcloud help for details.
|
||||
|
||||
NOTES
|
||||
This command is currently in beta and might change without notice. This
|
||||
variant is also available:
|
||||
This command is currently in beta and might change without notice. These
|
||||
variants are also available:
|
||||
|
||||
$ gcloud compute routers add-route-policy
|
||||
|
||||
$ gcloud alpha compute routers add-route-policy
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,15 @@ DESCRIPTION
|
|||
(BETA) gcloud beta compute routers add-route-policy-term adds a term to a
|
||||
route policy.
|
||||
|
||||
EXAMPLES
|
||||
To add a term with priority 0 with match destination == '192.168.0.0/16'
|
||||
and actions drop() to a route policy my-policy of a router my-router in
|
||||
region us-central1, run:
|
||||
|
||||
$ gcloud beta compute routers add-route-policy-term my-router \
|
||||
--region=us-central1 --policy-name=my-policy --priority=0 \
|
||||
--match="destination == '192.168.0.0/16'" --actions="drop()"
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NAME
|
||||
Name of the router to update.
|
||||
|
|
@ -59,8 +68,10 @@ GCLOUD WIDE FLAGS
|
|||
Run $ gcloud help for details.
|
||||
|
||||
NOTES
|
||||
This command is currently in beta and might change without notice. This
|
||||
variant is also available:
|
||||
This command is currently in beta and might change without notice. These
|
||||
variants are also available:
|
||||
|
||||
$ gcloud compute routers add-route-policy-term
|
||||
|
||||
$ gcloud alpha compute routers add-route-policy-term
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,14 @@ DESCRIPTION
|
|||
(BETA) gcloud beta compute routers download-route-policy downloads a route
|
||||
policy from a Compute Engine router.
|
||||
|
||||
EXAMPLES
|
||||
To download a route policy my-export-policy to a file my-export-policy.yaml
|
||||
from a router my-router in region us-central1, run:
|
||||
|
||||
$ gcloud beta compute routers download-route-policy my-router \
|
||||
--region=us-central1 --policy-name=my-export-policy \
|
||||
--file-name=my-export-policy.yaml"
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NAME
|
||||
Name of the router to export.
|
||||
|
|
@ -56,8 +64,10 @@ GCLOUD WIDE FLAGS
|
|||
Run $ gcloud help for details.
|
||||
|
||||
NOTES
|
||||
This command is currently in beta and might change without notice. This
|
||||
variant is also available:
|
||||
This command is currently in beta and might change without notice. These
|
||||
variants are also available:
|
||||
|
||||
$ gcloud compute routers download-route-policy
|
||||
|
||||
$ gcloud alpha compute routers download-route-policy
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,13 @@ DESCRIPTION
|
|||
(BETA) gcloud beta compute routers get-route-policy gets a route policy
|
||||
from a Compute Engine router.
|
||||
|
||||
EXAMPLES
|
||||
To get a route policy my-policy from a router my-router in region
|
||||
us-central1, run:
|
||||
|
||||
$ gcloud beta compute routers get-route-policy my-router \
|
||||
--region=us-central1 --policy-name=my-policy
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NAME
|
||||
Name of the router to get.
|
||||
|
|
@ -48,8 +55,10 @@ GCLOUD WIDE FLAGS
|
|||
Run $ gcloud help for details.
|
||||
|
||||
NOTES
|
||||
This command is currently in beta and might change without notice. This
|
||||
variant is also available:
|
||||
This command is currently in beta and might change without notice. These
|
||||
variants are also available:
|
||||
|
||||
$ gcloud compute routers get-route-policy
|
||||
|
||||
$ gcloud alpha compute routers get-route-policy
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,14 @@ DESCRIPTION
|
|||
and learned on individual BGP sessions, both pre- and post-policy
|
||||
evaluation.
|
||||
|
||||
EXAMPLES
|
||||
To list inbound BGP routes limited to IPv4 addess family from a router
|
||||
my-router BGP peer my-bgp-peer in region us-central1, run:
|
||||
|
||||
$ gcloud beta compute routers list-bgp-routes my-router \
|
||||
--region=us-central1 --address-family=IPV4 --peer=my-bgp-peer \
|
||||
--route-direction=INBOUND"
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NAME
|
||||
Name of the router to list.
|
||||
|
|
@ -111,8 +119,10 @@ GCLOUD WIDE FLAGS
|
|||
Run $ gcloud help for details.
|
||||
|
||||
NOTES
|
||||
This command is currently in beta and might change without notice. This
|
||||
variant is also available:
|
||||
This command is currently in beta and might change without notice. These
|
||||
variants are also available:
|
||||
|
||||
$ gcloud compute routers list-bgp-routes
|
||||
|
||||
$ gcloud alpha compute routers list-bgp-routes
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,12 @@ DESCRIPTION
|
|||
(BETA) gcloud beta compute routers list-route-policies lists all route
|
||||
policies from a Compute Engine router.
|
||||
|
||||
EXAMPLES
|
||||
To list route policies from a router my-router in region us-central1, run:
|
||||
|
||||
$ gcloud beta compute routers list-route-policies my-router \
|
||||
--region=us-central1
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NAME
|
||||
Name of the router to list.
|
||||
|
|
@ -77,8 +83,10 @@ GCLOUD WIDE FLAGS
|
|||
Run $ gcloud help for details.
|
||||
|
||||
NOTES
|
||||
This command is currently in beta and might change without notice. This
|
||||
variant is also available:
|
||||
This command is currently in beta and might change without notice. These
|
||||
variants are also available:
|
||||
|
||||
$ gcloud compute routers list-route-policies
|
||||
|
||||
$ gcloud alpha compute routers list-route-policies
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,13 @@ DESCRIPTION
|
|||
(BETA) gcloud beta compute routers remove-route-policy removes a route
|
||||
policy from a Compute Engine router.
|
||||
|
||||
EXAMPLES
|
||||
To remove a route policy my-policy from a router my-router in region
|
||||
us-central1, run:
|
||||
|
||||
$ gcloud beta compute routers remove-route-policy my-router \
|
||||
--region=us-central1 --policy-name=my-policy
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NAME
|
||||
Name of the router to delete.
|
||||
|
|
@ -48,8 +55,10 @@ GCLOUD WIDE FLAGS
|
|||
Run $ gcloud help for details.
|
||||
|
||||
NOTES
|
||||
This command is currently in beta and might change without notice. This
|
||||
variant is also available:
|
||||
This command is currently in beta and might change without notice. These
|
||||
variants are also available:
|
||||
|
||||
$ gcloud compute routers remove-route-policy
|
||||
|
||||
$ gcloud alpha compute routers remove-route-policy
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,13 @@ DESCRIPTION
|
|||
(BETA) gcloud beta compute routers remove-route-policy-term removes a term
|
||||
of a route policy.
|
||||
|
||||
EXAMPLES
|
||||
To remove a route policy term with priority 0 from a route policy my-policy
|
||||
from a router my-router in region us-central1, run:
|
||||
|
||||
$ gcloud beta compute routers remove-route-policy-term my-router \
|
||||
--region=us-central1 --policy-name=my-policy --priority=0
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NAME
|
||||
Name of the router to remove a route policy term from.
|
||||
|
|
@ -53,8 +60,10 @@ GCLOUD WIDE FLAGS
|
|||
Run $ gcloud help for details.
|
||||
|
||||
NOTES
|
||||
This command is currently in beta and might change without notice. This
|
||||
variant is also available:
|
||||
This command is currently in beta and might change without notice. These
|
||||
variants are also available:
|
||||
|
||||
$ gcloud compute routers remove-route-policy-term
|
||||
|
||||
$ gcloud alpha compute routers remove-route-policy-term
|
||||
|
||||
|
|
|
|||
|
|
@ -8,16 +8,14 @@ SYNOPSIS
|
|||
--priority=PRIORITY [--region=REGION] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(BETA) Updates a term of an existing route policy of a Comute Engine
|
||||
router.
|
||||
|
||||
gcloud beta compute routers update-route-policy-term updates a term of a
|
||||
route policy.
|
||||
|
||||
For an example, refer to the EXAMPLES section below.
|
||||
(BETA) gcloud beta compute routers update-route-policy-term updates a term
|
||||
of a route policy.
|
||||
|
||||
EXAMPLES
|
||||
To update a term of a route policy, run:
|
||||
To update a term with priority 128 with match destination ==
|
||||
'192.168.0.0/24' and actions med.set(12345);asPath.prependSequence([1, 2])
|
||||
of a route policy example-policy-name of a router example-router in region
|
||||
router-region, run:
|
||||
|
||||
$ gcloud beta compute routers update-route-policy-term \
|
||||
example-router --region=router-region \
|
||||
|
|
@ -73,8 +71,10 @@ GCLOUD WIDE FLAGS
|
|||
Run $ gcloud help for details.
|
||||
|
||||
NOTES
|
||||
This command is currently in beta and might change without notice. This
|
||||
variant is also available:
|
||||
This command is currently in beta and might change without notice. These
|
||||
variants are also available:
|
||||
|
||||
$ gcloud compute routers update-route-policy-term
|
||||
|
||||
$ gcloud alpha compute routers update-route-policy-term
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,14 @@ DESCRIPTION
|
|||
(BETA) gcloud beta compute routers upload-route-policy uploads a route
|
||||
policy into a Compute Engine router.
|
||||
|
||||
EXAMPLES
|
||||
To upload a route policy my-import-policy from a file my-import-policy.yaml
|
||||
into a router my-router in region us-central1, run:
|
||||
|
||||
$ gcloud beta compute routers upload-route-policy my-router \
|
||||
--region=us-central1 --policy-name=my-import-policy \
|
||||
--file-name=my-import-policy.yaml"
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
NAME
|
||||
Name of the router to upload.
|
||||
|
|
@ -56,8 +64,10 @@ GCLOUD WIDE FLAGS
|
|||
Run $ gcloud help for details.
|
||||
|
||||
NOTES
|
||||
This command is currently in beta and might change without notice. This
|
||||
variant is also available:
|
||||
This command is currently in beta and might change without notice. These
|
||||
variants are also available:
|
||||
|
||||
$ gcloud compute routers upload-route-policy
|
||||
|
||||
$ gcloud alpha compute routers upload-route-policy
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue