sdc-db-unshare

command module
v0.0.0-...-f2513e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

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 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 Monitor

Usage:
  sdc-db-unshare [command]

Available Commands:
  dashboard   Manage dashboards
  help        Help about any command

Flags:
  -h, --help           help for sdc-db-unshare
  -t, --token string   API Token for Sysdig Platform communication

Use "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                                 user1@mail.com    
43697 Kubernetes Namespace State 2                   user2@mail.com    
55355 Kubernetes Namespace Health                    user2@mail.com    
56714 Executive Dashboard for RBC                    user2@mail.com    
52261 Kubernetes Cluster and Node Capacity v2        user3@mail.com  
52262 Istio Overview                                 user3@mail.com  
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 user3@mail.com 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 user3@mail.com 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

Documentation

Overview

Copyright © 2019 Sysdig

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL