Code: Select all
[Veeam.Backup.DBManager.CDBManager]::Instance.Backups.FindBackupsByQuotaIds(guid[] quotaIds)
Code: Select all
PS C:\> [Veeam.Backup.DBManager.CDBManager]::Instance.Backups.FindBackupsByQuotaIds($orgQuotaId)
Exception calling "FindBackupsByQuotaIds" with "1" argument(s): "Type
'System.Linq.Enumerable+WhereSelectEnumerableIterator`2[[System.Collections.Generic.KeyValuePair`2[[System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089],[System.Collections.Generic.LinkedList`1[[Veeam.Backup.Model.CBackupInfo, Veeam.Backup.Model, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=bfd684de2276783a]], System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089],[Veeam.Backup.Common.Grouping`2[[System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089],[Veeam.Backup.Model.CBackupInfo, Veeam.Backup.Model, Version=11.0.0.0, Culture=neutral, PublicKeyToken=bfd684de2276783a]],
Veeam.Backup.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=bfd684de2276783a]]' in Assembly 'System.Core, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' is not marked as serializable."
At line:1 char:1
+ [Veeam.Backup.DBManager.CDBManager]::Instance.Backups.FindBackupsByQu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SerializationException
Code: Select all
$orgQuotaId = ([Veeam.Backup.Core.CJobQuota]::FindByOrganization(Veeam.Backup.Model.CVcdOrganization org, guid repositoryId).Id)