orgOS_add

POST /orgs/{oid}/distributions

Registers a new operating system to an organization.

Please refer to distribProfile for a complete list of all the os attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_os_administrate

URI Parameters

  • oid (required): the id of the org

HTTP Request Body Parameters

A distribution object

Example Request

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

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

<ns0:distribution xmlns:ns0="http://www.usharesoft.com/uforge">
        <name>CentOS</name>
        <version>6</version>
        <arch>x86_64</arch>
</ns0:distribution>