Git Product home page Git Product logo

python-itop-api's Introduction

python-itop-api

Python API for iTop connecting to it through the REST interface

itop-cli

itop-cli is a CLI (command line interface) to iTop REST interface. You can use it to list the content of iTop instances of a particular class with the command

user@machine> itop-cli --classes server rack

You can also search some specific instance with option --find

user@machine> itop-cli --classes server --find host.domain.com

You can have a look of more option with command --help

user@machine> itop-cli --help

usage: itop-cli [-h] [--hostname HOSTNAME] [--username USERNAME]
                [--password PASSWORD] [--organization ORGANIZATION-NAME]
                [--virtualhost VIRTUAL-HOSTNAME] [--config CONFIG_FILE]
                [--classes [ITOP-CLASS [ITOP-CLASS ...]]]
                [--find INSTANCE [INSTANCE ...]] [--delete]
                [--set SET_FIELDS SET_FIELDS] [--import-uri URI]
                [--import-stdin] [--format FORMAT] [--save]
                [--prevent-duplicates]

python CLI for iTop REST api

optional arguments:
  -h, --help            show this help message and exit

itop:
  --hostname HOSTNAME   hostname of iTop server
  --username USERNAME   username for iTop authentication
  --password PASSWORD   password for iTop authentication
  --organization ORGANIZATION-NAME
                        iTop organization to use
  --virtualhost VIRTUAL-HOSTNAME
                        Itop's virtual host name for VMs

cli:
  --config CONFIG_FILE  configuration file CLI must use (default = ./itop-
                        cli.cfg)
  --classes [ITOP-CLASS [ITOP-CLASS ...]]
                        iTop classes to use
  --find INSTANCE [INSTANCE ...]
                        Find and display information about a given class
                        instance givenits name or ID
  --delete              Delete all instances previously loaded
  --set SET_FIELDS SET_FIELDS
  --save                Save the instances loaded through import
  --prevent-duplicates  Check if objects with the same name already exist
                        before savingand don't save in this case

import:
  --import-uri URI      URI of file to import
  --import-stdin        import data from STDIN
  --format FORMAT       Format of file you want import

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.