This release is a pre-release and may not be stable for production use.
rbkcli
This project provides a Command Line Interface (CLI) conversion of Rubrik APIs. It can be used for both running commands or writing simplified scripts.
Installation
Install from PyPI:
$ pip install rbkcli
$ echo 'eval "$(register-python-argcomplete rbkcli)"' >> ~/.bashrc
Example
By default, the rbkcli will attempt to read the the Rubrik Cluster credentials from the following environment variables:
rubrik_cdm_node_iprubrik_cdm_usernamerubrik_cdm_password
So the commands to be run would be:
$ export rubrik_cdm_node_ip=<IP>
$ export rubrik_cdm_username=<username>
$ export rubrik_cdm_password=<password>
Once the above environment variables are exported with the authentication data, rbkcli will dynamically create the command line based on the available APIs in that cluster.
$ rbkcli cluster me
{
"acceptedEulaVersion": "0.0",
"apiVersion": "1",
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"latestEulaVersion": "1.1",
"name": "MyCluster",
"timezone": {
"timezone": ""
},
"version": "4.2.2-1699"
}
Documentation
Metadata
Release files for rbkcli 1.0.0b2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rbkcli-1.0.0b2.tar.gz | 52.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rbkcli-1.0.0b2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 115.4 kB
Release files / rbkcli-1.0.0b2.tar.gz
| Download URL | rbkcli-1.0.0b2.tar.gz |
|---|---|
| Size | 52.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db72a7314762be2428f75b09930f36d5ed6355be69a940d7845e59d2d0102706
|
|
BLAKE2b-256 checksum How to use checksums |
f344a5498b35b92685b904b04e405423646e2fc010e3fe85c0232ef0f1638301
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|
Release files / rbkcli-1.0.0b2-py3-none-any.whl
| Download URL | rbkcli-1.0.0b2-py3-none-any.whl |
|---|---|
| Size | 62.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b43db61aab7eebe45f85a1e4332f93b1177d75f9094db030553edc2d481d30c4
|
|
BLAKE2b-256 checksum How to use checksums |
97ada3b3fbff0d3d7fe626efed48c9b4a68d53901649e95e075d467af9406fef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|