Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse
published on Tuesday, Mar 3, 2026 by pulumiverse
Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse
published on Tuesday, Mar 3, 2026 by pulumiverse
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const test = new grafana.oss.Folder("test", {
title: "test-folder",
uid: "test-ds-folder-uid",
});
const fromTitle = grafana.oss.getFolderOutput({
title: test.title,
});
import pulumi
import pulumi_grafana as grafana
import pulumiverse_grafana as grafana
test = grafana.oss.Folder("test",
title="test-folder",
uid="test-ds-folder-uid")
from_title = grafana.oss.get_folder_output(title=test.title)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/oss"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
test, err := oss.NewFolder(ctx, "test", &oss.FolderArgs{
Title: pulumi.String("test-folder"),
Uid: pulumi.String("test-ds-folder-uid"),
})
if err != nil {
return err
}
_ = oss.LookupFolderOutput(ctx, oss.GetFolderOutputArgs{
Title: test.Title,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumi.Grafana;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var test = new Grafana.Oss.Folder("test", new()
{
Title = "test-folder",
Uid = "test-ds-folder-uid",
});
var fromTitle = Grafana.Oss.GetFolder.Invoke(new()
{
Title = test.Title,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.oss.Folder;
import com.pulumi.grafana.oss.FolderArgs;
import com.pulumi.grafana.oss.OssFunctions;
import com.pulumi.grafana.oss.inputs.GetFolderArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new Folder("test", FolderArgs.builder()
.title("test-folder")
.uid("test-ds-folder-uid")
.build());
final var fromTitle = OssFunctions.getFolder(GetFolderArgs.builder()
.title(test.title())
.build());
}
}
resources:
test:
type: grafana:oss:Folder
properties:
title: test-folder
uid: test-ds-folder-uid
variables:
fromTitle:
fn::invoke:
function: grafana:oss:getFolder
arguments:
title: ${test.title}
Using getFolder
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFolder(args: GetFolderArgs, opts?: InvokeOptions): Promise<GetFolderResult>
function getFolderOutput(args: GetFolderOutputArgs, opts?: InvokeOptions): Output<GetFolderResult>def get_folder(org_id: Optional[str] = None,
title: Optional[str] = None,
uid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFolderResult
def get_folder_output(org_id: Optional[pulumi.Input[str]] = None,
title: Optional[pulumi.Input[str]] = None,
uid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFolderResult]func LookupFolder(ctx *Context, args *LookupFolderArgs, opts ...InvokeOption) (*LookupFolderResult, error)
func LookupFolderOutput(ctx *Context, args *LookupFolderOutputArgs, opts ...InvokeOption) LookupFolderResultOutput> Note: This function is named LookupFolder in the Go SDK.
public static class GetFolder
{
public static Task<GetFolderResult> InvokeAsync(GetFolderArgs args, InvokeOptions? opts = null)
public static Output<GetFolderResult> Invoke(GetFolderInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFolderResult> getFolder(GetFolderArgs args, InvokeOptions options)
public static Output<GetFolderResult> getFolder(GetFolderArgs args, InvokeOptions options)
fn::invoke:
function: grafana:oss/getFolder:getFolder
arguments:
# arguments dictionaryThe following arguments are supported:
getFolder Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Parent
Folder stringUid - The uid of the parent folder. If set, the folder will be nested. If not set, the folder will be created in the root folder. Note: This requires the nestedFolders feature flag to be enabled on your Grafana instance.
- Uid string
- The uid of the folder. If not set, only the title of the folder is used to find the folder.
- Url string
- The full URL of the folder.
- Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- Title string
- The title of the folder. If not set, only the uid is used to find the folder.
- Id string
- The provider-assigned unique ID for this managed resource.
- Parent
Folder stringUid - The uid of the parent folder. If set, the folder will be nested. If not set, the folder will be created in the root folder. Note: This requires the nestedFolders feature flag to be enabled on your Grafana instance.
- Uid string
- The uid of the folder. If not set, only the title of the folder is used to find the folder.
- Url string
- The full URL of the folder.
- Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- Title string
- The title of the folder. If not set, only the uid is used to find the folder.
- id String
- The provider-assigned unique ID for this managed resource.
- parent
Folder StringUid - The uid of the parent folder. If set, the folder will be nested. If not set, the folder will be created in the root folder. Note: This requires the nestedFolders feature flag to be enabled on your Grafana instance.
- uid String
- The uid of the folder. If not set, only the title of the folder is used to find the folder.
- url String
- The full URL of the folder.
- org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- title String
- The title of the folder. If not set, only the uid is used to find the folder.
- id string
- The provider-assigned unique ID for this managed resource.
- parent
Folder stringUid - The uid of the parent folder. If set, the folder will be nested. If not set, the folder will be created in the root folder. Note: This requires the nestedFolders feature flag to be enabled on your Grafana instance.
- uid string
- The uid of the folder. If not set, only the title of the folder is used to find the folder.
- url string
- The full URL of the folder.
- org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- title string
- The title of the folder. If not set, only the uid is used to find the folder.
- id str
- The provider-assigned unique ID for this managed resource.
- parent_
folder_ struid - The uid of the parent folder. If set, the folder will be nested. If not set, the folder will be created in the root folder. Note: This requires the nestedFolders feature flag to be enabled on your Grafana instance.
- uid str
- The uid of the folder. If not set, only the title of the folder is used to find the folder.
- url str
- The full URL of the folder.
- org_
id str - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- title str
- The title of the folder. If not set, only the uid is used to find the folder.
- id String
- The provider-assigned unique ID for this managed resource.
- parent
Folder StringUid - The uid of the parent folder. If set, the folder will be nested. If not set, the folder will be created in the root folder. Note: This requires the nestedFolders feature flag to be enabled on your Grafana instance.
- uid String
- The uid of the folder. If not set, only the title of the folder is used to find the folder.
- url String
- The full URL of the folder.
- org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- title String
- The title of the folder. If not set, only the uid is used to find the folder.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafanaTerraform Provider.
Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse
published on Tuesday, Mar 3, 2026 by pulumiverse
