global-ip-list

This command corresponds to the function on the page of global IP list.

Usage: oredge global-ip-list 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 global-ip-list

This command can create a global-ip-list.

Usage: oredge global-ip-list create [OPTIONS]

OPTIONS:
    --name string                      name.
    --ip string                        ip, can add multiple times.

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

--name "ip-list name"

the name of the global-ip-list, this args is required.

--ip "xx.xx.xx.xx"

add the IP in the IP list. you can add multiple times.

Example

# oredge global-ip-list create --ip 10.1.1.1 --ip 10.2.2.2 --name test
ID: 1

List global-ip-list

This command can list global-ip-list.

Usage: oredge global-ip-list 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 global-ip-list list
ID    NAME        TYPE    IP ADDRESSES    CREATE TIME            MODIFY TIME
1     test        ipv4    10.1.1.1        2021-06-01 03:33:11    2021-06-01 03:33:11
2     default     ipv4    10.1.1.1        2021-06-01 03:33:11    2021-06-01 03:33:11
                          10.2.2.2

Show global-ip-list

Show the details about a global-ip-list record.

Usage: oredge ip-list 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.

--id "id"

Specify to which IP-list you want to show details.

You can specify it in two method

    oredge ip-list show 1

or

    oredge ip-list show --id 1

Example

# oredge ip-list show 1
ID          : 1
NAME        : test
TYPE        : ipv4
IP ADDRESSES: 10.1.1.1
CREATE TIME : 2021-06-01 03:42:27
MODIFY TIME : 2021-06-01 03:42:27

Modify global-ip-list

This command can modify a global-ip-list.

sage: oredge global-ip-list modify [id] [OPTIONS]

OPTIONS:
    --id integer                       id.
    --name string                      name.
    --ip string                        ip, can add multiple times.

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

--id "id"

Specify to which global-ip-list you want to modify.

You can specify it in two method

    oredge global-ip-list modify 1

or

    oredge global-ip-list modify --id 1

--name "global-ip-list name"

the name of the global-ip-list, this args is required.

--ip "xx.xx.xx.xx"

add the IP in the IP list. you can add multiple times.

Example

# oredge global-ip-list modify 1 --ip 10.3.3.3 --ip 10.4.4.4
OK

Delete global-ip-list

This command can delete a global-ip-list

Usage: oredge global-ip-list 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.

--id "global-ip-list id"

Specify to which IP-list you want to delete.

You can specify it in two method

    oredge global-ip-list delete 1-1

or

    oredge global-ip-list delete --id 1-1

Example

# oredge global-ip-list delete 21
OK