LogicMonitor icon

LogicMonitor

Interact with the LogicMonitor API

Datasource → Get

AI-generated

Summary

Retrieve a single datasource by its ID.

Inputs

  • datasourceId (required) — The ID of the datasource to retrieve.
  • options — Optional configuration for response fields and format.

Output shape

A single datasource object, formatted as JSON or XML per the format parameter.

The datasourceId parameter is required. The options collection may include fields (comma-separated string) to filter returned fields, and format (json or xml) to specify response format. Both are passed as query parameters to the LogicMonitor API.

Examples

Example 1: Fetch datasource ID 42 with JSON format and select `name,status` fields.

datasourceId: 42; options.fields: name,status; options.format: json

Links

Discussion