1. Packages
  2. New Relic
  3. API Docs
  4. OneDashboardRaw
New Relic v5.25.3 published on Tuesday, Jun 25, 2024 by Pulumi

newrelic.OneDashboardRaw

Explore with Pulumi AI

newrelic logo
New Relic v5.25.3 published on Tuesday, Jun 25, 2024 by Pulumi

    NOTE: The newrelic.OneDashboardJson resource is preferred for configuring dashboards in New Relic. This resource does not support the latest dashboard features and will receive less investment compared to newrelic_one_dashboard_json.

    Example Usage

    Create A New Relic One Dashboard With RawConfiguration

    import * as pulumi from "@pulumi/pulumi";
    import * as newrelic from "@pulumi/newrelic";
    
    const exampledash = new newrelic.OneDashboardRaw("exampledash", {
        name: "New Relic Terraform Example",
        pages: [{
            name: "Page Name",
            widgets: [
                {
                    title: "Custom widget",
                    row: 1,
                    column: 1,
                    width: 1,
                    height: 1,
                    visualizationId: "viz.custom",
                    configuration: `      {
            "legend": {
              "enabled": false
            },
            "nrqlQueries": [
              {
                "accountId": \` + accountID + \`,
                "query": "SELECT average(loadAverageOneMinute), average(loadAverageFiveMinute), average(loadAverageFifteenMinute) from SystemSample SINCE 60 minutes ago    TIMESERIES"
              }
            ],
            "yAxisLeft": {
              "max": 100,
              "min": 50,
              "zero": false
            }
          }
    `,
                },
                {
                    title: "Server CPU",
                    row: 1,
                    column: 2,
                    width: 1,
                    height: 1,
                    visualizationId: "viz.testing",
                    configuration: `      {
            "nrqlQueries": [
              {
                "accountId": \` + accountID + \`,
                "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400"
              }
            ]
          }
    `,
                },
                {
                    title: "Docker Server CPU",
                    row: 1,
                    column: 3,
                    height: 1,
                    width: 1,
                    visualizationId: "viz.bar",
                    configuration: JSON.stringify({
                        facet: {
                            showOtherSeries: false,
                        },
                        nrqlQueries: [{
                            accountId: accountID,
                            query: "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400",
                        }],
                    }),
                    linkedEntityGuids: ["MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc"],
                },
            ],
        }],
    });
    
    import pulumi
    import json
    import pulumi_newrelic as newrelic
    
    exampledash = newrelic.OneDashboardRaw("exampledash",
        name="New Relic Terraform Example",
        pages=[newrelic.OneDashboardRawPageArgs(
            name="Page Name",
            widgets=[
                newrelic.OneDashboardRawPageWidgetArgs(
                    title="Custom widget",
                    row=1,
                    column=1,
                    width=1,
                    height=1,
                    visualization_id="viz.custom",
                    configuration="""      {
            "legend": {
              "enabled": false
            },
            "nrqlQueries": [
              {
                "accountId": ` + accountID + `,
                "query": "SELECT average(loadAverageOneMinute), average(loadAverageFiveMinute), average(loadAverageFifteenMinute) from SystemSample SINCE 60 minutes ago    TIMESERIES"
              }
            ],
            "yAxisLeft": {
              "max": 100,
              "min": 50,
              "zero": false
            }
          }
    """,
                ),
                newrelic.OneDashboardRawPageWidgetArgs(
                    title="Server CPU",
                    row=1,
                    column=2,
                    width=1,
                    height=1,
                    visualization_id="viz.testing",
                    configuration="""      {
            "nrqlQueries": [
              {
                "accountId": ` + accountID + `,
                "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400"
              }
            ]
          }
    """,
                ),
                newrelic.OneDashboardRawPageWidgetArgs(
                    title="Docker Server CPU",
                    row=1,
                    column=3,
                    height=1,
                    width=1,
                    visualization_id="viz.bar",
                    configuration=json.dumps({
                        "facet": {
                            "showOtherSeries": False,
                        },
                        "nrqlQueries": [{
                            "accountId": account_id,
                            "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400",
                        }],
                    }),
                    linked_entity_guids=["MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc"],
                ),
            ],
        )])
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"facet": map[string]interface{}{
    				"showOtherSeries": false,
    			},
    			"nrqlQueries": []map[string]interface{}{
    				map[string]interface{}{
    					"accountId": accountID,
    					"query":     "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400",
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = newrelic.NewOneDashboardRaw(ctx, "exampledash", &newrelic.OneDashboardRawArgs{
    			Name: pulumi.String("New Relic Terraform Example"),
    			Pages: newrelic.OneDashboardRawPageArray{
    				&newrelic.OneDashboardRawPageArgs{
    					Name: pulumi.String("Page Name"),
    					Widgets: newrelic.OneDashboardRawPageWidgetArray{
    						&newrelic.OneDashboardRawPageWidgetArgs{
    							Title:           pulumi.String("Custom widget"),
    							Row:             pulumi.Int(1),
    							Column:          pulumi.Int(1),
    							Width:           pulumi.Int(1),
    							Height:          pulumi.Int(1),
    							VisualizationId: pulumi.String("viz.custom"),
    							Configuration:   pulumi.String("      {\n        \"legend\": {\n          \"enabled\": false\n        },\n        \"nrqlQueries\": [\n          {\n            \"accountId\": ` + accountID + `,\n            \"query\": \"SELECT average(loadAverageOneMinute), average(loadAverageFiveMinute), average(loadAverageFifteenMinute) from SystemSample SINCE 60 minutes ago    TIMESERIES\"\n          }\n        ],\n        \"yAxisLeft\": {\n          \"max\": 100,\n          \"min\": 50,\n          \"zero\": false\n        }\n      }\n"),
    						},
    						&newrelic.OneDashboardRawPageWidgetArgs{
    							Title:           pulumi.String("Server CPU"),
    							Row:             pulumi.Int(1),
    							Column:          pulumi.Int(2),
    							Width:           pulumi.Int(1),
    							Height:          pulumi.Int(1),
    							VisualizationId: pulumi.String("viz.testing"),
    							Configuration:   pulumi.String("      {\n        \"nrqlQueries\": [\n          {\n            \"accountId\": ` + accountID + `,\n            \"query\": \"SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400\"\n          }\n        ]\n      }\n"),
    						},
    						&newrelic.OneDashboardRawPageWidgetArgs{
    							Title:           pulumi.String("Docker Server CPU"),
    							Row:             pulumi.Int(1),
    							Column:          pulumi.Int(3),
    							Height:          pulumi.Int(1),
    							Width:           pulumi.Int(1),
    							VisualizationId: pulumi.String("viz.bar"),
    							Configuration:   pulumi.String(json0),
    							LinkedEntityGuids: pulumi.StringArray{
    								pulumi.String("MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc"),
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using NewRelic = Pulumi.NewRelic;
    
    return await Deployment.RunAsync(() => 
    {
        var exampledash = new NewRelic.OneDashboardRaw("exampledash", new()
        {
            Name = "New Relic Terraform Example",
            Pages = new[]
            {
                new NewRelic.Inputs.OneDashboardRawPageArgs
                {
                    Name = "Page Name",
                    Widgets = new[]
                    {
                        new NewRelic.Inputs.OneDashboardRawPageWidgetArgs
                        {
                            Title = "Custom widget",
                            Row = 1,
                            Column = 1,
                            Width = 1,
                            Height = 1,
                            VisualizationId = "viz.custom",
                            Configuration = @"      {
            ""legend"": {
              ""enabled"": false
            },
            ""nrqlQueries"": [
              {
                ""accountId"": ` + accountID + `,
                ""query"": ""SELECT average(loadAverageOneMinute), average(loadAverageFiveMinute), average(loadAverageFifteenMinute) from SystemSample SINCE 60 minutes ago    TIMESERIES""
              }
            ],
            ""yAxisLeft"": {
              ""max"": 100,
              ""min"": 50,
              ""zero"": false
            }
          }
    ",
                        },
                        new NewRelic.Inputs.OneDashboardRawPageWidgetArgs
                        {
                            Title = "Server CPU",
                            Row = 1,
                            Column = 2,
                            Width = 1,
                            Height = 1,
                            VisualizationId = "viz.testing",
                            Configuration = @"      {
            ""nrqlQueries"": [
              {
                ""accountId"": ` + accountID + `,
                ""query"": ""SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400""
              }
            ]
          }
    ",
                        },
                        new NewRelic.Inputs.OneDashboardRawPageWidgetArgs
                        {
                            Title = "Docker Server CPU",
                            Row = 1,
                            Column = 3,
                            Height = 1,
                            Width = 1,
                            VisualizationId = "viz.bar",
                            Configuration = JsonSerializer.Serialize(new Dictionary<string, object?>
                            {
                                ["facet"] = new Dictionary<string, object?>
                                {
                                    ["showOtherSeries"] = false,
                                },
                                ["nrqlQueries"] = new[]
                                {
                                    new Dictionary<string, object?>
                                    {
                                        ["accountId"] = accountID,
                                        ["query"] = "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400",
                                    },
                                },
                            }),
                            LinkedEntityGuids = new[]
                            {
                                "MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc",
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.newrelic.OneDashboardRaw;
    import com.pulumi.newrelic.OneDashboardRawArgs;
    import com.pulumi.newrelic.inputs.OneDashboardRawPageArgs;
    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) {
            var exampledash = new OneDashboardRaw("exampledash", OneDashboardRawArgs.builder()
                .name("New Relic Terraform Example")
                .pages(OneDashboardRawPageArgs.builder()
                    .name("Page Name")
                    .widgets(                
                        OneDashboardRawPageWidgetArgs.builder()
                            .title("Custom widget")
                            .row(1)
                            .column(1)
                            .width(1)
                            .height(1)
                            .visualizationId("viz.custom")
                            .configuration("""
          {
            "legend": {
              "enabled": false
            },
            "nrqlQueries": [
              {
                "accountId": ` + accountID + `,
                "query": "SELECT average(loadAverageOneMinute), average(loadAverageFiveMinute), average(loadAverageFifteenMinute) from SystemSample SINCE 60 minutes ago    TIMESERIES"
              }
            ],
            "yAxisLeft": {
              "max": 100,
              "min": 50,
              "zero": false
            }
          }
                            """)
                            .build(),
                        OneDashboardRawPageWidgetArgs.builder()
                            .title("Server CPU")
                            .row(1)
                            .column(2)
                            .width(1)
                            .height(1)
                            .visualizationId("viz.testing")
                            .configuration("""
          {
            "nrqlQueries": [
              {
                "accountId": ` + accountID + `,
                "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400"
              }
            ]
          }
                            """)
                            .build(),
                        OneDashboardRawPageWidgetArgs.builder()
                            .title("Docker Server CPU")
                            .row(1)
                            .column(3)
                            .height(1)
                            .width(1)
                            .visualizationId("viz.bar")
                            .configuration(serializeJson(
                                jsonObject(
                                    jsonProperty("facet", jsonObject(
                                        jsonProperty("showOtherSeries", false)
                                    )),
                                    jsonProperty("nrqlQueries", jsonArray(jsonObject(
                                        jsonProperty("accountId", accountID),
                                        jsonProperty("query", "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400")
                                    )))
                                )))
                            .linkedEntityGuids("MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc")
                            .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      exampledash:
        type: newrelic:OneDashboardRaw
        properties:
          name: New Relic Terraform Example
          pages:
            - name: Page Name
              widgets:
                - title: Custom widget
                  row: 1
                  column: 1
                  width: 1
                  height: 1
                  visualizationId: viz.custom
                  configuration: |2
                          {
                            "legend": {
                              "enabled": false
                            },
                            "nrqlQueries": [
                              {
                                "accountId": ` + accountID + `,
                                "query": "SELECT average(loadAverageOneMinute), average(loadAverageFiveMinute), average(loadAverageFifteenMinute) from SystemSample SINCE 60 minutes ago    TIMESERIES"
                              }
                            ],
                            "yAxisLeft": {
                              "max": 100,
                              "min": 50,
                              "zero": false
                            }
                          }
                - title: Server CPU
                  row: 1
                  column: 2
                  width: 1
                  height: 1
                  visualizationId: viz.testing
                  configuration: |2
                          {
                            "nrqlQueries": [
                              {
                                "accountId": ` + accountID + `,
                                "query": "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400"
                              }
                            ]
                          }
                - title: Docker Server CPU
                  row: 1
                  column: 3
                  height: 1
                  width: 1
                  visualizationId: viz.bar
                  configuration:
                    fn::toJSON:
                      facet:
                        showOtherSeries: false
                      nrqlQueries:
                        - accountId: ${accountID}
                          query: SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400
                  linkedEntityGuids:
                    - MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc
    

    Create OneDashboardRaw Resource

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

    Constructor syntax

    new OneDashboardRaw(name: string, args: OneDashboardRawArgs, opts?: CustomResourceOptions);
    @overload
    def OneDashboardRaw(resource_name: str,
                        args: OneDashboardRawArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def OneDashboardRaw(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        pages: Optional[Sequence[OneDashboardRawPageArgs]] = None,
                        account_id: Optional[str] = None,
                        description: Optional[str] = None,
                        name: Optional[str] = None,
                        permissions: Optional[str] = None)
    func NewOneDashboardRaw(ctx *Context, name string, args OneDashboardRawArgs, opts ...ResourceOption) (*OneDashboardRaw, error)
    public OneDashboardRaw(string name, OneDashboardRawArgs args, CustomResourceOptions? opts = null)
    public OneDashboardRaw(String name, OneDashboardRawArgs args)
    public OneDashboardRaw(String name, OneDashboardRawArgs args, CustomResourceOptions options)
    
    type: newrelic:OneDashboardRaw
    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 OneDashboardRawArgs
    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 OneDashboardRawArgs
    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 OneDashboardRawArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OneDashboardRawArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OneDashboardRawArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var oneDashboardRawResource = new NewRelic.OneDashboardRaw("oneDashboardRawResource", new()
    {
        Pages = new[]
        {
            new NewRelic.Inputs.OneDashboardRawPageArgs
            {
                Name = "string",
                Description = "string",
                Guid = "string",
                Widgets = new[]
                {
                    new NewRelic.Inputs.OneDashboardRawPageWidgetArgs
                    {
                        Column = 0,
                        Configuration = "string",
                        Row = 0,
                        Title = "string",
                        VisualizationId = "string",
                        Height = 0,
                        Id = "string",
                        LinkedEntityGuids = new[]
                        {
                            "string",
                        },
                        Width = 0,
                    },
                },
            },
        },
        AccountId = "string",
        Description = "string",
        Name = "string",
        Permissions = "string",
    });
    
    example, err := newrelic.NewOneDashboardRaw(ctx, "oneDashboardRawResource", &newrelic.OneDashboardRawArgs{
    	Pages: newrelic.OneDashboardRawPageArray{
    		&newrelic.OneDashboardRawPageArgs{
    			Name:        pulumi.String("string"),
    			Description: pulumi.String("string"),
    			Guid:        pulumi.String("string"),
    			Widgets: newrelic.OneDashboardRawPageWidgetArray{
    				&newrelic.OneDashboardRawPageWidgetArgs{
    					Column:          pulumi.Int(0),
    					Configuration:   pulumi.String("string"),
    					Row:             pulumi.Int(0),
    					Title:           pulumi.String("string"),
    					VisualizationId: pulumi.String("string"),
    					Height:          pulumi.Int(0),
    					Id:              pulumi.String("string"),
    					LinkedEntityGuids: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					Width: pulumi.Int(0),
    				},
    			},
    		},
    	},
    	AccountId:   pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Permissions: pulumi.String("string"),
    })
    
    var oneDashboardRawResource = new OneDashboardRaw("oneDashboardRawResource", OneDashboardRawArgs.builder()
        .pages(OneDashboardRawPageArgs.builder()
            .name("string")
            .description("string")
            .guid("string")
            .widgets(OneDashboardRawPageWidgetArgs.builder()
                .column(0)
                .configuration("string")
                .row(0)
                .title("string")
                .visualizationId("string")
                .height(0)
                .id("string")
                .linkedEntityGuids("string")
                .width(0)
                .build())
            .build())
        .accountId("string")
        .description("string")
        .name("string")
        .permissions("string")
        .build());
    
    one_dashboard_raw_resource = newrelic.OneDashboardRaw("oneDashboardRawResource",
        pages=[newrelic.OneDashboardRawPageArgs(
            name="string",
            description="string",
            guid="string",
            widgets=[newrelic.OneDashboardRawPageWidgetArgs(
                column=0,
                configuration="string",
                row=0,
                title="string",
                visualization_id="string",
                height=0,
                id="string",
                linked_entity_guids=["string"],
                width=0,
            )],
        )],
        account_id="string",
        description="string",
        name="string",
        permissions="string")
    
    const oneDashboardRawResource = new newrelic.OneDashboardRaw("oneDashboardRawResource", {
        pages: [{
            name: "string",
            description: "string",
            guid: "string",
            widgets: [{
                column: 0,
                configuration: "string",
                row: 0,
                title: "string",
                visualizationId: "string",
                height: 0,
                id: "string",
                linkedEntityGuids: ["string"],
                width: 0,
            }],
        }],
        accountId: "string",
        description: "string",
        name: "string",
        permissions: "string",
    });
    
    type: newrelic:OneDashboardRaw
    properties:
        accountId: string
        description: string
        name: string
        pages:
            - description: string
              guid: string
              name: string
              widgets:
                - column: 0
                  configuration: string
                  height: 0
                  id: string
                  linkedEntityGuids:
                    - string
                  row: 0
                  title: string
                  visualizationId: string
                  width: 0
        permissions: string
    

    OneDashboardRaw Resource Properties

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

    Inputs

    The OneDashboardRaw resource accepts the following input properties:

    Pages List<Pulumi.NewRelic.Inputs.OneDashboardRawPage>
    A nested block that describes a page. See Nested page blocks below for details.
    AccountId string
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    Description string
    Brief text describing the dashboard.
    Name string
    The title of the dashboard.
    Permissions string
    Determines who can see the dashboard in an account. Valid values are private, public_read_only, or public_read_write. Defaults to public_read_only.
    Pages []OneDashboardRawPageArgs
    A nested block that describes a page. See Nested page blocks below for details.
    AccountId string
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    Description string
    Brief text describing the dashboard.
    Name string
    The title of the dashboard.
    Permissions string
    Determines who can see the dashboard in an account. Valid values are private, public_read_only, or public_read_write. Defaults to public_read_only.
    pages List<OneDashboardRawPage>
    A nested block that describes a page. See Nested page blocks below for details.
    accountId String
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    description String
    Brief text describing the dashboard.
    name String
    The title of the dashboard.
    permissions String
    Determines who can see the dashboard in an account. Valid values are private, public_read_only, or public_read_write. Defaults to public_read_only.
    pages OneDashboardRawPage[]
    A nested block that describes a page. See Nested page blocks below for details.
    accountId string
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    description string
    Brief text describing the dashboard.
    name string
    The title of the dashboard.
    permissions string
    Determines who can see the dashboard in an account. Valid values are private, public_read_only, or public_read_write. Defaults to public_read_only.
    pages Sequence[OneDashboardRawPageArgs]
    A nested block that describes a page. See Nested page blocks below for details.
    account_id str
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    description str
    Brief text describing the dashboard.
    name str
    The title of the dashboard.
    permissions str
    Determines who can see the dashboard in an account. Valid values are private, public_read_only, or public_read_write. Defaults to public_read_only.
    pages List<Property Map>
    A nested block that describes a page. See Nested page blocks below for details.
    accountId String
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    description String
    Brief text describing the dashboard.
    name String
    The title of the dashboard.
    permissions String
    Determines who can see the dashboard in an account. Valid values are private, public_read_only, or public_read_write. Defaults to public_read_only.

    Outputs

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

    Guid string
    The unique entity identifier of the dashboard page in New Relic.
    Id string
    The provider-assigned unique ID for this managed resource.
    Permalink string
    The URL for viewing the dashboard.
    Guid string
    The unique entity identifier of the dashboard page in New Relic.
    Id string
    The provider-assigned unique ID for this managed resource.
    Permalink string
    The URL for viewing the dashboard.
    guid String
    The unique entity identifier of the dashboard page in New Relic.
    id String
    The provider-assigned unique ID for this managed resource.
    permalink String
    The URL for viewing the dashboard.
    guid string
    The unique entity identifier of the dashboard page in New Relic.
    id string
    The provider-assigned unique ID for this managed resource.
    permalink string
    The URL for viewing the dashboard.
    guid str
    The unique entity identifier of the dashboard page in New Relic.
    id str
    The provider-assigned unique ID for this managed resource.
    permalink str
    The URL for viewing the dashboard.
    guid String
    The unique entity identifier of the dashboard page in New Relic.
    id String
    The provider-assigned unique ID for this managed resource.
    permalink String
    The URL for viewing the dashboard.

    Look up Existing OneDashboardRaw Resource

    Get an existing OneDashboardRaw 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?: OneDashboardRawState, opts?: CustomResourceOptions): OneDashboardRaw
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            description: Optional[str] = None,
            guid: Optional[str] = None,
            name: Optional[str] = None,
            pages: Optional[Sequence[OneDashboardRawPageArgs]] = None,
            permalink: Optional[str] = None,
            permissions: Optional[str] = None) -> OneDashboardRaw
    func GetOneDashboardRaw(ctx *Context, name string, id IDInput, state *OneDashboardRawState, opts ...ResourceOption) (*OneDashboardRaw, error)
    public static OneDashboardRaw Get(string name, Input<string> id, OneDashboardRawState? state, CustomResourceOptions? opts = null)
    public static OneDashboardRaw get(String name, Output<String> id, OneDashboardRawState 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:
    AccountId string
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    Description string
    Brief text describing the dashboard.
    Guid string
    The unique entity identifier of the dashboard page in New Relic.
    Name string
    The title of the dashboard.
    Pages List<Pulumi.NewRelic.Inputs.OneDashboardRawPage>
    A nested block that describes a page. See Nested page blocks below for details.
    Permalink string
    The URL for viewing the dashboard.
    Permissions string
    Determines who can see the dashboard in an account. Valid values are private, public_read_only, or public_read_write. Defaults to public_read_only.
    AccountId string
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    Description string
    Brief text describing the dashboard.
    Guid string
    The unique entity identifier of the dashboard page in New Relic.
    Name string
    The title of the dashboard.
    Pages []OneDashboardRawPageArgs
    A nested block that describes a page. See Nested page blocks below for details.
    Permalink string
    The URL for viewing the dashboard.
    Permissions string
    Determines who can see the dashboard in an account. Valid values are private, public_read_only, or public_read_write. Defaults to public_read_only.
    accountId String
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    description String
    Brief text describing the dashboard.
    guid String
    The unique entity identifier of the dashboard page in New Relic.
    name String
    The title of the dashboard.
    pages List<OneDashboardRawPage>
    A nested block that describes a page. See Nested page blocks below for details.
    permalink String
    The URL for viewing the dashboard.
    permissions String
    Determines who can see the dashboard in an account. Valid values are private, public_read_only, or public_read_write. Defaults to public_read_only.
    accountId string
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    description string
    Brief text describing the dashboard.
    guid string
    The unique entity identifier of the dashboard page in New Relic.
    name string
    The title of the dashboard.
    pages OneDashboardRawPage[]
    A nested block that describes a page. See Nested page blocks below for details.
    permalink string
    The URL for viewing the dashboard.
    permissions string
    Determines who can see the dashboard in an account. Valid values are private, public_read_only, or public_read_write. Defaults to public_read_only.
    account_id str
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    description str
    Brief text describing the dashboard.
    guid str
    The unique entity identifier of the dashboard page in New Relic.
    name str
    The title of the dashboard.
    pages Sequence[OneDashboardRawPageArgs]
    A nested block that describes a page. See Nested page blocks below for details.
    permalink str
    The URL for viewing the dashboard.
    permissions str
    Determines who can see the dashboard in an account. Valid values are private, public_read_only, or public_read_write. Defaults to public_read_only.
    accountId String
    Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used.
    description String
    Brief text describing the dashboard.
    guid String
    The unique entity identifier of the dashboard page in New Relic.
    name String
    The title of the dashboard.
    pages List<Property Map>
    A nested block that describes a page. See Nested page blocks below for details.
    permalink String
    The URL for viewing the dashboard.
    permissions String
    Determines who can see the dashboard in an account. Valid values are private, public_read_only, or public_read_write. Defaults to public_read_only.

    Supporting Types

    OneDashboardRawPage, OneDashboardRawPageArgs

    Name string
    The title of the dashboard.
    Description string
    Brief text describing the dashboard.
    Guid string
    The unique entity identifier of the dashboard page in New Relic.
    Widgets List<Pulumi.NewRelic.Inputs.OneDashboardRawPageWidget>
    (Optional) A nested block that describes a widget. See Nested widget blocks below for details.
    Name string
    The title of the dashboard.
    Description string
    Brief text describing the dashboard.
    Guid string
    The unique entity identifier of the dashboard page in New Relic.
    Widgets []OneDashboardRawPageWidget
    (Optional) A nested block that describes a widget. See Nested widget blocks below for details.
    name String
    The title of the dashboard.
    description String
    Brief text describing the dashboard.
    guid String
    The unique entity identifier of the dashboard page in New Relic.
    widgets List<OneDashboardRawPageWidget>
    (Optional) A nested block that describes a widget. See Nested widget blocks below for details.
    name string
    The title of the dashboard.
    description string
    Brief text describing the dashboard.
    guid string
    The unique entity identifier of the dashboard page in New Relic.
    widgets OneDashboardRawPageWidget[]
    (Optional) A nested block that describes a widget. See Nested widget blocks below for details.
    name str
    The title of the dashboard.
    description str
    Brief text describing the dashboard.
    guid str
    The unique entity identifier of the dashboard page in New Relic.
    widgets Sequence[OneDashboardRawPageWidget]
    (Optional) A nested block that describes a widget. See Nested widget blocks below for details.
    name String
    The title of the dashboard.
    description String
    Brief text describing the dashboard.
    guid String
    The unique entity identifier of the dashboard page in New Relic.
    widgets List<Property Map>
    (Optional) A nested block that describes a widget. See Nested widget blocks below for details.

    OneDashboardRawPageWidget, OneDashboardRawPageWidgetArgs

    Column int
    (Required) Column position of widget from top left, starting at 1.
    Configuration string
    (Required) The configuration of the widget.
    Row int
    (Required) Row position of widget from top left, starting at 1.
    Title string
    (Required) A title for the widget.
    VisualizationId string
    (Required) The visualization ID of the widget
    Height int
    (Optional) Height of the widget. Valid values are 1 to 12 inclusive. Defaults to 3.
    Id string
    The ID of the widget.
    LinkedEntityGuids List<string>
    (Optional) Related entity GUIDs.
    Width int
    (Optional) Width of the widget. Valid values are 1 to 12 inclusive. Defaults to 4.
    Column int
    (Required) Column position of widget from top left, starting at 1.
    Configuration string
    (Required) The configuration of the widget.
    Row int
    (Required) Row position of widget from top left, starting at 1.
    Title string
    (Required) A title for the widget.
    VisualizationId string
    (Required) The visualization ID of the widget
    Height int
    (Optional) Height of the widget. Valid values are 1 to 12 inclusive. Defaults to 3.
    Id string
    The ID of the widget.
    LinkedEntityGuids []string
    (Optional) Related entity GUIDs.
    Width int
    (Optional) Width of the widget. Valid values are 1 to 12 inclusive. Defaults to 4.
    column Integer
    (Required) Column position of widget from top left, starting at 1.
    configuration String
    (Required) The configuration of the widget.
    row Integer
    (Required) Row position of widget from top left, starting at 1.
    title String
    (Required) A title for the widget.
    visualizationId String
    (Required) The visualization ID of the widget
    height Integer
    (Optional) Height of the widget. Valid values are 1 to 12 inclusive. Defaults to 3.
    id String
    The ID of the widget.
    linkedEntityGuids List<String>
    (Optional) Related entity GUIDs.
    width Integer
    (Optional) Width of the widget. Valid values are 1 to 12 inclusive. Defaults to 4.
    column number
    (Required) Column position of widget from top left, starting at 1.
    configuration string
    (Required) The configuration of the widget.
    row number
    (Required) Row position of widget from top left, starting at 1.
    title string
    (Required) A title for the widget.
    visualizationId string
    (Required) The visualization ID of the widget
    height number
    (Optional) Height of the widget. Valid values are 1 to 12 inclusive. Defaults to 3.
    id string
    The ID of the widget.
    linkedEntityGuids string[]
    (Optional) Related entity GUIDs.
    width number
    (Optional) Width of the widget. Valid values are 1 to 12 inclusive. Defaults to 4.
    column int
    (Required) Column position of widget from top left, starting at 1.
    configuration str
    (Required) The configuration of the widget.
    row int
    (Required) Row position of widget from top left, starting at 1.
    title str
    (Required) A title for the widget.
    visualization_id str
    (Required) The visualization ID of the widget
    height int
    (Optional) Height of the widget. Valid values are 1 to 12 inclusive. Defaults to 3.
    id str
    The ID of the widget.
    linked_entity_guids Sequence[str]
    (Optional) Related entity GUIDs.
    width int
    (Optional) Width of the widget. Valid values are 1 to 12 inclusive. Defaults to 4.
    column Number
    (Required) Column position of widget from top left, starting at 1.
    configuration String
    (Required) The configuration of the widget.
    row Number
    (Required) Row position of widget from top left, starting at 1.
    title String
    (Required) A title for the widget.
    visualizationId String
    (Required) The visualization ID of the widget
    height Number
    (Optional) Height of the widget. Valid values are 1 to 12 inclusive. Defaults to 3.
    id String
    The ID of the widget.
    linkedEntityGuids List<String>
    (Optional) Related entity GUIDs.
    width Number
    (Optional) Width of the widget. Valid values are 1 to 12 inclusive. Defaults to 4.

    Package Details

    Repository
    New Relic pulumi/pulumi-newrelic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the newrelic Terraform Provider.
    newrelic logo
    New Relic v5.25.3 published on Tuesday, Jun 25, 2024 by Pulumi