Skip to content

Latest commit

 

History

History
75 lines (53 loc) · 1.82 KB

cloudAccount_create.rst

File metadata and controls

75 lines (53 loc) · 1.82 KB

cloudAccount_create

POST /users/{uid}/accounts

Summary

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

Creates a new cloud account for an user.

Please refer to credaccount-object for a complete list of all the cloud account attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: cloud_account_create

URI Parameters

  • uid (required): the user name (login name) of the user-object

HTTP Request Body Parameters

A credAccount-object object

Example Request

curl "https://uforge.example.com/api/users/{uid}/accounts" -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:credAccount xmlns:ns0="http://www.usharesoft.com/uforge">
    <xsi:type></xsi:type>
    <name>OpenStack Example</name>
    <targetPlatform>
        <name>OpenStack</name>
        <type>openstack</type>
    </targetPlatform>
    <glanceUrl>http://ip:9292</glanceUrl>
    <keystoneUrl>http://ip:5000</keystoneUrl>
    <login>username</login>
    <password>password</password>
    <keystoneVersion>v3</keystoneVersion>
</ns0:credAccount>
  • cloudAccountCert-create
  • cloudAccountCert-delete
  • cloudAccountCert-download
  • cloudAccountCert-upload
  • cloudAccountResources-get
  • cloudAccount-delete
  • cloudAccount-get
  • cloudAccount-getAll
  • cloudAccount-update
  • credaccount-object