Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

The underlying protocol used for the NetMRI API is HTTP /1.1, which is described in RFC2616, http://www.w3.org/Protocols/rfc2616/rfc2616.html.

This section provides more information about the API builds on top of HTTP to allow access and control of NetMRI. For purposes of this document, HTTP and HTTPS are the same. That is, the interface supports both HTTP and HTTPS URL schemes; whether on a plain or SSL socket, the API will work in the same manner.

This section is especially relevant if you intend to access the Core API directly; it is not necessary for users of the Perl API to understand all the details here.

Authentication

When your script connects to NetMRI, it must pass the URL, username, and password to the client object. The URL and credentials can be passed into the constructor when connecting to NetMRI.

The following is a cURL example of how to authorize a NetMRI appliance to make requests:

curl -u "admin:yourpassword" http://netmri_host_name_or_ip/api/server_info.json

or

curl -u "admin:yourpassword" http://netmri_host_name_or_ip/api/server_info.xml

  • No labels