ByCloud Docs
GuidesCLIAPISDK

Add router interface

bycloud networking routers-add-interface --router_id <router_id> [flags]

Add an interface (subnet or port) to a router

Options

--router_id

stringrequired

Router ID

--output

(-o)

stringoptional

Output format: text, json, or yaml

Values: "text", "json", "yaml"

Default: "text"

Body Options

--port_id

stringoptional

Port to connect (mutually exclusive with subnet_id)

--subnet_id

stringoptional

Subnet to connect (mutually exclusive with port_id)

Command

bycloud networking routers-add-interface \
--router_id "abc-123"

Output

ID 550e8400-e29b-41d4-a716-446655440000
SUBNET_ID 550e8400-e29b-41d4-a716-446655440000
PORT_ID 550e8400-e29b-41d4-a716-446655440000
NETWORK_ID 550e8400-e29b-41d4-a716-446655440000