Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Data source for retrieving a Harness Dashboard.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const dashboard = harness.platform.getDashboards({
id: "id",
});
import pulumi
import pulumi_harness as harness
dashboard = harness.platform.get_dashboards(id="id")
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.LookupDashboards(ctx, &platform.LookupDashboardsArgs{
Id: "id",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var dashboard = Harness.Platform.GetDashboards.Invoke(new()
{
Id = "id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetDashboardsArgs;
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) {
final var dashboard = PlatformFunctions.getDashboards(GetDashboardsArgs.builder()
.id("id")
.build());
}
}
variables:
dashboard:
fn::invoke:
function: harness:platform:getDashboards
arguments:
id: id
Using getDashboards
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 getDashboards(args: GetDashboardsArgs, opts?: InvokeOptions): Promise<GetDashboardsResult>
function getDashboardsOutput(args: GetDashboardsOutputArgs, opts?: InvokeOptions): Output<GetDashboardsResult>def get_dashboards(id: Optional[str] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDashboardsResult
def get_dashboards_output(id: Optional[pulumi.Input[str]] = None,
identifier: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDashboardsResult]func LookupDashboards(ctx *Context, args *LookupDashboardsArgs, opts ...InvokeOption) (*LookupDashboardsResult, error)
func LookupDashboardsOutput(ctx *Context, args *LookupDashboardsOutputArgs, opts ...InvokeOption) LookupDashboardsResultOutput> Note: This function is named LookupDashboards in the Go SDK.
public static class GetDashboards
{
public static Task<GetDashboardsResult> InvokeAsync(GetDashboardsArgs args, InvokeOptions? opts = null)
public static Output<GetDashboardsResult> Invoke(GetDashboardsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDashboardsResult> getDashboards(GetDashboardsArgs args, InvokeOptions options)
public static Output<GetDashboardsResult> getDashboards(GetDashboardsArgs args, InvokeOptions options)
fn::invoke:
function: harness:platform/getDashboards:getDashboards
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Identifier of the dashboard.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- Id string
- Identifier of the dashboard.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- id String
- Identifier of the dashboard.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- id string
- Identifier of the dashboard.
- identifier string
- Unique identifier of the resource.
- name string
- Name of the resource.
- id str
- Identifier of the dashboard.
- identifier str
- Unique identifier of the resource.
- name str
- Name of the resource.
- id String
- Identifier of the dashboard.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
getDashboards Result
The following output properties are available:
- Created
At string - Created at timestamp of the Dashboard.
- Dashboard
Id string - Unique identifier of the Dashboard.
- Data
Sources List<string> - Data Sources within the Dashboard.
- Description string
- Description of the resource.
- Folder
Id string - Unique identifier of the Folder.
- Id string
- Identifier of the dashboard.
- Models List<string>
- Data Models within the Dashboard.
- Resource
Identifier string - Resource identifier of the dashboard.
- List<string>
- Tags to associate with the resource.
- Title string
- Title of the Dashboard.
- Type string
- Resource identifier of the dashboard.
- View
Count int - View count of the dashboard.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- Created
At string - Created at timestamp of the Dashboard.
- Dashboard
Id string - Unique identifier of the Dashboard.
- Data
Sources []string - Data Sources within the Dashboard.
- Description string
- Description of the resource.
- Folder
Id string - Unique identifier of the Folder.
- Id string
- Identifier of the dashboard.
- Models []string
- Data Models within the Dashboard.
- Resource
Identifier string - Resource identifier of the dashboard.
- []string
- Tags to associate with the resource.
- Title string
- Title of the Dashboard.
- Type string
- Resource identifier of the dashboard.
- View
Count int - View count of the dashboard.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- created
At String - Created at timestamp of the Dashboard.
- dashboard
Id String - Unique identifier of the Dashboard.
- data
Sources List<String> - Data Sources within the Dashboard.
- description String
- Description of the resource.
- folder
Id String - Unique identifier of the Folder.
- id String
- Identifier of the dashboard.
- models List<String>
- Data Models within the Dashboard.
- resource
Identifier String - Resource identifier of the dashboard.
- List<String>
- Tags to associate with the resource.
- title String
- Title of the Dashboard.
- type String
- Resource identifier of the dashboard.
- view
Count Integer - View count of the dashboard.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- created
At string - Created at timestamp of the Dashboard.
- dashboard
Id string - Unique identifier of the Dashboard.
- data
Sources string[] - Data Sources within the Dashboard.
- description string
- Description of the resource.
- folder
Id string - Unique identifier of the Folder.
- id string
- Identifier of the dashboard.
- models string[]
- Data Models within the Dashboard.
- resource
Identifier string - Resource identifier of the dashboard.
- string[]
- Tags to associate with the resource.
- title string
- Title of the Dashboard.
- type string
- Resource identifier of the dashboard.
- view
Count number - View count of the dashboard.
- identifier string
- Unique identifier of the resource.
- name string
- Name of the resource.
- created_
at str - Created at timestamp of the Dashboard.
- dashboard_
id str - Unique identifier of the Dashboard.
- data_
sources Sequence[str] - Data Sources within the Dashboard.
- description str
- Description of the resource.
- folder_
id str - Unique identifier of the Folder.
- id str
- Identifier of the dashboard.
- models Sequence[str]
- Data Models within the Dashboard.
- resource_
identifier str - Resource identifier of the dashboard.
- Sequence[str]
- Tags to associate with the resource.
- title str
- Title of the Dashboard.
- type str
- Resource identifier of the dashboard.
- view_
count int - View count of the dashboard.
- identifier str
- Unique identifier of the resource.
- name str
- Name of the resource.
- created
At String - Created at timestamp of the Dashboard.
- dashboard
Id String - Unique identifier of the Dashboard.
- data
Sources List<String> - Data Sources within the Dashboard.
- description String
- Description of the resource.
- folder
Id String - Unique identifier of the Folder.
- id String
- Identifier of the dashboard.
- models List<String>
- Data Models within the Dashboard.
- resource
Identifier String - Resource identifier of the dashboard.
- List<String>
- Tags to associate with the resource.
- title String
- Title of the Dashboard.
- type String
- Resource identifier of the dashboard.
- view
Count Number - View count of the dashboard.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
