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.
- Requires Authentication:
true
- Entitlements Required:
appliance_create
brid
(required): the id of thebundlerestriction-object
pid
(required): the id of theproject-object
oid
(required): the id of theorg-object
A bundleRestriction-object
object
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