http-proxy-auth
Usage: oredge http-proxy-auth ACTION [OPTIONS]
ACTION:
create
list
show
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 HTTP Proxy Authentication
Usage: oredge http-proxy-auth create [http-proxy] [OPTIONS]
OPTIONS:
--http-proxy http proxy id.
--account string account.
--keyword string keyword.
--label string label.
--enable bool true or false.
--name string name
--set-end-time bool true or false.
--end-time datetime "YYYY-mm-dd HH:MM:SS".
--set-start-time true or false.
--start-time datetime "YYYY-mm-dd HH:MM:SS".
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
create HTTP proxy authentication.
# oredge http-proxy-auth create 1 --name test --account test ID: 1-16
create HTTP proxy authentication with –start-time and –end-time
# oredge http-proxy-auth create 1 --name test --account test --start-time "2019-01-02 11:23:11" --end-time "2025-01-02 11:23:11" ID: 1-17
List HTTP Proxy Authentication
Usage: oredge http-proxy-auth list [http-proxy] [OPTIONS]
OPTIONS:
--page integer page, 1(default).
--page-size integer page size, 20(default).
--http-proxy integer http proxy 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-auth list --http-proxy 1
ID NAME ENABLE ACCOUNT KEYWORD LABEL CREATE TIME MODIFY TIME
1-17 test true test 2021-05-25 22:56:28 2021-05-25 22:56:28
1-16 test true test 2021-05-25 22:55:11 2021-05-25 22:55:11
1-9 test true test 2021-05-25 06:38:32 2021-05-25 06:38:32
1-8 test true test 2021-05-25 06:38:29 2021-05-25 06:38:29
1-6 test true test 1234 test 2021-05-25 06:36:30 2021-05-25 06:36:30
1-1 default true aaa 1234 test 2021-05-25 05:31:01 2021-05-25 05:31:01
Show HTTP Proxy Authentication
Usage: oredge http-proxy-auth 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-auth show 1-1
ID : 1-1
NAME : default
ENABLE : true
ACCOUNT : aaa
KEYWORD : 1234
LABEL : test
CREATE TIME: 2021-05-25 05:31:01
MODIFY TIME: 2021-05-25 05:31:01
Modify HTTP Proxy Authentication
Usage: oredge http-proxy modify [id] [OPTIONS]
OPTIONS:
--id id.
--account string account.
--keyword string keyword.
--label string label.
--enable bool true or false.
--name string name
--set-end-time bool true or false.
--end-time datetime "YYYY-mm-dd HH:MM:SS".
--set-start-time true or false.
--start-time datetime "YYYY-mm-dd HH:MM:SS".
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
modify HTTP proxy authentication.
# oredge http-proxy-auth modify 1-1 --name test OK
modify HTTP proxy authentication with time.
# oredge http-proxy-auth modify 1-1 --name test --set-start-time true --start-time "2019-03-17 05:04:03" OK
Delete HTTP Proxy Authentication
Usage: oredge http-proxy-auth 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-auth delete 1-1
OK