Clideploy¶
Send CLI commands through HTTP requests. Clideploy is hard coded in apache httpd, rather than schema driven. It accepts two request formats: plain text and JSON.
The plain text format is for use with the Content-Type:text/plain header:
curl -X POST -H "Content-type:text/plain" -H "Authorization:A10 c223169c3ab18f9e3826b9df215c2b" -d "show version" http://10.10.10.10/axapi/v3/clideploy
If the command is plain text such as show running-config, the response is plain text.
The JSON format is for use with the Content-Type:application/json header:
curl -k POST https://10.10.10.10/axapi/v3/clideploy \
-H "Content-Type:application/json" \
-H "Authorization: A10 c223169c3ab18f9e3826b9df215c2b" \
-d '{
"commandList" : [
"command 1",
"command 2"
]
}'
The response from a JSON request might not be in JSON format.
Issuing a block of configuration using clideploy will cause the control CPU to experience a spike while this operation is in progress. As soon as the configuration change has been applied, the Control CPU will revert to normal behavior.