No project description provided
Project description
# iTop CLI
Utility to interact with iTop
## Features
Usage:
itop.py delete <class> <query> (--env=<env>|--config=<config>)
itop.py export <class> [<query>] (--env=<env>|--config=<config>)
itop.py import <class> --input=<input_file> [--search_keys=<search_keys>] (--env=<env>|--config=<config>)
itop.py create <class> [FIELDS]... (--env=<env>|--config=<config>)
itop.py -h | --help | --version
Arguments:
FIELDS Key value pairs. Ex : "description=Ceci est une description". If not overridden, the script will use the org_id of the config file
Options:
--env=<env> Will search ~/.itop/<venv>.json as configuration file
--search_keys=<search_keys> Key(s) to search objects, comma separated [default: name]
Examples:
itop.py delete Person 'SELECT Person WHERE status="inactive"' --env=dev
itop.py export SynchroDataSource --env=dev
itop.py export Server "SELECT Server WHERE name LIKE 'SRVTEST'" --env=dev
itop.py import SynchroDataSource --input=/tmp/out.json --search_keys=database_table_name
itop.py create Server "name=SRVTEST" "description=Serveur de test" --env=dev
## Configuration file
{
"url": "http://myhost.example.com/itop_dev/webservices/rest.php",
"version": "1.3",
"user": "user",
"password": "password",
"org_name": "My org"
}
Utility to interact with iTop
## Features
Usage:
itop.py delete <class> <query> (--env=<env>|--config=<config>)
itop.py export <class> [<query>] (--env=<env>|--config=<config>)
itop.py import <class> --input=<input_file> [--search_keys=<search_keys>] (--env=<env>|--config=<config>)
itop.py create <class> [FIELDS]... (--env=<env>|--config=<config>)
itop.py -h | --help | --version
Arguments:
FIELDS Key value pairs. Ex : "description=Ceci est une description". If not overridden, the script will use the org_id of the config file
Options:
--env=<env> Will search ~/.itop/<venv>.json as configuration file
--search_keys=<search_keys> Key(s) to search objects, comma separated [default: name]
Examples:
itop.py delete Person 'SELECT Person WHERE status="inactive"' --env=dev
itop.py export SynchroDataSource --env=dev
itop.py export Server "SELECT Server WHERE name LIKE 'SRVTEST'" --env=dev
itop.py import SynchroDataSource --input=/tmp/out.json --search_keys=database_table_name
itop.py create Server "name=SRVTEST" "description=Serveur de test" --env=dev
## Configuration file
{
"url": "http://myhost.example.com/itop_dev/webservices/rest.php",
"version": "1.3",
"user": "user",
"password": "password",
"org_name": "My org"
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
itop_cli-1.3.3.tar.gz
(8.0 kB
view details)
File details
Details for the file itop_cli-1.3.3.tar.gz
.
File metadata
- Download URL: itop_cli-1.3.3.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d5d216885012635e38dd1c90a983f22bcce5f6be83bd3b909d1f67017ca691a |
|
MD5 | b3aa69f9d616c63971be3185166319d4 |
|
BLAKE2b-256 | e4f62a6f68acea1b8d1352f13209cc38b0e595b6fd35cbe0555a32f202b787e6 |