Python web services client examples
-
- UpdatedAug 1, 2024
- 4 minutes to read
- Xanadu
- API implementation
Examples demonstrating an integration with a Python web services client.
Requirements
The following examples require the installation of the following Python modules:
insert
This is an example of inserting an
incident.
getKeys
This is an example of executing getKeys on the demo instance using basic
authentication.
getRecords
In this example, we get an incident, querying for category == "Network" (with basic
authentication).
get
In this example, we get an incident record by
sys_id
(with basic
authentication).Advanced
This is an example of advanced Python script that reads a log file for a keyword
invalid spi and creates an ECC Queue record where the payload is set to an
alert of XML
format.