To cancel uploading the ISO image to the location:
- Get the authorization token:
curl -k -X POST -H "accept: application/json" -H "Content-Type: application/json" 'https://domain.com/auth/v4/public/token' -d '{"email": "admin_email", "password": "admin_pass"}'
Comments to the commandIn response, you will get the message in the form:
Example of response in JSON{ "confirmed": true, "expires_at": null, "id": "6", "token": "4-e9726dd9-61d9-2940-add3-914851d2cb8a" }
Save the received token value.
-
Define the task id for the image upload:
curl -k -X GET -H "x-xsrf-token: <auth_token>" -H "isp-box-instance: true" "https://domain.com/api/taskmgr/v4/task?where=name+EQ+'iso_download'"
Comments to the command -
Cancel the image upload task:
curl -k -d '{}' -H "x-xsrf-token: <auth_token>" -H "isp-box-instance: true" "https://domain.com/api/taskmgr/v4/task/<task_ID>/cancel"
Comments to the command