1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. Pipeline
Harness v0.4.1 published on Monday, Oct 14, 2024 by Pulumi

harness.platform.Pipeline

Explore with Pulumi AI

harness logo
Harness v0.4.1 published on Monday, Oct 14, 2024 by Pulumi

    Resource for creating a Harness pipeline.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = new harness.platform.Pipeline("example", {
        identifier: "identifier",
        orgId: "orgIdentifier",
        projectId: "projectIdentifier",
        name: "name",
        gitDetails: {
            branchName: "branchName",
            commitMessage: "commitMessage",
            filePath: "filePath",
            connectorRef: "connectorRef",
            storeType: "REMOTE",
            repoName: "repoName",
        },
        tags: {},
        yaml: `pipeline:
        name: name
        identifier: identifier
        allowStageExecutions: false
        projectIdentifier: projectIdentifier
        orgIdentifier: orgIdentifier
        tags: {}
        stages:
            - stage:
                name: dep
                identifier: dep
                description: ""
                type: Deployment
                spec:
                    serviceConfig:
                        serviceRef: service
                        serviceDefinition:
                            type: Kubernetes
                            spec:
                                variables: []
                    infrastructure:
                        environmentRef: testenv
                        infrastructureDefinition:
                            type: KubernetesDirect
                            spec:
                                connectorRef: testconf
                                namespace: test
                                releaseName: release-<+INFRA_KEY>
                        allowSimultaneousDeployments: false
                    execution:
                        steps:
                            - stepGroup:
                                    name: Canary Deployment
                                    identifier: canaryDepoyment
                                    steps:
                                        - step:
                                            name: Canary Deployment
                                            identifier: canaryDeployment
                                            type: K8sCanaryDeploy
                                            timeout: 10m
                                            spec:
                                                instanceSelection:
                                                    type: Count
                                                    spec:
                                                        count: 1
                                                skipDryRun: false
                                        - step:
                                            name: Canary Delete
                                            identifier: canaryDelete
                                            type: K8sCanaryDelete
                                            timeout: 10m
                                            spec: {}
                                    rollbackSteps:
                                        - step:
                                            name: Canary Delete
                                            identifier: rollbackCanaryDelete
                                            type: K8sCanaryDelete
                                            timeout: 10m
                                            spec: {}
                            - stepGroup:
                                    name: Primary Deployment
                                    identifier: primaryDepoyment
                                    steps:
                                        - step:
                                            name: Rolling Deployment
                                            identifier: rollingDeployment
                                            type: K8sRollingDeploy
                                            timeout: 10m
                                            spec:
                                                skipDryRun: false
                                    rollbackSteps:
                                        - step:
                                            name: Rolling Rollback
                                            identifier: rollingRollback
                                            type: K8sRollingRollback
                                            timeout: 10m
                                            spec: {}
                        rollbackSteps: []
                tags: {}
                failureStrategies:
                    - onFailure:
                            errors:
                                - AllErrors
                            action:
                                type: StageRollback
    `,
    });
    //## Importing Pipeline from Git
    const test = new harness.platform.Organization("test", {
        identifier: "identifier",
        name: "name",
    });
    const testPipeline = new harness.platform.Pipeline("test", {
        identifier: "gitx",
        orgId: "default",
        projectId: "V",
        name: "gitx",
        importFromGit: true,
        gitImportInfo: {
            branchName: "main",
            filePath: ".harness/gitx.yaml",
            connectorRef: "account.DoNotDeleteGithub",
            repoName: "open-repo",
        },
        pipelineImportRequest: {
            pipelineName: "gitx",
            pipelineDescription: "Pipeline Description",
        },
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.Pipeline("example",
        identifier="identifier",
        org_id="orgIdentifier",
        project_id="projectIdentifier",
        name="name",
        git_details={
            "branch_name": "branchName",
            "commit_message": "commitMessage",
            "file_path": "filePath",
            "connector_ref": "connectorRef",
            "store_type": "REMOTE",
            "repo_name": "repoName",
        },
        tags={},
        yaml="""pipeline:
        name: name
        identifier: identifier
        allowStageExecutions: false
        projectIdentifier: projectIdentifier
        orgIdentifier: orgIdentifier
        tags: {}
        stages:
            - stage:
                name: dep
                identifier: dep
                description: ""
                type: Deployment
                spec:
                    serviceConfig:
                        serviceRef: service
                        serviceDefinition:
                            type: Kubernetes
                            spec:
                                variables: []
                    infrastructure:
                        environmentRef: testenv
                        infrastructureDefinition:
                            type: KubernetesDirect
                            spec:
                                connectorRef: testconf
                                namespace: test
                                releaseName: release-<+INFRA_KEY>
                        allowSimultaneousDeployments: false
                    execution:
                        steps:
                            - stepGroup:
                                    name: Canary Deployment
                                    identifier: canaryDepoyment
                                    steps:
                                        - step:
                                            name: Canary Deployment
                                            identifier: canaryDeployment
                                            type: K8sCanaryDeploy
                                            timeout: 10m
                                            spec:
                                                instanceSelection:
                                                    type: Count
                                                    spec:
                                                        count: 1
                                                skipDryRun: false
                                        - step:
                                            name: Canary Delete
                                            identifier: canaryDelete
                                            type: K8sCanaryDelete
                                            timeout: 10m
                                            spec: {}
                                    rollbackSteps:
                                        - step:
                                            name: Canary Delete
                                            identifier: rollbackCanaryDelete
                                            type: K8sCanaryDelete
                                            timeout: 10m
                                            spec: {}
                            - stepGroup:
                                    name: Primary Deployment
                                    identifier: primaryDepoyment
                                    steps:
                                        - step:
                                            name: Rolling Deployment
                                            identifier: rollingDeployment
                                            type: K8sRollingDeploy
                                            timeout: 10m
                                            spec:
                                                skipDryRun: false
                                    rollbackSteps:
                                        - step:
                                            name: Rolling Rollback
                                            identifier: rollingRollback
                                            type: K8sRollingRollback
                                            timeout: 10m
                                            spec: {}
                        rollbackSteps: []
                tags: {}
                failureStrategies:
                    - onFailure:
                            errors:
                                - AllErrors
                            action:
                                type: StageRollback
    """)
    ### Importing Pipeline from Git
    test = harness.platform.Organization("test",
        identifier="identifier",
        name="name")
    test_pipeline = harness.platform.Pipeline("test",
        identifier="gitx",
        org_id="default",
        project_id="V",
        name="gitx",
        import_from_git=True,
        git_import_info={
            "branch_name": "main",
            "file_path": ".harness/gitx.yaml",
            "connector_ref": "account.DoNotDeleteGithub",
            "repo_name": "open-repo",
        },
        pipeline_import_request={
            "pipeline_name": "gitx",
            "pipeline_description": "Pipeline Description",
        })
    
    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.NewPipeline(ctx, "example", &platform.PipelineArgs{
    			Identifier: pulumi.String("identifier"),
    			OrgId:      pulumi.String("orgIdentifier"),
    			ProjectId:  pulumi.String("projectIdentifier"),
    			Name:       pulumi.String("name"),
    			GitDetails: &platform.PipelineGitDetailsArgs{
    				BranchName:    pulumi.String("branchName"),
    				CommitMessage: pulumi.String("commitMessage"),
    				FilePath:      pulumi.String("filePath"),
    				ConnectorRef:  pulumi.String("connectorRef"),
    				StoreType:     pulumi.String("REMOTE"),
    				RepoName:      pulumi.String("repoName"),
    			},
    			Tags: pulumi.StringArray{},
    			Yaml: pulumi.String(`pipeline:
        name: name
        identifier: identifier
        allowStageExecutions: false
        projectIdentifier: projectIdentifier
        orgIdentifier: orgIdentifier
        tags: {}
        stages:
            - stage:
                name: dep
                identifier: dep
                description: ""
                type: Deployment
                spec:
                    serviceConfig:
                        serviceRef: service
                        serviceDefinition:
                            type: Kubernetes
                            spec:
                                variables: []
                    infrastructure:
                        environmentRef: testenv
                        infrastructureDefinition:
                            type: KubernetesDirect
                            spec:
                                connectorRef: testconf
                                namespace: test
                                releaseName: release-<+INFRA_KEY>
                        allowSimultaneousDeployments: false
                    execution:
                        steps:
                            - stepGroup:
                                    name: Canary Deployment
                                    identifier: canaryDepoyment
                                    steps:
                                        - step:
                                            name: Canary Deployment
                                            identifier: canaryDeployment
                                            type: K8sCanaryDeploy
                                            timeout: 10m
                                            spec:
                                                instanceSelection:
                                                    type: Count
                                                    spec:
                                                        count: 1
                                                skipDryRun: false
                                        - step:
                                            name: Canary Delete
                                            identifier: canaryDelete
                                            type: K8sCanaryDelete
                                            timeout: 10m
                                            spec: {}
                                    rollbackSteps:
                                        - step:
                                            name: Canary Delete
                                            identifier: rollbackCanaryDelete
                                            type: K8sCanaryDelete
                                            timeout: 10m
                                            spec: {}
                            - stepGroup:
                                    name: Primary Deployment
                                    identifier: primaryDepoyment
                                    steps:
                                        - step:
                                            name: Rolling Deployment
                                            identifier: rollingDeployment
                                            type: K8sRollingDeploy
                                            timeout: 10m
                                            spec:
                                                skipDryRun: false
                                    rollbackSteps:
                                        - step:
                                            name: Rolling Rollback
                                            identifier: rollingRollback
                                            type: K8sRollingRollback
                                            timeout: 10m
                                            spec: {}
                        rollbackSteps: []
                tags: {}
                failureStrategies:
                    - onFailure:
                            errors:
                                - AllErrors
                            action:
                                type: StageRollback
    `),
    		})
    		if err != nil {
    			return err
    		}
    		// ## Importing Pipeline from Git
    		_, err = platform.NewOrganization(ctx, "test", &platform.OrganizationArgs{
    			Identifier: pulumi.String("identifier"),
    			Name:       pulumi.String("name"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = platform.NewPipeline(ctx, "test", &platform.PipelineArgs{
    			Identifier:    pulumi.String("gitx"),
    			OrgId:         pulumi.String("default"),
    			ProjectId:     pulumi.String("V"),
    			Name:          pulumi.String("gitx"),
    			ImportFromGit: pulumi.Bool(true),
    			GitImportInfo: &platform.PipelineGitImportInfoArgs{
    				BranchName:   pulumi.String("main"),
    				FilePath:     pulumi.String(".harness/gitx.yaml"),
    				ConnectorRef: pulumi.String("account.DoNotDeleteGithub"),
    				RepoName:     pulumi.String("open-repo"),
    			},
    			PipelineImportRequest: &platform.PipelinePipelineImportRequestArgs{
    				PipelineName:        pulumi.String("gitx"),
    				PipelineDescription: pulumi.String("Pipeline Description"),
    			},
    		})
    		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.Pipeline("example", new()
        {
            Identifier = "identifier",
            OrgId = "orgIdentifier",
            ProjectId = "projectIdentifier",
            Name = "name",
            GitDetails = new Harness.Platform.Inputs.PipelineGitDetailsArgs
            {
                BranchName = "branchName",
                CommitMessage = "commitMessage",
                FilePath = "filePath",
                ConnectorRef = "connectorRef",
                StoreType = "REMOTE",
                RepoName = "repoName",
            },
            Tags = null,
            Yaml = @"pipeline:
        name: name
        identifier: identifier
        allowStageExecutions: false
        projectIdentifier: projectIdentifier
        orgIdentifier: orgIdentifier
        tags: {}
        stages:
            - stage:
                name: dep
                identifier: dep
                description: """"
                type: Deployment
                spec:
                    serviceConfig:
                        serviceRef: service
                        serviceDefinition:
                            type: Kubernetes
                            spec:
                                variables: []
                    infrastructure:
                        environmentRef: testenv
                        infrastructureDefinition:
                            type: KubernetesDirect
                            spec:
                                connectorRef: testconf
                                namespace: test
                                releaseName: release-<+INFRA_KEY>
                        allowSimultaneousDeployments: false
                    execution:
                        steps:
                            - stepGroup:
                                    name: Canary Deployment
                                    identifier: canaryDepoyment
                                    steps:
                                        - step:
                                            name: Canary Deployment
                                            identifier: canaryDeployment
                                            type: K8sCanaryDeploy
                                            timeout: 10m
                                            spec:
                                                instanceSelection:
                                                    type: Count
                                                    spec:
                                                        count: 1
                                                skipDryRun: false
                                        - step:
                                            name: Canary Delete
                                            identifier: canaryDelete
                                            type: K8sCanaryDelete
                                            timeout: 10m
                                            spec: {}
                                    rollbackSteps:
                                        - step:
                                            name: Canary Delete
                                            identifier: rollbackCanaryDelete
                                            type: K8sCanaryDelete
                                            timeout: 10m
                                            spec: {}
                            - stepGroup:
                                    name: Primary Deployment
                                    identifier: primaryDepoyment
                                    steps:
                                        - step:
                                            name: Rolling Deployment
                                            identifier: rollingDeployment
                                            type: K8sRollingDeploy
                                            timeout: 10m
                                            spec:
                                                skipDryRun: false
                                    rollbackSteps:
                                        - step:
                                            name: Rolling Rollback
                                            identifier: rollingRollback
                                            type: K8sRollingRollback
                                            timeout: 10m
                                            spec: {}
                        rollbackSteps: []
                tags: {}
                failureStrategies:
                    - onFailure:
                            errors:
                                - AllErrors
                            action:
                                type: StageRollback
    ",
        });
    
        //## Importing Pipeline from Git
        var test = new Harness.Platform.Organization("test", new()
        {
            Identifier = "identifier",
            Name = "name",
        });
    
        var testPipeline = new Harness.Platform.Pipeline("test", new()
        {
            Identifier = "gitx",
            OrgId = "default",
            ProjectId = "V",
            Name = "gitx",
            ImportFromGit = true,
            GitImportInfo = new Harness.Platform.Inputs.PipelineGitImportInfoArgs
            {
                BranchName = "main",
                FilePath = ".harness/gitx.yaml",
                ConnectorRef = "account.DoNotDeleteGithub",
                RepoName = "open-repo",
            },
            PipelineImportRequest = new Harness.Platform.Inputs.PipelinePipelineImportRequestArgs
            {
                PipelineName = "gitx",
                PipelineDescription = "Pipeline Description",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.Pipeline;
    import com.pulumi.harness.platform.PipelineArgs;
    import com.pulumi.harness.platform.inputs.PipelineGitDetailsArgs;
    import com.pulumi.harness.platform.Organization;
    import com.pulumi.harness.platform.OrganizationArgs;
    import com.pulumi.harness.platform.inputs.PipelineGitImportInfoArgs;
    import com.pulumi.harness.platform.inputs.PipelinePipelineImportRequestArgs;
    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 Pipeline("example", PipelineArgs.builder()
                .identifier("identifier")
                .orgId("orgIdentifier")
                .projectId("projectIdentifier")
                .name("name")
                .gitDetails(PipelineGitDetailsArgs.builder()
                    .branchName("branchName")
                    .commitMessage("commitMessage")
                    .filePath("filePath")
                    .connectorRef("connectorRef")
                    .storeType("REMOTE")
                    .repoName("repoName")
                    .build())
                .tags()
                .yaml("""
    pipeline:
        name: name
        identifier: identifier
        allowStageExecutions: false
        projectIdentifier: projectIdentifier
        orgIdentifier: orgIdentifier
        tags: {}
        stages:
            - stage:
                name: dep
                identifier: dep
                description: ""
                type: Deployment
                spec:
                    serviceConfig:
                        serviceRef: service
                        serviceDefinition:
                            type: Kubernetes
                            spec:
                                variables: []
                    infrastructure:
                        environmentRef: testenv
                        infrastructureDefinition:
                            type: KubernetesDirect
                            spec:
                                connectorRef: testconf
                                namespace: test
                                releaseName: release-<+INFRA_KEY>
                        allowSimultaneousDeployments: false
                    execution:
                        steps:
                            - stepGroup:
                                    name: Canary Deployment
                                    identifier: canaryDepoyment
                                    steps:
                                        - step:
                                            name: Canary Deployment
                                            identifier: canaryDeployment
                                            type: K8sCanaryDeploy
                                            timeout: 10m
                                            spec:
                                                instanceSelection:
                                                    type: Count
                                                    spec:
                                                        count: 1
                                                skipDryRun: false
                                        - step:
                                            name: Canary Delete
                                            identifier: canaryDelete
                                            type: K8sCanaryDelete
                                            timeout: 10m
                                            spec: {}
                                    rollbackSteps:
                                        - step:
                                            name: Canary Delete
                                            identifier: rollbackCanaryDelete
                                            type: K8sCanaryDelete
                                            timeout: 10m
                                            spec: {}
                            - stepGroup:
                                    name: Primary Deployment
                                    identifier: primaryDepoyment
                                    steps:
                                        - step:
                                            name: Rolling Deployment
                                            identifier: rollingDeployment
                                            type: K8sRollingDeploy
                                            timeout: 10m
                                            spec:
                                                skipDryRun: false
                                    rollbackSteps:
                                        - step:
                                            name: Rolling Rollback
                                            identifier: rollingRollback
                                            type: K8sRollingRollback
                                            timeout: 10m
                                            spec: {}
                        rollbackSteps: []
                tags: {}
                failureStrategies:
                    - onFailure:
                            errors:
                                - AllErrors
                            action:
                                type: StageRollback
                """)
                .build());
    
            //## Importing Pipeline from Git
            var test = new Organization("test", OrganizationArgs.builder()
                .identifier("identifier")
                .name("name")
                .build());
    
            var testPipeline = new Pipeline("testPipeline", PipelineArgs.builder()
                .identifier("gitx")
                .orgId("default")
                .projectId("V")
                .name("gitx")
                .importFromGit(true)
                .gitImportInfo(PipelineGitImportInfoArgs.builder()
                    .branchName("main")
                    .filePath(".harness/gitx.yaml")
                    .connectorRef("account.DoNotDeleteGithub")
                    .repoName("open-repo")
                    .build())
                .pipelineImportRequest(PipelinePipelineImportRequestArgs.builder()
                    .pipelineName("gitx")
                    .pipelineDescription("Pipeline Description")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: harness:platform:Pipeline
        properties:
          identifier: identifier
          orgId: orgIdentifier
          projectId: projectIdentifier
          name: name
          gitDetails:
            branchName: branchName
            commitMessage: commitMessage
            filePath: filePath
            connectorRef: connectorRef
            storeType: REMOTE
            repoName: repoName
          tags: {}
          yaml: |
            pipeline:
                name: name
                identifier: identifier
                allowStageExecutions: false
                projectIdentifier: projectIdentifier
                orgIdentifier: orgIdentifier
                tags: {}
                stages:
                    - stage:
                        name: dep
                        identifier: dep
                        description: ""
                        type: Deployment
                        spec:
                            serviceConfig:
                                serviceRef: service
                                serviceDefinition:
                                    type: Kubernetes
                                    spec:
                                        variables: []
                            infrastructure:
                                environmentRef: testenv
                                infrastructureDefinition:
                                    type: KubernetesDirect
                                    spec:
                                        connectorRef: testconf
                                        namespace: test
                                        releaseName: release-<+INFRA_KEY>
                                allowSimultaneousDeployments: false
                            execution:
                                steps:
                                    - stepGroup:
                                            name: Canary Deployment
                                            identifier: canaryDepoyment
                                            steps:
                                                - step:
                                                    name: Canary Deployment
                                                    identifier: canaryDeployment
                                                    type: K8sCanaryDeploy
                                                    timeout: 10m
                                                    spec:
                                                        instanceSelection:
                                                            type: Count
                                                            spec:
                                                                count: 1
                                                        skipDryRun: false
                                                - step:
                                                    name: Canary Delete
                                                    identifier: canaryDelete
                                                    type: K8sCanaryDelete
                                                    timeout: 10m
                                                    spec: {}
                                            rollbackSteps:
                                                - step:
                                                    name: Canary Delete
                                                    identifier: rollbackCanaryDelete
                                                    type: K8sCanaryDelete
                                                    timeout: 10m
                                                    spec: {}
                                    - stepGroup:
                                            name: Primary Deployment
                                            identifier: primaryDepoyment
                                            steps:
                                                - step:
                                                    name: Rolling Deployment
                                                    identifier: rollingDeployment
                                                    type: K8sRollingDeploy
                                                    timeout: 10m
                                                    spec:
                                                        skipDryRun: false
                                            rollbackSteps:
                                                - step:
                                                    name: Rolling Rollback
                                                    identifier: rollingRollback
                                                    type: K8sRollingRollback
                                                    timeout: 10m
                                                    spec: {}
                                rollbackSteps: []
                        tags: {}
                        failureStrategies:
                            - onFailure:
                                    errors:
                                        - AllErrors
                                    action:
                                        type: StageRollback        
      ### Importing Pipeline from Git
      test:
        type: harness:platform:Organization
        properties:
          identifier: identifier
          name: name
      testPipeline:
        type: harness:platform:Pipeline
        name: test
        properties:
          identifier: gitx
          orgId: default
          projectId: V
          name: gitx
          importFromGit: true
          gitImportInfo:
            branchName: main
            filePath: .harness/gitx.yaml
            connectorRef: account.DoNotDeleteGithub
            repoName: open-repo
          pipelineImportRequest:
            pipelineName: gitx
            pipelineDescription: Pipeline Description
    

    Create Pipeline Resource

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

    Constructor syntax

    new Pipeline(name: string, args: PipelineArgs, opts?: CustomResourceOptions);
    @overload
    def Pipeline(resource_name: str,
                 args: PipelineArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Pipeline(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 org_id: Optional[str] = None,
                 identifier: Optional[str] = None,
                 project_id: Optional[str] = None,
                 git_details: Optional[PipelineGitDetailsArgs] = None,
                 git_import_info: Optional[PipelineGitImportInfoArgs] = None,
                 import_from_git: Optional[bool] = None,
                 name: Optional[str] = None,
                 description: Optional[str] = None,
                 pipeline_import_request: Optional[PipelinePipelineImportRequestArgs] = None,
                 tags: Optional[Sequence[str]] = None,
                 template_applied: Optional[bool] = None,
                 template_applied_pipeline_yaml: Optional[str] = None,
                 yaml: Optional[str] = None)
    func NewPipeline(ctx *Context, name string, args PipelineArgs, opts ...ResourceOption) (*Pipeline, error)
    public Pipeline(string name, PipelineArgs args, CustomResourceOptions? opts = null)
    public Pipeline(String name, PipelineArgs args)
    public Pipeline(String name, PipelineArgs args, CustomResourceOptions options)
    
    type: harness:platform:Pipeline
    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 PipelineArgs
    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 PipelineArgs
    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 PipelineArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PipelineArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PipelineArgs
    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 pipelineResource = new Harness.Platform.Pipeline("pipelineResource", new()
    {
        OrgId = "string",
        Identifier = "string",
        ProjectId = "string",
        GitDetails = new Harness.Platform.Inputs.PipelineGitDetailsArgs
        {
            BaseBranch = "string",
            BranchName = "string",
            CommitMessage = "string",
            ConnectorRef = "string",
            FilePath = "string",
            LastCommitId = "string",
            LastObjectId = "string",
            RepoName = "string",
            StoreType = "string",
        },
        GitImportInfo = new Harness.Platform.Inputs.PipelineGitImportInfoArgs
        {
            BranchName = "string",
            ConnectorRef = "string",
            FilePath = "string",
            RepoName = "string",
        },
        ImportFromGit = false,
        Name = "string",
        Description = "string",
        PipelineImportRequest = new Harness.Platform.Inputs.PipelinePipelineImportRequestArgs
        {
            PipelineDescription = "string",
            PipelineName = "string",
        },
        Tags = new[]
        {
            "string",
        },
        TemplateApplied = false,
        TemplateAppliedPipelineYaml = "string",
        Yaml = "string",
    });
    
    example, err := platform.NewPipeline(ctx, "pipelineResource", &platform.PipelineArgs{
    	OrgId:      pulumi.String("string"),
    	Identifier: pulumi.String("string"),
    	ProjectId:  pulumi.String("string"),
    	GitDetails: &platform.PipelineGitDetailsArgs{
    		BaseBranch:    pulumi.String("string"),
    		BranchName:    pulumi.String("string"),
    		CommitMessage: pulumi.String("string"),
    		ConnectorRef:  pulumi.String("string"),
    		FilePath:      pulumi.String("string"),
    		LastCommitId:  pulumi.String("string"),
    		LastObjectId:  pulumi.String("string"),
    		RepoName:      pulumi.String("string"),
    		StoreType:     pulumi.String("string"),
    	},
    	GitImportInfo: &platform.PipelineGitImportInfoArgs{
    		BranchName:   pulumi.String("string"),
    		ConnectorRef: pulumi.String("string"),
    		FilePath:     pulumi.String("string"),
    		RepoName:     pulumi.String("string"),
    	},
    	ImportFromGit: pulumi.Bool(false),
    	Name:          pulumi.String("string"),
    	Description:   pulumi.String("string"),
    	PipelineImportRequest: &platform.PipelinePipelineImportRequestArgs{
    		PipelineDescription: pulumi.String("string"),
    		PipelineName:        pulumi.String("string"),
    	},
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TemplateApplied:             pulumi.Bool(false),
    	TemplateAppliedPipelineYaml: pulumi.String("string"),
    	Yaml:                        pulumi.String("string"),
    })
    
    var pipelineResource = new Pipeline("pipelineResource", PipelineArgs.builder()
        .orgId("string")
        .identifier("string")
        .projectId("string")
        .gitDetails(PipelineGitDetailsArgs.builder()
            .baseBranch("string")
            .branchName("string")
            .commitMessage("string")
            .connectorRef("string")
            .filePath("string")
            .lastCommitId("string")
            .lastObjectId("string")
            .repoName("string")
            .storeType("string")
            .build())
        .gitImportInfo(PipelineGitImportInfoArgs.builder()
            .branchName("string")
            .connectorRef("string")
            .filePath("string")
            .repoName("string")
            .build())
        .importFromGit(false)
        .name("string")
        .description("string")
        .pipelineImportRequest(PipelinePipelineImportRequestArgs.builder()
            .pipelineDescription("string")
            .pipelineName("string")
            .build())
        .tags("string")
        .templateApplied(false)
        .templateAppliedPipelineYaml("string")
        .yaml("string")
        .build());
    
    pipeline_resource = harness.platform.Pipeline("pipelineResource",
        org_id="string",
        identifier="string",
        project_id="string",
        git_details=harness.platform.PipelineGitDetailsArgs(
            base_branch="string",
            branch_name="string",
            commit_message="string",
            connector_ref="string",
            file_path="string",
            last_commit_id="string",
            last_object_id="string",
            repo_name="string",
            store_type="string",
        ),
        git_import_info=harness.platform.PipelineGitImportInfoArgs(
            branch_name="string",
            connector_ref="string",
            file_path="string",
            repo_name="string",
        ),
        import_from_git=False,
        name="string",
        description="string",
        pipeline_import_request=harness.platform.PipelinePipelineImportRequestArgs(
            pipeline_description="string",
            pipeline_name="string",
        ),
        tags=["string"],
        template_applied=False,
        template_applied_pipeline_yaml="string",
        yaml="string")
    
    const pipelineResource = new harness.platform.Pipeline("pipelineResource", {
        orgId: "string",
        identifier: "string",
        projectId: "string",
        gitDetails: {
            baseBranch: "string",
            branchName: "string",
            commitMessage: "string",
            connectorRef: "string",
            filePath: "string",
            lastCommitId: "string",
            lastObjectId: "string",
            repoName: "string",
            storeType: "string",
        },
        gitImportInfo: {
            branchName: "string",
            connectorRef: "string",
            filePath: "string",
            repoName: "string",
        },
        importFromGit: false,
        name: "string",
        description: "string",
        pipelineImportRequest: {
            pipelineDescription: "string",
            pipelineName: "string",
        },
        tags: ["string"],
        templateApplied: false,
        templateAppliedPipelineYaml: "string",
        yaml: "string",
    });
    
    type: harness:platform:Pipeline
    properties:
        description: string
        gitDetails:
            baseBranch: string
            branchName: string
            commitMessage: string
            connectorRef: string
            filePath: string
            lastCommitId: string
            lastObjectId: string
            repoName: string
            storeType: string
        gitImportInfo:
            branchName: string
            connectorRef: string
            filePath: string
            repoName: string
        identifier: string
        importFromGit: false
        name: string
        orgId: string
        pipelineImportRequest:
            pipelineDescription: string
            pipelineName: string
        projectId: string
        tags:
            - string
        templateApplied: false
        templateAppliedPipelineYaml: string
        yaml: string
    

    Pipeline Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Pipeline resource accepts the following input properties:

    Identifier string
    Unique identifier of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Description string
    Description of the resource.
    GitDetails PipelineGitDetails
    Contains parameters related to creating an Entity for Git Experience.
    GitImportInfo PipelineGitImportInfo
    Contains Git Information for importing entities from Git
    ImportFromGit bool
    Flag to set if importing from Git
    Name string
    Name of the resource.
    PipelineImportRequest PipelinePipelineImportRequest
    Contains parameters for importing a pipeline
    Tags List<string>
    Tags to associate with the resource. These should match the tag value passed in the YAML; if this parameter is null or not passed, the tags specified in YAML should also be null.
    TemplateApplied bool
    If true, returns Pipeline YAML with Templates applied on it.
    TemplateAppliedPipelineYaml string
    Pipeline YAML after resolving Templates (returned as a String).
    Yaml string
    YAML of the pipeline. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    Identifier string
    Unique identifier of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Description string
    Description of the resource.
    GitDetails PipelineGitDetailsArgs
    Contains parameters related to creating an Entity for Git Experience.
    GitImportInfo PipelineGitImportInfoArgs
    Contains Git Information for importing entities from Git
    ImportFromGit bool
    Flag to set if importing from Git
    Name string
    Name of the resource.
    PipelineImportRequest PipelinePipelineImportRequestArgs
    Contains parameters for importing a pipeline
    Tags []string
    Tags to associate with the resource. These should match the tag value passed in the YAML; if this parameter is null or not passed, the tags specified in YAML should also be null.
    TemplateApplied bool
    If true, returns Pipeline YAML with Templates applied on it.
    TemplateAppliedPipelineYaml string
    Pipeline YAML after resolving Templates (returned as a String).
    Yaml string
    YAML of the pipeline. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    identifier String
    Unique identifier of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    description String
    Description of the resource.
    gitDetails PipelineGitDetails
    Contains parameters related to creating an Entity for Git Experience.
    gitImportInfo PipelineGitImportInfo
    Contains Git Information for importing entities from Git
    importFromGit Boolean
    Flag to set if importing from Git
    name String
    Name of the resource.
    pipelineImportRequest PipelinePipelineImportRequest
    Contains parameters for importing a pipeline
    tags List<String>
    Tags to associate with the resource. These should match the tag value passed in the YAML; if this parameter is null or not passed, the tags specified in YAML should also be null.
    templateApplied Boolean
    If true, returns Pipeline YAML with Templates applied on it.
    templateAppliedPipelineYaml String
    Pipeline YAML after resolving Templates (returned as a String).
    yaml String
    YAML of the pipeline. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    identifier string
    Unique identifier of the resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    description string
    Description of the resource.
    gitDetails PipelineGitDetails
    Contains parameters related to creating an Entity for Git Experience.
    gitImportInfo PipelineGitImportInfo
    Contains Git Information for importing entities from Git
    importFromGit boolean
    Flag to set if importing from Git
    name string
    Name of the resource.
    pipelineImportRequest PipelinePipelineImportRequest
    Contains parameters for importing a pipeline
    tags string[]
    Tags to associate with the resource. These should match the tag value passed in the YAML; if this parameter is null or not passed, the tags specified in YAML should also be null.
    templateApplied boolean
    If true, returns Pipeline YAML with Templates applied on it.
    templateAppliedPipelineYaml string
    Pipeline YAML after resolving Templates (returned as a String).
    yaml string
    YAML of the pipeline. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    identifier str
    Unique identifier of the resource.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    description str
    Description of the resource.
    git_details PipelineGitDetailsArgs
    Contains parameters related to creating an Entity for Git Experience.
    git_import_info PipelineGitImportInfoArgs
    Contains Git Information for importing entities from Git
    import_from_git bool
    Flag to set if importing from Git
    name str
    Name of the resource.
    pipeline_import_request PipelinePipelineImportRequestArgs
    Contains parameters for importing a pipeline
    tags Sequence[str]
    Tags to associate with the resource. These should match the tag value passed in the YAML; if this parameter is null or not passed, the tags specified in YAML should also be null.
    template_applied bool
    If true, returns Pipeline YAML with Templates applied on it.
    template_applied_pipeline_yaml str
    Pipeline YAML after resolving Templates (returned as a String).
    yaml str
    YAML of the pipeline. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    identifier String
    Unique identifier of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    description String
    Description of the resource.
    gitDetails Property Map
    Contains parameters related to creating an Entity for Git Experience.
    gitImportInfo Property Map
    Contains Git Information for importing entities from Git
    importFromGit Boolean
    Flag to set if importing from Git
    name String
    Name of the resource.
    pipelineImportRequest Property Map
    Contains parameters for importing a pipeline
    tags List<String>
    Tags to associate with the resource. These should match the tag value passed in the YAML; if this parameter is null or not passed, the tags specified in YAML should also be null.
    templateApplied Boolean
    If true, returns Pipeline YAML with Templates applied on it.
    templateAppliedPipelineYaml String
    Pipeline YAML after resolving Templates (returned as a String).
    yaml String
    YAML of the pipeline. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Pipeline Resource

    Get an existing Pipeline 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?: PipelineState, opts?: CustomResourceOptions): Pipeline
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            git_details: Optional[PipelineGitDetailsArgs] = None,
            git_import_info: Optional[PipelineGitImportInfoArgs] = None,
            identifier: Optional[str] = None,
            import_from_git: Optional[bool] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            pipeline_import_request: Optional[PipelinePipelineImportRequestArgs] = None,
            project_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            template_applied: Optional[bool] = None,
            template_applied_pipeline_yaml: Optional[str] = None,
            yaml: Optional[str] = None) -> Pipeline
    func GetPipeline(ctx *Context, name string, id IDInput, state *PipelineState, opts ...ResourceOption) (*Pipeline, error)
    public static Pipeline Get(string name, Input<string> id, PipelineState? state, CustomResourceOptions? opts = null)
    public static Pipeline get(String name, Output<String> id, PipelineState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Description string
    Description of the resource.
    GitDetails PipelineGitDetails
    Contains parameters related to creating an Entity for Git Experience.
    GitImportInfo PipelineGitImportInfo
    Contains Git Information for importing entities from Git
    Identifier string
    Unique identifier of the resource.
    ImportFromGit bool
    Flag to set if importing from Git
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    PipelineImportRequest PipelinePipelineImportRequest
    Contains parameters for importing a pipeline
    ProjectId string
    Unique identifier of the project.
    Tags List<string>
    Tags to associate with the resource. These should match the tag value passed in the YAML; if this parameter is null or not passed, the tags specified in YAML should also be null.
    TemplateApplied bool
    If true, returns Pipeline YAML with Templates applied on it.
    TemplateAppliedPipelineYaml string
    Pipeline YAML after resolving Templates (returned as a String).
    Yaml string
    YAML of the pipeline. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    Description string
    Description of the resource.
    GitDetails PipelineGitDetailsArgs
    Contains parameters related to creating an Entity for Git Experience.
    GitImportInfo PipelineGitImportInfoArgs
    Contains Git Information for importing entities from Git
    Identifier string
    Unique identifier of the resource.
    ImportFromGit bool
    Flag to set if importing from Git
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    PipelineImportRequest PipelinePipelineImportRequestArgs
    Contains parameters for importing a pipeline
    ProjectId string
    Unique identifier of the project.
    Tags []string
    Tags to associate with the resource. These should match the tag value passed in the YAML; if this parameter is null or not passed, the tags specified in YAML should also be null.
    TemplateApplied bool
    If true, returns Pipeline YAML with Templates applied on it.
    TemplateAppliedPipelineYaml string
    Pipeline YAML after resolving Templates (returned as a String).
    Yaml string
    YAML of the pipeline. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    description String
    Description of the resource.
    gitDetails PipelineGitDetails
    Contains parameters related to creating an Entity for Git Experience.
    gitImportInfo PipelineGitImportInfo
    Contains Git Information for importing entities from Git
    identifier String
    Unique identifier of the resource.
    importFromGit Boolean
    Flag to set if importing from Git
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    pipelineImportRequest PipelinePipelineImportRequest
    Contains parameters for importing a pipeline
    projectId String
    Unique identifier of the project.
    tags List<String>
    Tags to associate with the resource. These should match the tag value passed in the YAML; if this parameter is null or not passed, the tags specified in YAML should also be null.
    templateApplied Boolean
    If true, returns Pipeline YAML with Templates applied on it.
    templateAppliedPipelineYaml String
    Pipeline YAML after resolving Templates (returned as a String).
    yaml String
    YAML of the pipeline. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    description string
    Description of the resource.
    gitDetails PipelineGitDetails
    Contains parameters related to creating an Entity for Git Experience.
    gitImportInfo PipelineGitImportInfo
    Contains Git Information for importing entities from Git
    identifier string
    Unique identifier of the resource.
    importFromGit boolean
    Flag to set if importing from Git
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    pipelineImportRequest PipelinePipelineImportRequest
    Contains parameters for importing a pipeline
    projectId string
    Unique identifier of the project.
    tags string[]
    Tags to associate with the resource. These should match the tag value passed in the YAML; if this parameter is null or not passed, the tags specified in YAML should also be null.
    templateApplied boolean
    If true, returns Pipeline YAML with Templates applied on it.
    templateAppliedPipelineYaml string
    Pipeline YAML after resolving Templates (returned as a String).
    yaml string
    YAML of the pipeline. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    description str
    Description of the resource.
    git_details PipelineGitDetailsArgs
    Contains parameters related to creating an Entity for Git Experience.
    git_import_info PipelineGitImportInfoArgs
    Contains Git Information for importing entities from Git
    identifier str
    Unique identifier of the resource.
    import_from_git bool
    Flag to set if importing from Git
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    pipeline_import_request PipelinePipelineImportRequestArgs
    Contains parameters for importing a pipeline
    project_id str
    Unique identifier of the project.
    tags Sequence[str]
    Tags to associate with the resource. These should match the tag value passed in the YAML; if this parameter is null or not passed, the tags specified in YAML should also be null.
    template_applied bool
    If true, returns Pipeline YAML with Templates applied on it.
    template_applied_pipeline_yaml str
    Pipeline YAML after resolving Templates (returned as a String).
    yaml str
    YAML of the pipeline. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.
    description String
    Description of the resource.
    gitDetails Property Map
    Contains parameters related to creating an Entity for Git Experience.
    gitImportInfo Property Map
    Contains Git Information for importing entities from Git
    identifier String
    Unique identifier of the resource.
    importFromGit Boolean
    Flag to set if importing from Git
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    pipelineImportRequest Property Map
    Contains parameters for importing a pipeline
    projectId String
    Unique identifier of the project.
    tags List<String>
    Tags to associate with the resource. These should match the tag value passed in the YAML; if this parameter is null or not passed, the tags specified in YAML should also be null.
    templateApplied Boolean
    If true, returns Pipeline YAML with Templates applied on it.
    templateAppliedPipelineYaml String
    Pipeline YAML after resolving Templates (returned as a String).
    yaml String
    YAML of the pipeline. In YAML, to reference an entity at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference an entity at the account scope, prefix 'account` to the expression: account.{identifier}. For eg, to reference a connector with identifier 'connectorId' at the organization scope in a stage mention it as connectorRef: org.connectorId.

    Supporting Types

    PipelineGitDetails, PipelineGitDetailsArgs

    BaseBranch string
    Name of the default branch (this checks out a new branch titled by branch_name).
    BranchName string
    Name of the branch.
    CommitMessage string
    Commit message used for the merge commit.
    ConnectorRef string
    Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    FilePath string
    File path of the Entity in the repository.
    LastCommitId string
    Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
    LastObjectId string
    Last object identifier (for Github). To be provided only when updating Pipeline.
    RepoName string
    Name of the repository.
    StoreType string
    Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
    BaseBranch string
    Name of the default branch (this checks out a new branch titled by branch_name).
    BranchName string
    Name of the branch.
    CommitMessage string
    Commit message used for the merge commit.
    ConnectorRef string
    Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    FilePath string
    File path of the Entity in the repository.
    LastCommitId string
    Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
    LastObjectId string
    Last object identifier (for Github). To be provided only when updating Pipeline.
    RepoName string
    Name of the repository.
    StoreType string
    Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
    baseBranch String
    Name of the default branch (this checks out a new branch titled by branch_name).
    branchName String
    Name of the branch.
    commitMessage String
    Commit message used for the merge commit.
    connectorRef String
    Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    filePath String
    File path of the Entity in the repository.
    lastCommitId String
    Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
    lastObjectId String
    Last object identifier (for Github). To be provided only when updating Pipeline.
    repoName String
    Name of the repository.
    storeType String
    Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
    baseBranch string
    Name of the default branch (this checks out a new branch titled by branch_name).
    branchName string
    Name of the branch.
    commitMessage string
    Commit message used for the merge commit.
    connectorRef string
    Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    filePath string
    File path of the Entity in the repository.
    lastCommitId string
    Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
    lastObjectId string
    Last object identifier (for Github). To be provided only when updating Pipeline.
    repoName string
    Name of the repository.
    storeType string
    Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
    base_branch str
    Name of the default branch (this checks out a new branch titled by branch_name).
    branch_name str
    Name of the branch.
    commit_message str
    Commit message used for the merge commit.
    connector_ref str
    Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    file_path str
    File path of the Entity in the repository.
    last_commit_id str
    Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
    last_object_id str
    Last object identifier (for Github). To be provided only when updating Pipeline.
    repo_name str
    Name of the repository.
    store_type str
    Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.
    baseBranch String
    Name of the default branch (this checks out a new branch titled by branch_name).
    branchName String
    Name of the branch.
    commitMessage String
    Commit message used for the merge commit.
    connectorRef String
    Identifier of the Harness Connector used for CRUD operations on the Entity. To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    filePath String
    File path of the Entity in the repository.
    lastCommitId String
    Last commit identifier (for Git Repositories other than Github). To be provided only when updating Pipeline.
    lastObjectId String
    Last object identifier (for Github). To be provided only when updating Pipeline.
    repoName String
    Name of the repository.
    storeType String
    Specifies whether the Entity is to be stored in Git or not. Possible values: INLINE, REMOTE.

    PipelineGitImportInfo, PipelineGitImportInfoArgs

    BranchName string
    Name of the branch.
    ConnectorRef string
    Identifier of the Harness Connector used for importing entity from Git To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    FilePath string
    File path of the Entity in the repository.
    RepoName string
    Name of the repository.
    BranchName string
    Name of the branch.
    ConnectorRef string
    Identifier of the Harness Connector used for importing entity from Git To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    FilePath string
    File path of the Entity in the repository.
    RepoName string
    Name of the repository.
    branchName String
    Name of the branch.
    connectorRef String
    Identifier of the Harness Connector used for importing entity from Git To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    filePath String
    File path of the Entity in the repository.
    repoName String
    Name of the repository.
    branchName string
    Name of the branch.
    connectorRef string
    Identifier of the Harness Connector used for importing entity from Git To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    filePath string
    File path of the Entity in the repository.
    repoName string
    Name of the repository.
    branch_name str
    Name of the branch.
    connector_ref str
    Identifier of the Harness Connector used for importing entity from Git To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    file_path str
    File path of the Entity in the repository.
    repo_name str
    Name of the repository.
    branchName String
    Name of the branch.
    connectorRef String
    Identifier of the Harness Connector used for importing entity from Git To reference a connector at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a connector at the account scope, prefix 'account` to the expression: account.{identifier}.
    filePath String
    File path of the Entity in the repository.
    repoName String
    Name of the repository.

    PipelinePipelineImportRequest, PipelinePipelineImportRequestArgs

    PipelineDescription string
    Description of the pipeline.
    PipelineName string
    Name of the pipeline.
    PipelineDescription string
    Description of the pipeline.
    PipelineName string
    Name of the pipeline.
    pipelineDescription String
    Description of the pipeline.
    pipelineName String
    Name of the pipeline.
    pipelineDescription string
    Description of the pipeline.
    pipelineName string
    Name of the pipeline.
    pipeline_description str
    Description of the pipeline.
    pipeline_name str
    Name of the pipeline.
    pipelineDescription String
    Description of the pipeline.
    pipelineName String
    Name of the pipeline.

    Import

    Import pipeline

    $ pulumi import harness:platform/pipeline:Pipeline example <org_id>/<project_id>/<pipeline_id>
    

    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 harness Terraform Provider.
    harness logo
    Harness v0.4.1 published on Monday, Oct 14, 2024 by Pulumi