static-route

delete

Deletes the static route with the given ID.

maas $PROFILE static-route delete [--help] [-d] [-k] id

Positional arguments

Argument

Effect

id

The ID of the resource (e.g., 1, abc123)

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

read

Gets a static route with the given ID.

maas $PROFILE static-route read [--help] [-d] [-k] id

Positional arguments

Argument

Effect

id

The ID of the resource (e.g., 1, abc123)

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

update

Updates a static route with the given ID.

maas $PROFILE static-route update [--help] [-d] [-k] id [data ...]

Positional arguments

Argument

Effect

id

The ID of the resource (e.g., 1, abc123)

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

Keywords

Keyword “source”

Optional String. Source subnet name for the route.

Keyword “destination”

Optional String. Destination subnet name for the route.

Keyword “gateway_ip”

Optional String. IP address of the gateway on the source subnet.

Keyword “metric”

Optional Int. Weight of the route on a deployed machine.

Note: This command accepts JSON.

static-routes create

Creates a static route.

maas $PROFILE static-routes create [--help] [-d] [-k] [data ...]

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.

Keywords

Keyword “source”

Optional String. Source subnet name for the route.

Keyword “destination”

Optional String. Destination subnet name for the route.

Keyword “gateway_ip”

Optional String. IP address of the gateway on the source subnet.

Keyword “metric”

Optional Int. Weight of the route on a deployed machine.

Note: This command accepts JSON.

static-routes read

Lists all static routes.

maas $PROFILE static-routes read [--help] [-d] [-k]

Command-line options

Option

Effect

–help, -h

Show this help message and exit.

-d, –debug

Display more information about API responses.

-k, –insecure

Disable SSL certificate check.