applianceOSProfilePkg_updateAll

PUT /users/{uid}/appliances/{aid}/osprofile/{osid}/pkgs

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.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: appliance_create

URI Parameters

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

HTTP Request Body Parameters

A packages object

Example Request

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>