Viewing docs for Scaleway v1.62.1
published on Friday, Nov 13, 2026 by pulumiverse
published on Friday, Nov 13, 2026 by pulumiverse
Viewing docs for Scaleway v1.62.1
published on Friday, Nov 13, 2026 by pulumiverse
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 dictionarydata "scaleway_observability_get_grafana_product_dashboard" "name" {
# arguments
}The following arguments are supported:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
getGrafanaProductDashboard Result
The following output properties are available:
- dashboard_
name string - id string
- The ID of the data source (
{project_id}/{name}). - name string
- Dashboard name.
- project_
id string - list(string)
- Dashboard tags.
- title string
- Human-readable dashboard title.
- url string
- URL to open the dashboard in Grafana.
- variables list(string)
- Dashboard variables.
- dashboard_
name str - id str
- The ID of the data source (
{project_id}/{name}). - name str
- Dashboard name.
- project_
id str - Sequence[str]
- Dashboard tags.
- title str
- Human-readable dashboard title.
- url str
- URL to open the dashboard in Grafana.
- variables Sequence[str]
- Dashboard variables.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
Viewing docs for Scaleway v1.62.1
published on Friday, Nov 13, 2026 by pulumiverse
published on Friday, Nov 13, 2026 by pulumiverse