harness.platform.FileStoreFolder
Explore with Pulumi AI
Resource for creating folders in Harness.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
// Create folder
const example = new harness.platform.FileStoreFolder("example", {
    orgId: "org_id",
    projectId: "project_id",
    identifier: "identifier",
    name: "name",
    description: "description",
    tags: [
        "foo:bar",
        "baz:qux",
    ],
    parentIdentifier: "parent_identifier",
});
import pulumi
import pulumi_harness as harness
# Create folder
example = harness.platform.FileStoreFolder("example",
    org_id="org_id",
    project_id="project_id",
    identifier="identifier",
    name="name",
    description="description",
    tags=[
        "foo:bar",
        "baz:qux",
    ],
    parent_identifier="parent_identifier")
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 {
		// Create folder
		_, err := platform.NewFileStoreFolder(ctx, "example", &platform.FileStoreFolderArgs{
			OrgId:       pulumi.String("org_id"),
			ProjectId:   pulumi.String("project_id"),
			Identifier:  pulumi.String("identifier"),
			Name:        pulumi.String("name"),
			Description: pulumi.String("description"),
			Tags: pulumi.StringArray{
				pulumi.String("foo:bar"),
				pulumi.String("baz:qux"),
			},
			ParentIdentifier: pulumi.String("parent_identifier"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() => 
{
    // Create folder
    var example = new Harness.Platform.FileStoreFolder("example", new()
    {
        OrgId = "org_id",
        ProjectId = "project_id",
        Identifier = "identifier",
        Name = "name",
        Description = "description",
        Tags = new[]
        {
            "foo:bar",
            "baz:qux",
        },
        ParentIdentifier = "parent_identifier",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.FileStoreFolder;
import com.pulumi.harness.platform.FileStoreFolderArgs;
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) {
        // Create folder
        var example = new FileStoreFolder("example", FileStoreFolderArgs.builder()
            .orgId("org_id")
            .projectId("project_id")
            .identifier("identifier")
            .name("name")
            .description("description")
            .tags(            
                "foo:bar",
                "baz:qux")
            .parentIdentifier("parent_identifier")
            .build());
    }
}
resources:
  # Create folder
  example:
    type: harness:platform:FileStoreFolder
    properties:
      orgId: org_id
      projectId: project_id
      identifier: identifier
      name: name
      description: description
      tags:
        - foo:bar
        - baz:qux
      parentIdentifier: parent_identifier
Create FileStoreFolder Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FileStoreFolder(name: string, args: FileStoreFolderArgs, opts?: CustomResourceOptions);@overload
def FileStoreFolder(resource_name: str,
                    args: FileStoreFolderArgs,
                    opts: Optional[ResourceOptions] = None)
@overload
def FileStoreFolder(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    identifier: Optional[str] = None,
                    parent_identifier: Optional[str] = None,
                    description: Optional[str] = None,
                    name: Optional[str] = None,
                    org_id: Optional[str] = None,
                    project_id: Optional[str] = None,
                    tags: Optional[Sequence[str]] = None)func NewFileStoreFolder(ctx *Context, name string, args FileStoreFolderArgs, opts ...ResourceOption) (*FileStoreFolder, error)public FileStoreFolder(string name, FileStoreFolderArgs args, CustomResourceOptions? opts = null)
public FileStoreFolder(String name, FileStoreFolderArgs args)
public FileStoreFolder(String name, FileStoreFolderArgs args, CustomResourceOptions options)
type: harness:platform:FileStoreFolder
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 FileStoreFolderArgs
- 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 FileStoreFolderArgs
- 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 FileStoreFolderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FileStoreFolderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FileStoreFolderArgs
- 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 fileStoreFolderResource = new Harness.Platform.FileStoreFolder("fileStoreFolderResource", new()
{
    Identifier = "string",
    ParentIdentifier = "string",
    Description = "string",
    Name = "string",
    OrgId = "string",
    ProjectId = "string",
    Tags = new[]
    {
        "string",
    },
});
example, err := platform.NewFileStoreFolder(ctx, "fileStoreFolderResource", &platform.FileStoreFolderArgs{
	Identifier:       pulumi.String("string"),
	ParentIdentifier: pulumi.String("string"),
	Description:      pulumi.String("string"),
	Name:             pulumi.String("string"),
	OrgId:            pulumi.String("string"),
	ProjectId:        pulumi.String("string"),
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var fileStoreFolderResource = new FileStoreFolder("fileStoreFolderResource", FileStoreFolderArgs.builder()
    .identifier("string")
    .parentIdentifier("string")
    .description("string")
    .name("string")
    .orgId("string")
    .projectId("string")
    .tags("string")
    .build());
file_store_folder_resource = harness.platform.FileStoreFolder("fileStoreFolderResource",
    identifier="string",
    parent_identifier="string",
    description="string",
    name="string",
    org_id="string",
    project_id="string",
    tags=["string"])
const fileStoreFolderResource = new harness.platform.FileStoreFolder("fileStoreFolderResource", {
    identifier: "string",
    parentIdentifier: "string",
    description: "string",
    name: "string",
    orgId: "string",
    projectId: "string",
    tags: ["string"],
});
type: harness:platform:FileStoreFolder
properties:
    description: string
    identifier: string
    name: string
    orgId: string
    parentIdentifier: string
    projectId: string
    tags:
        - string
FileStoreFolder 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 FileStoreFolder resource accepts the following input properties:
- Identifier string
- Unique identifier of the resource.
- ParentIdentifier string
- Folder parent identifier on Harness File Store. If the file is at the root level, the parent_identifier will be Root.
- Description string
- Description of the resource.
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- Identifier string
- Unique identifier of the resource.
- ParentIdentifier string
- Folder parent identifier on Harness File Store. If the file is at the root level, the parent_identifier will be Root.
- Description string
- Description of the resource.
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- []string
- Tags to associate with the resource.
- identifier String
- Unique identifier of the resource.
- parentIdentifier String
- Folder parent identifier on Harness File Store. If the file is at the root level, the parent_identifier will be Root.
- description String
- Description of the resource.
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- identifier string
- Unique identifier of the resource.
- parentIdentifier string
- Folder parent identifier on Harness File Store. If the file is at the root level, the parent_identifier will be Root.
- description string
- Description of the resource.
- name string
- Name of the resource.
- orgId string
- Unique identifier of the organization.
- projectId string
- Unique identifier of the project.
- string[]
- Tags to associate with the resource.
- identifier str
- Unique identifier of the resource.
- parent_identifier str
- Folder parent identifier on Harness File Store. If the file is at the root level, the parent_identifier will be Root.
- description str
- Description of the resource.
- name str
- Name of the resource.
- org_id str
- Unique identifier of the organization.
- project_id str
- Unique identifier of the project.
- Sequence[str]
- Tags to associate with the resource.
- identifier String
- Unique identifier of the resource.
- parentIdentifier String
- Folder parent identifier on Harness File Store. If the file is at the root level, the parent_identifier will be Root.
- description String
- Description of the resource.
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the FileStoreFolder resource produces the following output properties:
- CreatedBies List<FileStore Folder Created By> 
- Created by
- Id string
- The provider-assigned unique ID for this managed resource.
- LastModified intAt 
- Last modified at
- LastModified List<FileBies Store Folder Last Modified By> 
- Last modified by
- Path string
- Harness File Store folder path
- CreatedBies []FileStore Folder Created By 
- Created by
- Id string
- The provider-assigned unique ID for this managed resource.
- LastModified intAt 
- Last modified at
- LastModified []FileBies Store Folder Last Modified By 
- Last modified by
- Path string
- Harness File Store folder path
- createdBies List<FileStore Folder Created By> 
- Created by
- id String
- The provider-assigned unique ID for this managed resource.
- lastModified IntegerAt 
- Last modified at
- lastModified List<FileBies Store Folder Last Modified By> 
- Last modified by
- path String
- Harness File Store folder path
- createdBies FileStore Folder Created By[] 
- Created by
- id string
- The provider-assigned unique ID for this managed resource.
- lastModified numberAt 
- Last modified at
- lastModified FileBies Store Folder Last Modified By[] 
- Last modified by
- path string
- Harness File Store folder path
- created_bies Sequence[FileStore Folder Created By] 
- Created by
- id str
- The provider-assigned unique ID for this managed resource.
- last_modified_ intat 
- Last modified at
- last_modified_ Sequence[Filebies Store Folder Last Modified By] 
- Last modified by
- path str
- Harness File Store folder path
- createdBies List<Property Map>
- Created by
- id String
- The provider-assigned unique ID for this managed resource.
- lastModified NumberAt 
- Last modified at
- lastModified List<Property Map>Bies 
- Last modified by
- path String
- Harness File Store folder path
Look up Existing FileStoreFolder Resource
Get an existing FileStoreFolder 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?: FileStoreFolderState, opts?: CustomResourceOptions): FileStoreFolder@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_bies: Optional[Sequence[FileStoreFolderCreatedByArgs]] = None,
        description: Optional[str] = None,
        identifier: Optional[str] = None,
        last_modified_at: Optional[int] = None,
        last_modified_bies: Optional[Sequence[FileStoreFolderLastModifiedByArgs]] = None,
        name: Optional[str] = None,
        org_id: Optional[str] = None,
        parent_identifier: Optional[str] = None,
        path: Optional[str] = None,
        project_id: Optional[str] = None,
        tags: Optional[Sequence[str]] = None) -> FileStoreFolderfunc GetFileStoreFolder(ctx *Context, name string, id IDInput, state *FileStoreFolderState, opts ...ResourceOption) (*FileStoreFolder, error)public static FileStoreFolder Get(string name, Input<string> id, FileStoreFolderState? state, CustomResourceOptions? opts = null)public static FileStoreFolder get(String name, Output<String> id, FileStoreFolderState state, CustomResourceOptions options)resources:  _:    type: harness:platform:FileStoreFolder    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.
- CreatedBies List<FileStore Folder Created By> 
- Created by
- Description string
- Description of the resource.
- Identifier string
- Unique identifier of the resource.
- LastModified intAt 
- Last modified at
- LastModified List<FileBies Store Folder Last Modified By> 
- Last modified by
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ParentIdentifier string
- Folder parent identifier on Harness File Store. If the file is at the root level, the parent_identifier will be Root.
- Path string
- Harness File Store folder path
- ProjectId string
- Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- CreatedBies []FileStore Folder Created By Args 
- Created by
- Description string
- Description of the resource.
- Identifier string
- Unique identifier of the resource.
- LastModified intAt 
- Last modified at
- LastModified []FileBies Store Folder Last Modified By Args 
- Last modified by
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ParentIdentifier string
- Folder parent identifier on Harness File Store. If the file is at the root level, the parent_identifier will be Root.
- Path string
- Harness File Store folder path
- ProjectId string
- Unique identifier of the project.
- []string
- Tags to associate with the resource.
- createdBies List<FileStore Folder Created By> 
- Created by
- description String
- Description of the resource.
- identifier String
- Unique identifier of the resource.
- lastModified IntegerAt 
- Last modified at
- lastModified List<FileBies Store Folder Last Modified By> 
- Last modified by
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- parentIdentifier String
- Folder parent identifier on Harness File Store. If the file is at the root level, the parent_identifier will be Root.
- path String
- Harness File Store folder path
- projectId String
- Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- createdBies FileStore Folder Created By[] 
- Created by
- description string
- Description of the resource.
- identifier string
- Unique identifier of the resource.
- lastModified numberAt 
- Last modified at
- lastModified FileBies Store Folder Last Modified By[] 
- Last modified by
- name string
- Name of the resource.
- orgId string
- Unique identifier of the organization.
- parentIdentifier string
- Folder parent identifier on Harness File Store. If the file is at the root level, the parent_identifier will be Root.
- path string
- Harness File Store folder path
- projectId string
- Unique identifier of the project.
- string[]
- Tags to associate with the resource.
- created_bies Sequence[FileStore Folder Created By Args] 
- Created by
- description str
- Description of the resource.
- identifier str
- Unique identifier of the resource.
- last_modified_ intat 
- Last modified at
- last_modified_ Sequence[Filebies Store Folder Last Modified By Args] 
- Last modified by
- name str
- Name of the resource.
- org_id str
- Unique identifier of the organization.
- parent_identifier str
- Folder parent identifier on Harness File Store. If the file is at the root level, the parent_identifier will be Root.
- path str
- Harness File Store folder path
- project_id str
- Unique identifier of the project.
- Sequence[str]
- Tags to associate with the resource.
- createdBies List<Property Map>
- Created by
- description String
- Description of the resource.
- identifier String
- Unique identifier of the resource.
- lastModified NumberAt 
- Last modified at
- lastModified List<Property Map>Bies 
- Last modified by
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- parentIdentifier String
- Folder parent identifier on Harness File Store. If the file is at the root level, the parent_identifier will be Root.
- path String
- Harness File Store folder path
- projectId String
- Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
Supporting Types
FileStoreFolderCreatedBy, FileStoreFolderCreatedByArgs          
FileStoreFolderLastModifiedBy, FileStoreFolderLastModifiedByArgs            
Import
Import account level folder
$ pulumi import harness:platform/fileStoreFolder:FileStoreFolder example <identifier>
Import org level folder
$ pulumi import harness:platform/fileStoreFolder:FileStoreFolder example <org_id>/<identifier>
Import org level folder
$ pulumi import harness:platform/fileStoreFolder:FileStoreFolder example <org_id>/<project_id>/<identifier>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the harnessTerraform Provider.
