Skip to main content

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)

Source distribution for itop-cli 2.0.1
File Size Uploaded
itop_cli-2.0.1.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for itop-cli 2.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page