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

harness.platform.getGitopsRepoCred

Explore with Pulumi AI

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

    Data source for retrieving a GitOps RepoCred.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Harness.Platform.GetGitopsRepoCred.Invoke(new()
        {
            AccountId = "account_id",
            AgentId = "agent_id",
            Identifier = "identifier",
            OrgId = "org_id",
            ProjectId = "project_id",
        });
    
    });
    
    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.GetGitopsRepoCred(ctx, &platform.GetGitopsRepoCredArgs{
    			AccountId:  "account_id",
    			AgentId:    "agent_id",
    			Identifier: "identifier",
    			OrgId:      pulumi.StringRef("org_id"),
    			ProjectId:  pulumi.StringRef("project_id"),
    		}, nil)
    		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.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()
                .accountId("account_id")
                .agentId("agent_id")
                .identifier("identifier")
                .orgId("org_id")
                .projectId("project_id")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_harness as harness
    
    test = harness.platform.get_gitops_repo_cred(account_id="account_id",
        agent_id="agent_id",
        identifier="identifier",
        org_id="org_id",
        project_id="project_id")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const test = harness.platform.getGitopsRepoCred({
        accountId: "account_id",
        agentId: "agent_id",
        identifier: "identifier",
        orgId: "org_id",
        projectId: "project_id",
    });
    
    variables:
      test:
        fn::invoke:
          Function: harness:platform:getGitopsRepoCred
          Arguments:
            accountId: account_id
            agentId: agent_id
            identifier: identifier
            orgId: org_id
            projectId: project_id
    

    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>
    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,
                             upsert: Optional[bool] = 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,
                             upsert: Optional[pulumi.Input[bool]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetGitopsRepoCredResult]
    func GetGitopsRepoCred(ctx *Context, args *GetGitopsRepoCredArgs, opts ...InvokeOption) (*GetGitopsRepoCredResult, error)
    func GetGitopsRepoCredOutput(ctx *Context, args *GetGitopsRepoCredOutputArgs, opts ...InvokeOption) GetGitopsRepoCredResultOutput

    > 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)
    }
    public static CompletableFuture<GetGitopsRepoCredResult> getGitopsRepoCred(GetGitopsRepoCredArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harness:platform/getGitopsRepoCred:getGitopsRepoCred
      arguments:
        # arguments dictionary

    The following arguments are supported:

    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<Lbrlabs.PulumiPackage.Harness.Platform.Inputs.GetGitopsRepoCredCred>
    credential details.
    OrgId string
    Organization identifier of the Repository Credential.
    ProjectId string
    Project identifier of the Repository Credential.
    Upsert bool
    if the Repository credential should be upserted.
    AccountId string
    account identifier of the Repository Credentials.
    AgentId string
    agent identifier of the Repository Credentials.
    Identifier string
    Identifier of the Repository Credentials.
    Creds []GetGitopsRepoCredCred
    credential details.
    OrgId string
    Organization identifier of the Repository Credential.
    ProjectId string
    Project identifier of the Repository Credential.
    Upsert bool
    if the Repository credential should be upserted.
    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<GetGitopsRepoCredCred>
    credential details.
    orgId String
    Organization identifier of the Repository Credential.
    projectId String
    Project identifier of the Repository Credential.
    upsert Boolean
    if the Repository credential should be upserted.
    accountId string
    account identifier of the Repository Credentials.
    agentId string
    agent identifier of the Repository Credentials.
    identifier string
    Identifier of the Repository Credentials.
    creds GetGitopsRepoCredCred[]
    credential details.
    orgId string
    Organization identifier of the Repository Credential.
    projectId string
    Project identifier of the Repository Credential.
    upsert boolean
    if the Repository credential should be upserted.
    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[GetGitopsRepoCredCred]
    credential details.
    org_id str
    Organization identifier of the Repository Credential.
    project_id str
    Project identifier of the Repository Credential.
    upsert bool
    if the Repository credential should be upserted.
    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 Credential.
    projectId String
    Project identifier of the Repository Credential.
    upsert Boolean
    if the Repository credential should be upserted.

    getGitopsRepoCred Result

    The following output properties are available:

    AccountId string
    account identifier of the Repository Credentials.
    AgentId string
    agent identifier of the Repository Credentials.
    Creds List<Lbrlabs.PulumiPackage.Harness.Platform.Outputs.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 Credential.
    ProjectId string
    Project identifier of the Repository Credential.
    Upsert bool
    if the Repository credential should be upserted.
    AccountId string
    account identifier of the Repository Credentials.
    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 Credential.
    ProjectId string
    Project identifier of the Repository Credential.
    Upsert bool
    if the Repository credential should be upserted.
    accountId String
    account identifier of the Repository Credentials.
    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 Credential.
    projectId String
    Project identifier of the Repository Credential.
    upsert Boolean
    if the Repository credential should be upserted.
    accountId string
    account identifier of the Repository Credentials.
    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 Credential.
    projectId string
    Project identifier of the Repository Credential.
    upsert boolean
    if the Repository credential should be upserted.
    account_id str
    account identifier of the Repository Credentials.
    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 Credential.
    project_id str
    Project identifier of the Repository Credential.
    upsert bool
    if the Repository credential should be upserted.
    accountId String
    account identifier of the Repository Credentials.
    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 Credential.
    projectId String
    Project identifier of the Repository Credential.
    upsert Boolean
    if the Repository credential should be upserted.

    Supporting Types

    GetGitopsRepoCredCred

    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 for authenticating at the repo server.
    SshPrivateKey string
    Contains the private key data for authenticating at the repo server using SSH (only Git repos).
    TlsClientCertData string
    Specifies the TLS client cert data for authenticating at the repo server.
    TlsClientCertKey string
    Specifies the TLS client cert key for authenticating at the repo server.
    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 representing this object.
    Username string
    Username for authenticating at the repo server.
    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 for authenticating at the repo server.
    SshPrivateKey string
    Contains the private key data for authenticating at the repo server using SSH (only Git repos).
    TlsClientCertData string
    Specifies the TLS client cert data for authenticating at the repo server.
    TlsClientCertKey string
    Specifies the TLS client cert key for authenticating at the repo server.
    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 representing this object.
    Username string
    Username for authenticating at the repo server.
    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 for authenticating at the repo server.
    sshPrivateKey String
    Contains the private key data for authenticating at the repo server using SSH (only Git repos).
    tlsClientCertData String
    Specifies the TLS client cert data for authenticating at the repo server.
    tlsClientCertKey String
    Specifies the TLS client cert key for authenticating at the repo server.
    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 representing this object.
    username String
    Username for authenticating at the repo server.
    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 for authenticating at the repo server.
    sshPrivateKey string
    Contains the private key data for authenticating at the repo server using SSH (only Git repos).
    tlsClientCertData string
    Specifies the TLS client cert data for authenticating at the repo server.
    tlsClientCertKey string
    Specifies the TLS client cert key for authenticating at the repo server.
    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 representing this object.
    username string
    Username for authenticating at the repo server.
    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 for authenticating at the repo server.
    ssh_private_key str
    Contains the private key data for authenticating at the repo server using SSH (only Git repos).
    tls_client_cert_data str
    Specifies the TLS client cert data for authenticating at the repo server.
    tls_client_cert_key str
    Specifies the TLS client cert key for authenticating at the repo server.
    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 representing this object.
    username str
    Username for authenticating at the repo server.
    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 for authenticating at the repo server.
    sshPrivateKey String
    Contains the private key data for authenticating at the repo server using SSH (only Git repos).
    tlsClientCertData String
    Specifies the TLS client cert data for authenticating at the repo server.
    tlsClientCertKey String
    Specifies the TLS client cert key for authenticating at the repo server.
    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 representing this object.
    username String
    Username for authenticating at the repo server.

    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