|
|
|
When you submit an HTTP request to CNA, the server will return one of the following status codes:
For single configuration commands that produce no output from the CNA CLI, you will receive a 204 status code indicating that the command was successfully applied to CNA’s running configuration.
When you submit multiple configuration commands in a single request, they are applied to CNA’s running configuration with the equivalent of the CLI’s copy command, which generates a status report indicating how many of the commands were successfully applied to the running configuration and how many failed. This CLI-generated status report will be contained in the response body.
The format of the contents in the response body will vary depending on the command submitted to the CLI and cannot be predicted in advance.
Your client application should be prepared to handle any format supported by CNA now or in the future--ASCII text, HTML, XML, and possibly binary formats such as PDF files or Excel spreadsheets.
Check the Content-Type response header to determine the type of returned output.
|
|
|