Can API be used to add CI????

Can API be used to add CI????

Greetings,

I am trying to accomplish one thing.  I only need to add a CI (Linux Server in this case) to CMDB.  It is my hope that during the build process, our finished machines will execute an API call and automatically "add" themselves to the database.  So far in all of my tests I am unable to add anything.  I have followed the steps in documentation exactly (Reference:  https://www.manageengine.com/products/asset-explorer/help/index.html).

I have attempted to perform this task against my AE machine in network and only get the following: 

ConnectionError                           Traceback (most recent call last)
<ipython-input-43-60702b44d25b> in <module>()  7 args = { 'OPERATION_NAME': 'add', 'TECHNICIAN_KEY': tech_key, 'INPUT_DATA': xml_content }  8 #args = { 'OPERATION_NAME': 'add', 'TECHNICIAN_KEY': demo_key, 'INPUT_DATA': xml_content } ----> 9 r = requests.post(url, params = args, verify = False)  10 #r = requests.post(url, params = args)  11 #print r.url /usr/lib/python2.7/site-packages/requests/api.pyc in post(url, data, json, **kwargs)  106 """  107  --> 108 return request('post', url, data=data, json=json, **kwargs)  109   110  /usr/lib/python2.7/site-packages/requests/api.pyc in request(method, url, **kwargs)  48   49 session = sessions.Session() ---> 50 response = session.request(method=method, url=url, **kwargs)  51 # By explicitly closing the session, we avoid leaving sockets open which  52 # can trigger a ResourceWarning in some cases, and look like a memory leak /usr/lib/python2.7/site-packages/requests/sessions.pyc in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)  462 }  463 send_kwargs.update(settings) --> 464 resp = self.send(prep, **send_kwargs)  465   466 return resp /usr/lib/python2.7/site-packages/requests/sessions.pyc in send(self, request, **kwargs)  574   575 # Send the request --> 576 r = adapter.send(request, **kwargs)  577   578 # Total elapsed time of the request (approximately) /usr/lib/python2.7/site-packages/requests/adapters.pyc in send(self, request, stream, timeout, verify, cert, proxies)  413   414 except (ProtocolError, socket.error) as err: --> 415 raise ConnectionError(err, request=request)  416   417 except MaxRetryError as e: ConnectionError: ('Connection aborted.', BadStatusLine("''",))

When I attempt to perform the same call to your demo site I get the following:

<HTML><HEAD> <TITLE>Network Error</TITLE> </HEAD> <BODY> <FONT face="Helvetica"> <big><strong></strong></big><BR> </FONT> <blockquote> <TABLE border=0 cellPadding=1 width="80%"> <TR><TD> <FONT face="Helvetica"> <big>Network Error (tcp_error)</big> <BR> <BR> </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica"> A communication error occurred: "" </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica"> The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time. </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica" SIZE=2> <BR> For assistance, contact your network support team. </FONT> </TD></TR> </TABLE> </blockquote> </FONT> </BODY></HTML> 


I am at a loss.  I have already given up my other tasks of pulling more than 50 records out of cmdb via api so I won't moan about it here.  

Is what I'm wanting to do even possible with your product?  It is burdensome for our technicians to have to log into another system to add it to inventory and automating this process will cut down on human error.  I appreciate your help in this matter.  

Please provide a reproducible set of steps that can be performed against the demo url if possible.   
              New to ADManager Plus?

                New to ADSelfService Plus?