1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. GitOpsRepoCred
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

harness.platform.GitOpsRepoCred

Explore with Pulumi AI

harness logo
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

    Resource for managing a Harness Gitops Repository Credentials.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const test = new harness.platform.GitOpsRepoCred("test", {
        identifier: "identifier",
        accountId: "account_id",
        agentId: "agent_id",
        projectId: "project_id",
        orgId: "org_id",
        creds: [{
            type: "git",
            url: "git@github.com:yourorg",
            sshPrivateKey: `----- BEGIN OPENSSH PRIVATE KEY-----
    XXXXX
    XXXXX
    XXXXX
    -----END OPENSSH PRIVATE KEY -----
    `,
        }],
    });
    
    import pulumi
    import pulumi_harness as harness
    
    test = harness.platform.GitOpsRepoCred("test",
        identifier="identifier",
        account_id="account_id",
        agent_id="agent_id",
        project_id="project_id",
        org_id="org_id",
        creds=[{
            "type": "git",
            "url": "git@github.com:yourorg",
            "ssh_private_key": """----- BEGIN OPENSSH PRIVATE KEY-----
    XXXXX
    XXXXX
    XXXXX
    -----END OPENSSH PRIVATE KEY -----
    """,
        }])
    
    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.NewGitOpsRepoCred(ctx, "test", &platform.GitOpsRepoCredArgs{
    			Identifier: pulumi.String("identifier"),
    			AccountId:  pulumi.String("account_id"),
    			AgentId:    pulumi.String("agent_id"),
    			ProjectId:  pulumi.String("project_id"),
    			OrgId:      pulumi.String("org_id"),
    			Creds: platform.GitOpsRepoCredCredArray{
    				&platform.GitOpsRepoCredCredArgs{
    					Type: pulumi.String("git"),
    					Url:  pulumi.String("git@github.com:yourorg"),
    					SshPrivateKey: pulumi.String(`----- BEGIN OPENSSH PRIVATE KEY-----
    XXXXX
    XXXXX
    XXXXX
    -----END OPENSSH PRIVATE KEY -----
    `),
    				},
    			},
    		})
    		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 test = new Harness.Platform.GitOpsRepoCred("test", new()
        {
            Identifier = "identifier",
            AccountId = "account_id",
            AgentId = "agent_id",
            ProjectId = "project_id",
            OrgId = "org_id",
            Creds = new[]
            {
                new Harness.Platform.Inputs.GitOpsRepoCredCredArgs
                {
                    Type = "git",
                    Url = "git@github.com:yourorg",
                    SshPrivateKey = @"----- BEGIN OPENSSH PRIVATE KEY-----
    XXXXX
    XXXXX
    XXXXX
    -----END OPENSSH PRIVATE KEY -----
    ",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.GitOpsRepoCred;
    import com.pulumi.harness.platform.GitOpsRepoCredArgs;
    import com.pulumi.harness.platform.inputs.GitOpsRepoCredCredArgs;
    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 test = new GitOpsRepoCred("test", GitOpsRepoCredArgs.builder()
                .identifier("identifier")
                .accountId("account_id")
                .agentId("agent_id")
                .projectId("project_id")
                .orgId("org_id")
                .creds(GitOpsRepoCredCredArgs.builder()
                    .type("git")
                    .url("git@github.com:yourorg")
                    .sshPrivateKey("""
    ----- BEGIN OPENSSH PRIVATE KEY-----
    XXXXX
    XXXXX
    XXXXX
    -----END OPENSSH PRIVATE KEY -----
                    """)
                    .build())
                .build());
    
        }
    }
    
    resources:
      test:
        type: harness:platform:GitOpsRepoCred
        properties:
          identifier: identifier
          accountId: account_id
          agentId: agent_id
          projectId: project_id
          orgId: org_id
          creds:
            - type: git
              url: git@github.com:yourorg
              sshPrivateKey: |
                ----- BEGIN OPENSSH PRIVATE KEY-----
                XXXXX
                XXXXX
                XXXXX
                -----END OPENSSH PRIVATE KEY -----            
    

    Create GitOpsRepoCred Resource

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

    Constructor syntax

    new GitOpsRepoCred(name: string, args: GitOpsRepoCredArgs, opts?: CustomResourceOptions);
    @overload
    def GitOpsRepoCred(resource_name: str,
                       args: GitOpsRepoCredArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def GitOpsRepoCred(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       account_id: Optional[str] = None,
                       agent_id: Optional[str] = None,
                       identifier: Optional[str] = None,
                       creds: Optional[Sequence[GitOpsRepoCredCredArgs]] = None,
                       org_id: Optional[str] = None,
                       project_id: Optional[str] = None,
                       upsert: Optional[bool] = None)
    func NewGitOpsRepoCred(ctx *Context, name string, args GitOpsRepoCredArgs, opts ...ResourceOption) (*GitOpsRepoCred, error)
    public GitOpsRepoCred(string name, GitOpsRepoCredArgs args, CustomResourceOptions? opts = null)
    public GitOpsRepoCred(String name, GitOpsRepoCredArgs args)
    public GitOpsRepoCred(String name, GitOpsRepoCredArgs args, CustomResourceOptions options)
    
    type: harness:platform:GitOpsRepoCred
    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 GitOpsRepoCredArgs
    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 GitOpsRepoCredArgs
    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 GitOpsRepoCredArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GitOpsRepoCredArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GitOpsRepoCredArgs
    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 gitOpsRepoCredResource = new Harness.Platform.GitOpsRepoCred("gitOpsRepoCredResource", new()
    {
        AccountId = "string",
        AgentId = "string",
        Identifier = "string",
        Creds = new[]
        {
            new Harness.Platform.Inputs.GitOpsRepoCredCredArgs
            {
                EnableOci = false,
                GithubAppEnterpriseBaseUrl = "string",
                GithubAppId = "string",
                GithubAppInstallationId = "string",
                GithubAppPrivateKey = "string",
                Password = "string",
                SshPrivateKey = "string",
                TlsClientCertData = "string",
                TlsClientCertKey = "string",
                Type = "string",
                Url = "string",
                Username = "string",
            },
        },
        OrgId = "string",
        ProjectId = "string",
        Upsert = false,
    });
    
    example, err := platform.NewGitOpsRepoCred(ctx, "gitOpsRepoCredResource", &platform.GitOpsRepoCredArgs{
    	AccountId:  pulumi.String("string"),
    	AgentId:    pulumi.String("string"),
    	Identifier: pulumi.String("string"),
    	Creds: platform.GitOpsRepoCredCredArray{
    		&platform.GitOpsRepoCredCredArgs{
    			EnableOci:                  pulumi.Bool(false),
    			GithubAppEnterpriseBaseUrl: pulumi.String("string"),
    			GithubAppId:                pulumi.String("string"),
    			GithubAppInstallationId:    pulumi.String("string"),
    			GithubAppPrivateKey:        pulumi.String("string"),
    			Password:                   pulumi.String("string"),
    			SshPrivateKey:              pulumi.String("string"),
    			TlsClientCertData:          pulumi.String("string"),
    			TlsClientCertKey:           pulumi.String("string"),
    			Type:                       pulumi.String("string"),
    			Url:                        pulumi.String("string"),
    			Username:                   pulumi.String("string"),
    		},
    	},
    	OrgId:     pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    	Upsert:    pulumi.Bool(false),
    })
    
    var gitOpsRepoCredResource = new GitOpsRepoCred("gitOpsRepoCredResource", GitOpsRepoCredArgs.builder()
        .accountId("string")
        .agentId("string")
        .identifier("string")
        .creds(GitOpsRepoCredCredArgs.builder()
            .enableOci(false)
            .githubAppEnterpriseBaseUrl("string")
            .githubAppId("string")
            .githubAppInstallationId("string")
            .githubAppPrivateKey("string")
            .password("string")
            .sshPrivateKey("string")
            .tlsClientCertData("string")
            .tlsClientCertKey("string")
            .type("string")
            .url("string")
            .username("string")
            .build())
        .orgId("string")
        .projectId("string")
        .upsert(false)
        .build());
    
    git_ops_repo_cred_resource = harness.platform.GitOpsRepoCred("gitOpsRepoCredResource",
        account_id="string",
        agent_id="string",
        identifier="string",
        creds=[harness.platform.GitOpsRepoCredCredArgs(
            enable_oci=False,
            github_app_enterprise_base_url="string",
            github_app_id="string",
            github_app_installation_id="string",
            github_app_private_key="string",
            password="string",
            ssh_private_key="string",
            tls_client_cert_data="string",
            tls_client_cert_key="string",
            type="string",
            url="string",
            username="string",
        )],
        org_id="string",
        project_id="string",
        upsert=False)
    
    const gitOpsRepoCredResource = new harness.platform.GitOpsRepoCred("gitOpsRepoCredResource", {
        accountId: "string",
        agentId: "string",
        identifier: "string",
        creds: [{
            enableOci: false,
            githubAppEnterpriseBaseUrl: "string",
            githubAppId: "string",
            githubAppInstallationId: "string",
            githubAppPrivateKey: "string",
            password: "string",
            sshPrivateKey: "string",
            tlsClientCertData: "string",
            tlsClientCertKey: "string",
            type: "string",
            url: "string",
            username: "string",
        }],
        orgId: "string",
        projectId: "string",
        upsert: false,
    });
    
    type: harness:platform:GitOpsRepoCred
    properties:
        accountId: string
        agentId: string
        creds:
            - enableOci: false
              githubAppEnterpriseBaseUrl: string
              githubAppId: string
              githubAppInstallationId: string
              githubAppPrivateKey: string
              password: string
              sshPrivateKey: string
              tlsClientCertData: string
              tlsClientCertKey: string
              type: string
              url: string
              username: string
        identifier: string
        orgId: string
        projectId: string
        upsert: false
    

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

    AccountId string
    Account identifier of the Repository Credentials.
    AgentId string
    Agent identifier of the Repository Credentials.
    Identifier string
    Identifier of the Repository Credentials.
    Creds List<GitOpsRepoCredCred>
    credential details.
    OrgId string
    Organization identifier of the Repository Credentials.
    ProjectId string
    Project identifier of the Repository Credentials.
    Upsert bool
    Indicates if the GitOps repository credential should be updated if existing and inserted if not.
    AccountId string
    Account identifier of the Repository Credentials.
    AgentId string
    Agent identifier of the Repository Credentials.
    Identifier string
    Identifier of the Repository Credentials.
    Creds []GitOpsRepoCredCredArgs
    credential details.
    OrgId string
    Organization identifier of the Repository Credentials.
    ProjectId string
    Project identifier of the Repository Credentials.
    Upsert bool
    Indicates if the GitOps repository credential should be updated if existing and inserted if not.
    accountId String
    Account identifier of the Repository Credentials.
    agentId String
    Agent identifier of the Repository Credentials.
    identifier String
    Identifier of the Repository Credentials.
    creds List<GitOpsRepoCredCred>
    credential details.
    orgId String
    Organization identifier of the Repository Credentials.
    projectId String
    Project identifier of the Repository Credentials.
    upsert Boolean
    Indicates if the GitOps repository credential should be updated if existing and inserted if not.
    accountId string
    Account identifier of the Repository Credentials.
    agentId string
    Agent identifier of the Repository Credentials.
    identifier string
    Identifier of the Repository Credentials.
    creds GitOpsRepoCredCred[]
    credential details.
    orgId string
    Organization identifier of the Repository Credentials.
    projectId string
    Project identifier of the Repository Credentials.
    upsert boolean
    Indicates if the GitOps repository credential should be updated if existing and inserted if not.
    account_id str
    Account identifier of the Repository Credentials.
    agent_id str
    Agent identifier of the Repository Credentials.
    identifier str
    Identifier of the Repository Credentials.
    creds Sequence[GitOpsRepoCredCredArgs]
    credential details.
    org_id str
    Organization identifier of the Repository Credentials.
    project_id str
    Project identifier of the Repository Credentials.
    upsert bool
    Indicates if the GitOps repository credential should be updated if existing and inserted if not.
    accountId String
    Account identifier of the Repository Credentials.
    agentId String
    Agent identifier of the Repository Credentials.
    identifier String
    Identifier of the Repository Credentials.
    creds List<Property Map>
    credential details.
    orgId String
    Organization identifier of the Repository Credentials.
    projectId String
    Project identifier of the Repository Credentials.
    upsert Boolean
    Indicates if the GitOps repository credential should be updated if existing and inserted if not.

    Outputs

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

    Get an existing GitOpsRepoCred 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?: GitOpsRepoCredState, opts?: CustomResourceOptions): GitOpsRepoCred
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            agent_id: Optional[str] = None,
            creds: Optional[Sequence[GitOpsRepoCredCredArgs]] = None,
            identifier: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            upsert: Optional[bool] = None) -> GitOpsRepoCred
    func GetGitOpsRepoCred(ctx *Context, name string, id IDInput, state *GitOpsRepoCredState, opts ...ResourceOption) (*GitOpsRepoCred, error)
    public static GitOpsRepoCred Get(string name, Input<string> id, GitOpsRepoCredState? state, CustomResourceOptions? opts = null)
    public static GitOpsRepoCred get(String name, Output<String> id, GitOpsRepoCredState 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 Repository Credentials.
    AgentId string
    Agent identifier of the Repository Credentials.
    Creds List<GitOpsRepoCredCred>
    credential details.
    Identifier string
    Identifier of the Repository Credentials.
    OrgId string
    Organization identifier of the Repository Credentials.
    ProjectId string
    Project identifier of the Repository Credentials.
    Upsert bool
    Indicates if the GitOps repository credential should be updated if existing and inserted if not.
    AccountId string
    Account identifier of the Repository Credentials.
    AgentId string
    Agent identifier of the Repository Credentials.
    Creds []GitOpsRepoCredCredArgs
    credential details.
    Identifier string
    Identifier of the Repository Credentials.
    OrgId string
    Organization identifier of the Repository Credentials.
    ProjectId string
    Project identifier of the Repository Credentials.
    Upsert bool
    Indicates if the GitOps repository credential should be updated if existing and inserted if not.
    accountId String
    Account identifier of the Repository Credentials.
    agentId String
    Agent identifier of the Repository Credentials.
    creds List<GitOpsRepoCredCred>
    credential details.
    identifier String
    Identifier of the Repository Credentials.
    orgId String
    Organization identifier of the Repository Credentials.
    projectId String
    Project identifier of the Repository Credentials.
    upsert Boolean
    Indicates if the GitOps repository credential should be updated if existing and inserted if not.
    accountId string
    Account identifier of the Repository Credentials.
    agentId string
    Agent identifier of the Repository Credentials.
    creds GitOpsRepoCredCred[]
    credential details.
    identifier string
    Identifier of the Repository Credentials.
    orgId string
    Organization identifier of the Repository Credentials.
    projectId string
    Project identifier of the Repository Credentials.
    upsert boolean
    Indicates if the GitOps repository credential should be updated if existing and inserted if not.
    account_id str
    Account identifier of the Repository Credentials.
    agent_id str
    Agent identifier of the Repository Credentials.
    creds Sequence[GitOpsRepoCredCredArgs]
    credential details.
    identifier str
    Identifier of the Repository Credentials.
    org_id str
    Organization identifier of the Repository Credentials.
    project_id str
    Project identifier of the Repository Credentials.
    upsert bool
    Indicates if the GitOps repository credential should be updated if existing and inserted if not.
    accountId String
    Account identifier of the Repository Credentials.
    agentId String
    Agent identifier of the Repository Credentials.
    creds List<Property Map>
    credential details.
    identifier String
    Identifier of the Repository Credentials.
    orgId String
    Organization identifier of the Repository Credentials.
    projectId String
    Project identifier of the Repository Credentials.
    upsert Boolean
    Indicates if the GitOps repository credential should be updated if existing and inserted if not.

    Supporting Types

    GitOpsRepoCredCred, GitOpsRepoCredCredArgs

    EnableOci bool
    Specifies whether helm-oci support should be enabled for this repo.
    GithubAppEnterpriseBaseUrl string
    Specifies the GitHub API URL for GitHub app authentication.
    GithubAppId string
    Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
    GithubAppInstallationId string
    Specifies the ID of the installed GitHub App for GitHub app authentication.
    GithubAppPrivateKey string
    githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
    Password string
    Password or PAT to be used for authenticating the remote repository.
    SshPrivateKey string
    SSH Key in PEM format for authenticating the repository. Used only for Git repository.
    TlsClientCertData string
    Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
    TlsClientCertKey string
    Private key in PEM format for authenticating at the repo server. This is used for mTLS.
    Type string
    Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
    Url string
    URL of the remote repository. Make sure you pass at least an org, this will not work if you just provide the host, for eg. "https://github.com"
    Username string
    Username to be used for authenticating the remote repository.
    EnableOci bool
    Specifies whether helm-oci support should be enabled for this repo.
    GithubAppEnterpriseBaseUrl string
    Specifies the GitHub API URL for GitHub app authentication.
    GithubAppId string
    Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
    GithubAppInstallationId string
    Specifies the ID of the installed GitHub App for GitHub app authentication.
    GithubAppPrivateKey string
    githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
    Password string
    Password or PAT to be used for authenticating the remote repository.
    SshPrivateKey string
    SSH Key in PEM format for authenticating the repository. Used only for Git repository.
    TlsClientCertData string
    Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
    TlsClientCertKey string
    Private key in PEM format for authenticating at the repo server. This is used for mTLS.
    Type string
    Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
    Url string
    URL of the remote repository. Make sure you pass at least an org, this will not work if you just provide the host, for eg. "https://github.com"
    Username string
    Username to be used for authenticating the remote repository.
    enableOci Boolean
    Specifies whether helm-oci support should be enabled for this repo.
    githubAppEnterpriseBaseUrl String
    Specifies the GitHub API URL for GitHub app authentication.
    githubAppId String
    Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
    githubAppInstallationId String
    Specifies the ID of the installed GitHub App for GitHub app authentication.
    githubAppPrivateKey String
    githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
    password String
    Password or PAT to be used for authenticating the remote repository.
    sshPrivateKey String
    SSH Key in PEM format for authenticating the repository. Used only for Git repository.
    tlsClientCertData String
    Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
    tlsClientCertKey String
    Private key in PEM format for authenticating at the repo server. This is used for mTLS.
    type String
    Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
    url String
    URL of the remote repository. Make sure you pass at least an org, this will not work if you just provide the host, for eg. "https://github.com"
    username String
    Username to be used for authenticating the remote repository.
    enableOci boolean
    Specifies whether helm-oci support should be enabled for this repo.
    githubAppEnterpriseBaseUrl string
    Specifies the GitHub API URL for GitHub app authentication.
    githubAppId string
    Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
    githubAppInstallationId string
    Specifies the ID of the installed GitHub App for GitHub app authentication.
    githubAppPrivateKey string
    githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
    password string
    Password or PAT to be used for authenticating the remote repository.
    sshPrivateKey string
    SSH Key in PEM format for authenticating the repository. Used only for Git repository.
    tlsClientCertData string
    Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
    tlsClientCertKey string
    Private key in PEM format for authenticating at the repo server. This is used for mTLS.
    type string
    Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
    url string
    URL of the remote repository. Make sure you pass at least an org, this will not work if you just provide the host, for eg. "https://github.com"
    username string
    Username to be used for authenticating the remote repository.
    enable_oci bool
    Specifies whether helm-oci support should be enabled for this repo.
    github_app_enterprise_base_url str
    Specifies the GitHub API URL for GitHub app authentication.
    github_app_id str
    Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
    github_app_installation_id str
    Specifies the ID of the installed GitHub App for GitHub app authentication.
    github_app_private_key str
    githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
    password str
    Password or PAT to be used for authenticating the remote repository.
    ssh_private_key str
    SSH Key in PEM format for authenticating the repository. Used only for Git repository.
    tls_client_cert_data str
    Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
    tls_client_cert_key str
    Private key in PEM format for authenticating at the repo server. This is used for mTLS.
    type str
    Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
    url str
    URL of the remote repository. Make sure you pass at least an org, this will not work if you just provide the host, for eg. "https://github.com"
    username str
    Username to be used for authenticating the remote repository.
    enableOci Boolean
    Specifies whether helm-oci support should be enabled for this repo.
    githubAppEnterpriseBaseUrl String
    Specifies the GitHub API URL for GitHub app authentication.
    githubAppId String
    Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
    githubAppInstallationId String
    Specifies the ID of the installed GitHub App for GitHub app authentication.
    githubAppPrivateKey String
    githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
    password String
    Password or PAT to be used for authenticating the remote repository.
    sshPrivateKey String
    SSH Key in PEM format for authenticating the repository. Used only for Git repository.
    tlsClientCertData String
    Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
    tlsClientCertKey String
    Private key in PEM format for authenticating at the repo server. This is used for mTLS.
    type String
    Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
    url String
    URL of the remote repository. Make sure you pass at least an org, this will not work if you just provide the host, for eg. "https://github.com"
    username String
    Username to be used for authenticating the remote repository.

    Import

    Import an Account level Gitops Repository Credentials

    $ pulumi import harness:platform/gitOpsRepoCred:GitOpsRepoCred example <agent_id>/<repocred_id>
    

    Import an Org level Gitops Repository Credentials

    $ pulumi import harness:platform/gitOpsRepoCred:GitOpsRepoCred example <organization_id>/<agent_id>/<repocred_id>
    

    Import a Project level Gitops Repository Credentials

    $ pulumi import harness:platform/gitOpsRepoCred:GitOpsRepoCred example <organization_id>/<project_id>/<agent_id>/<repocred_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.3.2 published on Monday, Sep 16, 2024 by Pulumi