Skip to main content

15.1.5 API Reference

Not a complete API reference

The APIs listed in this section are commonly used methods summarized from the SDK examples, and are not a complete API reference. Each module lists only a subset of representative methods, and only a few methods include full parameter descriptions.

For the complete API documentation, download the SDK source package from the official website, which includes the full OpenAPI spec file (idmp-v{{VERSION}}.json).

Java and Python SDK method names follow their respective generated-code conventions. Use the name in the column for your language.

Elements API (ElementResourceApi)​

ElementResourceApi provides query, create, update, and delete operations on elements.

Method List​

Java MethodPython MethodHTTPDescription
apiV1ElementsGetapi_v1_elements_getGET /api/v1/elementsPaginated query of the element list
apiV1ElementsElementIdGetapi_v1_elements_element_id_getGET /api/v1/elements/{elementId}Get a single element by ID
apiV1ElementsPostapi_v1_elements_postPOST /api/v1/elementsCreate an element
apiV1ElementsElementIdPutapi_v1_elements_element_id_putPUT /api/v1/elements/{elementId}Update an element
apiV1ElementsElementIdDeleteapi_v1_elements_element_id_deleteDELETE /api/v1/elements/{elementId}Delete an element

Query Element List (apiV1ElementsGet)​

Returns a paginated list of elements accessible to the current user, with optional filtering by name or parent element.

NameTypeRequiredDefaultDescription
currentintegerNo1Page number, 1-based
sizeintegerNo20Records per page
parentIdintegerNo—Filter by parent element ID
keywordstringNo—Filter by keyword

Returns: PageOfBasicElementDTO

ElementResourceApi elementApi = apiClient.buildClient(ElementResourceApi.class);
ApiV1ElementsGetQueryParams params = new ApiV1ElementsGetQueryParams()
.current(1)
.size(50);
PageOfBasicElementDTO result = elementApi.apiV1ElementsGet(params);
System.out.println("Total elements: " + result.getTotal());

Get Single Element (apiV1ElementsElementIdGet)​

NameTypeRequiredDescription
elementIdintegerYesElement ID

Returns: ElementDTO

Throws: ApiException(404) — element not found

ElementDTO element = elementApi.apiV1ElementsElementIdGet(123L);
System.out.println(element.getName());
note

For the full parameter reference for create, update, and delete methods, see the OpenAPI spec file in the SDK source package.

Metrics API (MetricsResourceApi)​

MetricsResourceApi queries real-time observability metrics for the IDMP service.

Method List​

Java MethodPython MethodHTTPDescription
apiV1ObservabilityMetricsGetapi_v1_observability_metrics_getGET /api/v1/observability/metricsQuery real-time observability metrics

Query Real-Time Observability Metrics (apiV1ObservabilityMetricsGet)​

Returns real-time observability metrics for the IDMP service.

NameTypeRequiredDescription
metricCodesstringNoFilter by metric code; omit to query all available metrics

Returns: MetricsDTO

MetricsResourceApi metricsApi = apiClient.buildClient(MetricsResourceApi.class);
MetricsDTO result = metricsApi.apiV1ObservabilityMetricsGet(null);
System.out.println(result);
note

The 2.0.0.10 SDK has no MetricResourceApi or methods for metric history, latest values, or writing metric data. Do not use the api_v1_metrics_* methods from earlier documentation.

Events API (EventResourceApi)​

EventResourceApi provides query and management operations on events.

Method List​

Java MethodPython MethodHTTPDescription
apiV1EventsGetapi_v1_events_getGET /api/v1/eventsPaginated query of the event list
apiV1EventsEventIdGetapi_v1_events_event_id_getGET /api/v1/events/{eventId}Get a single event by ID
apiV1EventsEventIdConfirmPatchapi_v1_events_event_id_confirm_patchPATCH /api/v1/events/{eventId}/confirmConfirm an event
apiV1EventsEventIdDeleteapi_v1_events_event_id_deleteDELETE /api/v1/events/{eventId}Delete an event

Query Event List (apiV1EventsGet)​

Returns a paginated list of events with optional filtering by time range, status, severity, and element.

NameTypeRequiredDescription
fromTimelongNoStart time, Unix millisecond timestamp
toTimelongNoEnd time, Unix millisecond timestamp
statusEventStatusNoFilter by event status
elementIdintegerNoFilter by element ID
currentintegerNoPage number, 1-based
sizeintegerNoRecords per page
EventResourceApi eventApi = apiClient.buildClient(EventResourceApi.class);
ApiV1EventsGetQueryParams params = new ApiV1EventsGetQueryParams()
.current(1)
.size(50)
.fromTime(System.currentTimeMillis() - 86400_000L);
PageOfEventDetailDTO events = eventApi.apiV1EventsGet(params);
System.out.println("Events: " + events.getTotal());
note

For the complete method signatures and parameters, refer to the OpenAPI spec file (idmp-v{{VERSION}}.json) included in the SDK source package.