port

Usage: oredge port ACTION [OPTIONS]

ACTION:
    create
    list
    modify
    delete
    help

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Create Port

Usage: oredge port create [OPTIONS]

OPTIONS:
    --partition integer                partition id.
    --port-start integer               port start.
    --port-end integer                 port end.
    --type string                      http, https, tcp, tls, httpdns, http_proxy, socks5_proxy.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Example

# oredge port create --partition 1 --port-start 8004 --port-end 8007 --type http
ID: 5

List Port

Usage: oredge port list [partition] [OPTIONS]

OPTIONS:
    --page integer                     page, 1(default).
    --page-size integer                page size, 20(default).
    --partition                        partition id.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Example

# oredge port list --partition 1
ID    PARTITION    TYPE          PORT START    PORT END    CREATE TIME            MODIFY TIME
1     1            http          80            80          1969-12-31 19:33:41    1969-12-31 19:33:41
4     1            http          7002          7002        1969-12-31 19:33:41    1969-12-31 19:33:41
5     1            http          8004          8007        1969-12-31 19:33:41    1969-12-31 19:33:41
3     1            http_proxy    7000          7000        1969-12-31 19:33:41    1969-12-31 19:33:41
2     1            https         443           443         1969-12-31 19:33:41    1969-12-31 19:33:41

Modify Port

Usage: oredge port modify [id] [OPTIONS]

OPTIONS:
    --id integer                       id.
    --port-start integer               port start.
    --port-end integer                 port end.
    --type string                      http, https, tcp, tls, httpdns, http_proxy, socks5_proxy.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Example

# oredge port modify 5 --port-start 8009 --port-end 8010 --type http
OK

Delete Port

Usage: oredge port delete [id] [OPTIONS]

OPTIONS:
    --id integer                       id.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

Example

# oredge port delete 21
OK