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"
}
Release files for itop-cli 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| itop_cli-2.0.1.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| itop_cli-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.5 kB
Release files / itop_cli-2.0.1.tar.gz
| Download URL | itop_cli-2.0.1.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f7957517500c84c68d0beea3a1fd43a91dee65b121903380584b7bb2cd03a9c
|
|
BLAKE2b-256 checksum How to use checksums |
e9d8d6b138a991c9cf2711e60172915076a61911f488bd39a2bb9c979b88ff67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.8 Darwin/23.6.0
|
Release files / itop_cli-2.0.1-py3-none-any.whl
| Download URL | itop_cli-2.0.1-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4fa1eafe7e0712b00086d74e548beb4888c3c0c9e957fd37204acd565d6c10c8
|
|
BLAKE2b-256 checksum How to use checksums |
7d0566d810c6618c9e4bff1ca127736754e29ea043ff715bc7c9745629dc2b66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.8 Darwin/23.6.0
|