RESTful knowledge exchange
Post Reply
benyoung
Veeam Vanguard
Posts: 148
Liked: 47 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Example RestAPI code

Post by benyoung »

Might be a silly question but what is the process for modifying a cloud tenant resource quota?

There seems to be only get/delete methods in the documentation but i am wanting to implement a change quota mechanism in our systems here
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Modify tenant's quota

Post by veremin »

Tenant's entity representation contains PUT method, using which you can modify tenant's spec. Thanks.
serhan
Novice
Posts: 7
Liked: never
Joined: Jul 24, 2018 10:12 am
Full Name: serhanayaksiz
Contact:

[MERGED] Changing Tenant Quota with Rest-Api

Post by serhan »

Hello,
I am working service provider and we want to change our customers quota in Enterpise manager how using rest-api. Is it possible?
Vitaliy S.
VP, Product Management
Posts: 27055
Liked: 2710 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Example RestAPI code

Post by Vitaliy S. »

Please follow the recommendation from Vladimir to achieve that. Additionally, if your service provider uses Veeam Availability Console, you can do that via this call too.
serhan
Novice
Posts: 7
Liked: never
Joined: Jul 24, 2018 10:12 am
Full Name: serhanayaksiz
Contact:

Re: Example RestAPI code

Post by serhan »

Hello,
We serve virtual machine to our customers through vcloud director. we create a tenant for a customer and he can only manage his servers which belong to his vcloud director organization, backup and restore operation. for these operations, customers log in enterprise manager. i want to change customer's tenant quota via restapi.
oleg.feoktistov
Veeam Software
Posts: 1912
Liked: 635 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Example RestAPI code

Post by oleg.feoktistov » 2 people like this post

Since you're using vCloud Director, please have a look at this query to update the quota.
An example of the request body for quota setting would be:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<VCloudOrganizationConfig Href="http://localhost:9399/api/vCloud/orgConfigs/228fef7b-6e5e-4107-886e-40c8f482b5c7?format=Entity" Type="VCloudOrganizationConfig" Name="org02" UID="urn:veeam:VCloudOrganizationConfig:228fef7b-6e5e-4107-886e-40c8f482b5c7" xmlns="http://www.veeam.com/ent/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <BackupServerUid>urn:veeam:BackupServer:1cf4ea89-89d9-4b4e-a285-71bd8c705222</BackupServerUid>
 <RepositoryUid>urn:veeam:Repository:df9903aa-d2b6-4edd-9a0b-057bc8dd4451</RepositoryUid>
 <QuotaGb>1024</QuotaGb>
 <JobSettings>
   <DefaultSettings>true</DefaultSettings>
   <JobSchedulerType>Full</JobSchedulerType>
 </JobSettings>
 <IsDisabled>false</IsDisabled>
</VCloudOrganizationConfig>
Thanks!
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests