Get-LMDatasourceGraph
Syntax
Section titled “Syntax”Id-dsName
Section titled “Id-dsName”Get-LMDatasourceGraph -Id <int> -DataSourceName <string> [-BatchSize <int>] [<CommonParameters>]Id-dsId
Section titled “Id-dsId”Get-LMDatasourceGraph -Id <int> -DataSourceId <string> [-BatchSize <int>] [<CommonParameters>]Filter-dsName
Section titled “Filter-dsName”Get-LMDatasourceGraph -DataSourceName <string> -Filter <Object> [-BatchSize <int>] [<CommonParameters>]Name-dsName
Section titled “Name-dsName”Get-LMDatasourceGraph -DataSourceName <string> -Name <string> [-BatchSize <int>] [<CommonParameters>]dsName
Section titled “dsName”Get-LMDatasourceGraph -DataSourceName <string> [-BatchSize <int>] [<CommonParameters>]Filter-dsId
Section titled “Filter-dsId”Get-LMDatasourceGraph -DataSourceId <string> -Filter <Object> [-BatchSize <int>] [<CommonParameters>]Name-dsId
Section titled “Name-dsId”Get-LMDatasourceGraph -DataSourceId <string> -Name <string> [-BatchSize <int>] [<CommonParameters>]Get-LMDatasourceGraph -DataSourceId <string> [-BatchSize <int>] [<CommonParameters>]Description
Section titled “Description”The Get-LMDatasourceGraph function retrieves graph information from LogicMonitor datasources. It can retrieve graphs by ID, name, or by their associated datasource using either datasource ID or name.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”#Retrieve a graph by ID from a specific datasourceGet-LMDatasourceGraph -Id 123 -DataSourceId 456EXAMPLE 2
Section titled “EXAMPLE 2”#Retrieve graphs by name from a datasourceGet-LMDatasourceGraph -Name "CPU Usage" -DataSourceName "CPU"Parameters
Section titled “Parameters”-BatchSize
Section titled “-BatchSize”The number of results to return per request. Must be between 1 and 1000. Defaults to 1000.
Type: System.Int32DefaultValue: 1000SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DataSourceId
Section titled “-DataSourceId”The ID of the datasource to retrieve graphs from. This parameter is mandatory for dsId, Id-dsId, Name-dsId, and Filter-dsId parameter sets.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Filter-dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DataSourceName
Section titled “-DataSourceName”The name of the datasource to retrieve graphs from. This parameter is mandatory for dsName, Id-dsName, Name-dsName, and Filter-dsName parameter sets.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Filter-dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Filter
Section titled “-Filter”A filter object to apply when retrieving graphs. This parameter is mandatory for Filter-dsId and Filter-dsName parameter sets.
Type: System.ObjectDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Filter-dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Filter-dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''The ID of the graph to retrieve. This parameter is mandatory when using the Id-dsId or Id-dsName parameter sets.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: Id-dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Id-dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''The name of the graph to retrieve. This parameter is mandatory for Name-dsId and Name-dsName parameter sets.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Name-dsName Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Name-dsId Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.