we're testing the new part of api working with /cloud/tenants. However, when trying to PUT a request to change specific tenant at /cloud/tenants/{id} we're receiving 500 Internal Server Error. The same is happening when trying to POST a request to add storage quota on a resource at /cloud/tenants/{id}/resources.
The response body looks like this:
Code: Select all
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Error 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 StatusCode="500" Message="Object reference not set to an instance of an object.">
<FirstChanceExceptionMessage>Object reference not set to an instance of an object.</FirstChanceExceptionMessage>
<StackTrace>Veeam.Backup.Interaction.RestAPI.CRestAPICommunicationException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Veeam.Backup.Enterprise.RestAPIService.CRestApiCloudTenantsScope.EditCloudTenant(String tenantIdStr, CloudTenantEntityType entity)
at Veeam.Backup.Enterprise.RestAPIService.CEnterpriseRestServiceStub.EditCloudTenant(String tenantIdOrName, CloudTenantEntityType entity)
at SyncInvokeEditCloudTenant(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
--- End of inner exception stack trace ---</StackTrace>
</Error>
Another question, is it possible to create a tenant from API? There is no documentation on creating /cloud/tenant with POST. Is there any other way to create the tenant or is there a plan to add this feature to the API?
Thanks.