create-route

Syntax

tadm create-route common_options --origin-server-pool=pool_name --config=config_name --vs=vs_name [--condition=expr] route_name

Description

Use this command to create a route. Based on the condition specified while creating a route, the load balancing requests are routed to the specified origin-server pool. A default route is created when a virtual-server is created.

Options

For information about common_options, run the help command.

--origin-server-pool|-o

Specify the name of the origin-server pool to which the load balancing requests must be routed.

--config|-c

Specify the name of the configuration for which you want to create route rule.

--vs|-s

Specify the name of the virtual server.

--condition|-C

Specify the condition for the route rule.

Operands

route-name

Specify the route name.

Example

tadm create-route --user=admin --host=admin.example.com --password-file=./admin.passwd --port=8989 --no-prompt --config=www.example.org --vs=soa.example.org route-1

Exit Codes

The following exit values are returned:

0: command executed successfully

>0: error in executing the command

For more information about exit codes and syntax notations, run the help command.

See Also

help, delete-route, list-routes, get-route-prop, set-route-prop