Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 1.83 KB

cloudAccount_update.rst

File metadata and controls

72 lines (50 loc) · 1.83 KB

cloudAccount_update

.. function:: PUT /users/{uid}/accounts/{caid}

Summary

  • Method: PUT
  • Response Code: 200
  • Response Formats: application/xml application/json
  • Since: UForge 2.0

Updates the meta-data of a cloud account.

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

Security Summary

  • Requires Authentication: true
  • Entitlements Required: cloud_account_create,cloud_account_edit

URI Parameters

HTTP Request Body Parameters

A :ref:`credAccount-object` object

Example Request

curl "https://uforge.example.com/api/users/{uid}/accounts/{caid}" -X PUT \
-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 Update</name>
        <glanceUrl>http://ip:9292</glanceUrl>
        <keystoneUrl>http://ip:5000</keystoneUrl>
        <login>username</login>
        <password>password</password>
        <keystoneVersion>v3</keystoneVersion>
</ns0:credAccount>
.. seealso::

         * :ref:`cloudAccountCert-create`
         * :ref:`cloudAccountCert-delete`
         * :ref:`cloudAccountCert-download`
         * :ref:`cloudAccountCert-upload`
         * :ref:`cloudAccountResources-get`
         * :ref:`cloudAccount-create`
         * :ref:`cloudAccount-delete`
         * :ref:`cloudAccount-get`
         * :ref:`cloudAccount-getAll`
         * :ref:`credaccount-object`