Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs
harness.platform.getGitopsRepository
Explore with Pulumi AI
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:
- Account
Id string - Account identifier of the GitOps repository.
- Agent
Id string - Agent identifier of the GitOps repository.
- Identifier string
- Identifier of the GitOps repository.
- Creds
Only bool - Indicates if to operate on credential set instead of repository.
- Org
Id string - Organization identifier of the GitOps repository.
- Project
Id string - Project identifier of the GitOps repository.
- Query
Force boolRefresh - Indicates to force refresh query for repository.
- Query
Project string - Project to query for the GitOps repo.
- Query
Repo string - GitOps repository to query.
- Update
Masks List<Lbrlabs.Pulumi Package. Harness. Platform. Inputs. Get Gitops Repository Update Mask> - Update mask of the repository.
- Upsert bool
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- Account
Id string - Account identifier of the GitOps repository.
- Agent
Id string - Agent identifier of the GitOps repository.
- Identifier string
- Identifier of the GitOps repository.
- Creds
Only bool - Indicates if to operate on credential set instead of repository.
- Org
Id string - Organization identifier of the GitOps repository.
- Project
Id string - Project identifier of the GitOps repository.
- Query
Force boolRefresh - Indicates to force refresh query for repository.
- Query
Project string - Project to query for the GitOps repo.
- Query
Repo string - GitOps repository to query.
- Update
Masks []GetGitops Repository Update Mask - Update mask of the repository.
- Upsert bool
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- account
Id String - Account identifier of the GitOps repository.
- agent
Id String - Agent identifier of the GitOps repository.
- identifier String
- Identifier of the GitOps repository.
- creds
Only Boolean - Indicates if to operate on credential set instead of repository.
- org
Id String - Organization identifier of the GitOps repository.
- project
Id String - Project identifier of the GitOps repository.
- query
Force BooleanRefresh - Indicates to force refresh query for repository.
- query
Project String - Project to query for the GitOps repo.
- query
Repo String - GitOps repository to query.
- update
Masks List<GetGitops Repository Update Mask> - Update mask of the repository.
- upsert Boolean
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- account
Id string - Account identifier of the GitOps repository.
- agent
Id string - Agent identifier of the GitOps repository.
- identifier string
- Identifier of the GitOps repository.
- creds
Only boolean - Indicates if to operate on credential set instead of repository.
- org
Id string - Organization identifier of the GitOps repository.
- project
Id string - Project identifier of the GitOps repository.
- query
Force booleanRefresh - Indicates to force refresh query for repository.
- query
Project string - Project to query for the GitOps repo.
- query
Repo string - GitOps repository to query.
- update
Masks GetGitops Repository Update Mask[] - 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_ boolrefresh - 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[GetGitops Repository Update Mask] - Update mask of the repository.
- upsert bool
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- account
Id String - Account identifier of the GitOps repository.
- agent
Id String - Agent identifier of the GitOps repository.
- identifier String
- Identifier of the GitOps repository.
- creds
Only Boolean - Indicates if to operate on credential set instead of repository.
- org
Id String - Organization identifier of the GitOps repository.
- project
Id String - Project identifier of the GitOps repository.
- query
Force BooleanRefresh - Indicates to force refresh query for repository.
- query
Project String - Project to query for the GitOps repo.
- query
Repo String - GitOps repository to query.
- update
Masks 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:
- Account
Id string - Account identifier of the GitOps repository.
- Agent
Id 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.
Pulumi Package. Harness. Platform. Outputs. Get Gitops Repository Repo> - Repo details holding application configurations.
- Creds
Only bool - Indicates if to operate on credential set instead of repository.
- Org
Id string - Organization identifier of the GitOps repository.
- Project
Id string - Project identifier of the GitOps repository.
- Query
Force boolRefresh - Indicates to force refresh query for repository.
- Query
Project string - Project to query for the GitOps repo.
- Query
Repo string - GitOps repository to query.
- Update
Masks List<Lbrlabs.Pulumi Package. Harness. Platform. Outputs. Get Gitops Repository Update Mask> - Update mask of the repository.
- Upsert bool
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- Account
Id string - Account identifier of the GitOps repository.
- Agent
Id 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
[]Get
Gitops Repository Repo - Repo details holding application configurations.
- Creds
Only bool - Indicates if to operate on credential set instead of repository.
- Org
Id string - Organization identifier of the GitOps repository.
- Project
Id string - Project identifier of the GitOps repository.
- Query
Force boolRefresh - Indicates to force refresh query for repository.
- Query
Project string - Project to query for the GitOps repo.
- Query
Repo string - GitOps repository to query.
- Update
Masks []GetGitops Repository Update Mask - Update mask of the repository.
- Upsert bool
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- account
Id String - Account identifier of the GitOps repository.
- agent
Id 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<Get
Gitops Repository Repo> - Repo details holding application configurations.
- creds
Only Boolean - Indicates if to operate on credential set instead of repository.
- org
Id String - Organization identifier of the GitOps repository.
- project
Id String - Project identifier of the GitOps repository.
- query
Force BooleanRefresh - Indicates to force refresh query for repository.
- query
Project String - Project to query for the GitOps repo.
- query
Repo String - GitOps repository to query.
- update
Masks List<GetGitops Repository Update Mask> - Update mask of the repository.
- upsert Boolean
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- account
Id string - Account identifier of the GitOps repository.
- agent
Id 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
Get
Gitops Repository Repo[] - Repo details holding application configurations.
- creds
Only boolean - Indicates if to operate on credential set instead of repository.
- org
Id string - Organization identifier of the GitOps repository.
- project
Id string - Project identifier of the GitOps repository.
- query
Force booleanRefresh - Indicates to force refresh query for repository.
- query
Project string - Project to query for the GitOps repo.
- query
Repo string - GitOps repository to query.
- update
Masks GetGitops Repository Update Mask[] - 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[Get
Gitops Repository Repo] - 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_ boolrefresh - 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[GetGitops Repository Update Mask] - Update mask of the repository.
- upsert bool
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- account
Id String - Account identifier of the GitOps repository.
- agent
Id 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.
- creds
Only Boolean - Indicates if to operate on credential set instead of repository.
- org
Id String - Organization identifier of the GitOps repository.
- project
Id String - Project identifier of the GitOps repository.
- query
Force BooleanRefresh - Indicates to force refresh query for repository.
- query
Project String - Project to query for the GitOps repo.
- query
Repo String - GitOps repository to query.
- update
Masks 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
- Connection
Type string - Enable
Lfs bool - Enable
Oci bool - Github
App stringEnterprise Base Url - Github
App stringId - Github
App stringInstallation Id - Github
App stringPrivate Key - Inherited
Creds bool - Insecure bool
- Insecure
Ignore boolHost Key - Name string
- Password string
- Proxy string
- Repo string
- Repo details holding application configurations.
- Ssh
Private stringKey - Tls
Client stringCert Data - Tls
Client stringCert Key - Username string
- Project string
- Type_ string
- Connection
Type string - Enable
Lfs bool - Enable
Oci bool - Github
App stringEnterprise Base Url - Github
App stringId - Github
App stringInstallation Id - Github
App stringPrivate Key - Inherited
Creds bool - Insecure bool
- Insecure
Ignore boolHost Key - Name string
- Password string
- Proxy string
- Repo string
- Repo details holding application configurations.
- Ssh
Private stringKey - Tls
Client stringCert Data - Tls
Client stringCert Key - Username string
- project String
- type_ String
- connection
Type String - enable
Lfs Boolean - enable
Oci Boolean - github
App StringEnterprise Base Url - github
App StringId - github
App StringInstallation Id - github
App StringPrivate Key - inherited
Creds Boolean - insecure Boolean
- insecure
Ignore BooleanHost Key - name String
- password String
- proxy String
- repo String
- Repo details holding application configurations.
- ssh
Private StringKey - tls
Client StringCert Data - tls
Client StringCert Key - username String
- project string
- type_ string
- connection
Type string - enable
Lfs boolean - enable
Oci boolean - github
App stringEnterprise Base Url - github
App stringId - github
App stringInstallation Id - github
App stringPrivate Key - inherited
Creds boolean - insecure boolean
- insecure
Ignore booleanHost Key - name string
- password string
- proxy string
- repo string
- Repo details holding application configurations.
- ssh
Private stringKey - tls
Client stringCert Data - tls
Client stringCert Key - username string
- project str
- type_ str
- connection_
type str - enable_
lfs bool - enable_
oci bool - github_
app_ strenterprise_ base_ url - github_
app_ strid - github_
app_ strinstallation_ id - github_
app_ strprivate_ key - inherited_
creds bool - insecure bool
- insecure_
ignore_ boolhost_ key - name str
- password str
- proxy str
- repo str
- Repo details holding application configurations.
- ssh_
private_ strkey - tls_
client_ strcert_ data - tls_
client_ strcert_ key - username str
- project String
- type_ String
- connection
Type String - enable
Lfs Boolean - enable
Oci Boolean - github
App StringEnterprise Base Url - github
App StringId - github
App StringInstallation Id - github
App StringPrivate Key - inherited
Creds Boolean - insecure Boolean
- insecure
Ignore BooleanHost Key - name String
- password String
- proxy String
- repo String
- Repo details holding application configurations.
- ssh
Private StringKey - tls
Client StringCert Data - tls
Client StringCert Key - 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.