Skip to content

Latest commit

 

History

History
71 lines (49 loc) · 1.92 KB

containerTemplate_create.rst

File metadata and controls

71 lines (49 loc) · 1.92 KB

containerTemplate_create

POST /users/{uid}/mysoftware/{msid}/templates

Summary

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

Creates a container template.

A container template is an object representing a software bundle to containerize.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: appliance_create

URI Parameters

  • uid (required): the user name (login name) of the user-object
  • msid (required): the id of the mySoftware-object

HTTP Request Body Parameters

A containerTemplate-object object

Example Request

curl "https://uforge.example.com/api/users/{uid}/mysoftware/{msid}/templates" -X POST \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml"-H "Content-type: application/xml" --data-binary "@representation.xml"

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

  • containerTemplateImageGeneration-cancel
  • containerTemplateImageGeneration-get
  • containerTemplateImagePublish-cancel
  • containerTemplateImagePublish-get
  • containerTemplateImagePublished-delete
  • containerTemplateImagePublished-get
  • containerTemplateImage-delete
  • containerTemplateImage-download
  • containerTemplateImage-downloadFile
  • containerTemplateImage-get
  • containerTemplateImage-publish
  • containerTemplateTargetFormat-getAll
  • containerTemplate-delete
  • containerTemplate-generate
  • containerTemplate-get
  • containerTemplate-getAll
  • containertemplate-object
  • mySoftware-object