iTop Library for Python
iTop CMDB/Service Management Rest API library for Python
Todo
- base (init.yml)
- models.py
Usage
Authentication
Authentication can be performed two ways:
Form
This method works only when iTop doesn't have the form login disabled (e.g. direct auth when using the itop-saml extension).
Basic
This method can be used if you have the SAML plugin and want users to be automatically forwarded to the IDP when loading the page, but still want to be able to use the API. Make sure that basic is the first authentication method in the list in the configuration file, e.g.
'allowed_login_types' => 'basic|saml|external',
Examples
from iToppy import iTop, iTopAuth
# Form Authentication (default)
connection = iTop(
url='https://itop.example.com/webservices/rest.php',
username='username',
password='password',
version='1.3',
auth=iTopAuth.FORM
)
# Basic Authentication
connection = iTop(
url='https://itop.example.com/webservices/rest.php',
username='username',
password='password',
version='1.3',
auth=iTopAuth.BASIC
)
Querying
Get objects
# Get all objects of class UserRequest
user_requests = connection.get('UserRequest')
# Full Get syntax
connection.get(
# The class of object/objects to receive
itop_class="UserRequest",
# A string representing the key, OQL query in string form or iTopOQLQuery object
key="1",
# The fields to retrieve
fields=["title", "description"]
# Limit the number of results per page
,limit=10,
# The page to retrieve
page=1
)
Metadata
Release files for iToppy 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| iToppy-0.1.1.tar.gz | 17.9 kB | Without provenance | Details for iToppy-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iToppy-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for iToppy-0.1.1-py3-none-any.whl |
Total release size: 36.1 kB
Release files / iToppy-0.1.1.tar.gz
| Download URL | iToppy-0.1.1.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d4185a56ea426d1ff625e668cc69446642eb59d0ab175053d27d76f17a29d2c
|
|
BLAKE2b-256 checksum How to use checksums |
a8e4001b02e691bef0f73f6fca91f48c755601efa898bb543218d83c7ffb5e32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / iToppy-0.1.1-py3-none-any.whl
| Download URL | iToppy-0.1.1-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d076e80bb2f77eb662c5ff971fe45f218d7b22f97b530470864465b975a0efa
|
|
BLAKE2b-256 checksum How to use checksums |
cea5d2969719c54d68778ede1a4c4e27874e6fad9f4ed74c3c2be6cadb684e59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for iToppy 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.