Add Requester CI



To add requester CI use the following URL format:

http://<servername>:<portnumber>/api/cmdb/ci/

Assuming you are adding a requester CI in the local server with port number 8080, the URL should be given as::

http://localhost:8080/api/cmdb/ci


Keypoints:

  1. The operation name "add"  should be sent as a "POST attribute" with key "OPERATION_NAME".

  2. The technician key should be sent as a "POST attribute" with key "TECHNICIAN_KEY".


Note:  

  • Technician with rights to adding assets (asset addition role) can perform add operations on assets CIs like workstaions,printers etc.

  • Technician having SDAdmin role can perform add operations on admin CIs like Business Service, Department etc.

  • CI-ID of the newly added entry is returned along with the CI Name in the response.

  • Technicians can add more than one C(s) using the <record> </record> tags.

  • CI Attributes, Global Attributes and custom CI Attributes for the corresponding CI Type can be added.

  • All asset additional attributes can be added

  • Parameter Result Format - Optional. specifies the return format ( XML or JSON )

  • If no result format specified then API will return output in JSON format.



Sample Input for adding Requester:

 

<?xml version="1.0" encoding="UTF-8"?>
<API version="1.0" locale="en">
    <records>
    <record>
        <parameter><name>Name</name><value>Prakash</value></parameter>
        <parameter><name>CI Type</name><value>Requester</value></parameter>
        <parameter><name>Site</name><value>Japan</value></parameter>
        <parameter><name>Business Impact</name><value>Medium</value></parameter>        
        <parameter><name>Description</name><value>New user joined to ZOHO</value></parameter>
        <parameter><name>Employee ID</name><value>0658</value></parameter>
        <parameter><name>E-mail</name><value>prakash_jp_4323@zoho.com</value></parameter>
        <parameter><name>Phone</name><value>9159840336</value></parameter>
        <parameter><name>Mobile</name><value>9159840336</value></parameter>
        <parameter><name>Department Name</name><value>Finance</value></parameter>
        <parameter><name>Department's site</name><value>Pleasanton,CA</value></parameter>
        <parameter><name>Job title</name><value>MTS</value></parameter>        
    </record>
    </records>
</API>

 



SeviceDeskPlus - 帮助台和资产管理软件
Copyright © 2006-2017 卓豪(北京)技术有限公司版权所有