Skip to content

Get GrafanaDatasource

Stephen Valdinger edited this page Apr 3, 2019 · 1 revision

external help file: PSGrafana-help.xml Module Name: PSGrafana online version: schema: 2.0.0

Get-GrafanaDatasource

SYNOPSIS

Fetch information about Grafana datasources via the API

SYNTAX

Get-GrafanaDatasource [-All] [[-DatasourceId] <Int32>] [[-DatasourceName] <String>] [<CommonParameters>]

DESCRIPTION

EXAMPLES

EXAMPLE 1

Get-GrafanaDatasource -All

EXAMPLE 2

Get-GrafanaDatasource -DatasourceId 4

EXAMPLE 3

Get-GrafanaDatasource -Datasourcename ElasticPuppies

PARAMETERS

-All

Returns all datasources in your Grafana Instance

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-DatasourceId

The ID of the datasource for which to search

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-DatasourceName

The friendly name of the datasource for which to search

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Clone this wiki locally