Skip to content

Latest commit

 

History

History
98 lines (75 loc) · 2.83 KB

mySoftware_create.rst

File metadata and controls

98 lines (75 loc) · 2.83 KB

mySoftware_create

.. function:: POST /users/{uid}/mysoftware

Summary

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

Creates a new software component in a user's Software library.

Once created, the user can upload software files (open source or proprietary). This software component can be added to one or more appliance templates.

Please refer to :ref:`mySoftware-object` for a complete list of all the my software attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: software_upload

URI Parameters

HTTP Request Body Parameters

A :ref:`mySoftware-object` object

Example Request

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

<ns0:mySoftware xmlns:ns0="http://www.usharesoft.com/uforge">
        <name>Example</name>
        <version>1.0</version>
</ns0:mySoftware>
.. seealso::

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