Skip to content

New GrafanaFolder

Stephen Valdinger edited this page Apr 5, 2019 · 2 revisions

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

New-GrafanaFolder

SYNOPSIS

Create a new folder in Grafana via the API

SYNTAX

New-GrafanaFolder [-Title] <String> [[-Uid] <String>] [<CommonParameters>]

DESCRIPTION

The Grafana API allows you to create new folders. This cmdlet accomplishes this. Title is required, but you may supply an optional Uid. If you don't specify a Uid, one will be generated for you by the API at runtime.

EXAMPLES

EXAMPLE 1

New-GrafanaFolder -Title "My Awesome Folder"

Creates a new folder in Grafana called "My Awesome Folder"

EXAMPLE 2

New-GrafanaFolder -Title "Web Farm Folder" -Uid nErXDvCkzz

Creates a new folder in Grafana called "Web Farm Folder" with a Uid of nErXDvCkzz

PARAMETERS

-Title

The title of the folder you wish to create with the API

Type: String
Parameter Sets: (All)
Aliases:

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

-Uid

The uid to give the folder when created by the API

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

General notes

RELATED LINKS

Get-GrafanaFolder

Clone this wiki locally