(PUT) /cloud/tenants/{ID}
Edits settings of a tenant account with the specified ID.
Request
To edit settings of the tenant account, you need to send the PUT HTTP request to the URL of the /cloud/tenants/{ID} resource.
HTTP Request
Request Headers
The request contains the following headers:
Header | Required | Description |
---|---|---|
X-RestSvcSessionId | True | The request requires authorization. In the header, the client must send a session ID copied from the server reply to the request creating a new logon session. To learn more, see Authentication and Security. |
Content-Type | True | Identifies the format of the request body message. Possible values:
|
Accept | False | Identifies the format of the response. Possible values:
If the request does not contain the header, the server will return the response in the XML format. |
Request Body
In the request body, the client must send parameters for the tenant account whose settings must be updated. The body of the request must conform to the XML Schema Definition of Veeam Backup Enterprise Manager RESTful API.
The request body must contain the following elements:
Element | Type | Description | Modifiable | Min/Max Occurrence |
---|---|---|---|---|
Password | String | Password for the tenant account. | Yes | 0/1 |
Description | String | Description for the tenant account. | Yes | 0/1 |
Enabled | Boolean | Defines if the tenant account must be in the enabled or disabled state. | Yes | 0/1 |
LeaseExpirationDate | DateTime | Defines the expiration date of the lease period for the tenant account. | Yes | 1/1 |
MaxConcurrentTasks | Int | Maximum number of concurrent tasks for the tenant. | Yes | 0/1 |
BackupProtectionEnabled | Boolean | Defines whether backups deleted by a tenant will be placed to the recycle bin on the service provider side. | Yes | 0/1 |
BackupProtectionPeriod | Int | Number of days to keep deleted tenant backups in the recycle bin. | Yes | 0/1 |
CloudTenantResource | CloudTenant | Defines the storage quota on the cloud backup repository that must be assigned to the tenant. You can assign several storage quotas on different cloud repositories to one tenant. To learn more about storage quota settings, see Backup Resource Options. | No | 1/1 |
CloudTenantComputeResource | CloudTenantComputeResource | Defines settings for cloud replication resources that must be assigned to the tenant. You can subscribe one tenant to one or several hardware plans that utilize resources of the same virtualization platform — VMware vSphere or Microsoft Hyper-V. To learn more about cloud replication settings, see Compute Resource Options. | No | 1/1 |
TenantType | CloudTenantType | Type of the tenant account whose settings must be modified. Possible values:
| No | 1/1 |
CloudGatewayPools | CloudGatewayPoolEntityListType | Specifies the cloud gateway pool assigned to the tenant account. To learn more, see Cloud Gateway Pool Options. | Yes | 0/1 |
FailoverToOtherGatewaysIfFail | Boolean | Enables a connection to failover to cloud gateways outside of the assigned cloud gateway pool in case all cloud gateways in the pool are unavailable. Possible values:
| Yes | 0/1 |
For example:
<?xml version="1.0" encoding="utf-8"?> |
You can specify the following settings for the tenant backup resource:
Element | Type | Description | Modifiable | Min/Max Occurrence |
---|---|---|---|---|
DisplayName | String | Friendly name of the cloud repository. | Yes | 1/1 |
RepositoryUid | URN | ID of the backup repository on which the storage quota must be modified. You cannot modify the repository resource if the current or new repository is a Scale-Out Backup Repository (SOBR). | Yes | 1/1 |
WanAcceleratorUid | URN | ID of the WAN accelerator that must be used as a target WAN accelerator with the cloud repository. This parameter must be specified if you want tenants to work with the cloud repository via WAN accelerators. | Yes | 0/1 |
Quota | Int | Size of the storage quota assigned to the user on the cloud repository (in MB). | Yes | 1/1 |
<Resources> |
You can specify the following settings for the tenant compute resource:
Element | Type | Description | Modifiable | Min/Max Occurrence |
---|---|---|---|---|
CloudHardwarePlanUid | String | ID of the hardware plan to which the tenant must be subscribed, for example: urn:veeam:CloudHardwarePlan:127e652e-e02e-4951-99e7-03280edfe536. | Yes | 1/1 |
WanAcceleratorUid | URN | ID of the WAN accelerator that must be used as a target WAN accelerator with the cloud host presented by the hardware plan. This parameter must be specified if you want tenants to work with cloud hosts via WAN accelerators. | Yes | 0/1 |
UseNetworkFailoverResources | Boolean | Defines whether the network extension appliance must be deployed for the tenant account subscribed to the hardware plan. | Yes | 1/1 |
NetworkAppliance | NetworkApplianceInfoType | Defines settings for the network extension appliance deployed for the tenant account. To learn more, see Network Extension Options. | Yes | 1/1 |
<ComputeResources> |
vCloud Compute Resource Options
You can specify the following settings for the tenant vCloud compute resource:
Element | Type | Description | Modifiable | Min/Max Occurrence |
---|---|---|---|---|
UseNetworkFailoverResources | Boolean | Defines whether the network extension appliance must be deployed for the vCloud Director tenant account. Possible values:
| Yes | 1/1 |
NetworkAppliance | NetworkApplianceInfoType | If UseNetworkFailoverResources option is set to True, you can pass parameters for the network extension appliance in the NetworkAppliance section of the request body. To learn more, see Network Extension Options. | Yes | 0/1 |
WanAcceleratorUid | URN | ID of the WAN accelerator that must be used as a target WAN accelerator. This parameter must be specified if you want tenants to work with vCloud hosts via WAN accelerators. | Yes | 0/1 |
<VCloudComputeResources> |
Element | Type | Description | Modifiable | Min/Max Occurrence |
---|---|---|---|---|
Name | String | Name for the network extension appliance. | Yes | 1/1 |
ProductionNetwork | String | Network label that identifies the port group to which you want to connect the network extension appliance. The port group is configured on the virtual switch in the SP virtualization environment and provides networking for the Veeam Cloud Connect infrastructure. | Yes | 1/1 |
ObtainIpAddressAutomatically | Boolean | Defines whether network settings must be configured automatically for the network extension appliance. Possible values:
If you set this option to False, you must pass network settings for the network extension appliance in the ManualIPAdressSettings section of the request body. To learn more, see Manual Ip Addressing Options. | Yes | 1/1 |
ViDistributedSwitch | String | ID of the Distributed Virtual Switch on which the port group specified in the ProductionNetwork field is configured. | Yes | 0/1 |
ProductionNetworkUnderDvs | Boolean | Defines whether the port group to which the network extension appliance must be connected is configured on a Distributed Virtual Switch. Possible values:
If you set this option to True, you must pass ID of the Distributed Virtual Switch in the ViDistributedSwitch element. | Yes | 0/1 |
<NetworkAppliance> |
Element | Type | Description | Modifiable | Min/Max Occurrence |
---|---|---|---|---|
IpAddress | IPv4 | IP address for the network extension appliance. | Yes | 1/1 |
SubnetMask | IPv4 | Subnet mask for the network extension appliance. | Yes | 1/1 |
DefaultGateway | IPv4 | Default gateway for the network extension appliance. | Yes | 1/1 |
<NetworkAppliance> |
Specifes the cloud gateway pool to assign to the tenant account.
Element | Type | Description | Modifiable | Min/Max Occurrence |
---|---|---|---|---|
CloudGatewayPoolUid | URN | UID of the cloud gateway pool which the tenant account will use. Can be taken from /cloud/gatewayPools. | Yes | 0/1 |
<CloudGatewayPools> |
The server returns the following response to the client.
A successfully completed operation returns response code 202 Accepted.
Header | Description |
---|---|
Content-length | The length of the response body. |
Content-type | The media type and syntax of the request body message. Possible values:
|
Request: PUT https://localhost:9398/api/cloud/tenants/4f90635a-7ecc-49fe-beb6-60b37eb4bd89
Request Headers: X-RestSvcSessionId NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj
Request Body: <?xml version="1.0" encoding="utf-8"?>
Response: 202 Accepted
Response Body: <Task xmlns="http://www.veeam.com/ent/v1.0" Type="Task" Href="https://localhost:9398/api/tasks/task-1"> |
Request: GET https://localhost:9398/api/tasks/task-1
Request Header: X-RestSvcSessionId NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj
Response: 200 OK
Response Body: <Task xmlns="http://www.veeam.com/ent/v1.0" Type="Task" Href="https://localhost:9398/api/tasks/task-1"> |