Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 1.79 KB

orgArtifactCredAccount_create.rst

File metadata and controls

70 lines (48 loc) · 1.79 KB

orgArtifactCredAccount_create

POST /orgs/{oid}/artifactaccounts

Summary

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

Creates a new artifact account that can be used by all the users in the organization.

Please refer to artifactcredaccount-object for a complete list of all the artifact account attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: cloud_account_create

URI Parameters

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

HTTP Request Body Parameters

A artifactCredAccount-object object

Example Request

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

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

<ns0:artifactCredAccount xmlns:ns0="http://www.usharesoft.com/uforge">
    <name>my-artifact-account</name>
    <host>myremoterepo.com</host>
    <type>ftp</type>
    <port>21</port>
    <login>admin</login>
    <password>adminpwd</password>
</ns0:artifactCredAccount>
  • artifactcredaccount-object
  • orgArtifactCredAccount-delete
  • orgArtifactCredAccount-get
  • orgArtifactCredAccount-getAll
  • orgArtifactCredAccount-update
  • userArtifactCredAccount-create
  • userArtifactCredAccount-delete
  • userArtifactCredAccount-get
  • userArtifactCredAccount-getAll
  • userArtifactCredAccount-update