Software Secure Workload
Activity Configure

API to Download the Output of the Connector Command as a File

This endpoint downloads the output of the command as a file.

GET /openapi/v1/connectors/<id>/commands/{command_id}/download

where <id> is the id that can be obtained from the API to Get Connectors, <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 that is 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 Connector ID

command_id

string

Specify the command ID

Response object: Returns the selected troubleshooting command for a given connector.

Sample response

resp = restclient.download('downloadFile', '/connectors/63c6ef42bca44e2b5e729191/commands/63cace941a49bd4c0e0cf45a/download')