Skip to content

Latest commit

 

History

History
82 lines (61 loc) · 1.92 KB

subscriptionProfileQuotas_update.rst

File metadata and controls

82 lines (61 loc) · 1.92 KB

subscriptionProfileQuotas_update

PUT /orgs/{oid}/subscriptions/{spid}/quotas

Summary

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

Updates the quotas in a subscription profile.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: org_administrate

URI Parameters

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

HTTP Request Body Parameters

A quotas-object object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/subscriptions/{spid}/quotas" -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: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>
  • subscriptionProfileAdmins-update
  • subscriptionProfileOS-update
  • subscriptionProfileRoles-update
  • subscriptionProfileTargetFormat-update
  • subscriptionProfileTargetPlatform-update
  • subscriptionProfile-create
  • subscriptionProfile-get
  • subscriptionProfile-getAll
  • subscriptionProfile-remove
  • subscriptionProfile-update
  • subscriptionprofile-object