Add Business Service CI
To add non-IT asset CIs use the following URL format:
http://<servername>:<portnumber>/api/cmdb/ci/
Assuming you are adding a non-IT asset CI in the local server with port number 8080, the URL should be given as:
http://localhost:8080/api/cmdb/ci
Keypoints:
-
Input is an XML string sent as "POST attribute" with key "INPUT_DATA".
-
The operation name "add" should be sent as a "POST attribute" with key "OPERATION_NAME".
-
The technician key should be sent as a "POST attribute" with key "TECHNICIAN_KEY".
Note:
If no result format specified then API will return output in JSON format. |
Attributes
All the default attributes and custom attributes present in the CI Type details (specified below) can be added.
Note: Attributes for other default CI Types like Cluster, Document, IT Service, Network,Switch Ports and Datacenter can be added by referring the CI Type details page.
Sample Input for adding non-IT assets (Business Service):
<?xml version="1.0" encoding="UTF-8"?>
<API version="1.0" locale="en">
<records>
<record>
<parameter><name>CI Name</name><value>Tomcat Server 8</value></parameter>
<parameter><name>CI Type</name><value>Business Service</value></parameter>
<parameter><name>Site</name><value>China</value></parameter>
<parameter><name>Business Impact</name><value>High</value></parameter>
<parameter><name>Description</name><value>Domain Conroller </value></parameter>
<parameter><name>Availability Target(%)</name><value>200</value></parameter>
<parameter><name>Service Support Hours</name><value>24X5</value></parameter>
<parameter><name>Cost</name><value>8080</value></parameter>
<parameter><name>Incident restoration target</name><value>90%</value></parameter>
<parameter><name>Global Attr</name><value>Gobal attribute</value></parameter>
</record>
</records>
</API>