1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. DashboardFolders
Harness v0.7.5 published on Thursday, Jun 19, 2025 by Pulumi

harness.platform.DashboardFolders

Explore with Pulumi AI

harness logo
Harness v0.7.5 published on Thursday, Jun 19, 2025 by Pulumi

    Resource for a Harness Custom Dashboard Folder.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.platform.DashboardFolders("example", {name: "Example Folder"});
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.DashboardFolders("example", name="Example Folder")
    
    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.NewDashboardFolders(ctx, "example", &platform.DashboardFoldersArgs{
    			Name: pulumi.String("Example Folder"),
    		})
    		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 = new Harness.Platform.DashboardFolders("example", new()
        {
            Name = "Example Folder",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.DashboardFolders;
    import com.pulumi.harness.platform.DashboardFoldersArgs;
    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 example = new DashboardFolders("example", DashboardFoldersArgs.builder()
                .name("Example Folder")
                .build());
    
        }
    }
    
    resources:
      example:
        type: harness:platform:DashboardFolders
        properties:
          name: Example Folder
    

    Create DashboardFolders Resource

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

    Constructor syntax

    new DashboardFolders(name: string, args?: DashboardFoldersArgs, opts?: CustomResourceOptions);
    @overload
    def DashboardFolders(resource_name: str,
                         args: Optional[DashboardFoldersArgs] = None,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def DashboardFolders(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         name: Optional[str] = None)
    func NewDashboardFolders(ctx *Context, name string, args *DashboardFoldersArgs, opts ...ResourceOption) (*DashboardFolders, error)
    public DashboardFolders(string name, DashboardFoldersArgs? args = null, CustomResourceOptions? opts = null)
    public DashboardFolders(String name, DashboardFoldersArgs args)
    public DashboardFolders(String name, DashboardFoldersArgs args, CustomResourceOptions options)
    
    type: harness:platform:DashboardFolders
    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 DashboardFoldersArgs
    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 DashboardFoldersArgs
    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 DashboardFoldersArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DashboardFoldersArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DashboardFoldersArgs
    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 dashboardFoldersResource = new Harness.Platform.DashboardFolders("dashboardFoldersResource", new()
    {
        Name = "string",
    });
    
    example, err := platform.NewDashboardFolders(ctx, "dashboardFoldersResource", &platform.DashboardFoldersArgs{
    	Name: pulumi.String("string"),
    })
    
    var dashboardFoldersResource = new DashboardFolders("dashboardFoldersResource", DashboardFoldersArgs.builder()
        .name("string")
        .build());
    
    dashboard_folders_resource = harness.platform.DashboardFolders("dashboardFoldersResource", name="string")
    
    const dashboardFoldersResource = new harness.platform.DashboardFolders("dashboardFoldersResource", {name: "string"});
    
    type: harness:platform:DashboardFolders
    properties:
        name: string
    

    DashboardFolders 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 DashboardFolders resource accepts the following input properties:

    Name string
    Name of the folder.
    Name string
    Name of the folder.
    name String
    Name of the folder.
    name string
    Name of the folder.
    name str
    Name of the folder.
    name String
    Name of the folder.

    Outputs

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

    CreatedAt string
    Created DateTime of the folder.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreatedAt string
    Created DateTime of the folder.
    Id string
    The provider-assigned unique ID for this managed resource.
    createdAt String
    Created DateTime of the folder.
    id String
    The provider-assigned unique ID for this managed resource.
    createdAt string
    Created DateTime of the folder.
    id string
    The provider-assigned unique ID for this managed resource.
    created_at str
    Created DateTime of the folder.
    id str
    The provider-assigned unique ID for this managed resource.
    createdAt String
    Created DateTime of the folder.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DashboardFolders Resource

    Get an existing DashboardFolders 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?: DashboardFoldersState, opts?: CustomResourceOptions): DashboardFolders
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            name: Optional[str] = None) -> DashboardFolders
    func GetDashboardFolders(ctx *Context, name string, id IDInput, state *DashboardFoldersState, opts ...ResourceOption) (*DashboardFolders, error)
    public static DashboardFolders Get(string name, Input<string> id, DashboardFoldersState? state, CustomResourceOptions? opts = null)
    public static DashboardFolders get(String name, Output<String> id, DashboardFoldersState state, CustomResourceOptions options)
    resources:  _:    type: harness:platform:DashboardFolders    get:      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.
    The following state arguments are supported:
    CreatedAt string
    Created DateTime of the folder.
    Name string
    Name of the folder.
    CreatedAt string
    Created DateTime of the folder.
    Name string
    Name of the folder.
    createdAt String
    Created DateTime of the folder.
    name String
    Name of the folder.
    createdAt string
    Created DateTime of the folder.
    name string
    Name of the folder.
    created_at str
    Created DateTime of the folder.
    name str
    Name of the folder.
    createdAt String
    Created DateTime of the folder.
    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.
    harness logo
    Harness v0.7.5 published on Thursday, Jun 19, 2025 by Pulumi