applianceBootScript_update

PUT /users/{uid}/appliances/{aid}/bootscripts/{bsid}

Updates a boot script that is attached to an appliance.

This only updates the meta-data associated with any uploaded boot script file.

Refer to bootScript for more information on the boot script attributes.

Warning

If the new boot script data contains a md5sum and if this md5sum is not equal to the existing boot script meta-data, then any uploaded boot script file is deleted and a new boot script file will need to be uploaded using applianceBootScript_upload

Security Summary

  • Requires Authentication: true
  • Entitlements Required: appliance_create

URI Parameters

  • uid (required): the user name (login name) of the user
  • bsid (required): the id of the bootScript
  • aid (required): the id of the appliance

HTTP Request Body Parameters

A bootScript object

Example Request

curl "https://uforge.example.com/api/users/{uid}/appliances/{aid}/bootscripts/{bsid}" -X PUT \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml" --data-binary "@representation.xml"

Example of representation.xml content (the request body):

<ns0:bootScript xmlns:ns0="http://www.usharesoft.com/uforge">
        <bootType>everyboot</bootType>
</ns0:bootScript>