Skip to content
Snippets Groups Projects
Commit f675cd9c authored by Fabian Seidl's avatar Fabian Seidl Committed by Andre Sterba
Browse files

Update CLI readme with info about rbac changes

parent fa3fa190
No related branches found
No related tags found
2 merge requests!381updated cli readme with info about rbac changes,!333WIP: Develop
Pipeline #116724 passed
This commit is part of merge request !333. Comments created here will be created in the context of that merge request.
...@@ -6,6 +6,8 @@ The goSDN CLI allows for management of the goSDN controller, and through it dire ...@@ -6,6 +6,8 @@ The goSDN CLI allows for management of the goSDN controller, and through it dire
## Command tree overview: ## Command tree overview:
+ `gosdnc` + `gosdnc`
+ `login`
+ `logout`
+ `change` + `change`
+ `commit` + `commit`
+ `confirm` + `confirm`
...@@ -18,7 +20,6 @@ The goSDN CLI allows for management of the goSDN controller, and through it dire ...@@ -18,7 +20,6 @@ The goSDN CLI allows for management of the goSDN controller, and through it dire
+ `remove (alias rm)` + `remove (alias rm)`
+ `set` + `set`
+ `show` + `show`
+ `init`
+ `list (alias ls)` + `list (alias ls)`
+ `pnd` + `pnd`
+ `create` + `create`
...@@ -26,19 +27,24 @@ The goSDN CLI allows for management of the goSDN controller, and through it dire ...@@ -26,19 +27,24 @@ The goSDN CLI allows for management of the goSDN controller, and through it dire
+ `list (alias ls)` + `list (alias ls)`
+ `remove (alias rm)` + `remove (alias rm)`
+ `use` + `use`
+ `userCreate`
+ `userDelete`
+ `userGet`
+ `userGetAll`
+ `userUpdate`
*** ***
## Usage ## Usage
To use the CLI, the `init` command must be called once,
with the `--controller` parameter specifying the target goSDN controller. To use the CLI, the `login` command must be called, with the `--controller` parameter specifying the target goSDN controller (\<IP:Port\>) and providing correct credentials.
This value is persisted for all following commands and can be changed by calling `init` again. The set controller address and recieved access token will be persisted for all following commands and can be changed by calling `login` again. If the `--controller` parameter is not specified, the default set in gosdnc.toml (`gosdn-develop.apps.ocp.fbi.h-da.de:55055`) will be used.
If the parameter is not specified, the default `gosdn-develop.apps.ocp.fbi.h-da.de:55055` will be used.
Command help is available via the --help flag for each command, or via the `gosdnc help` command. Command help is available via the --help flag for each command, or via the `gosdnc help` command.
### Examples ### Examples
To initialize the CLI for a locally running goSDN controller: To initialize the CLI for a locally running goSDN controller:
`gosdnc init --controller 127.0.0.1:55055` `gosdnc login --controller 127.0.0.1:55055 --u name --p password`
#### Device #### Device
...@@ -75,4 +81,21 @@ To get the UUID information: ...@@ -75,4 +81,21 @@ To get the UUID information:
`gosdnc list` `gosdnc list`
To switch to the created PND: To switch to the created PND:
`gosdnc pnd use *appropriate UUID here*` `gosdnc pnd use *appropriate UUID here*`
\ No newline at end of file
#### User
To create an additional user:
`gosdnc userCreate --u name --p password --r role`
To delete an existing user:
`gosdnc userDelete --u name`
To fetch information about a user:
`gosdnc userGet --u name`
To fetch all available users:
`gosdnc userGetAll`
To update an existing user:
`gosdnc userUpdate --i <UUID of user> --u name --p password --r role`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment