Actions31
- Alert Actions
- Collector Actions
- Datasource Actions
- Device Actions
- Device Group Actions
- SDT (Scheduled Downtime) Actions
Datasource → Get
AI-generatedSummary
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
datasourceIdparameter is required. Theoptionscollection may includefields(comma-separated string) to filter returned fields, andformat(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