I am expanding the ITOP integration with opennms.
I want to know the API calls and specification of classes and how to add/use fields in json.
can anyone please help me with some examples api calls for Change,incident,workorder,ci etc?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am not able o see Datamodel under configuration.
My goal here is to have an API payload to create Incident with contact list, Workorder list(to be created as we do in GUI).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A HTTP 500 error is an internal error on your webserver.
Check the error log of your webserver (e.g. Apache) and perhaps also check the "error.log" file found in the iTop directory under the "logs" subdirectory.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am expanding the ITOP integration with opennms.
I want to know the API calls and specification of classes and how to add/use fields in json.
can anyone please help me with some examples api calls for Change,incident,workorder,ci etc?
iTop API specifications: https://www.itophub.io/wiki/page?id=latest:advancedtopics:rest_json
For the fields etc; check the datamodel.
Cna you put some light on where and how can i find classes and keys?
See comment - one way is in the iTop console > Configuration > Datamodel.
I am not able o see Datamodel under configuration.
My goal here is to have an API payload to create Incident with contact list, Workorder list(to be created as we do in GUI).
using below JSON to create change . but getting 500 error.
{
"operation": "core/create",
"class": "Change",
"comment": "Creating a new Change with Work Orders, and Contact List",
"fields": {
"org_id": "SELECT Organization WHERE name = \"Demo\"",
"caller_id": {
"first_name": "Agatha"
},
"title": "Upgrade Firewall",
"description": "Upgrade firewall to latest version.",
"category": "normal",
"priority": "2"
}
}
A HTTP 500 error is an internal error on your webserver.
Check the error log of your webserver (e.g. Apache) and perhaps also check the "error.log" file found in the iTop directory under the "logs" subdirectory.
The Data Model (iTop 3.1 professional) is under the Administration menu -> Data Model
From the console (back office view) https://www.itophub.io/wiki/page?id=3_1_0:admin:browsing_the_data_model
Quick reference: https://www.itophub.io/wiki/page?id=3_1_0:datamodel:start.
The Administration menu -> Data Model From the console (back office view) is where you may find the Data Model (iTop 3.1 professional). https://www.itophub.io/wiki/page?id=3_1_0:admin:browsing_the_data_model slope game