PUT /users/{uid}/appliances/{aid}/osprofile/{osid}/pkgs
Summary
- Method:
PUT
- Response Code:
200
- Response Formats:
application/xml
application/json
- Since:
UForge 1.0
Updates the native packages contained in an OS profile.
Warning
All the packages that are not contained in the new package list are removed from the OS profile. All new packages in the list will be added to the OS profile.
- Requires Authentication:
true
- Entitlements Required:
appliance_create
uid
(required): the user name (login name) of theuser-object
that has created the applianceosid
(required): the id of thedistribprofile-object
aid
(required): the id of theappliance-object
A packages-object
object
curl "https://uforge.example.com/api/users/{uid}/appliances/{aid}/osprofile/{osid}/pkgs" -X PUT \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml" --data-binary "@representation.xml"
Example of representation.xml content (the request body):
<ns0:packages xmlns:ns0="http://www.usharesoft.com/uforge">
<addedPkgUris>
<uri>distributions/1/pkgs/104169</uri>
<uri>distributions/1/pkgs/104537</uri>
</addedPkgUris>
<deletedPkgUris></deletedPkgUris>
</ns0:packages>
appliance-object
applianceOSProfilePkg-getAll
applianceOSProfile-create
applianceOSProfile-delete
applianceOSProfile-get
applianceOSUpdates-get
applianceOSUpdates-save
distribprofile-object
packages-object