Harness v0.7.5 published on Thursday, Jun 19, 2025 by Pulumi
harness.platform.getDashboardFolders
Explore with Pulumi AI
Data source for retrieving a Harness Dashboard Folder.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = harness.platform.getDashboardFolders({
id: "your_folder_id",
});
import pulumi
import pulumi_harness as harness
example = harness.platform.get_dashboard_folders(id="your_folder_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.LookupDashboardFolders(ctx, &platform.LookupDashboardFoldersArgs{
Id: "your_folder_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 example = Harness.Platform.GetDashboardFolders.Invoke(new()
{
Id = "your_folder_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.GetDashboardFoldersArgs;
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 example = PlatformFunctions.getDashboardFolders(GetDashboardFoldersArgs.builder()
.id("your_folder_id")
.build());
}
}
variables:
example:
fn::invoke:
function: harness:platform:getDashboardFolders
arguments:
id: your_folder_id
Using getDashboardFolders
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 getDashboardFolders(args: GetDashboardFoldersArgs, opts?: InvokeOptions): Promise<GetDashboardFoldersResult>
function getDashboardFoldersOutput(args: GetDashboardFoldersOutputArgs, opts?: InvokeOptions): Output<GetDashboardFoldersResult>
def get_dashboard_folders(id: Optional[str] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDashboardFoldersResult
def get_dashboard_folders_output(id: Optional[pulumi.Input[str]] = None,
identifier: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDashboardFoldersResult]
func LookupDashboardFolders(ctx *Context, args *LookupDashboardFoldersArgs, opts ...InvokeOption) (*LookupDashboardFoldersResult, error)
func LookupDashboardFoldersOutput(ctx *Context, args *LookupDashboardFoldersOutputArgs, opts ...InvokeOption) LookupDashboardFoldersResultOutput
> Note: This function is named LookupDashboardFolders
in the Go SDK.
public static class GetDashboardFolders
{
public static Task<GetDashboardFoldersResult> InvokeAsync(GetDashboardFoldersArgs args, InvokeOptions? opts = null)
public static Output<GetDashboardFoldersResult> Invoke(GetDashboardFoldersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDashboardFoldersResult> getDashboardFolders(GetDashboardFoldersArgs args, InvokeOptions options)
public static Output<GetDashboardFoldersResult> getDashboardFolders(GetDashboardFoldersArgs args, InvokeOptions options)
fn::invoke:
function: harness:platform/getDashboardFolders:getDashboardFolders
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Identifier of the folder.
- Identifier string
- Name string
- Name of the folder.
- Id string
- Identifier of the folder.
- Identifier string
- Name string
- Name of the folder.
- id String
- Identifier of the folder.
- identifier String
- name String
- Name of the folder.
- id string
- Identifier of the folder.
- identifier string
- name string
- Name of the folder.
- id str
- Identifier of the folder.
- identifier str
- name str
- Name of the folder.
- id String
- Identifier of the folder.
- identifier String
- name String
- Name of the folder.
getDashboardFolders Result
The following output properties are available:
- Created
At string - Created DateTime of the folder.
- Description string
- Id string
- Identifier of the folder.
- List<string>
- Identifier string
- Name string
- Name of the folder.
- Created
At string - Created DateTime of the folder.
- Description string
- Id string
- Identifier of the folder.
- []string
- Identifier string
- Name string
- Name of the folder.
- created
At String - Created DateTime of the folder.
- description String
- id String
- Identifier of the folder.
- List<String>
- identifier String
- name String
- Name of the folder.
- created
At string - Created DateTime of the folder.
- description string
- id string
- Identifier of the folder.
- string[]
- identifier string
- name string
- Name of the folder.
- created_
at str - Created DateTime of the folder.
- description str
- id str
- Identifier of the folder.
- Sequence[str]
- identifier str
- name str
- Name of the folder.
- created
At String - Created DateTime of the folder.
- description String
- id String
- Identifier of the folder.
- List<String>
- identifier String
- name String
- Name of the folder.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.