Skip to main content

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"
}

Project details


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-2.0.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

itop_cli-2.0.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file itop_cli-2.0.1.tar.gz.

File metadata

  • Download URL: itop_cli-2.0.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.8 Darwin/23.6.0

File hashes

Hashes for itop_cli-2.0.1.tar.gz
Algorithm Hash digest
SHA256 1f7957517500c84c68d0beea3a1fd43a91dee65b121903380584b7bb2cd03a9c
MD5 13abe152c2b2e1ff82ef6730a7f42eaa
BLAKE2b-256 e9d8d6b138a991c9cf2711e60172915076a61911f488bd39a2bb9c979b88ff67

See more details on using hashes here.

File details

Details for the file itop_cli-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: itop_cli-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.8 Darwin/23.6.0

File hashes

Hashes for itop_cli-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4fa1eafe7e0712b00086d74e548beb4888c3c0c9e957fd37204acd565d6c10c8
MD5 9bef48d9630bc211c89298d5a9674d1f
BLAKE2b-256 7d0566d810c6618c9e4bff1ca127736754e29ea043ff715bc7c9745629dc2b66

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page