published on Tuesday, May 12, 2026 by rootlyhq
published on Tuesday, May 12, 2026 by rootlyhq
Manages dashboards.
Example Usage
resource "rootly_dashboard" "overview" {
name = "my_dashboard"
}
resource "rootly_dashboard_panel" "incidents_by_severity" {
dashboard_id = rootly_dashboard.foo.id
name = "test"
params {
display = "line_chart"
datasets {
collection = "incidents"
filter {
operation = "and"
rules {
operation = "and"
condition = "="
key = "status"
value = "started"
}
}
group_by = "severity"
aggregate {
cumulative = false
key = "results"
operation = "count"
}
}
}
}
Create Dashboard Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Dashboard(name: string, args?: DashboardArgs, opts?: CustomResourceOptions);@overload
def Dashboard(resource_name: str,
args: Optional[DashboardArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Dashboard(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
owner: Optional[str] = None,
public: Optional[bool] = None)func NewDashboard(ctx *Context, name string, args *DashboardArgs, opts ...ResourceOption) (*Dashboard, error)public Dashboard(string name, DashboardArgs? args = null, CustomResourceOptions? opts = null)
public Dashboard(String name, DashboardArgs args)
public Dashboard(String name, DashboardArgs args, CustomResourceOptions options)
type: rootly:Dashboard
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "rootly_dashboard" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DashboardArgs
- 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 DashboardArgs
- 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 DashboardArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DashboardArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DashboardArgs
- 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 dashboardResource = new Rootly.Dashboard("dashboardResource", new()
{
Name = "string",
Owner = "string",
Public = false,
});
example, err := rootly.NewDashboard(ctx, "dashboardResource", &rootly.DashboardArgs{
Name: pulumi.String("string"),
Owner: pulumi.String("string"),
Public: pulumi.Bool(false),
})
resource "rootly_dashboard" "dashboardResource" {
name = "string"
owner = "string"
public = false
}
var dashboardResource = new Dashboard("dashboardResource", DashboardArgs.builder()
.name("string")
.owner("string")
.public_(false)
.build());
dashboard_resource = rootly.Dashboard("dashboardResource",
name="string",
owner="string",
public=False)
const dashboardResource = new rootly.Dashboard("dashboardResource", {
name: "string",
owner: "string",
"public": false,
});
type: rootly:Dashboard
properties:
name: string
owner: string
public: false
Dashboard 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 Dashboard resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Dashboard resource produces the following output properties:
Look up Existing Dashboard Resource
Get an existing Dashboard 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?: DashboardState, opts?: CustomResourceOptions): Dashboard@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
owner: Optional[str] = None,
public: Optional[bool] = None,
slug: Optional[str] = None,
user_id: Optional[int] = None) -> Dashboardfunc GetDashboard(ctx *Context, name string, id IDInput, state *DashboardState, opts ...ResourceOption) (*Dashboard, error)public static Dashboard Get(string name, Input<string> id, DashboardState? state, CustomResourceOptions? opts = null)public static Dashboard get(String name, Output<String> id, DashboardState state, CustomResourceOptions options)resources: _: type: rootly:Dashboard get: id: ${id}import {
to = rootly_dashboard.example
id = "${id}"
}
- 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.
Import
rootly.Dashboard can be imported using the import command.
$ pulumi import rootly:index/dashboard:Dashboard primary a816421c-6ceb-481a-87c4-585e47451f24
Or using an import block.
Locate the resource id in the web app, or retrieve it by listing resources through the API if it’s not visible in the web app.
HCL can be generated from the import block using the -generate-config-out flag.
pulumi preview -generate-config-out=generated.tf
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rootlyTerraform Provider.
published on Tuesday, May 12, 2026 by rootlyhq
