Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 1.9 KB

applianceOSProfilePkg_updateAll.rst

File metadata and controls

70 lines (48 loc) · 1.9 KB

applianceOSProfilePkg_updateAll

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.

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
  • osid (required): the id of the distribprofile-object
  • aid (required): the id of the appliance-object

HTTP Request Body Parameters

A packages-object 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>
  • appliance-object
  • applianceOSProfilePkg-getAll
  • applianceOSProfile-create
  • applianceOSProfile-delete
  • applianceOSProfile-get
  • applianceOSUpdates-get
  • applianceOSUpdates-save
  • distribprofile-object
  • packages-object