1. Registry
  2. Packages
  3. Scaleway
  4. API Docs
  5. observability
  6. getGrafanaProductDashboard
Viewing docs for Scaleway v1.62.1
published on Friday, Nov 13, 2026 by pulumiverse
scaleway logo
Viewing docs for Scaleway v1.62.1
published on Friday, Nov 13, 2026 by pulumiverse

    Gets information about a single Scaleway product dashboard in Cockpit Grafana.

    Use this data source when you know the dashboard name (from the console or from scaleway.observability.getGrafanaProductDashboards) and need its URL, title, tags, or variables.

    Refer to Cockpit’s product documentation and API documentation for more information.

    Example Usage

    Basic usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const rdb = scaleway.observability.getGrafanaProductDashboard({
        projectId: projectId,
        dashboardName: "rdb",
    });
    export const rdbDashboardUrl = rdb.then(rdb => rdb.url);
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    rdb = scaleway.observability.get_grafana_product_dashboard(project_id=project_id,
        dashboard_name="rdb")
    pulumi.export("rdbDashboardUrl", rdb.url)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/observability"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		rdb, err := observability.GetGrafanaProductDashboard(ctx, &observability.GetGrafanaProductDashboardArgs{
    			ProjectId:     pulumi.StringRef(projectId),
    			DashboardName: "rdb",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("rdbDashboardUrl", rdb.Url)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var rdb = Scaleway.Observability.GetGrafanaProductDashboard.Invoke(new()
        {
            ProjectId = projectId,
            DashboardName = "rdb",
        });
    
        return new Dictionary<string, object?>
        {
            ["rdbDashboardUrl"] = rdb.Apply(getGrafanaProductDashboardResult => getGrafanaProductDashboardResult.Url),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.observability.ObservabilityFunctions;
    import com.pulumi.scaleway.observability.inputs.GetGrafanaProductDashboardArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            final var rdb = ObservabilityFunctions.getGrafanaProductDashboard(GetGrafanaProductDashboardArgs.builder()
                .projectId(projectId)
                .dashboardName("rdb")
                .build());
    
            ctx.export("rdbDashboardUrl", rdb.url());
        }
    }
    
    variables:
      rdb:
        fn::invoke:
          function: scaleway:observability:getGrafanaProductDashboard
          arguments:
            projectId: ${projectId}
            dashboardName: rdb
    outputs:
      rdbDashboardUrl: ${rdb.url}
    
    terraform {
      required_providers {
        scaleway = {
          source = "pulumi/scaleway"
        }
      }
    }
    
    data "scaleway_observability_grafana_product_dashboard" "rdb" {
      project_id     = projectId
      dashboard_name = "rdb"
    }
    
    output "rdbDashboardUrl" {
      value = data.scaleway_observability_grafana_product_dashboard.rdb.url
    }
    

    From the list data source

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const all = scaleway.observability.getGrafanaProductDashboards({
        projectId: projectId,
        tags: ["rdb"],
    });
    const first = all.then(all => scaleway.observability.getGrafanaProductDashboard({
        projectId: projectId,
        dashboardName: all.names?.[0],
    }));
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    all = scaleway.observability.get_grafana_product_dashboards(project_id=project_id,
        tags=["rdb"])
    first = scaleway.observability.get_grafana_product_dashboard(project_id=project_id,
        dashboard_name=all.names[0])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/observability"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		all, err := observability.GetGrafanaProductDashboards(ctx, &observability.GetGrafanaProductDashboardsArgs{
    			ProjectId: pulumi.StringRef(projectId),
    			Tags: []string{
    				"rdb",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = observability.GetGrafanaProductDashboard(ctx, &observability.GetGrafanaProductDashboardArgs{
    			ProjectId:     pulumi.StringRef(projectId),
    			DashboardName: all.Names[0],
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Scaleway.Observability.GetGrafanaProductDashboards.Invoke(new()
        {
            ProjectId = projectId,
            Tags = new[]
            {
                "rdb",
            },
        });
    
        var first = Scaleway.Observability.GetGrafanaProductDashboard.Invoke(new()
        {
            ProjectId = projectId,
            DashboardName = all.Apply(getGrafanaProductDashboardsResult => getGrafanaProductDashboardsResult.Names[0]),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.observability.ObservabilityFunctions;
    import com.pulumi.scaleway.observability.inputs.GetGrafanaProductDashboardsArgs;
    import com.pulumi.scaleway.observability.inputs.GetGrafanaProductDashboardArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            final var all = ObservabilityFunctions.getGrafanaProductDashboards(GetGrafanaProductDashboardsArgs.builder()
                .projectId(projectId)
                .tags("rdb")
                .build());
    
            final var first = ObservabilityFunctions.getGrafanaProductDashboard(GetGrafanaProductDashboardArgs.builder()
                .projectId(projectId)
                .dashboardName(all.names()[0])
                .build());
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: scaleway:observability:getGrafanaProductDashboards
          arguments:
            projectId: ${projectId}
            tags:
              - rdb
      first:
        fn::invoke:
          function: scaleway:observability:getGrafanaProductDashboard
          arguments:
            projectId: ${projectId}
            dashboardName: ${all.names[0]}
    
    terraform {
      required_providers {
        scaleway = {
          source = "pulumi/scaleway"
        }
      }
    }
    
    data "scaleway_observability_grafana_product_dashboards" "all" {
      project_id = projectId
      tags       = ["rdb"]
    }
    data "scaleway_observability_grafana_product_dashboard" "first" {
      project_id     = projectId
      dashboard_name = data.scaleway_observability_grafana_product_dashboards.all.names[0]
    }
    

    Using getGrafanaProductDashboard

    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 getGrafanaProductDashboard(args: GetGrafanaProductDashboardArgs, opts?: InvokeOptions): Promise<GetGrafanaProductDashboardResult>
    function getGrafanaProductDashboardOutput(args: GetGrafanaProductDashboardOutputArgs, opts?: InvokeOutputOptions): Output<GetGrafanaProductDashboardResult>
    def get_grafana_product_dashboard(dashboard_name: Optional[str] = None,
                                      project_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetGrafanaProductDashboardResult
    def get_grafana_product_dashboard_output(dashboard_name: pulumi.Input[Optional[str]] = None,
                                      project_id: pulumi.Input[Optional[str]] = None,
                                      opts: Optional[InvokeOutputOptions] = None) -> Output[GetGrafanaProductDashboardResult]
    func GetGrafanaProductDashboard(ctx *Context, args *GetGrafanaProductDashboardArgs, opts ...InvokeOption) (*GetGrafanaProductDashboardResult, error)
    func GetGrafanaProductDashboardOutput(ctx *Context, args *GetGrafanaProductDashboardOutputArgs, opts ...InvokeOption) GetGrafanaProductDashboardResultOutput

    > Note: This function is named GetGrafanaProductDashboard in the Go SDK.

    public static class GetGrafanaProductDashboard 
    {
        public static Task<GetGrafanaProductDashboardResult> InvokeAsync(GetGrafanaProductDashboardArgs args, InvokeOptions? opts = null)
        public static Output<GetGrafanaProductDashboardResult> Invoke(GetGrafanaProductDashboardInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetGrafanaProductDashboardResult> Invoke(GetGrafanaProductDashboardInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetGrafanaProductDashboardResult> getGrafanaProductDashboard(GetGrafanaProductDashboardArgs args, InvokeOptions options)
    public static Output<GetGrafanaProductDashboardResult> getGrafanaProductDashboard(GetGrafanaProductDashboardArgs args, InvokeOptions options)
    public static Output<GetGrafanaProductDashboardResult> getGrafanaProductDashboard(GetGrafanaProductDashboardArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: scaleway:observability/getGrafanaProductDashboard:getGrafanaProductDashboard
      arguments:
        # arguments dictionary
    data "scaleway_observability_get_grafana_product_dashboard" "name" {
        # arguments
    }

    The following arguments are supported:

    DashboardName string
    Name of the Grafana product dashboard to retrieve.
    ProjectId string
    The ID of the project the dashboard belongs to. Defaults to the project configured in the provider.
    DashboardName string
    Name of the Grafana product dashboard to retrieve.
    ProjectId string
    The ID of the project the dashboard belongs to. Defaults to the project configured in the provider.
    dashboard_name string
    Name of the Grafana product dashboard to retrieve.
    project_id string
    The ID of the project the dashboard belongs to. Defaults to the project configured in the provider.
    dashboardName String
    Name of the Grafana product dashboard to retrieve.
    projectId String
    The ID of the project the dashboard belongs to. Defaults to the project configured in the provider.
    dashboardName string
    Name of the Grafana product dashboard to retrieve.
    projectId string
    The ID of the project the dashboard belongs to. Defaults to the project configured in the provider.
    dashboard_name str
    Name of the Grafana product dashboard to retrieve.
    project_id str
    The ID of the project the dashboard belongs to. Defaults to the project configured in the provider.
    dashboardName String
    Name of the Grafana product dashboard to retrieve.
    projectId String
    The ID of the project the dashboard belongs to. Defaults to the project configured in the provider.

    getGrafanaProductDashboard Result

    The following output properties are available:

    DashboardName string
    Id string
    The ID of the data source ({project_id}/{name}).
    Name string
    Dashboard name.
    ProjectId string
    Tags List<string>
    Dashboard tags.
    Title string
    Human-readable dashboard title.
    Url string
    URL to open the dashboard in Grafana.
    Variables List<string>
    Dashboard variables.
    DashboardName string
    Id string
    The ID of the data source ({project_id}/{name}).
    Name string
    Dashboard name.
    ProjectId string
    Tags []string
    Dashboard tags.
    Title string
    Human-readable dashboard title.
    Url string
    URL to open the dashboard in Grafana.
    Variables []string
    Dashboard variables.
    dashboard_name string
    id string
    The ID of the data source ({project_id}/{name}).
    name string
    Dashboard name.
    project_id string
    tags list(string)
    Dashboard tags.
    title string
    Human-readable dashboard title.
    url string
    URL to open the dashboard in Grafana.
    variables list(string)
    Dashboard variables.
    dashboardName String
    id String
    The ID of the data source ({project_id}/{name}).
    name String
    Dashboard name.
    projectId String
    tags List<String>
    Dashboard tags.
    title String
    Human-readable dashboard title.
    url String
    URL to open the dashboard in Grafana.
    variables List<String>
    Dashboard variables.
    dashboardName string
    id string
    The ID of the data source ({project_id}/{name}).
    name string
    Dashboard name.
    projectId string
    tags string[]
    Dashboard tags.
    title string
    Human-readable dashboard title.
    url string
    URL to open the dashboard in Grafana.
    variables string[]
    Dashboard variables.
    dashboard_name str
    id str
    The ID of the data source ({project_id}/{name}).
    name str
    Dashboard name.
    project_id str
    tags Sequence[str]
    Dashboard tags.
    title str
    Human-readable dashboard title.
    url str
    URL to open the dashboard in Grafana.
    variables Sequence[str]
    Dashboard variables.
    dashboardName String
    id String
    The ID of the data source ({project_id}/{name}).
    name String
    Dashboard name.
    projectId String
    tags List<String>
    Dashboard tags.
    title String
    Human-readable dashboard title.
    url String
    URL to open the dashboard in Grafana.
    variables List<String>
    Dashboard variables.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Viewing docs for Scaleway v1.62.1
    published on Friday, Nov 13, 2026 by pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial