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
- Requires Authentication:
true
- Entitlements Required:
appliance_create
uid
(required): the user name (login name) of theuser-object
that has created the applianceaid
(required): the id of theappliance-object
A distribProfile-object
object
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