Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 1.95 KB

targetPlatform_create.rst

File metadata and controls

73 lines (51 loc) · 1.95 KB

targetPlatform_create

POST /orgs/{oid}/targetplatforms

Summary

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

Creates a new target platform in an organization.

Please refer to targetplatform-object for a complete list of all the target platform attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_formats_administrate

URI Parameters

  • oid (required): the id of the org-object

HTTP Request Body Parameters

A targetPlatform-object object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/targetplatforms" -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:targetPlatform xmlns:ns0="http://www.usharesoft.com/uforge">
    <name>My OpenStack</name>
    <type>openstack</type>
    <accountInfos>Please find your My OpenStack credentials at the following URL http://provider/myAccount/OpenStackSettings</accountInfos>
</ns0:targetPlatform>
  • targetPlatformLogo-delete
  • targetPlatformLogo-download
  • targetPlatformLogo-downloadFile
  • targetPlatformLogo-upload
  • targetPlatform-addFormat
  • targetPlatform-create
  • targetPlatform-delete
  • targetPlatform-get
  • targetPlatform-getAll
  • targetPlatform-getAllFormats
  • targetPlatform-removeFormat
  • targetPlatform-update
  • targetPlatform-updateAccess
  • targetformat-api-resources
  • targetformat-object
  • targetplatform-object