/rbkcli/script
Methods
get
'responses': { '200': { 'description': str('Returns a list of avail' 'able cmdlets profiles'), 'schema': { 'items': { 'ScriptsInfo': { 'properties': { 'module': { 'description': 'Name of the script, also referred to as Python importable module.', 'type': 'string' }, 'file': { 'description': 'Path to the existing script file.', 'type': 'string' }, 'class_name': { 'description': 'Name of the existing child class of RbkcliBlackOps, which will become a command.', 'type': 'string' }, 'endpoint': { 'description': 'The callable command referring to the class_name.', 'type': 'string' }, 'method': { 'description': 'Method to call the script.', 'type': 'string' } } } } } } }, `[ { "module": "<value>", "file": "<value>", "class_name": "<value>", "endpoint": "<value>", "method": "<value>" } ]
$ rbkcli script [ { "module": "my_script", "file": "/home/bmanesco/rbkcli/scripts/my_script.py", "class_name": "MyOperation", "endpoint": "/mssql/snap/stats", "method": "get" } ]
Last updated