|
|
|
The CNA operating system implements an HTTP-based Application Programming Interface (API), which allows your client applications to enter any valid CNA command through the management module’s HTTP or HTTPS port.
NOTE: The ANS6 API fully supports SSL. If you have enabled SSL on your system, you can send SSL-encrypted requests and the device will return SSL-encrypted responses.
To execute a CLI command remotely, open a session on the HTTP or HTTPS port through the management module’s eth0 interface.
To test or experiment with the API, you can use the telnet or ssh protocol to enter the HTTP request manually from the keyboard.
To make API calls from your client programs, you will need to obtain an HTTP programming library such as the one provided with the open-source utility curl (which can also provide SSL encryption and decryption). See the section Curl elsewhere in this chapter.
The CLI command to be executed is sent in the content body of an HTTP POST method call.
The web server running on CNA’s management module will process the request as either an executable command or a configuration command, depending on the Universal Resource Identifier (URI) specified with the POST method call:
|
|
|