-
- Veeam Software
- Posts: 149
- Liked: 47 times
- Joined: May 25, 2016 3:29 am
- Full Name: Ben Young
- Contact:
Example RestAPI code
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
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
-
- Product Manager
- Posts: 20413
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Modify tenant's quota
Tenant's entity representation contains PUT method, using which you can modify tenant's spec. Thanks.
-
- Novice
- Posts: 7
- Liked: never
- Joined: Jul 24, 2018 10:12 am
- Full Name: serhanayaksiz
- Contact:
[MERGED] Changing Tenant Quota with Rest-Api
Hello,
I am working service provider and we want to change our customers quota in Enterpise manager how using rest-api. Is it possible?
I am working service provider and we want to change our customers quota in Enterpise manager how using rest-api. Is it possible?
-
- VP, Product Management
- Posts: 27377
- Liked: 2800 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: Example RestAPI code
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.
-
- Novice
- Posts: 7
- Liked: never
- Joined: Jul 24, 2018 10:12 am
- Full Name: serhanayaksiz
- Contact:
Re: Example RestAPI code
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.
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.
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Example RestAPI code
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:
Thanks!
Oleg
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>
Oleg
Who is online
Users browsing this forum: No registered users and 1 guest