1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getGitopsRepoCred
Harness v0.7.2 published on Tuesday, Apr 15, 2025 by Pulumi

harness.platform.getGitopsRepoCred

Explore with Pulumi AI

Data source for fetching a GitOps Repository Credentials.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";

const test = harness.platform.getGitopsRepoCred({
    identifier: "identifier",
    accountId: "account_id",
    projectId: "project_id",
    orgId: "org_id",
    agentId: "agent_id",
});
Copy
import pulumi
import pulumi_harness as harness

test = harness.platform.get_gitops_repo_cred(identifier="identifier",
    account_id="account_id",
    project_id="project_id",
    org_id="org_id",
    agent_id="agent_id")
Copy
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.GetGitopsRepoCred(ctx, &platform.GetGitopsRepoCredArgs{
			Identifier: "identifier",
			AccountId:  pulumi.StringRef("account_id"),
			ProjectId:  pulumi.StringRef("project_id"),
			OrgId:      pulumi.StringRef("org_id"),
			AgentId:    "agent_id",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;

return await Deployment.RunAsync(() => 
{
    var test = Harness.Platform.GetGitopsRepoCred.Invoke(new()
    {
        Identifier = "identifier",
        AccountId = "account_id",
        ProjectId = "project_id",
        OrgId = "org_id",
        AgentId = "agent_id",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetGitopsRepoCredArgs;
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) {
        final var test = PlatformFunctions.getGitopsRepoCred(GetGitopsRepoCredArgs.builder()
            .identifier("identifier")
            .accountId("account_id")
            .projectId("project_id")
            .orgId("org_id")
            .agentId("agent_id")
            .build());

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: harness:platform:getGitopsRepoCred
      arguments:
        identifier: identifier
        accountId: account_id
        projectId: project_id
        orgId: org_id
        agentId: agent_id
Copy

Using getGitopsRepoCred

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getGitopsRepoCred(args: GetGitopsRepoCredArgs, opts?: InvokeOptions): Promise<GetGitopsRepoCredResult>
function getGitopsRepoCredOutput(args: GetGitopsRepoCredOutputArgs, opts?: InvokeOptions): Output<GetGitopsRepoCredResult>
Copy
def get_gitops_repo_cred(account_id: Optional[str] = None,
                         agent_id: Optional[str] = None,
                         creds: Optional[Sequence[GetGitopsRepoCredCred]] = None,
                         identifier: Optional[str] = None,
                         org_id: Optional[str] = None,
                         project_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetGitopsRepoCredResult
def get_gitops_repo_cred_output(account_id: Optional[pulumi.Input[str]] = None,
                         agent_id: Optional[pulumi.Input[str]] = None,
                         creds: Optional[pulumi.Input[Sequence[pulumi.Input[GetGitopsRepoCredCredArgs]]]] = None,
                         identifier: Optional[pulumi.Input[str]] = None,
                         org_id: Optional[pulumi.Input[str]] = None,
                         project_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetGitopsRepoCredResult]
Copy
func GetGitopsRepoCred(ctx *Context, args *GetGitopsRepoCredArgs, opts ...InvokeOption) (*GetGitopsRepoCredResult, error)
func GetGitopsRepoCredOutput(ctx *Context, args *GetGitopsRepoCredOutputArgs, opts ...InvokeOption) GetGitopsRepoCredResultOutput
Copy

> Note: This function is named GetGitopsRepoCred in the Go SDK.

public static class GetGitopsRepoCred 
{
    public static Task<GetGitopsRepoCredResult> InvokeAsync(GetGitopsRepoCredArgs args, InvokeOptions? opts = null)
    public static Output<GetGitopsRepoCredResult> Invoke(GetGitopsRepoCredInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetGitopsRepoCredResult> getGitopsRepoCred(GetGitopsRepoCredArgs args, InvokeOptions options)
public static Output<GetGitopsRepoCredResult> getGitopsRepoCred(GetGitopsRepoCredArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harness:platform/getGitopsRepoCred:getGitopsRepoCred
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AgentId This property is required. string
Agent identifier of the Repository Credentials.
Identifier This property is required. string
Identifier of the Repository Credentials.
AccountId string
Account identifier of the Repository Credentials.

Deprecated: This field is deprecated and will be removed in a future release.

Creds List<GetGitopsRepoCredCred>
credential details.
OrgId string
Organization identifier of the Repository Credentials.
ProjectId string
Project identifier of the Repository Credentials.
AgentId This property is required. string
Agent identifier of the Repository Credentials.
Identifier This property is required. string
Identifier of the Repository Credentials.
AccountId string
Account identifier of the Repository Credentials.

Deprecated: This field is deprecated and will be removed in a future release.

Creds []GetGitopsRepoCredCred
credential details.
OrgId string
Organization identifier of the Repository Credentials.
ProjectId string
Project identifier of the Repository Credentials.
agentId This property is required. String
Agent identifier of the Repository Credentials.
identifier This property is required. String
Identifier of the Repository Credentials.
accountId String
Account identifier of the Repository Credentials.

Deprecated: This field is deprecated and will be removed in a future release.

creds List<GetGitopsRepoCredCred>
credential details.
orgId String
Organization identifier of the Repository Credentials.
projectId String
Project identifier of the Repository Credentials.
agentId This property is required. string
Agent identifier of the Repository Credentials.
identifier This property is required. string
Identifier of the Repository Credentials.
accountId string
Account identifier of the Repository Credentials.

Deprecated: This field is deprecated and will be removed in a future release.

creds GetGitopsRepoCredCred[]
credential details.
orgId string
Organization identifier of the Repository Credentials.
projectId string
Project identifier of the Repository Credentials.
agent_id This property is required. str
Agent identifier of the Repository Credentials.
identifier This property is required. str
Identifier of the Repository Credentials.
account_id str
Account identifier of the Repository Credentials.

Deprecated: This field is deprecated and will be removed in a future release.

creds Sequence[GetGitopsRepoCredCred]
credential details.
org_id str
Organization identifier of the Repository Credentials.
project_id str
Project identifier of the Repository Credentials.
agentId This property is required. String
Agent identifier of the Repository Credentials.
identifier This property is required. String
Identifier of the Repository Credentials.
accountId String
Account identifier of the Repository Credentials.

Deprecated: This field is deprecated and will be removed in a future release.

creds List<Property Map>
credential details.
orgId String
Organization identifier of the Repository Credentials.
projectId String
Project identifier of the Repository Credentials.

getGitopsRepoCred Result

The following output properties are available:

AccountId string
Account identifier of the Repository Credentials.

Deprecated: This field is deprecated and will be removed in a future release.

AgentId string
Agent identifier of the Repository Credentials.
Creds List<GetGitopsRepoCredCred>
credential details.
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Identifier of the Repository Credentials.
OrgId string
Organization identifier of the Repository Credentials.
ProjectId string
Project identifier of the Repository Credentials.
AccountId string
Account identifier of the Repository Credentials.

Deprecated: This field is deprecated and will be removed in a future release.

AgentId string
Agent identifier of the Repository Credentials.
Creds []GetGitopsRepoCredCred
credential details.
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Identifier of the Repository Credentials.
OrgId string
Organization identifier of the Repository Credentials.
ProjectId string
Project identifier of the Repository Credentials.
accountId String
Account identifier of the Repository Credentials.

Deprecated: This field is deprecated and will be removed in a future release.

agentId String
Agent identifier of the Repository Credentials.
creds List<GetGitopsRepoCredCred>
credential details.
id String
The provider-assigned unique ID for this managed resource.
identifier String
Identifier of the Repository Credentials.
orgId String
Organization identifier of the Repository Credentials.
projectId String
Project identifier of the Repository Credentials.
accountId string
Account identifier of the Repository Credentials.

Deprecated: This field is deprecated and will be removed in a future release.

agentId string
Agent identifier of the Repository Credentials.
creds GetGitopsRepoCredCred[]
credential details.
id string
The provider-assigned unique ID for this managed resource.
identifier string
Identifier of the Repository Credentials.
orgId string
Organization identifier of the Repository Credentials.
projectId string
Project identifier of the Repository Credentials.
account_id str
Account identifier of the Repository Credentials.

Deprecated: This field is deprecated and will be removed in a future release.

agent_id str
Agent identifier of the Repository Credentials.
creds Sequence[GetGitopsRepoCredCred]
credential details.
id str
The provider-assigned unique ID for this managed resource.
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.
accountId String
Account identifier of the Repository Credentials.

Deprecated: This field is deprecated and will be removed in a future release.

agentId String
Agent identifier of the Repository Credentials.
creds List<Property Map>
credential details.
id String
The provider-assigned unique ID for this managed resource.
identifier String
Identifier of the Repository Credentials.
orgId String
Organization identifier of the Repository Credentials.
projectId String
Project identifier of the Repository Credentials.

Supporting Types

GetGitopsRepoCredCred

EnableOci This property is required. bool
Specifies whether helm-oci support should be enabled for this repo.
GithubAppEnterpriseBaseUrl This property is required. string
Specifies the GitHub API URL for GitHub app authentication.
GithubAppId This property is required. string
Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
GithubAppInstallationId This property is required. string
Specifies the ID of the installed GitHub App for GitHub app authentication.
GithubAppPrivateKey This property is required. string
githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
Password This property is required. string
Password or PAT to be used for authenticating the remote repository.
SshPrivateKey This property is required. string
SSH Key in PEM format for authenticating the repository. Used only for Git repository.
TlsClientCertData This property is required. string
Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
TlsClientCertKey This property is required. string
Private key in PEM format for authenticating at the repo server. This is used for mTLS.
Type This property is required. string
Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
Url This property is required. 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 This property is required. string
Username to be used for authenticating the remote repository.
EnableOci This property is required. bool
Specifies whether helm-oci support should be enabled for this repo.
GithubAppEnterpriseBaseUrl This property is required. string
Specifies the GitHub API URL for GitHub app authentication.
GithubAppId This property is required. string
Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
GithubAppInstallationId This property is required. string
Specifies the ID of the installed GitHub App for GitHub app authentication.
GithubAppPrivateKey This property is required. string
githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
Password This property is required. string
Password or PAT to be used for authenticating the remote repository.
SshPrivateKey This property is required. string
SSH Key in PEM format for authenticating the repository. Used only for Git repository.
TlsClientCertData This property is required. string
Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
TlsClientCertKey This property is required. string
Private key in PEM format for authenticating at the repo server. This is used for mTLS.
Type This property is required. string
Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
Url This property is required. 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 This property is required. string
Username to be used for authenticating the remote repository.
enableOci This property is required. Boolean
Specifies whether helm-oci support should be enabled for this repo.
githubAppEnterpriseBaseUrl This property is required. String
Specifies the GitHub API URL for GitHub app authentication.
githubAppId This property is required. String
Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
githubAppInstallationId This property is required. String
Specifies the ID of the installed GitHub App for GitHub app authentication.
githubAppPrivateKey This property is required. String
githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
password This property is required. String
Password or PAT to be used for authenticating the remote repository.
sshPrivateKey This property is required. String
SSH Key in PEM format for authenticating the repository. Used only for Git repository.
tlsClientCertData This property is required. String
Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
tlsClientCertKey This property is required. String
Private key in PEM format for authenticating at the repo server. This is used for mTLS.
type This property is required. String
Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
url This property is required. 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 This property is required. String
Username to be used for authenticating the remote repository.
enableOci This property is required. boolean
Specifies whether helm-oci support should be enabled for this repo.
githubAppEnterpriseBaseUrl This property is required. string
Specifies the GitHub API URL for GitHub app authentication.
githubAppId This property is required. string
Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
githubAppInstallationId This property is required. string
Specifies the ID of the installed GitHub App for GitHub app authentication.
githubAppPrivateKey This property is required. string
githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
password This property is required. string
Password or PAT to be used for authenticating the remote repository.
sshPrivateKey This property is required. string
SSH Key in PEM format for authenticating the repository. Used only for Git repository.
tlsClientCertData This property is required. string
Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
tlsClientCertKey This property is required. string
Private key in PEM format for authenticating at the repo server. This is used for mTLS.
type This property is required. string
Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
url This property is required. 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 This property is required. string
Username to be used for authenticating the remote repository.
enable_oci This property is required. bool
Specifies whether helm-oci support should be enabled for this repo.
github_app_enterprise_base_url This property is required. str
Specifies the GitHub API URL for GitHub app authentication.
github_app_id This property is required. str
Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
github_app_installation_id This property is required. str
Specifies the ID of the installed GitHub App for GitHub app authentication.
github_app_private_key This property is required. str
githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
password This property is required. str
Password or PAT to be used for authenticating the remote repository.
ssh_private_key This property is required. str
SSH Key in PEM format for authenticating the repository. Used only for Git repository.
tls_client_cert_data This property is required. str
Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
tls_client_cert_key This property is required. str
Private key in PEM format for authenticating at the repo server. This is used for mTLS.
type This property is required. str
Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
url This property is required. 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 This property is required. str
Username to be used for authenticating the remote repository.
enableOci This property is required. Boolean
Specifies whether helm-oci support should be enabled for this repo.
githubAppEnterpriseBaseUrl This property is required. String
Specifies the GitHub API URL for GitHub app authentication.
githubAppId This property is required. String
Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
githubAppInstallationId This property is required. String
Specifies the ID of the installed GitHub App for GitHub app authentication.
githubAppPrivateKey This property is required. String
githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
password This property is required. String
Password or PAT to be used for authenticating the remote repository.
sshPrivateKey This property is required. String
SSH Key in PEM format for authenticating the repository. Used only for Git repository.
tlsClientCertData This property is required. String
Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
tlsClientCertKey This property is required. String
Private key in PEM format for authenticating at the repo server. This is used for mTLS.
type This property is required. String
Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
url This property is required. 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 This property is required. String
Username to be used for authenticating the remote repository.

Package Details

Repository
harness pulumi/pulumi-harness
License
Apache-2.0
Notes
This Pulumi package is based on the harness Terraform Provider.