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

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.

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