Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.72 KB

applianceBootScript_upload.rst

File metadata and controls

59 lines (41 loc) · 1.72 KB

applianceBootScript_upload

POST /users/{uid}/appliances/{aid}/bootscripts/{bsid}/bin/{fileName}

Summary

  • Method: POST
  • Response Code: 201
  • Response Formats: application/xml application/json
  • Since: UForge 2.1.06

Uploads a boot script file.

Prior to uploading a boot script file, a bootscript-object object must be created. Refer to applianceBootScript-create to understand how to create a new boot script object for an appliance.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: appliance_create

URI Parameters

  • uid (required): the user name (login name) of the user-object
  • bsid (required): the id of the bootscript-object
  • fileName (required): the boot script filename to add
  • aid (required): the id of the appliance-object

HTTP Request Body Parameters

The file to upload.

Example Request

curl "https://uforge.example.com/api/users/{uid}/appliances/{aid}/bootscripts/{bsid}/bin/{fileName}" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml"-H "Content-type: application/xml" --data-binary "@binaryFilePath"
  • appliance-object
  • applianceBootScript-create
  • applianceBootScript-delete
  • applianceBootScript-deleteAll
  • applianceBootScript-download
  • applianceBootScript-downloadFile
  • applianceBootScript-get
  • applianceBootScript-getAll
  • applianceBootScript-update
  • bootscript-object