gateway private-network routes set
Replace a PRIVATE-mode gateway's private-network routes.
Description
Replace (PUT, full replacement) the CIDR routes on a PRIVATE-mode gateway's
worker nodes (PUT /api/v1/gateways/{name}/private-network/routes). Pass
--route repeatedly, or --file with a {routes: [...]} JSON/YAML document.
--if-match is the optional ETag (from a prior get) for optimistic
concurrency; omit to force the replace.
Synopsis
grn agentbase gateway private-network routes set <name>
[--route <cidr> ...]
[--file <path>]
[--if-match <etag>]
Arguments
<name> (string) — gateway name. Required.
Options
--route (string, repeatable) — CIDR route (ignored with --file).
--file (string) — JSON/YAML {routes: [...]} spec (authoritative when set).
--if-match (string) — If-Match ETag for optimistic concurrency (optional).
Examples
Global options
All grn agentbase commands accept:
-o, --output json|table|id— output format (defaulttable)-i, --interactive— prompt for missing required parameters- The shared
grnglobal options:--profile,--region,--query,--endpoint-url,--debug