Skip to:
When querying /api/v2/ifservices as JSON, the returned services do not contain the IP interface. The XML version exposes them using their ID.
/api/v2/ifservices
The XML version:
<service down="false" status="A" statusLong="Managed" id="183572"> <applications/> <ipInterfaceId>183565</ipInterfaceId> <lastFail>2020-01-28T08:56:56.512+01:00</lastFail> <lastGood>2020-01-28T15:12:44.492+01:00</lastGood> <serviceType id="16"> <name>Update</name> </serviceType> </service>
The JSON version:
{ "source": null, "qualifier": null, "status": "A", "notify": null, "down": false, "lastGood": 1580220768781, "lastFail": 1579157858872, "statusLong": "Managed", "serviceType": { "id": 16, "name": "Update" }, "applications": [] },
Also, the ID of the service itself is missing.
Merged.
When querying
/api/v2/ifservices
as JSON, the returned services do not contain the IP interface. The XML version exposes them using their ID.The XML version:
<service down="false" status="A" statusLong="Managed" id="183572"> <applications/> <ipInterfaceId>183565</ipInterfaceId> <lastFail>2020-01-28T08:56:56.512+01:00</lastFail> <lastGood>2020-01-28T15:12:44.492+01:00</lastGood> <serviceType id="16"> <name>Update</name> </serviceType> </service>
The JSON version:
{ "source": null, "qualifier": null, "status": "A", "notify": null, "down": false, "lastGood": 1580220768781, "lastFail": 1579157858872, "statusLong": "Managed", "serviceType": { "id": 16, "name": "Update" }, "applications": [] },
Also, the ID of the service itself is missing.