Skip to content

Latest commit

 

History

History
81 lines (58 loc) · 2.21 KB

projectRestrictionOS_evaluate.rst

File metadata and controls

81 lines (58 loc) · 2.21 KB

projectRestrictionOS_evaluate

POST /orgs/{oid}/projects/{pid}/restriction/{brid}/distributions

Summary

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

Evaluate the restriction rule to retrieve all distributions for which the project is designed for.

A list of distribution-object objects are returned.

Note

carriage return is not authorized in the restriction rule.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: appliance_create

URI Parameters

  • brid (required): the id of the bundlerestriction-object
  • pid (required): the id of the project-object
  • oid (required): the id of the org-object

HTTP Request Body Parameters

A bundleRestriction-object object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/projects/{pid}/restriction/{brid}/distributions" -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):

  • project-object
  • projectArtifact-addChild
  • projectArtifact-addOrRemoveFileFromCache
  • projectArtifact-create
  • projectArtifact-createFromRemoteServer
  • projectArtifact-delete
  • projectArtifact-deleteAll
  • projectArtifact-download
  • projectArtifact-downloadFile
  • projectArtifact-get
  • projectArtifact-update
  • projectArtifact-updateAll
  • projectArtifact-upload
  • projectLogo-delete
  • projectLogo-download
  • projectLogo-downloadFile
  • projectLogo-upload
  • projectRestriction-update
  • project-availableForImage
  • project-create
  • project-delete
  • project-get
  • project-getAll
  • project-update
  • softwareartifact-object