"
#export HTTP_AUTH=bXl1c2VyOm15c3Ryb25ncGFzc3dvcmQ=
export HTTP_AUTH=`echo -n myuser:mypassword | base64`
export SERVER=http://www.dalineage.com/
export FILE=myfile.zip
curl -k -X POST -H "Content-type: application/zip" -H "Authorization: Basic $HTTP_AUTH" $SERVER/api/upload -T $FILE
#export HTTP_AUTH=bXl1c2VyOm15c3Ryb25ncGFzc3dvcmQ=
export HTTP_AUTH=`echo -n myuser:mypassword | base64`
export SERVER=http://www.dalineage.com/
curl -k -X GET -H "Accept: application/json" -H "Authorization: Basic $HTTP_AUTH" $SERVER/api/status/{user}/{batch_id}
There are 5 possible status:
export HTTP_AUTH=bXl1c2VyOm15c3Ryb25ncGFzc3dvcmQ=
export SERVER=http://www.dalineage.com/
curl -k -X DELETE -H "Authorization: Basic $HTTP_AUTH" "$SERVER/api/batch/{user}/{batch_id}?permanent=true"
Use permanent
query parameter to delete batch permanently or move it into deleted director.
permanent=true
- delete batch permanentlypermanent=false [default]
- move batch into deleted directory