1. Packages
  2. Grafana Cloud
  3. API Docs
  4. DashboardPublic
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse

grafana.DashboardPublic

Explore with Pulumi AI

grafana logo
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse
    Deprecated: grafana.index/dashboardpublic.DashboardPublic has been deprecated in favor of grafana.oss/dashboardpublic.DashboardPublic

    Manages Grafana public dashboards.

    Note: This resource is available only with Grafana 10.2+.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumiverse/grafana";
    
    // Optional (On-premise, not supported in Grafana Cloud): Create an organization
    const myOrg = new grafana.oss.Organization("my_org", {name: "test 1"});
    // Create resources (optional: within the organization)
    const myFolder = new grafana.oss.Folder("my_folder", {
        orgId: myOrg.orgId,
        title: "test Folder",
    });
    const testDash = new grafana.oss.Dashboard("test_dash", {
        orgId: myOrg.orgId,
        folder: myFolder.id,
        configJson: JSON.stringify({
            title: "My Terraform Dashboard",
            uid: "my-dashboard-uid",
        }),
    });
    const myPublicDashboard = new grafana.oss.DashboardPublic("my_public_dashboard", {
        orgId: myOrg.orgId,
        dashboardUid: testDash.uid,
        uid: "my-custom-public-uid",
        accessToken: "e99e4275da6f410d83760eefa934d8d2",
        timeSelectionEnabled: true,
        isEnabled: true,
        annotationsEnabled: true,
        share: "public",
    });
    // Optional (On-premise, not supported in Grafana Cloud): Create an organization
    const myOrg2 = new grafana.oss.Organization("my_org2", {name: "test 2"});
    const testDash2 = new grafana.oss.Dashboard("test_dash2", {
        orgId: myOrg2.orgId,
        configJson: JSON.stringify({
            title: "My Terraform Dashboard2",
            uid: "my-dashboard-uid2",
        }),
    });
    const myPublicDashboard2 = new grafana.oss.DashboardPublic("my_public_dashboard2", {
        orgId: myOrg2.orgId,
        dashboardUid: testDash2.uid,
        share: "public",
    });
    
    import pulumi
    import json
    import pulumiverse_grafana as grafana
    
    # Optional (On-premise, not supported in Grafana Cloud): Create an organization
    my_org = grafana.oss.Organization("my_org", name="test 1")
    # Create resources (optional: within the organization)
    my_folder = grafana.oss.Folder("my_folder",
        org_id=my_org.org_id,
        title="test Folder")
    test_dash = grafana.oss.Dashboard("test_dash",
        org_id=my_org.org_id,
        folder=my_folder.id,
        config_json=json.dumps({
            "title": "My Terraform Dashboard",
            "uid": "my-dashboard-uid",
        }))
    my_public_dashboard = grafana.oss.DashboardPublic("my_public_dashboard",
        org_id=my_org.org_id,
        dashboard_uid=test_dash.uid,
        uid="my-custom-public-uid",
        access_token="e99e4275da6f410d83760eefa934d8d2",
        time_selection_enabled=True,
        is_enabled=True,
        annotations_enabled=True,
        share="public")
    # Optional (On-premise, not supported in Grafana Cloud): Create an organization
    my_org2 = grafana.oss.Organization("my_org2", name="test 2")
    test_dash2 = grafana.oss.Dashboard("test_dash2",
        org_id=my_org2.org_id,
        config_json=json.dumps({
            "title": "My Terraform Dashboard2",
            "uid": "my-dashboard-uid2",
        }))
    my_public_dashboard2 = grafana.oss.DashboardPublic("my_public_dashboard2",
        org_id=my_org2.org_id,
        dashboard_uid=test_dash2.uid,
        share="public")
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/oss"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Optional (On-premise, not supported in Grafana Cloud): Create an organization
    		myOrg, err := oss.NewOrganization(ctx, "my_org", &oss.OrganizationArgs{
    			Name: pulumi.String("test 1"),
    		})
    		if err != nil {
    			return err
    		}
    		// Create resources (optional: within the organization)
    		myFolder, err := oss.NewFolder(ctx, "my_folder", &oss.FolderArgs{
    			OrgId: myOrg.OrgId,
    			Title: pulumi.String("test Folder"),
    		})
    		if err != nil {
    			return err
    		}
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"title": "My Terraform Dashboard",
    			"uid":   "my-dashboard-uid",
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		testDash, err := oss.NewDashboard(ctx, "test_dash", &oss.DashboardArgs{
    			OrgId:      myOrg.OrgId,
    			Folder:     myFolder.ID(),
    			ConfigJson: pulumi.String(json0),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = oss.NewDashboardPublic(ctx, "my_public_dashboard", &oss.DashboardPublicArgs{
    			OrgId:                myOrg.OrgId,
    			DashboardUid:         testDash.Uid,
    			Uid:                  pulumi.String("my-custom-public-uid"),
    			AccessToken:          pulumi.String("e99e4275da6f410d83760eefa934d8d2"),
    			TimeSelectionEnabled: pulumi.Bool(true),
    			IsEnabled:            pulumi.Bool(true),
    			AnnotationsEnabled:   pulumi.Bool(true),
    			Share:                pulumi.String("public"),
    		})
    		if err != nil {
    			return err
    		}
    		// Optional (On-premise, not supported in Grafana Cloud): Create an organization
    		myOrg2, err := oss.NewOrganization(ctx, "my_org2", &oss.OrganizationArgs{
    			Name: pulumi.String("test 2"),
    		})
    		if err != nil {
    			return err
    		}
    		tmpJSON1, err := json.Marshal(map[string]interface{}{
    			"title": "My Terraform Dashboard2",
    			"uid":   "my-dashboard-uid2",
    		})
    		if err != nil {
    			return err
    		}
    		json1 := string(tmpJSON1)
    		testDash2, err := oss.NewDashboard(ctx, "test_dash2", &oss.DashboardArgs{
    			OrgId:      myOrg2.OrgId,
    			ConfigJson: pulumi.String(json1),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = oss.NewDashboardPublic(ctx, "my_public_dashboard2", &oss.DashboardPublicArgs{
    			OrgId:        myOrg2.OrgId,
    			DashboardUid: testDash2.Uid,
    			Share:        pulumi.String("public"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Grafana = Pulumiverse.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        // Optional (On-premise, not supported in Grafana Cloud): Create an organization
        var myOrg = new Grafana.Oss.Organization("my_org", new()
        {
            Name = "test 1",
        });
    
        // Create resources (optional: within the organization)
        var myFolder = new Grafana.Oss.Folder("my_folder", new()
        {
            OrgId = myOrg.OrgId,
            Title = "test Folder",
        });
    
        var testDash = new Grafana.Oss.Dashboard("test_dash", new()
        {
            OrgId = myOrg.OrgId,
            Folder = myFolder.Id,
            ConfigJson = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["title"] = "My Terraform Dashboard",
                ["uid"] = "my-dashboard-uid",
            }),
        });
    
        var myPublicDashboard = new Grafana.Oss.DashboardPublic("my_public_dashboard", new()
        {
            OrgId = myOrg.OrgId,
            DashboardUid = testDash.Uid,
            Uid = "my-custom-public-uid",
            AccessToken = "e99e4275da6f410d83760eefa934d8d2",
            TimeSelectionEnabled = true,
            IsEnabled = true,
            AnnotationsEnabled = true,
            Share = "public",
        });
    
        // Optional (On-premise, not supported in Grafana Cloud): Create an organization
        var myOrg2 = new Grafana.Oss.Organization("my_org2", new()
        {
            Name = "test 2",
        });
    
        var testDash2 = new Grafana.Oss.Dashboard("test_dash2", new()
        {
            OrgId = myOrg2.OrgId,
            ConfigJson = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["title"] = "My Terraform Dashboard2",
                ["uid"] = "my-dashboard-uid2",
            }),
        });
    
        var myPublicDashboard2 = new Grafana.Oss.DashboardPublic("my_public_dashboard2", new()
        {
            OrgId = myOrg2.OrgId,
            DashboardUid = testDash2.Uid,
            Share = "public",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.oss.Organization;
    import com.pulumi.grafana.oss.OrganizationArgs;
    import com.pulumi.grafana.oss.Folder;
    import com.pulumi.grafana.oss.FolderArgs;
    import com.pulumi.grafana.oss.Dashboard;
    import com.pulumi.grafana.oss.DashboardArgs;
    import com.pulumi.grafana.oss.DashboardPublic;
    import com.pulumi.grafana.oss.DashboardPublicArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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) {
            // Optional (On-premise, not supported in Grafana Cloud): Create an organization
            var myOrg = new Organization("myOrg", OrganizationArgs.builder()
                .name("test 1")
                .build());
    
            // Create resources (optional: within the organization)
            var myFolder = new Folder("myFolder", FolderArgs.builder()
                .orgId(myOrg.orgId())
                .title("test Folder")
                .build());
    
            var testDash = new Dashboard("testDash", DashboardArgs.builder()
                .orgId(myOrg.orgId())
                .folder(myFolder.id())
                .configJson(serializeJson(
                    jsonObject(
                        jsonProperty("title", "My Terraform Dashboard"),
                        jsonProperty("uid", "my-dashboard-uid")
                    )))
                .build());
    
            var myPublicDashboard = new DashboardPublic("myPublicDashboard", DashboardPublicArgs.builder()
                .orgId(myOrg.orgId())
                .dashboardUid(testDash.uid())
                .uid("my-custom-public-uid")
                .accessToken("e99e4275da6f410d83760eefa934d8d2")
                .timeSelectionEnabled(true)
                .isEnabled(true)
                .annotationsEnabled(true)
                .share("public")
                .build());
    
            // Optional (On-premise, not supported in Grafana Cloud): Create an organization
            var myOrg2 = new Organization("myOrg2", OrganizationArgs.builder()
                .name("test 2")
                .build());
    
            var testDash2 = new Dashboard("testDash2", DashboardArgs.builder()
                .orgId(myOrg2.orgId())
                .configJson(serializeJson(
                    jsonObject(
                        jsonProperty("title", "My Terraform Dashboard2"),
                        jsonProperty("uid", "my-dashboard-uid2")
                    )))
                .build());
    
            var myPublicDashboard2 = new DashboardPublic("myPublicDashboard2", DashboardPublicArgs.builder()
                .orgId(myOrg2.orgId())
                .dashboardUid(testDash2.uid())
                .share("public")
                .build());
    
        }
    }
    
    resources:
      # Optional (On-premise, not supported in Grafana Cloud): Create an organization
      myOrg:
        type: grafana:oss:Organization
        name: my_org
        properties:
          name: test 1
      # Create resources (optional: within the organization)
      myFolder:
        type: grafana:oss:Folder
        name: my_folder
        properties:
          orgId: ${myOrg.orgId}
          title: test Folder
      testDash:
        type: grafana:oss:Dashboard
        name: test_dash
        properties:
          orgId: ${myOrg.orgId}
          folder: ${myFolder.id}
          configJson:
            fn::toJSON:
              title: My Terraform Dashboard
              uid: my-dashboard-uid
      myPublicDashboard:
        type: grafana:oss:DashboardPublic
        name: my_public_dashboard
        properties:
          orgId: ${myOrg.orgId}
          dashboardUid: ${testDash.uid}
          uid: my-custom-public-uid
          accessToken: e99e4275da6f410d83760eefa934d8d2
          timeSelectionEnabled: true
          isEnabled: true
          annotationsEnabled: true
          share: public
      # Optional (On-premise, not supported in Grafana Cloud): Create an organization
      myOrg2:
        type: grafana:oss:Organization
        name: my_org2
        properties:
          name: test 2
      testDash2:
        type: grafana:oss:Dashboard
        name: test_dash2
        properties:
          orgId: ${myOrg2.orgId}
          configJson:
            fn::toJSON:
              title: My Terraform Dashboard2
              uid: my-dashboard-uid2
      myPublicDashboard2:
        type: grafana:oss:DashboardPublic
        name: my_public_dashboard2
        properties:
          orgId: ${myOrg2.orgId}
          dashboardUid: ${testDash2.uid}
          share: public
    

    Create DashboardPublic Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DashboardPublic(name: string, args: DashboardPublicArgs, opts?: CustomResourceOptions);
    @overload
    def DashboardPublic(resource_name: str,
                        args: DashboardPublicArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def DashboardPublic(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        access_token: Optional[str] = None,
                        annotations_enabled: Optional[bool] = None,
                        dashboard_uid: Optional[str] = None,
                        is_enabled: Optional[bool] = None,
                        org_id: Optional[str] = None,
                        share: Optional[str] = None,
                        time_selection_enabled: Optional[bool] = None,
                        uid: Optional[str] = None)
    func NewDashboardPublic(ctx *Context, name string, args DashboardPublicArgs, opts ...ResourceOption) (*DashboardPublic, error)
    public DashboardPublic(string name, DashboardPublicArgs args, CustomResourceOptions? opts = null)
    public DashboardPublic(String name, DashboardPublicArgs args)
    public DashboardPublic(String name, DashboardPublicArgs args, CustomResourceOptions options)
    
    type: grafana:DashboardPublic
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DashboardPublicArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DashboardPublicArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DashboardPublicArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DashboardPublicArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DashboardPublicArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    DashboardPublic Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DashboardPublic resource accepts the following input properties:

    DashboardUid string
    The unique identifier of the original dashboard.
    AccessToken string
    A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
    AnnotationsEnabled bool
    Set to true to show annotations. The default value is false.
    IsEnabled bool
    Set to true to enable the public dashboard. The default value is false.
    OrgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    Share string
    Set the share mode. The default value is public.
    TimeSelectionEnabled bool
    Set to true to enable the time picker in the public dashboard. The default value is false.
    Uid string
    The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
    DashboardUid string
    The unique identifier of the original dashboard.
    AccessToken string
    A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
    AnnotationsEnabled bool
    Set to true to show annotations. The default value is false.
    IsEnabled bool
    Set to true to enable the public dashboard. The default value is false.
    OrgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    Share string
    Set the share mode. The default value is public.
    TimeSelectionEnabled bool
    Set to true to enable the time picker in the public dashboard. The default value is false.
    Uid string
    The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
    dashboardUid String
    The unique identifier of the original dashboard.
    accessToken String
    A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
    annotationsEnabled Boolean
    Set to true to show annotations. The default value is false.
    isEnabled Boolean
    Set to true to enable the public dashboard. The default value is false.
    orgId String
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    share String
    Set the share mode. The default value is public.
    timeSelectionEnabled Boolean
    Set to true to enable the time picker in the public dashboard. The default value is false.
    uid String
    The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
    dashboardUid string
    The unique identifier of the original dashboard.
    accessToken string
    A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
    annotationsEnabled boolean
    Set to true to show annotations. The default value is false.
    isEnabled boolean
    Set to true to enable the public dashboard. The default value is false.
    orgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    share string
    Set the share mode. The default value is public.
    timeSelectionEnabled boolean
    Set to true to enable the time picker in the public dashboard. The default value is false.
    uid string
    The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
    dashboard_uid str
    The unique identifier of the original dashboard.
    access_token str
    A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
    annotations_enabled bool
    Set to true to show annotations. The default value is false.
    is_enabled bool
    Set to true to enable the public dashboard. The default value is false.
    org_id str
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    share str
    Set the share mode. The default value is public.
    time_selection_enabled bool
    Set to true to enable the time picker in the public dashboard. The default value is false.
    uid str
    The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
    dashboardUid String
    The unique identifier of the original dashboard.
    accessToken String
    A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
    annotationsEnabled Boolean
    Set to true to show annotations. The default value is false.
    isEnabled Boolean
    Set to true to enable the public dashboard. The default value is false.
    orgId String
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    share String
    Set the share mode. The default value is public.
    timeSelectionEnabled Boolean
    Set to true to enable the time picker in the public dashboard. The default value is false.
    uid String
    The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DashboardPublic resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DashboardPublic Resource

    Get an existing DashboardPublic resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DashboardPublicState, opts?: CustomResourceOptions): DashboardPublic
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_token: Optional[str] = None,
            annotations_enabled: Optional[bool] = None,
            dashboard_uid: Optional[str] = None,
            is_enabled: Optional[bool] = None,
            org_id: Optional[str] = None,
            share: Optional[str] = None,
            time_selection_enabled: Optional[bool] = None,
            uid: Optional[str] = None) -> DashboardPublic
    func GetDashboardPublic(ctx *Context, name string, id IDInput, state *DashboardPublicState, opts ...ResourceOption) (*DashboardPublic, error)
    public static DashboardPublic Get(string name, Input<string> id, DashboardPublicState? state, CustomResourceOptions? opts = null)
    public static DashboardPublic get(String name, Output<String> id, DashboardPublicState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccessToken string
    A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
    AnnotationsEnabled bool
    Set to true to show annotations. The default value is false.
    DashboardUid string
    The unique identifier of the original dashboard.
    IsEnabled bool
    Set to true to enable the public dashboard. The default value is false.
    OrgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    Share string
    Set the share mode. The default value is public.
    TimeSelectionEnabled bool
    Set to true to enable the time picker in the public dashboard. The default value is false.
    Uid string
    The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
    AccessToken string
    A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
    AnnotationsEnabled bool
    Set to true to show annotations. The default value is false.
    DashboardUid string
    The unique identifier of the original dashboard.
    IsEnabled bool
    Set to true to enable the public dashboard. The default value is false.
    OrgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    Share string
    Set the share mode. The default value is public.
    TimeSelectionEnabled bool
    Set to true to enable the time picker in the public dashboard. The default value is false.
    Uid string
    The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
    accessToken String
    A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
    annotationsEnabled Boolean
    Set to true to show annotations. The default value is false.
    dashboardUid String
    The unique identifier of the original dashboard.
    isEnabled Boolean
    Set to true to enable the public dashboard. The default value is false.
    orgId String
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    share String
    Set the share mode. The default value is public.
    timeSelectionEnabled Boolean
    Set to true to enable the time picker in the public dashboard. The default value is false.
    uid String
    The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
    accessToken string
    A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
    annotationsEnabled boolean
    Set to true to show annotations. The default value is false.
    dashboardUid string
    The unique identifier of the original dashboard.
    isEnabled boolean
    Set to true to enable the public dashboard. The default value is false.
    orgId string
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    share string
    Set the share mode. The default value is public.
    timeSelectionEnabled boolean
    Set to true to enable the time picker in the public dashboard. The default value is false.
    uid string
    The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
    access_token str
    A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
    annotations_enabled bool
    Set to true to show annotations. The default value is false.
    dashboard_uid str
    The unique identifier of the original dashboard.
    is_enabled bool
    Set to true to enable the public dashboard. The default value is false.
    org_id str
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    share str
    Set the share mode. The default value is public.
    time_selection_enabled bool
    Set to true to enable the time picker in the public dashboard. The default value is false.
    uid str
    The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.
    accessToken String
    A public unique identifier of a public dashboard. This is used to construct its URL. It's automatically generated if not provided when creating a public dashboard.
    annotationsEnabled Boolean
    Set to true to show annotations. The default value is false.
    dashboardUid String
    The unique identifier of the original dashboard.
    isEnabled Boolean
    Set to true to enable the public dashboard. The default value is false.
    orgId String
    The Organization ID. If not set, the Org ID defined in the provider block will be used.
    share String
    Set the share mode. The default value is public.
    timeSelectionEnabled Boolean
    Set to true to enable the time picker in the public dashboard. The default value is false.
    uid String
    The unique identifier of a public dashboard. It's automatically generated if not provided when creating a public dashboard.

    Import

    $ pulumi import grafana:index/dashboardPublic:DashboardPublic name "{{ dashboardUID }}:{{ publicDashboardUID }}"
    
    $ pulumi import grafana:index/dashboardPublic:DashboardPublic name "{{ orgID }}:{{ dashboardUID }}:{{ publicDashboardUID }}"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse