RESTful knowledge exchange
Post Reply
benyoung
Service Provider
Posts: 134
Liked: 38 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Example RestAPI code

Post by benyoung » May 25, 2016 3:40 am

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: 17141
Liked: 1483 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Modify tenant's quota

Post by veremin » May 25, 2016 9:41 am

Tenant's entity representation contains PUT method, using which you can modify tenant's spec. Thanks.

serhan
Novice
Posts: 5
Liked: never
Joined: Jul 24, 2018 10:12 am
Full Name: serhanayaksiz
Contact:

[MERGED] Changing Tenant Quota with Rest-Api

Post by serhan » Dec 13, 2019 6:38 am

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.
Product Manager
Posts: 23300
Liked: 1630 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Example RestAPI code

Post by Vitaliy S. » Dec 13, 2019 10:37 am

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: 5
Liked: never
Joined: Jul 24, 2018 10:12 am
Full Name: serhanayaksiz
Contact:

Re: Example RestAPI code

Post by serhan » Dec 13, 2019 11:07 am

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: 85
Liked: 29 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Example RestAPI code

Post by oleg.feoktistov » Dec 13, 2019 2:33 pm 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 1 guest