Skip to content

Latest commit

 

History

History
92 lines (70 loc) · 2.65 KB

mySoftware_availableForImage.rst

File metadata and controls

92 lines (70 loc) · 2.65 KB

mySoftware_availableForImage

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

Summary

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

Gets the software component if it's available for the image that will be generated. *

The mySoftware-object object is returned if available for image by parsing the restriction rule (return null if not).

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 image-object object

Example Request

curl "https://uforge.example.com/api/users/{uid}/mysoftware/{msid}/images" -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):

  • mySoftware-object
  • mySoftwareArtifact-add
  • mySoftwareArtifact-addChild
  • mySoftwareArtifact-addOrRemoveFileFromCache
  • mySoftwareArtifact-createFromRemoteServer
  • mySoftwareArtifact-delete
  • mySoftwareArtifact-deleteAll
  • mySoftwareArtifact-download
  • mySoftwareArtifact-downloadFile
  • mySoftwareArtifact-get
  • mySoftwareArtifact-getAll
  • mySoftwareArtifact-update
  • mySoftwareArtifact-updateAll
  • mySoftwareArtifact-upload
  • mySoftwareExportStatus-get
  • mySoftwareExport-delete
  • mySoftwareExport-download
  • mySoftwareLicense-delete
  • mySoftwareLicense-download
  • mySoftwareLicense-upload
  • mySoftwareLicense-uploadFile
  • mySoftwareLogo-delete
  • mySoftwareLogo-download
  • mySoftwareLogo-downloadFile
  • mySoftwareLogo-upload
  • mySoftwareRestrictionOS-evaluate
  • mySoftwareRestriction-update
  • mySoftwareUsage-getAll
  • mySoftware-clone
  • mySoftware-create
  • mySoftware-delete
  • mySoftware-export
  • mySoftware-get
  • mySoftware-getAll
  • mySoftware-update
  • softwareBundleImport-get
  • softwarebundleImportStatus-get
  • softwarebundleImport-upload
  • softwarebundle-import