Christopher Lewis's Profile
About Christopher
Recent Activity
Jason – I’ve created a PS Module that wraps most of Rest API functionality in simple Powershell commandlets available here https://www.powershellgallery.com/packages/ZertoModule/ . For example, to get the local site’s information you would use: Get-ZertoLocalSite In your case, you’d use something like: $VPGID = Get-ZertoVPGID -VpgName “MyVPG” $VPGSettingID = Convert-ZertoVPGToVPGSetting -ZertoVpgIdentifier $VPGID $NewVM = New-ZertoVPGSettingVM -VmIdentifier […]
Actually, found it – $baseURL + “virtualizationsites/” + $ZertoSiteIdentifier + “/repositories” Seems to not be documented in the REST API docs.
I’m trying to work with the VPGSettings calls and am looking at the Backup part of the JSON file. How do you retrieve a Peer Sites Backup Repositories? I’m looking at retrieving the backup repository ID.
Found the error in the logs – 00000000,00000000,16-12-19 11:07:30.48,W,60,Utils,PreserveExceptionStackTrace,”Exception FormatException (Limit in MB value must be assigned), cannot be serialized to preserve Stack, skipping. System.FormatException: Limit in MB value must be assigned at Zerto.Zvm.Api.VpgSettings.Facade.Convertors.VpgSettingApiConvertionUtils.LogErrorAndThrowException(String errorTxt) in E:\athena_main\dev\system\Zvm\Zerto.Zvm.API\VpgSettings\Facade\Convertors\VpgSettingApiConvertionUtils.cs:line 53 at Zerto.Zvm.Api.VpgSettings.Facade.Convertors.VpgSettingApiConvertionUtils.InformErrors(List`1 listOfErrors) in E:\athena_main\dev\system\Zvm\Zerto.Zvm.API\VpgSettings\Facade\Convertors\VpgSettingApiConvertionUtils.cs:line 38 at Zerto.Zvm.Api.VpgSettings.Facade.Convertors.VpgSettingsCommitConverter.Commit(String vpgSettingsIdentifier) in E:\athena_main\dev\system\Zvm\Zerto.Zvm.API\VpgSettings\Facade\Convertors\VpgSettingsCommitConverter.cs:line 39 at Zerto.Zvm.Api.VpgSettings.Facade.ZvmApiVpgSettingsFacade.VpgSettingsCommit(String vpgSettingsIdentifier) in E:\athena_main\dev\system\Zvm\Zerto.Zvm.API\VpgSettings\Facade\ZvmApiVpgSettingsFacade.cs:line […]
I’m trying to to use the reference to changing a VPG’s name in section 7 in “Automating Zerto Virtual Replication with PowerShell & REST APIs Whitepaper” I can call the POST VPGSettings with the appropriate body to convert a VPG to a VPGSettings. However, when I commit, I get a a 400 error Unknown web […]