Wes Carroll's Profile
Recent Activity
Hi Colleen, I happen to run into this issue as well when running Zerto 7.0. This was a bug in the API, but has been resolved in Zerto 7.5. Thanks, Wes
Project Idea: Create a PowerShell Core module that wraps the Zerto Virtual Manager REST API into easy to use functions. Description: Make PowerShell automation easier by wrapping the Zerto Virtual Manager REST API functionality into an easy to use PowerShell Module that can be downloaded from the PowerShell gallery. What the project needs: While the […]
Thinking about this a bit more, I think I would approach the loop as I have outlined here in this Gist. I’ve included the linked code below, but believe the gist will have better readability. foreach ($volume in $VolumeList){ $volumeUri = "$VMSettingsUrl/volumes/$($volume.volumeIdentifier)" $currentVolume = Invoke-RestMethod -Uri $volumeUri -Method GET -TimeoutSec 100 -Headers $ZertosessionHeader -ContentType $TypeJSON […]
Hi Jason, Just looking at the code snippit you have provided, it seems that you are attempting to only PUT the volume information for one volume at a time. I believe you need to be updating your URI to something along the lines of: $ChangeVolumeLocationRequest = Invoke-RestMethod -Uri $VMSettingsURL/volumes/{volumeId} -Method PUT -TimeoutSec 100 -Headers $ZertosessionHeader […]
The current way to accomplish this goal is to create the VpgSettings object to edit, then make a DELETE call to remove the information from the NIC settings at https://server:9669/v1/vgpSettings/<vpgSettingsIdentifier>/vms/<vmIdentifier>/nics/<nicIdentifier>, documented here: Zerto Virtual Replication – REST API – VPG Settings – DELETE Once you do that, if you deleted any Default settings, you will […]