1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. GitOpsRepository
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.platform.GitOpsRepository

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Resource for creating Harness Gitops Repositories.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Lbrlabs.PulumiPackage.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Harness.Platform.GitOpsRepository("example", new()
        {
            AccountId = "account_id",
            AgentId = "agent_id",
            Identifier = "identifier",
            OrgId = "org_id",
            ProjectId = "project_id",
            Repos = new[]
            {
                new Harness.Platform.Inputs.GitOpsRepositoryRepoArgs
                {
                    ConnectionType = "HTTPS_ANONYMOUS",
                    Insecure = true,
                    Name = "repo_name",
                    Repo = "https://github.com/willycoll/argocd-example-apps.git",
                },
            },
            Upsert = true,
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/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.NewGitOpsRepository(ctx, "example", &platform.GitOpsRepositoryArgs{
    			AccountId:  pulumi.String("account_id"),
    			AgentId:    pulumi.String("agent_id"),
    			Identifier: pulumi.String("identifier"),
    			OrgId:      pulumi.String("org_id"),
    			ProjectId:  pulumi.String("project_id"),
    			Repos: platform.GitOpsRepositoryRepoArray{
    				&platform.GitOpsRepositoryRepoArgs{
    					ConnectionType: pulumi.String("HTTPS_ANONYMOUS"),
    					Insecure:       pulumi.Bool(true),
    					Name:           pulumi.String("repo_name"),
    					Repo:           pulumi.String("https://github.com/willycoll/argocd-example-apps.git"),
    				},
    			},
    			Upsert: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.GitOpsRepository;
    import com.pulumi.harness.platform.GitOpsRepositoryArgs;
    import com.pulumi.harness.platform.inputs.GitOpsRepositoryRepoArgs;
    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 GitOpsRepository("example", GitOpsRepositoryArgs.builder()        
                .accountId("account_id")
                .agentId("agent_id")
                .identifier("identifier")
                .orgId("org_id")
                .projectId("project_id")
                .repos(GitOpsRepositoryRepoArgs.builder()
                    .connectionType("HTTPS_ANONYMOUS")
                    .insecure(true)
                    .name("repo_name")
                    .repo("https://github.com/willycoll/argocd-example-apps.git")
                    .build())
                .upsert(true)
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_harness as harness
    
    example = harness.platform.GitOpsRepository("example",
        account_id="account_id",
        agent_id="agent_id",
        identifier="identifier",
        org_id="org_id",
        project_id="project_id",
        repos=[harness.platform.GitOpsRepositoryRepoArgs(
            connection_type="HTTPS_ANONYMOUS",
            insecure=True,
            name="repo_name",
            repo="https://github.com/willycoll/argocd-example-apps.git",
        )],
        upsert=True)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@lbrlabs/pulumi-harness";
    
    const example = new harness.platform.GitOpsRepository("example", {
        accountId: "account_id",
        agentId: "agent_id",
        identifier: "identifier",
        orgId: "org_id",
        projectId: "project_id",
        repos: [{
            connectionType: "HTTPS_ANONYMOUS",
            insecure: true,
            name: "repo_name",
            repo: "https://github.com/willycoll/argocd-example-apps.git",
        }],
        upsert: true,
    });
    
    resources:
      example:
        type: harness:platform:GitOpsRepository
        properties:
          accountId: account_id
          agentId: agent_id
          identifier: identifier
          orgId: org_id
          projectId: project_id
          repos:
            - connectionType: HTTPS_ANONYMOUS
              insecure: true
              name: repo_name
              repo: https://github.com/willycoll/argocd-example-apps.git
          upsert: true
    

    Create GitOpsRepository Resource

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

    Constructor syntax

    new GitOpsRepository(name: string, args: GitOpsRepositoryArgs, opts?: CustomResourceOptions);
    @overload
    def GitOpsRepository(resource_name: str,
                         args: GitOpsRepositoryArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def GitOpsRepository(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         account_id: Optional[str] = None,
                         agent_id: Optional[str] = None,
                         identifier: Optional[str] = None,
                         repos: Optional[Sequence[GitOpsRepositoryRepoArgs]] = None,
                         creds_only: Optional[bool] = None,
                         org_id: Optional[str] = None,
                         project_id: Optional[str] = None,
                         query_force_refresh: Optional[bool] = None,
                         query_project: Optional[str] = None,
                         query_repo: Optional[str] = None,
                         update_masks: Optional[Sequence[GitOpsRepositoryUpdateMaskArgs]] = None,
                         upsert: Optional[bool] = None)
    func NewGitOpsRepository(ctx *Context, name string, args GitOpsRepositoryArgs, opts ...ResourceOption) (*GitOpsRepository, error)
    public GitOpsRepository(string name, GitOpsRepositoryArgs args, CustomResourceOptions? opts = null)
    public GitOpsRepository(String name, GitOpsRepositoryArgs args)
    public GitOpsRepository(String name, GitOpsRepositoryArgs args, CustomResourceOptions options)
    
    type: harness:platform:GitOpsRepository
    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 GitOpsRepositoryArgs
    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 GitOpsRepositoryArgs
    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 GitOpsRepositoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GitOpsRepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GitOpsRepositoryArgs
    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 gitOpsRepositoryResource = new Harness.Platform.GitOpsRepository("gitOpsRepositoryResource", new()
    {
        AccountId = "string",
        AgentId = "string",
        Identifier = "string",
        Repos = new[]
        {
            new Harness.Platform.Inputs.GitOpsRepositoryRepoArgs
            {
                ConnectionType = "string",
                Repo = "string",
                Name = "string",
                Password = "string",
                GithubAppId = "string",
                GithubAppInstallationId = "string",
                GithubAppPrivateKey = "string",
                InheritedCreds = false,
                Insecure = false,
                InsecureIgnoreHostKey = false,
                EnableOci = false,
                GithubAppEnterpriseBaseUrl = "string",
                Project = "string",
                Proxy = "string",
                EnableLfs = false,
                SshPrivateKey = "string",
                TlsClientCertData = "string",
                TlsClientCertKey = "string",
                Type_ = "string",
                Username = "string",
            },
        },
        CredsOnly = false,
        OrgId = "string",
        ProjectId = "string",
        QueryForceRefresh = false,
        QueryProject = "string",
        QueryRepo = "string",
        UpdateMasks = new[]
        {
            new Harness.Platform.Inputs.GitOpsRepositoryUpdateMaskArgs
            {
                Paths = new[]
                {
                    "string",
                },
            },
        },
        Upsert = false,
    });
    
    example, err := platform.NewGitOpsRepository(ctx, "gitOpsRepositoryResource", &platform.GitOpsRepositoryArgs{
    	AccountId:  pulumi.String("string"),
    	AgentId:    pulumi.String("string"),
    	Identifier: pulumi.String("string"),
    	Repos: platform.GitOpsRepositoryRepoArray{
    		&platform.GitOpsRepositoryRepoArgs{
    			ConnectionType:             pulumi.String("string"),
    			Repo:                       pulumi.String("string"),
    			Name:                       pulumi.String("string"),
    			Password:                   pulumi.String("string"),
    			GithubAppId:                pulumi.String("string"),
    			GithubAppInstallationId:    pulumi.String("string"),
    			GithubAppPrivateKey:        pulumi.String("string"),
    			InheritedCreds:             pulumi.Bool(false),
    			Insecure:                   pulumi.Bool(false),
    			InsecureIgnoreHostKey:      pulumi.Bool(false),
    			EnableOci:                  pulumi.Bool(false),
    			GithubAppEnterpriseBaseUrl: pulumi.String("string"),
    			Project:                    pulumi.String("string"),
    			Proxy:                      pulumi.String("string"),
    			EnableLfs:                  pulumi.Bool(false),
    			SshPrivateKey:              pulumi.String("string"),
    			TlsClientCertData:          pulumi.String("string"),
    			TlsClientCertKey:           pulumi.String("string"),
    			Type_:                      pulumi.String("string"),
    			Username:                   pulumi.String("string"),
    		},
    	},
    	CredsOnly:         pulumi.Bool(false),
    	OrgId:             pulumi.String("string"),
    	ProjectId:         pulumi.String("string"),
    	QueryForceRefresh: pulumi.Bool(false),
    	QueryProject:      pulumi.String("string"),
    	QueryRepo:         pulumi.String("string"),
    	UpdateMasks: platform.GitOpsRepositoryUpdateMaskArray{
    		&platform.GitOpsRepositoryUpdateMaskArgs{
    			Paths: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Upsert: pulumi.Bool(false),
    })
    
    var gitOpsRepositoryResource = new GitOpsRepository("gitOpsRepositoryResource", GitOpsRepositoryArgs.builder()
        .accountId("string")
        .agentId("string")
        .identifier("string")
        .repos(GitOpsRepositoryRepoArgs.builder()
            .connectionType("string")
            .repo("string")
            .name("string")
            .password("string")
            .githubAppId("string")
            .githubAppInstallationId("string")
            .githubAppPrivateKey("string")
            .inheritedCreds(false)
            .insecure(false)
            .insecureIgnoreHostKey(false)
            .enableOci(false)
            .githubAppEnterpriseBaseUrl("string")
            .project("string")
            .proxy("string")
            .enableLfs(false)
            .sshPrivateKey("string")
            .tlsClientCertData("string")
            .tlsClientCertKey("string")
            .type_("string")
            .username("string")
            .build())
        .credsOnly(false)
        .orgId("string")
        .projectId("string")
        .queryForceRefresh(false)
        .queryProject("string")
        .queryRepo("string")
        .updateMasks(GitOpsRepositoryUpdateMaskArgs.builder()
            .paths("string")
            .build())
        .upsert(false)
        .build());
    
    git_ops_repository_resource = harness.platform.GitOpsRepository("gitOpsRepositoryResource",
        account_id="string",
        agent_id="string",
        identifier="string",
        repos=[harness.platform.GitOpsRepositoryRepoArgs(
            connection_type="string",
            repo="string",
            name="string",
            password="string",
            github_app_id="string",
            github_app_installation_id="string",
            github_app_private_key="string",
            inherited_creds=False,
            insecure=False,
            insecure_ignore_host_key=False,
            enable_oci=False,
            github_app_enterprise_base_url="string",
            project="string",
            proxy="string",
            enable_lfs=False,
            ssh_private_key="string",
            tls_client_cert_data="string",
            tls_client_cert_key="string",
            type_="string",
            username="string",
        )],
        creds_only=False,
        org_id="string",
        project_id="string",
        query_force_refresh=False,
        query_project="string",
        query_repo="string",
        update_masks=[harness.platform.GitOpsRepositoryUpdateMaskArgs(
            paths=["string"],
        )],
        upsert=False)
    
    const gitOpsRepositoryResource = new harness.platform.GitOpsRepository("gitOpsRepositoryResource", {
        accountId: "string",
        agentId: "string",
        identifier: "string",
        repos: [{
            connectionType: "string",
            repo: "string",
            name: "string",
            password: "string",
            githubAppId: "string",
            githubAppInstallationId: "string",
            githubAppPrivateKey: "string",
            inheritedCreds: false,
            insecure: false,
            insecureIgnoreHostKey: false,
            enableOci: false,
            githubAppEnterpriseBaseUrl: "string",
            project: "string",
            proxy: "string",
            enableLfs: false,
            sshPrivateKey: "string",
            tlsClientCertData: "string",
            tlsClientCertKey: "string",
            type_: "string",
            username: "string",
        }],
        credsOnly: false,
        orgId: "string",
        projectId: "string",
        queryForceRefresh: false,
        queryProject: "string",
        queryRepo: "string",
        updateMasks: [{
            paths: ["string"],
        }],
        upsert: false,
    });
    
    type: harness:platform:GitOpsRepository
    properties:
        accountId: string
        agentId: string
        credsOnly: false
        identifier: string
        orgId: string
        projectId: string
        queryForceRefresh: false
        queryProject: string
        queryRepo: string
        repos:
            - connectionType: string
              enableLfs: false
              enableOci: false
              githubAppEnterpriseBaseUrl: string
              githubAppId: string
              githubAppInstallationId: string
              githubAppPrivateKey: string
              inheritedCreds: false
              insecure: false
              insecureIgnoreHostKey: false
              name: string
              password: string
              project: string
              proxy: string
              repo: string
              sshPrivateKey: string
              tlsClientCertData: string
              tlsClientCertKey: string
              type_: string
              username: string
        updateMasks:
            - paths:
                - string
        upsert: false
    

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

    AccountId string
    Account identifier of the GitOps repository.
    AgentId string
    Agent identifier of the GitOps repository.
    Identifier string
    Identifier of the GitOps repository.
    Repos List<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.GitOpsRepositoryRepo>
    Repo details holding application configurations.
    CredsOnly bool
    Indicates if to operate on credential set instead of repository.
    OrgId string
    Organization identifier of the GitOps repository.
    ProjectId string
    Project identifier of the GitOps repository.
    QueryForceRefresh bool
    Indicates to force refresh query for repository.
    QueryProject string
    Project to query for the GitOps repo.
    QueryRepo string
    GitOps repository to query.
    UpdateMasks List<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.GitOpsRepositoryUpdateMask>
    Update mask of the repository.
    Upsert bool
    Indicates if the GitOps repository should be updated if existing and inserted if not.
    AccountId string
    Account identifier of the GitOps repository.
    AgentId string
    Agent identifier of the GitOps repository.
    Identifier string
    Identifier of the GitOps repository.
    Repos []GitOpsRepositoryRepoArgs
    Repo details holding application configurations.
    CredsOnly bool
    Indicates if to operate on credential set instead of repository.
    OrgId string
    Organization identifier of the GitOps repository.
    ProjectId string
    Project identifier of the GitOps repository.
    QueryForceRefresh bool
    Indicates to force refresh query for repository.
    QueryProject string
    Project to query for the GitOps repo.
    QueryRepo string
    GitOps repository to query.
    UpdateMasks []GitOpsRepositoryUpdateMaskArgs
    Update mask of the repository.
    Upsert bool
    Indicates if the GitOps repository should be updated if existing and inserted if not.
    accountId String
    Account identifier of the GitOps repository.
    agentId String
    Agent identifier of the GitOps repository.
    identifier String
    Identifier of the GitOps repository.
    repos List<GitOpsRepositoryRepo>
    Repo details holding application configurations.
    credsOnly Boolean
    Indicates if to operate on credential set instead of repository.
    orgId String
    Organization identifier of the GitOps repository.
    projectId String
    Project identifier of the GitOps repository.
    queryForceRefresh Boolean
    Indicates to force refresh query for repository.
    queryProject String
    Project to query for the GitOps repo.
    queryRepo String
    GitOps repository to query.
    updateMasks List<GitOpsRepositoryUpdateMask>
    Update mask of the repository.
    upsert Boolean
    Indicates if the GitOps repository should be updated if existing and inserted if not.
    accountId string
    Account identifier of the GitOps repository.
    agentId string
    Agent identifier of the GitOps repository.
    identifier string
    Identifier of the GitOps repository.
    repos GitOpsRepositoryRepo[]
    Repo details holding application configurations.
    credsOnly boolean
    Indicates if to operate on credential set instead of repository.
    orgId string
    Organization identifier of the GitOps repository.
    projectId string
    Project identifier of the GitOps repository.
    queryForceRefresh boolean
    Indicates to force refresh query for repository.
    queryProject string
    Project to query for the GitOps repo.
    queryRepo string
    GitOps repository to query.
    updateMasks GitOpsRepositoryUpdateMask[]
    Update mask of the repository.
    upsert boolean
    Indicates if the GitOps repository should be updated if existing and inserted if not.
    account_id str
    Account identifier of the GitOps repository.
    agent_id str
    Agent identifier of the GitOps repository.
    identifier str
    Identifier of the GitOps repository.
    repos Sequence[GitOpsRepositoryRepoArgs]
    Repo details holding application configurations.
    creds_only bool
    Indicates if to operate on credential set instead of repository.
    org_id str
    Organization identifier of the GitOps repository.
    project_id str
    Project identifier of the GitOps repository.
    query_force_refresh bool
    Indicates to force refresh query for repository.
    query_project str
    Project to query for the GitOps repo.
    query_repo str
    GitOps repository to query.
    update_masks Sequence[GitOpsRepositoryUpdateMaskArgs]
    Update mask of the repository.
    upsert bool
    Indicates if the GitOps repository should be updated if existing and inserted if not.
    accountId String
    Account identifier of the GitOps repository.
    agentId String
    Agent identifier of the GitOps repository.
    identifier String
    Identifier of the GitOps repository.
    repos List<Property Map>
    Repo details holding application configurations.
    credsOnly Boolean
    Indicates if to operate on credential set instead of repository.
    orgId String
    Organization identifier of the GitOps repository.
    projectId String
    Project identifier of the GitOps repository.
    queryForceRefresh Boolean
    Indicates to force refresh query for repository.
    queryProject String
    Project to query for the GitOps repo.
    queryRepo String
    GitOps repository to query.
    updateMasks List<Property Map>
    Update mask of the repository.
    upsert Boolean
    Indicates if the GitOps repository should be updated if existing and inserted if not.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GitOpsRepository 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 GitOpsRepository Resource

    Get an existing GitOpsRepository 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?: GitOpsRepositoryState, opts?: CustomResourceOptions): GitOpsRepository
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            agent_id: Optional[str] = None,
            creds_only: Optional[bool] = None,
            identifier: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            query_force_refresh: Optional[bool] = None,
            query_project: Optional[str] = None,
            query_repo: Optional[str] = None,
            repos: Optional[Sequence[GitOpsRepositoryRepoArgs]] = None,
            update_masks: Optional[Sequence[GitOpsRepositoryUpdateMaskArgs]] = None,
            upsert: Optional[bool] = None) -> GitOpsRepository
    func GetGitOpsRepository(ctx *Context, name string, id IDInput, state *GitOpsRepositoryState, opts ...ResourceOption) (*GitOpsRepository, error)
    public static GitOpsRepository Get(string name, Input<string> id, GitOpsRepositoryState? state, CustomResourceOptions? opts = null)
    public static GitOpsRepository get(String name, Output<String> id, GitOpsRepositoryState 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:
    AccountId string
    Account identifier of the GitOps repository.
    AgentId string
    Agent identifier of the GitOps repository.
    CredsOnly bool
    Indicates if to operate on credential set instead of repository.
    Identifier string
    Identifier of the GitOps repository.
    OrgId string
    Organization identifier of the GitOps repository.
    ProjectId string
    Project identifier of the GitOps repository.
    QueryForceRefresh bool
    Indicates to force refresh query for repository.
    QueryProject string
    Project to query for the GitOps repo.
    QueryRepo string
    GitOps repository to query.
    Repos List<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.GitOpsRepositoryRepo>
    Repo details holding application configurations.
    UpdateMasks List<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.GitOpsRepositoryUpdateMask>
    Update mask of the repository.
    Upsert bool
    Indicates if the GitOps repository should be updated if existing and inserted if not.
    AccountId string
    Account identifier of the GitOps repository.
    AgentId string
    Agent identifier of the GitOps repository.
    CredsOnly bool
    Indicates if to operate on credential set instead of repository.
    Identifier string
    Identifier of the GitOps repository.
    OrgId string
    Organization identifier of the GitOps repository.
    ProjectId string
    Project identifier of the GitOps repository.
    QueryForceRefresh bool
    Indicates to force refresh query for repository.
    QueryProject string
    Project to query for the GitOps repo.
    QueryRepo string
    GitOps repository to query.
    Repos []GitOpsRepositoryRepoArgs
    Repo details holding application configurations.
    UpdateMasks []GitOpsRepositoryUpdateMaskArgs
    Update mask of the repository.
    Upsert bool
    Indicates if the GitOps repository should be updated if existing and inserted if not.
    accountId String
    Account identifier of the GitOps repository.
    agentId String
    Agent identifier of the GitOps repository.
    credsOnly Boolean
    Indicates if to operate on credential set instead of repository.
    identifier String
    Identifier of the GitOps repository.
    orgId String
    Organization identifier of the GitOps repository.
    projectId String
    Project identifier of the GitOps repository.
    queryForceRefresh Boolean
    Indicates to force refresh query for repository.
    queryProject String
    Project to query for the GitOps repo.
    queryRepo String
    GitOps repository to query.
    repos List<GitOpsRepositoryRepo>
    Repo details holding application configurations.
    updateMasks List<GitOpsRepositoryUpdateMask>
    Update mask of the repository.
    upsert Boolean
    Indicates if the GitOps repository should be updated if existing and inserted if not.
    accountId string
    Account identifier of the GitOps repository.
    agentId string
    Agent identifier of the GitOps repository.
    credsOnly boolean
    Indicates if to operate on credential set instead of repository.
    identifier string
    Identifier of the GitOps repository.
    orgId string
    Organization identifier of the GitOps repository.
    projectId string
    Project identifier of the GitOps repository.
    queryForceRefresh boolean
    Indicates to force refresh query for repository.
    queryProject string
    Project to query for the GitOps repo.
    queryRepo string
    GitOps repository to query.
    repos GitOpsRepositoryRepo[]
    Repo details holding application configurations.
    updateMasks GitOpsRepositoryUpdateMask[]
    Update mask of the repository.
    upsert boolean
    Indicates if the GitOps repository should be updated if existing and inserted if not.
    account_id str
    Account identifier of the GitOps repository.
    agent_id str
    Agent identifier of the GitOps repository.
    creds_only bool
    Indicates if to operate on credential set instead of repository.
    identifier str
    Identifier of the GitOps repository.
    org_id str
    Organization identifier of the GitOps repository.
    project_id str
    Project identifier of the GitOps repository.
    query_force_refresh bool
    Indicates to force refresh query for repository.
    query_project str
    Project to query for the GitOps repo.
    query_repo str
    GitOps repository to query.
    repos Sequence[GitOpsRepositoryRepoArgs]
    Repo details holding application configurations.
    update_masks Sequence[GitOpsRepositoryUpdateMaskArgs]
    Update mask of the repository.
    upsert bool
    Indicates if the GitOps repository should be updated if existing and inserted if not.
    accountId String
    Account identifier of the GitOps repository.
    agentId String
    Agent identifier of the GitOps repository.
    credsOnly Boolean
    Indicates if to operate on credential set instead of repository.
    identifier String
    Identifier of the GitOps repository.
    orgId String
    Organization identifier of the GitOps repository.
    projectId String
    Project identifier of the GitOps repository.
    queryForceRefresh Boolean
    Indicates to force refresh query for repository.
    queryProject String
    Project to query for the GitOps repo.
    queryRepo String
    GitOps repository to query.
    repos List<Property Map>
    Repo details holding application configurations.
    updateMasks List<Property Map>
    Update mask of the repository.
    upsert Boolean
    Indicates if the GitOps repository should be updated if existing and inserted if not.

    Supporting Types

    GitOpsRepositoryRepo, GitOpsRepositoryRepoArgs

    ConnectionType string
    Identifies the authentication method used to connect to the repository.
    Repo string
    URL to the remote repository.
    EnableLfs bool
    Indicates if git-lfs support must be enabled for this repo. This is valid only for Git repositories.
    EnableOci bool
    Indicates if helm-oci support must be enabled for this repo.
    GithubAppEnterpriseBaseUrl string
    Base URL of GitHub Enterprise installation. If left empty, this defaults to https://api.github.com.
    GithubAppId string
    Id of the GitHub app used to access the repo.
    GithubAppInstallationId string
    Installation id of the GitHub app used to access the repo.
    GithubAppPrivateKey string
    GitHub app private key PEM data.
    InheritedCreds bool
    Indicates if the credentials were inherited from a credential set.
    Insecure bool
    Indicates if the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
    InsecureIgnoreHostKey bool
    Indicates if InsecureIgnoreHostKey should be used. Insecure is favored used only for git repos.
    Name string
    Name to be used for this repo. Only used with Helm repos.
    Password string
    Password or PAT used for authenticating at the remote repository.
    Project string
    Reference between project and repository that allow you automatically to be added as item inside SourceRepos project entity.
    Proxy string
    The HTTP/HTTPS proxy used to access the repo.
    SshPrivateKey string
    PEM data for authenticating at the repo server. Only used with Git repos.
    TlsClientCertData string
    Certificate in PEM format for authenticating at the repo server.
    TlsClientCertKey string
    Private key in PEM format for authenticating at the repo server.
    Type_ string
    Type specifies the type of the repo. Can be either "git" or "helm. "git" is assumed if empty or absent.
    Username string
    Username used for authenticating at the remote repository.
    ConnectionType string
    Identifies the authentication method used to connect to the repository.
    Repo string
    URL to the remote repository.
    EnableLfs bool
    Indicates if git-lfs support must be enabled for this repo. This is valid only for Git repositories.
    EnableOci bool
    Indicates if helm-oci support must be enabled for this repo.
    GithubAppEnterpriseBaseUrl string
    Base URL of GitHub Enterprise installation. If left empty, this defaults to https://api.github.com.
    GithubAppId string
    Id of the GitHub app used to access the repo.
    GithubAppInstallationId string
    Installation id of the GitHub app used to access the repo.
    GithubAppPrivateKey string
    GitHub app private key PEM data.
    InheritedCreds bool
    Indicates if the credentials were inherited from a credential set.
    Insecure bool
    Indicates if the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
    InsecureIgnoreHostKey bool
    Indicates if InsecureIgnoreHostKey should be used. Insecure is favored used only for git repos.
    Name string
    Name to be used for this repo. Only used with Helm repos.
    Password string
    Password or PAT used for authenticating at the remote repository.
    Project string
    Reference between project and repository that allow you automatically to be added as item inside SourceRepos project entity.
    Proxy string
    The HTTP/HTTPS proxy used to access the repo.
    SshPrivateKey string
    PEM data for authenticating at the repo server. Only used with Git repos.
    TlsClientCertData string
    Certificate in PEM format for authenticating at the repo server.
    TlsClientCertKey string
    Private key in PEM format for authenticating at the repo server.
    Type_ string
    Type specifies the type of the repo. Can be either "git" or "helm. "git" is assumed if empty or absent.
    Username string
    Username used for authenticating at the remote repository.
    connectionType String
    Identifies the authentication method used to connect to the repository.
    repo String
    URL to the remote repository.
    enableLfs Boolean
    Indicates if git-lfs support must be enabled for this repo. This is valid only for Git repositories.
    enableOci Boolean
    Indicates if helm-oci support must be enabled for this repo.
    githubAppEnterpriseBaseUrl String
    Base URL of GitHub Enterprise installation. If left empty, this defaults to https://api.github.com.
    githubAppId String
    Id of the GitHub app used to access the repo.
    githubAppInstallationId String
    Installation id of the GitHub app used to access the repo.
    githubAppPrivateKey String
    GitHub app private key PEM data.
    inheritedCreds Boolean
    Indicates if the credentials were inherited from a credential set.
    insecure Boolean
    Indicates if the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
    insecureIgnoreHostKey Boolean
    Indicates if InsecureIgnoreHostKey should be used. Insecure is favored used only for git repos.
    name String
    Name to be used for this repo. Only used with Helm repos.
    password String
    Password or PAT used for authenticating at the remote repository.
    project String
    Reference between project and repository that allow you automatically to be added as item inside SourceRepos project entity.
    proxy String
    The HTTP/HTTPS proxy used to access the repo.
    sshPrivateKey String
    PEM data for authenticating at the repo server. Only used with Git repos.
    tlsClientCertData String
    Certificate in PEM format for authenticating at the repo server.
    tlsClientCertKey String
    Private key in PEM format for authenticating at the repo server.
    type_ String
    Type specifies the type of the repo. Can be either "git" or "helm. "git" is assumed if empty or absent.
    username String
    Username used for authenticating at the remote repository.
    connectionType string
    Identifies the authentication method used to connect to the repository.
    repo string
    URL to the remote repository.
    enableLfs boolean
    Indicates if git-lfs support must be enabled for this repo. This is valid only for Git repositories.
    enableOci boolean
    Indicates if helm-oci support must be enabled for this repo.
    githubAppEnterpriseBaseUrl string
    Base URL of GitHub Enterprise installation. If left empty, this defaults to https://api.github.com.
    githubAppId string
    Id of the GitHub app used to access the repo.
    githubAppInstallationId string
    Installation id of the GitHub app used to access the repo.
    githubAppPrivateKey string
    GitHub app private key PEM data.
    inheritedCreds boolean
    Indicates if the credentials were inherited from a credential set.
    insecure boolean
    Indicates if the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
    insecureIgnoreHostKey boolean
    Indicates if InsecureIgnoreHostKey should be used. Insecure is favored used only for git repos.
    name string
    Name to be used for this repo. Only used with Helm repos.
    password string
    Password or PAT used for authenticating at the remote repository.
    project string
    Reference between project and repository that allow you automatically to be added as item inside SourceRepos project entity.
    proxy string
    The HTTP/HTTPS proxy used to access the repo.
    sshPrivateKey string
    PEM data for authenticating at the repo server. Only used with Git repos.
    tlsClientCertData string
    Certificate in PEM format for authenticating at the repo server.
    tlsClientCertKey string
    Private key in PEM format for authenticating at the repo server.
    type_ string
    Type specifies the type of the repo. Can be either "git" or "helm. "git" is assumed if empty or absent.
    username string
    Username used for authenticating at the remote repository.
    connection_type str
    Identifies the authentication method used to connect to the repository.
    repo str
    URL to the remote repository.
    enable_lfs bool
    Indicates if git-lfs support must be enabled for this repo. This is valid only for Git repositories.
    enable_oci bool
    Indicates if helm-oci support must be enabled for this repo.
    github_app_enterprise_base_url str
    Base URL of GitHub Enterprise installation. If left empty, this defaults to https://api.github.com.
    github_app_id str
    Id of the GitHub app used to access the repo.
    github_app_installation_id str
    Installation id of the GitHub app used to access the repo.
    github_app_private_key str
    GitHub app private key PEM data.
    inherited_creds bool
    Indicates if the credentials were inherited from a credential set.
    insecure bool
    Indicates if the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
    insecure_ignore_host_key bool
    Indicates if InsecureIgnoreHostKey should be used. Insecure is favored used only for git repos.
    name str
    Name to be used for this repo. Only used with Helm repos.
    password str
    Password or PAT used for authenticating at the remote repository.
    project str
    Reference between project and repository that allow you automatically to be added as item inside SourceRepos project entity.
    proxy str
    The HTTP/HTTPS proxy used to access the repo.
    ssh_private_key str
    PEM data for authenticating at the repo server. Only used with Git repos.
    tls_client_cert_data str
    Certificate in PEM format for authenticating at the repo server.
    tls_client_cert_key str
    Private key in PEM format for authenticating at the repo server.
    type_ str
    Type specifies the type of the repo. Can be either "git" or "helm. "git" is assumed if empty or absent.
    username str
    Username used for authenticating at the remote repository.
    connectionType String
    Identifies the authentication method used to connect to the repository.
    repo String
    URL to the remote repository.
    enableLfs Boolean
    Indicates if git-lfs support must be enabled for this repo. This is valid only for Git repositories.
    enableOci Boolean
    Indicates if helm-oci support must be enabled for this repo.
    githubAppEnterpriseBaseUrl String
    Base URL of GitHub Enterprise installation. If left empty, this defaults to https://api.github.com.
    githubAppId String
    Id of the GitHub app used to access the repo.
    githubAppInstallationId String
    Installation id of the GitHub app used to access the repo.
    githubAppPrivateKey String
    GitHub app private key PEM data.
    inheritedCreds Boolean
    Indicates if the credentials were inherited from a credential set.
    insecure Boolean
    Indicates if the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
    insecureIgnoreHostKey Boolean
    Indicates if InsecureIgnoreHostKey should be used. Insecure is favored used only for git repos.
    name String
    Name to be used for this repo. Only used with Helm repos.
    password String
    Password or PAT used for authenticating at the remote repository.
    project String
    Reference between project and repository that allow you automatically to be added as item inside SourceRepos project entity.
    proxy String
    The HTTP/HTTPS proxy used to access the repo.
    sshPrivateKey String
    PEM data for authenticating at the repo server. Only used with Git repos.
    tlsClientCertData String
    Certificate in PEM format for authenticating at the repo server.
    tlsClientCertKey String
    Private key in PEM format for authenticating at the repo server.
    type_ String
    Type specifies the type of the repo. Can be either "git" or "helm. "git" is assumed if empty or absent.
    username String
    Username used for authenticating at the remote repository.

    GitOpsRepositoryUpdateMask, GitOpsRepositoryUpdateMaskArgs

    Paths List<string>
    The set of field mask paths.
    Paths []string
    The set of field mask paths.
    paths List<String>
    The set of field mask paths.
    paths string[]
    The set of field mask paths.
    paths Sequence[str]
    The set of field mask paths.
    paths List<String>
    The set of field mask paths.

    Import

    Import a Account level Gitops Repository

     $ pulumi import harness:platform/gitOpsRepository:GitOpsRepository example <agent_id>/<respository_id>
    

    Import a Project level Gitops Repository

     $ pulumi import harness:platform/gitOpsRepository:GitOpsRepository example <organization_id>/<project_id>/<agent_id>/<respository_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    harness lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs