api/v2/ifservices endpoint does not expose ID and IpInterface in JSON results

Description

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.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Christian Pape February 19, 2020 at 10:44 AM

Merged.

Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created January 28, 2020 at 2:16 PM
Updated February 19, 2020 at 12:13 PM
Resolved February 19, 2020 at 10:44 AM