When calling api monitor API, an error occurs: Invoke-RestMethod :Not Found HTTP Error 404.
book
Article ID: CTX463623
calendar_today
Updated On:
Description
While trying to call the api "http:///Citrix/Monitor/OData/v4/Data/$metadata" it throws an error. "Invoke-RestMethod : Not Found Not Found HTTP Error 404. The requested resource is not found."
Ports 80 & 443 are open between source and destination servers.
Resolution
Issue was with the URL used. http:///Citrix/Monitor/OData/v4/Data/$metadata
In this case, 7.15 CU6 was in use.
7.15 Cu6 will only work with V3.
V4 was added from 7.16 and above so this is why the previous URL was not working as it was expecting the Citrix version to be 7.16 or higher but it was on 7.15.
To resolve issue, URL needed to be updated to: http:///Citrix/Monitor/OData/v3/Data/$metadata
Problem Cause
http:///Citrix/Monitor/OData/v4/Data/$metadata was in use instead of http:///Citrix/Monitor/OData/v3/Data/$metadata
Issue/Introduction
API calling wrong URL based on the version of Citrix used.
Was this article helpful?
thumb_up
Yes
thumb_down
No