Delete system dump: Request

Prev Next

To delete system dump files, send the following request:

curl -k --user npadmin:hammerhead https://<IA_IP_address>/config/v1/system/deletesysdumps -d '["<filename1>","<filename2">]' -X Delete 

Note

To use this request, you must belong to the sudo group.

Options

  • IA_IP_address—IP address of the NDR appliance running the NDR API.

  • filename1, filename2—System dump file names that you wish to delete.

  • username—Administrator user name.

  • password—Administrator password.

Example

curl -k -u <user>:<password> -XDELETE https://<IA_IP>/config/v1/system/deletesysdumps -H "Content-Type: application/json" -d ["<File1>", "<File2>"]
  • -k—This option explicitly allows cURL to perform insecure SSL connections and transfers, which allows you to test your SSL connection without installing a CA certificate.

  • --user npadmin:hammerhead—Replace npadmin with the user name for your NDR appliance. Replace hammerhead with the password for your NDR appliance.

  • https://xxx.xxx.xxx.xxx/api/4.0/config/v1/system/deletesysdumps—The system information request URL. Replace xxx.xxx.xxx.xxx with the IP address of your NDR appliance.

  • Replace filename1,filename2 with the system dump file names

  • -X DELETE—This option specifies using the DELETE method.

Delete a system dump file: Response

HTTP/1.1 [Response Code] [Response Message]
Date: [Date]
Content-Type: [Content Type]
{"deleted":["Filename"],"status":"status"}				

Response fields

  • Response Code—A standard HTTP response code.

  • Response Message—A standard HTTP response message.

  • Date—Standard HTML date format.

  • Content Type—The response format.

  • Filename—File names of the deleted system dump files.

  • Status—Success or failed.

Example

HTTP/1.1 200 OK
Date: Thu, 26 Jan 2017 19:16:26 GMT
Content-Type: application/json; charset=utf-8
{"deleted":["FireEye_ia6_20220803.053658.tar.gz"],"status":"Success"}

	

Results

This example deletes the specified system dump.