https://github.com/sysdiglabs/sdc-db-unshare
Unshare dashboards from Sysdig Monitor
https://github.com/sysdiglabs/sdc-db-unshare
Last synced: 2 months ago
JSON representation
Unshare dashboards from Sysdig Monitor
- Host: GitHub
- URL: https://github.com/sysdiglabs/sdc-db-unshare
- Owner: sysdiglabs
- License: apache-2.0
- Created: 2019-12-02T12:24:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-02T15:09:45.000Z (over 5 years ago)
- Last Synced: 2023-03-06T13:18:26.543Z (about 2 years ago)
- Language: Go
- Homepage:
- Size: 4.87 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DB Unshare
DB Unshare is a project created to unshare dashboards in the Sysdig Monitor front-end.
You must be and administrator to modify other people's dashboards.⚠️ Warning! This tool will become deprecated and this repository removed once the official [CLI](https://github.com/draios/sysdig-platform-cli) is able to unshare dashboards.
## Installation
Use Go to install it with:
```
go get -v -u github.com/sysdiglabs/sdc-db-unshare
```## Usage
For every request you need to provide your Sysdig API Token using the `-t` or `--token` option.
For the following examples, we will use the fictional token `ZZZZZZZZ-XXXX-YYYY-XXXX-AAAABBBBCCCC`.If you need more help, check the help menu:
```
$ sdc-db-unshare -h
List and unshare dashboards from Sysdig MonitorUsage:
sdc-db-unshare [command]Available Commands:
dashboard Manage dashboards
help Help about any commandFlags:
-h, --help help for sdc-db-unshare
-t, --token string API Token for Sysdig Platform communicationUse "sdc-db-unshare [command] --help" for more information about a command.
```### List all dashboards
```
$ sdc-db-unshare -t ZZZZZZZZ-XXXX-YYYY-XXXX-AAAABBBBCCCC dashboard list
ID DASHBOARD USER
43256 Cisco examples [email protected]
43697 Kubernetes Namespace State 2 [email protected]
55355 Kubernetes Namespace Health [email protected]
56714 Executive Dashboard for RBC [email protected]
52261 Kubernetes Cluster and Node Capacity v2 [email protected]
52262 Istio Overview [email protected]
```### Get a dashboard info
```
$ sdc-db-unshare -t ZZZZZZZZ-XXXX-YYYY-XXXX-AAAABBBBCCCC dashboard get 52262
ID NAME AUTHOR PUBLIC SHARED AUTOCREATED VERSION
52262 Istio Overview [email protected] false true false 1
```### Unshare a dashboard
```
$ sdc-db-unshare -t ZZZZZZZZ-XXXX-YYYY-XXXX-AAAABBBBCCCC dashboard unshare 52262
```The dashboard should now be unshared and the version should be increased by 1.
```
$ sdc-db-unshare -t ZZZZZZZZ-XXXX-YYYY-XXXX-AAAABBBBCCCC dashboard get 52262
ID NAME AUTHOR PUBLIC SHARED AUTOCREATED VERSION
52262 Istio Overview [email protected] false false false 2
```## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.## License
[Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/)