http-proxy

Usage: oredge http-proxy ACTION [OPTIONS]

ACTION:
    create
    list
    show
    modify
    delete

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

Create HTTP-proxy application

Usage: oredge http-proxy create [OPTIONS]

OPTIONS:
    --label string                     lable.
    --partition integer                partition, can add multiple times.
    --port integer                     port, can add multiple times.
    --type string                      http, https, http_https.
    --auth-enable bool                 true or false.
    --auth-type string                 user or basic.

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

Example

# oredge http-proxy create --partition 1 --port 7002
ID: 1

List HTTP-proxy applications list

Usage: oredge http-proxy list [OPTIONS]

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

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

Example

# oredge http-proxy list
ID    TYPE          PORTS    PARTITIONS    AUTH TYPE    CREATE TIME            MODIFY TIME
1     http_https    7002     1             user         2021-05-21 03:01:14    2021-05-21 03:01:14

Get HTTP-proxy application’s detail

Usage: oredge http-proxy show [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 http-proxy show 1
ID         : 1
CREATOR    : 1
TYPE       : http_https
PORTS      : 7002
PARTITIONS : 1
AUTH TYPE  : user
CREATE TIME: 2021-05-21 03:01:14
MODIFY TIME: 2021-05-21 03:01:14

Modify HTTP-proxy application

Usage: oredge http-proxy modify [id] [OPTIONS]

OPTIONS:
    --id integer                       id.
    --port integer                     port, can add multiple times.
    --partition integer                partition, can add multiple times.
    --read-timeout integer             read timeout.
    --write-timeout integer            write timeout.
    --timeout-count integer            timeout count.
    --label string                     label.
    --auth-enable bool                 auth enable, ture or false.
    --auth-type bool                   auth type, user or basic.
    --type string                      http or https or http_https.


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

Example

# oredge http-proxy modify 1 --label "for test"
OK

Delete HTTP-proxy application

Usage: oredge http-proxy 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 http-proxy delete 21
OK