Static Route

rio static-route

Named routes for the deployments with exposed endpoints

rio static-route [OPTIONS] COMMAND [ARGS]...

create

Create a new static route

Please note that the name you provide while creating the static route will be suffixed with the organization’s short guid in the backend. Please run the list command to view the name of the static route and inspect it later.

rio static-route create [OPTIONS] NAME

Arguments

NAME

Required argument

delete

Delete one or more static routes with a name or a regex pattern.

You can specify a static route name or a regex pattern to delete one or more deployment.

If you want to delete all the static routes, then simply use the --all flag.

If you want to delete static routes without confirmation, then use the --force or --silent or -f

Usage Examples:

Delete a static route by name

$ rio static-route delete STATIC_ROUTE_NAME

Delete a static route without confirmation

$ rio deployment delete STATIC_ROUTE_NAME –force

Delete all static routes in the project

$ rio static-route delete –all

Delete static routes using regex pattern

$ rio static-route delete “STATIC_ROUTE.*”

rio static-route delete [OPTIONS] [ROUTE_NAME_OR_REGEX]

Options

-f, --force, --silent

Skip confirmation

-a, --all

Deletes all static routes in the project

-w, --workers <workers>

Number of parallel workers while running delete static route command. Defaults to 10.

Arguments

ROUTE_NAME_OR_REGEX

Optional argument

inspect

Print the details of a static route.

You can choose the format of the output using the --format flag. The supported formats are json and yaml. Default is yaml.

rio static-route inspect [OPTIONS] STATIC_ROUTE

Options

-f, --format <format_type>
Options:

json | yaml

Arguments

STATIC_ROUTE

Required argument

list

List the static routes in the current project.

You can filter the list by providing labels using the --label or -l flag.

Usage Examples:

List static routes with label ‘app=web’

$ rio static-route list –label app=web

rio static-route list [OPTIONS]

Options

-l, --label <labels>

Filter the deployment list by labels

open

Open a static route in the default browser.

rio static-route open [OPTIONS] STATIC_ROUTE

Arguments

STATIC_ROUTE

Required argument