API to Download the Output of the Appliance Command as a File
This endpoint downloads the output of the command as a file.
GET /openapi/v1/appliances/<id>/commands/{command_id}/download
where <id> is the appliance_id that can be obtained from the API to Get List of Appliances, <command_id> is the id that can be obtained from API to List Troubleshooting Commands. Not all commands have downloadable output, check the command schema provided by API to Get the Schema of Troubleshooting Commands, where "output_type": "FILE" indicates it has downloadable content and "output_ext" tells the file type.
Parameters: The request URL contains the following parameters
Name |
Type |
Description |
---|---|---|
id |
string |
Specify the Appliance ID |
command_id |
string |
Specify the command ID |
Response object: Download the command output as a file.
Sample response
resp = restclient.download('downloadFile', '/appliances/63c6ef42bca44e2b5e729191/commands/63cace941a49bd4c0e0cf45a/download')