• This forum has 177 topics, 358 replies, and was last updated October 22, 2024 by Paul B.
    • Scripting and APIs
    • Power BI guidance for Zerto Analytics

      Trying to connect to Analytics via Power BI.  Just looking for license usage at this point.  Anyone have any suggestions for how to form the request in Power BI?  I am attempting using below: URL – http://analytics.api.zerto.com/v2/auth/token’ accept – application/json Here’s the error message: Unable to connect We encountered an error trying to connect. Details: […]

    • People: 3
      Replies: 2
    • August 3, 2021
    • Amend failover IP address for existing VPG via API

      Hello I am having trouble with NIC configuration via the API using a powershell script > REST call. I already have automation to create VPGs. I wish to be able to add failover IP address config to a given VM (values currently unset). I have spent a long time trying to get this to work […]

    • People: 1
      Replies: 0
    • July 6, 2021
    • Edit Recovery Site

      Greetings all. I am new to scripting and I was curious if there is a way to create/modify existing VPGs to change the Source and more importantly Recovery sites. I cannot find anything that allows you to modify it. Thank you.

    • People: 1
      Replies: 0
    • April 30, 2021
    • Remove a VM from a VPG without preserving disk

      Trying to remove a VM from a VPG (part of a decommission workflow) with out preserving the target disk. Using the API we are able to remove the VM with no issues it however does not remove the target Volume. How can this be completed?

    • People: 2
      Replies: 3
    • April 9, 2021
    • Recovery Data Size/Recovery Storage:

      Hi There, Just wondering, is there a way to pull the “Recovery Data Size” back using API or Powershell at all? I’m aware of the method to grab from https://zvm_ip:port/v1/vpgs etc, but this pulls back UsedStorageInMB – What I want is to pull back the Recovery Data Size that is also shown when you look at the […]

    • People: 1
      Replies: 12
    • March 23, 2021
    • Problems with getting started with powershell

      Hi, I’m new to Zerto and could do with some pointers, please? I’ve installed the Zerto cmdlet on to ZVM server but when I try and run any commands I get an error like below: Get-CheckPoints : Could not load file or assembly ‘netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies. The system cannot […]

    • People: 1
      Replies: 0
    • February 28, 2021
    • API Not Returning Expected Values for VMs

      I’m attempting to work with the Zerto Analytics API: https://docs.api.zerto.com/#/ When I get the list of all protected VM’s the Zorg information is not returned. I’ve verified the VM’s are in the correct zorgs and can find them under the expected Zorg in our analytics portal. Based on the swagger documentation I would expect a […]

    • People: 1
      Replies: 0
    • January 4, 2021
    • Journal Datastore set to Auto

      Is there a way to set the journal datastore to Auto? All of our GUI built VPGs are set to auto. However the API fails when the DatastoreIdentifier is set to anything other than a valid identifier. https://zvm_ip:port/v1/vpgsettings “Journal”: { “DatastoreClusterIdentifier”: “########-####-####-####-############.group-p######”, “DatastoreIdentifier”: null, “Limitation”: { “HardLimitInMB”: 153600, “HardLimitInPercent”: null, “WarningThresholdInMB”: 115200, “WarningThresholdInPercent”: null } […]

    • People: 1
      Replies: 0
    • December 18, 2020
    • Error starting session

      I’m getting the following error: “Message”:”Exception occurred in API: The property ‘username’ is not supported for this request. Please review the documentation for valid properties.” The script snippet that is causing this error is: #import and set credential variable $xmlPath = “$env:USERPROFILE\” + $userName + “.clixml” $zvmCredential = Import-Clixml -Path $xmlPath #create start session URL […]

    • People: 1
      Replies: 0
    • November 4, 2020
    • Trying to list protected VMs

      Hi, I’m trying complete a major procedure in which I’d like to list the ZERTO protected VMs on my VMWARE environment I type the following command: Get-VmsReplicatingToHost -ZVMIP ZVMIP -ZVMPort 9080 -username myuser@domain -password mypwd -hostip HOSTIP but I get the following answer Error: Unknown Username or Incorrect Password , of course, I’m sure of my […]

    • People: 3
      Replies: 3
    • October 29, 2020
    • API: How to modify journal size for VPG and VM

      I have managed to figure out how to modify the VPG settings for “journal size hard limit” and “journal size warning threshold” invoking this URL: https://zvm_ip:port/v1/vpgSettings/{vpgSettingsIdentifier}/journal   However I also need to modify the VM settings for “journal size hard limit” and “journal size warning threshold”.  This URL doesn’t seem to work: https://zvm_ip:port/v1/vpgSettings/{vpgSettingsIdentifier}/vms/{vmIdentifier}/journal   Any […]

    • People: 1
      Replies: 0
    • October 8, 2020
    • Change wallpaper script

      Does anyone have a PS script to change the wallpaper for the test failover vm guests vpg’s?  I’m looking to change up the look so the admins know they are working on a different environment as to not be confused with production when working with and testing the failover site and RDP’d into it.

    • People: 2
      Replies: 2
    • October 6, 2020
    • DNS Pre / Post – Recovery Script:

      <b>References:</b> https://www.zerto.com/myzerto/forums/topic/update-vm-dns-after-failover/page/2/#post-7281 https://www.zerto.com/myzerto/knowledge-base/running-scripts-before-or-after-recovering-a-vpg/ https://www.zerto.com/myzerto/knowledge-base/00000034/ https://assurestor.freshdesk.com/support/solutions/articles/16000045863-example-pre-recovery-post-recovery-scripts <u><b>Disclaimer </b></u><u><b>Warnings:</b></u> Pre or Post Recovery Script work on Test or Live Failovers (so consider pulling Script Configs in VPG for Tests) Be 100% sure that all DNS references in CSV files are 100% correct at Protection or Recovery Site because the script will delete and create according to what is in the […]

    • People: 1
      Replies: 6
    • October 1, 2020

The forum ‘Scripting and APIs’ is closed to new topics and replies.