VMware Cloud Community
jonathanvh
Enthusiast
Enthusiast

SRM REST API issues - GET pairings

Hi all,

I am working with the REST API for SRM.

And I'm struggling a bit with getting the pairings via Postman

I did the login via POST https://{api_host}//session

I have my "session_id"

When I'm doing the GET https://{api_host}/pairings

 I pass the session_id via x-dr-session in the headers 

 

And when I execute the GET pairing I get this error:

{
    "error_code""2.1",
    "message""Unable to retrieve pairs from extension server at https://SRM_URL:443/drserver/vcdr/vmomi/sdk.Unable to login to 'Site Recovery Manager Server at https://SRM_URL:443/drserver/vcdr/vmomi/sdk'.",
    "op_id""e9bc8488-30c2-4d7c-914f-5a55f302d62a"
}
 
 
When I'm doing GET https://{{srm-url}}/api/rest/srm/v1/server/info it is working fine.
Am I forgetting something?
 
Thanks in advance.
Labels (3)
0 Kudos
2 Replies
jordanovi
VMware Employee
VMware Employee

Hi

I would recommend filing an SR. We will need to check the logs. Is the UI client fully functional for that pair ?

0 Kudos
jonathanvh
Enthusiast
Enthusiast

Yes, everything is working as it should be via the GUI.

So I guess I will open a SR for this.

Thanks

0 Kudos