• This topic has 2 replies, 2 voices, and was last updated March 15, 2023 by mshadow@sfbcic.com.

API to start failover test fails

  • I don’t use Cmdlets because I want to just learn one method across all application I script. Instead, I am using the POST method with Invoke_RestMethod and/or Invoke_WebRequest. Both return the same error.

    I can run the call from swagger and it works, but when I run the same call from PowerShell, I get the following error:

    “Cannot automatically assign Host to new VPG on target”.

    The URL and body format I am using is below:

    https://<server>:<port>/v1/vpgs/<vpgidentifier>/FailoverTest

    {
      "checkpointIdentifier": "<tag ID>"
    }

     

    I also tried using the full body JSON.

    {
      "checkpointIdentifier": "string",
      "vmIdentifiers": [
        "string"
      ]
    }
    
    I still got the same error.
You must be logged in to create new topics. Click here to login