Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.74 KB

osTemplate_create.rst

File metadata and controls

65 lines (43 loc) · 1.74 KB

osTemplate_create

POST /distributions/{id}/profiles

Summary

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

Creates a new OS template for an operating system. An OS template groups together packages from the operating system that can be re-used in as an OS profile when creating an managing appliances.

Please refer to distribprofiletemplate-object for a complete list of all the OS template attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_os_profiles_administrate

URI Parameters

  • id (required): the id of the distribprofile-object

HTTP Request Body Parameters

A distribProfileTemplate-object object

Example Request

curl "https://uforge.example.com/api/distributions/{id}/profiles" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml" --data-binary "@representation.xml"

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

<ns0:distribProfileTemplate xmlns:ns0="http://www.usharesoft.com/uforge">
    <description>This distribution contains the minimal amount of services</description>
    <name>Template Example</name>
</ns0:distribProfileTemplate>
  • appliance-object
  • distribprofile-object
  • distribprofile-object
  • distribprofiletemplate-object
  • osTemplatePkgs-get
  • osTemplate-delete
  • osTemplate-get
  • osTemplate-getAll
  • osTemplate-update