Skip to content

Latest commit

 

History

History
74 lines (53 loc) · 1.38 KB

userQuotas_update.rst

File metadata and controls

74 lines (53 loc) · 1.38 KB

userQuotas_update

PUT /users/{uid}/quotas

Summary

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

Updates the quotas of an user.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: None

URI Parameters

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

HTTP Request Body Parameters

A quotas-object object

Example Request

curl "https://uforge.example.com/api/users/{uid}/quotas" -X PUT \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml" --data-binary "@representation.xml"

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

<ns0:quotas xmlns:ns0="http://www.usharesoft.com/uforge">
    <quotas>
        <quota>
            <limit>-1</limit>
            <type>generation</type>
        </quota>
        <quota>
            <limit>10</limit>
            <type>appliance</type>
        </quota>
        <quota>
            <limit>-1</limit>
            <type>scan</type>
        </quota>
        <quota>
            <limit>-1</limit>
            <type>diskusage</type>
        </quota>
    </quotas>
</ns0:quotas>
  • quota-object
  • statticket-object
  • userQuotas-get
  • userUsage-get