Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.62 KB

applianceOSProfile_create.rst

File metadata and controls

65 lines (43 loc) · 1.62 KB

applianceOSProfile_create

POST /users/{uid}/appliances/{aid}/osprofile

Summary

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

Adds a new OS profile to an appliance.

Refer to distribprofile-object for mandatory and optional parameters

Security Summary

  • Requires Authentication: true
  • Entitlements Required: appliance_create

URI Parameters

  • uid (required): the user name (login name) of the user-object that has created the appliance
  • aid (required): the id of the appliance-object

HTTP Request Body Parameters

A distribProfile-object object

Example Request

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

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

<ns0:distribProfile xmlns:ns0="http://www.usharesoft.com/uforge">
    <name>Minimal</name>
    <standardProfileUri>distributions/1/profiles/4</standardProfileUri>
</ns0:distribProfile>
  • appliance-object
  • applianceOSProfilePkg-getAll
  • applianceOSProfilePkg-updateAll
  • applianceOSProfile-delete
  • applianceOSProfile-get
  • applianceOSUpdates-get
  • applianceOSUpdates-save
  • distribprofile-object