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

harness.platform.getGitopsRepository

Explore with Pulumi AI

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

    Data Source for fetching a Harness GitOps Repository.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Harness.Platform.GetGitopsRepository.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.GetGitopsRepository(ctx, &platform.GetGitopsRepositoryArgs{
    			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.GetGitopsRepositoryArgs;
    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 example = PlatformFunctions.getGitopsRepository(GetGitopsRepositoryArgs.builder()
                .accountId("account_id")
                .agentId("agent_id")
                .identifier("identifier")
                .orgId("org_id")
                .projectId("project_id")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.get_gitops_repository(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 example = harness.platform.getGitopsRepository({
        accountId: "account_id",
        agentId: "agent_id",
        identifier: "identifier",
        orgId: "org_id",
        projectId: "project_id",
    });
    
    variables:
      example:
        fn::invoke:
          Function: harness:platform:getGitopsRepository
          Arguments:
            accountId: account_id
            agentId: agent_id
            identifier: identifier
            orgId: org_id
            projectId: project_id
    

    Using getGitopsRepository

    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 getGitopsRepository(args: GetGitopsRepositoryArgs, opts?: InvokeOptions): Promise<GetGitopsRepositoryResult>
    function getGitopsRepositoryOutput(args: GetGitopsRepositoryOutputArgs, opts?: InvokeOptions): Output<GetGitopsRepositoryResult>
    def get_gitops_repository(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,
                              update_masks: Optional[Sequence[GetGitopsRepositoryUpdateMask]] = None,
                              upsert: Optional[bool] = None,
                              opts: Optional[InvokeOptions] = None) -> GetGitopsRepositoryResult
    def get_gitops_repository_output(account_id: Optional[pulumi.Input[str]] = None,
                              agent_id: Optional[pulumi.Input[str]] = None,
                              creds_only: Optional[pulumi.Input[bool]] = None,
                              identifier: Optional[pulumi.Input[str]] = None,
                              org_id: Optional[pulumi.Input[str]] = None,
                              project_id: Optional[pulumi.Input[str]] = None,
                              query_force_refresh: Optional[pulumi.Input[bool]] = None,
                              query_project: Optional[pulumi.Input[str]] = None,
                              query_repo: Optional[pulumi.Input[str]] = None,
                              update_masks: Optional[pulumi.Input[Sequence[pulumi.Input[GetGitopsRepositoryUpdateMaskArgs]]]] = None,
                              upsert: Optional[pulumi.Input[bool]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetGitopsRepositoryResult]
    func GetGitopsRepository(ctx *Context, args *GetGitopsRepositoryArgs, opts ...InvokeOption) (*GetGitopsRepositoryResult, error)
    func GetGitopsRepositoryOutput(ctx *Context, args *GetGitopsRepositoryOutputArgs, opts ...InvokeOption) GetGitopsRepositoryResultOutput

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

    public static class GetGitopsRepository 
    {
        public static Task<GetGitopsRepositoryResult> InvokeAsync(GetGitopsRepositoryArgs args, InvokeOptions? opts = null)
        public static Output<GetGitopsRepositoryResult> Invoke(GetGitopsRepositoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGitopsRepositoryResult> getGitopsRepository(GetGitopsRepositoryArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harness:platform/getGitopsRepository:getGitopsRepository
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account identifier of the GitOps repository.
    AgentId string
    Agent identifier of the GitOps repository.
    Identifier string
    Identifier of the GitOps repository.
    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.GetGitopsRepositoryUpdateMask>
    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.
    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 []GetGitopsRepositoryUpdateMask
    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.
    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<GetGitopsRepositoryUpdateMask>
    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.
    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 GetGitopsRepositoryUpdateMask[]
    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.
    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[GetGitopsRepositoryUpdateMask]
    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.
    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.

    getGitopsRepository Result

    The following output properties are available:

    AccountId string
    Account identifier of the GitOps repository.
    AgentId string
    Agent identifier of the GitOps repository.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier of the GitOps repository.
    Repos List<Lbrlabs.PulumiPackage.Harness.Platform.Outputs.GetGitopsRepositoryRepo>
    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.Outputs.GetGitopsRepositoryUpdateMask>
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier of the GitOps repository.
    Repos []GetGitopsRepositoryRepo
    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 []GetGitopsRepositoryUpdateMask
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier of the GitOps repository.
    repos List<GetGitopsRepositoryRepo>
    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<GetGitopsRepositoryUpdateMask>
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    Identifier of the GitOps repository.
    repos GetGitopsRepositoryRepo[]
    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 GetGitopsRepositoryUpdateMask[]
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    Identifier of the GitOps repository.
    repos Sequence[GetGitopsRepositoryRepo]
    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[GetGitopsRepositoryUpdateMask]
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    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.

    Supporting Types

    GetGitopsRepositoryRepo

    Project string
    Type_ string
    ConnectionType string
    EnableLfs bool
    EnableOci bool
    GithubAppEnterpriseBaseUrl string
    GithubAppId string
    GithubAppInstallationId string
    GithubAppPrivateKey string
    InheritedCreds bool
    Insecure bool
    InsecureIgnoreHostKey bool
    Name string
    Password string
    Proxy string
    Repo string
    Repo details holding application configurations.
    SshPrivateKey string
    TlsClientCertData string
    TlsClientCertKey string
    Username string
    Project string
    Type_ string
    ConnectionType string
    EnableLfs bool
    EnableOci bool
    GithubAppEnterpriseBaseUrl string
    GithubAppId string
    GithubAppInstallationId string
    GithubAppPrivateKey string
    InheritedCreds bool
    Insecure bool
    InsecureIgnoreHostKey bool
    Name string
    Password string
    Proxy string
    Repo string
    Repo details holding application configurations.
    SshPrivateKey string
    TlsClientCertData string
    TlsClientCertKey string
    Username string
    project String
    type_ String
    connectionType String
    enableLfs Boolean
    enableOci Boolean
    githubAppEnterpriseBaseUrl String
    githubAppId String
    githubAppInstallationId String
    githubAppPrivateKey String
    inheritedCreds Boolean
    insecure Boolean
    insecureIgnoreHostKey Boolean
    name String
    password String
    proxy String
    repo String
    Repo details holding application configurations.
    sshPrivateKey String
    tlsClientCertData String
    tlsClientCertKey String
    username String
    project string
    type_ string
    connectionType string
    enableLfs boolean
    enableOci boolean
    githubAppEnterpriseBaseUrl string
    githubAppId string
    githubAppInstallationId string
    githubAppPrivateKey string
    inheritedCreds boolean
    insecure boolean
    insecureIgnoreHostKey boolean
    name string
    password string
    proxy string
    repo string
    Repo details holding application configurations.
    sshPrivateKey string
    tlsClientCertData string
    tlsClientCertKey string
    username string
    project String
    type_ String
    connectionType String
    enableLfs Boolean
    enableOci Boolean
    githubAppEnterpriseBaseUrl String
    githubAppId String
    githubAppInstallationId String
    githubAppPrivateKey String
    inheritedCreds Boolean
    insecure Boolean
    insecureIgnoreHostKey Boolean
    name String
    password String
    proxy String
    repo String
    Repo details holding application configurations.
    sshPrivateKey String
    tlsClientCertData String
    tlsClientCertKey String
    username String

    GetGitopsRepositoryUpdateMask

    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.

    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