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.0.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.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: itop_cli-2.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 0c8c73fcb91173713af0c06630dec5702474439b62b40291bee566db06dadb0a
MD5 150708072dfcf4da5dad9a00258b3e68
BLAKE2b-256 a78c733c09285f92db8d9dfc460a7198ea01147afcc22e5fb119375f873535f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: itop_cli-2.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f77173440654f22105c3c533f5331428bce4f5937c961dc468561b61e6d821b5
MD5 8745aa71ca47f3e3c969989373d7991d
BLAKE2b-256 dcaa299f960a483c131e21afd667025a64b64dc36d47f5017583a1e0b96b54fd

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