GET command not sending authentication header

This is the first time I’m using Postman so pls be gentle.
I’m programming in PowerShell to connect to a Zerto ZVM server to get replication details. The code uses APIs to request the data. But on one server it is not working.
So I’m testing the commands using Postman and I keep getting the error:

{
“Message”: “This call does not include mandatory Authorization header information”
}
or

401 Unauthorized

Command I’m sending is:
GET httpx://172.92.34.20:9669/v1/vpgs

In Postman, I set the Authorization to:
Type: Basic Auth
Username: xyz
Password: abc

I checked the console when sending the GET API and I see this:

GET httpx://172.92.34.20:9669/v1/vpgs
Warning: Self signed certificate
Network
Request Headers
Authorization: Basic aWFhczAxXHN2Yy16dXXXXXXXXXXXXXXXZXJ0b2lzQXdlc29tZSE=
User-Agent: PostmanRuntime/7.29.2
Accept: /
Cache-Control: no-cache
Postman-Token: 82029fa1-46b9-488e-8e4b-c3b661fda296
Host: 172.92.34.20:9669
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Request Body
Response Headers
Date: Wed, 16 Nov 2022 04:48:17 GMT
Content-Type: application/json; charset=utf-8
Cache-Control: no-store,no-cache
Pragma: no-cache
Transfer-Encoding: chunked
Content-Encoding: gzip
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
x-zerto-message-running-number: 638018922778547712
Response Body
{“Message”:“This call does not include mandatory Authorization header information”}

This command works OK:
GET httpx://172.92.34.20:9669/v1
…and result with:

[
{
“rel”: “down”,
“href”: “httpx://172.92.34.20:9669/v1/events”,
“type”: “IEventsService”
},
{
“rel”: “down”,
“href”: “httpx://172.92.34.20:9669/v1/vpgs”,
“type”: “IVpgService”
},
{
“rel”: “down”,
“href”: “httpx://172.92.34.20:9669/v1/vms”,
“type”: “IVmService”
},
…
…

I’m not sure what’s going on?

Hi, does anyone know how to help with this?

Hi @JDMils

Not 100% sure as I have never used zerto.

But reading their docs it looks like you have to create a session?

The pages I was looking at are:

https://help.zerto.com/en-US/bundle/ZIC_1.1.HTML/page/ZIC_Operations_using_APIs_and_Postman.htm

and

https://help.zerto.com/bundle/API.ZCM.HTML/page/Starting_a_Session.htm