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

harness.platform.getGitopsAppProject

Explore with Pulumi AI

Harness v0.7.2 published on Tuesday, Apr 15, 2025 by Pulumi

Example Usage

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

const example = harness.platform.getGitopsAppProject({
    agentId: "agent_id",
    queryName: "query_name",
});
Copy
import pulumi
import pulumi_harness as harness

example = harness.platform.get_gitops_app_project(agent_id="agent_id",
    query_name="query_name")
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.LookupGitopsAppProject(ctx, &platform.LookupGitopsAppProjectArgs{
			AgentId:   "agent_id",
			QueryName: pulumi.StringRef("query_name"),
		}, 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 example = Harness.Platform.GetGitopsAppProject.Invoke(new()
    {
        AgentId = "agent_id",
        QueryName = "query_name",
    });

});
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.GetGitopsAppProjectArgs;
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.getGitopsAppProject(GetGitopsAppProjectArgs.builder()
            .agentId("agent_id")
            .queryName("query_name")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: harness:platform:getGitopsAppProject
      arguments:
        agentId: agent_id
        queryName: query_name
Copy

Using getGitopsAppProject

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 getGitopsAppProject(args: GetGitopsAppProjectArgs, opts?: InvokeOptions): Promise<GetGitopsAppProjectResult>
function getGitopsAppProjectOutput(args: GetGitopsAppProjectOutputArgs, opts?: InvokeOptions): Output<GetGitopsAppProjectResult>
Copy
def get_gitops_app_project(account_id: Optional[str] = None,
                           agent_id: Optional[str] = None,
                           org_id: Optional[str] = None,
                           project_id: Optional[str] = None,
                           query_name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetGitopsAppProjectResult
def get_gitops_app_project_output(account_id: Optional[pulumi.Input[str]] = None,
                           agent_id: Optional[pulumi.Input[str]] = None,
                           org_id: Optional[pulumi.Input[str]] = None,
                           project_id: Optional[pulumi.Input[str]] = None,
                           query_name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetGitopsAppProjectResult]
Copy
func LookupGitopsAppProject(ctx *Context, args *LookupGitopsAppProjectArgs, opts ...InvokeOption) (*LookupGitopsAppProjectResult, error)
func LookupGitopsAppProjectOutput(ctx *Context, args *LookupGitopsAppProjectOutputArgs, opts ...InvokeOption) LookupGitopsAppProjectResultOutput
Copy

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

public static class GetGitopsAppProject 
{
    public static Task<GetGitopsAppProjectResult> InvokeAsync(GetGitopsAppProjectArgs args, InvokeOptions? opts = null)
    public static Output<GetGitopsAppProjectResult> Invoke(GetGitopsAppProjectInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetGitopsAppProjectResult> getGitopsAppProject(GetGitopsAppProjectArgs args, InvokeOptions options)
public static Output<GetGitopsAppProjectResult> getGitopsAppProject(GetGitopsAppProjectArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harness:platform/getGitopsAppProject:getGitopsAppProject
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AgentId This property is required. string
Agent identifier of the agent where argo project resides(include scope prefix)
AccountId string
Account identifier of the GitOps Agent where argo project resides.

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

OrgId string
Org identifier of the GitOps Agent where argo project resides.
ProjectId string
Project identifier of the Gitops Agent where argo project resides.
QueryName string
Identifier for the GitOps Argo project.
AgentId This property is required. string
Agent identifier of the agent where argo project resides(include scope prefix)
AccountId string
Account identifier of the GitOps Agent where argo project resides.

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

OrgId string
Org identifier of the GitOps Agent where argo project resides.
ProjectId string
Project identifier of the Gitops Agent where argo project resides.
QueryName string
Identifier for the GitOps Argo project.
agentId This property is required. String
Agent identifier of the agent where argo project resides(include scope prefix)
accountId String
Account identifier of the GitOps Agent where argo project resides.

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

orgId String
Org identifier of the GitOps Agent where argo project resides.
projectId String
Project identifier of the Gitops Agent where argo project resides.
queryName String
Identifier for the GitOps Argo project.
agentId This property is required. string
Agent identifier of the agent where argo project resides(include scope prefix)
accountId string
Account identifier of the GitOps Agent where argo project resides.

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

orgId string
Org identifier of the GitOps Agent where argo project resides.
projectId string
Project identifier of the Gitops Agent where argo project resides.
queryName string
Identifier for the GitOps Argo project.
agent_id This property is required. str
Agent identifier of the agent where argo project resides(include scope prefix)
account_id str
Account identifier of the GitOps Agent where argo project resides.

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

org_id str
Org identifier of the GitOps Agent where argo project resides.
project_id str
Project identifier of the Gitops Agent where argo project resides.
query_name str
Identifier for the GitOps Argo project.
agentId This property is required. String
Agent identifier of the agent where argo project resides(include scope prefix)
accountId String
Account identifier of the GitOps Agent where argo project resides.

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

orgId String
Org identifier of the GitOps Agent where argo project resides.
projectId String
Project identifier of the Gitops Agent where argo project resides.
queryName String
Identifier for the GitOps Argo project.

getGitopsAppProject Result

The following output properties are available:

AccountId string
Account identifier of the GitOps Agent where argo project resides.

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

AgentId string
Agent identifier of the agent where argo project resides(include scope prefix)
Id string
The provider-assigned unique ID for this managed resource.
QueryName string
Identifier for the GitOps Argo project.
OrgId string
Org identifier of the GitOps Agent where argo project resides.
ProjectId string
Project identifier of the Gitops Agent where argo project resides.
AccountId string
Account identifier of the GitOps Agent where argo project resides.

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

AgentId string
Agent identifier of the agent where argo project resides(include scope prefix)
Id string
The provider-assigned unique ID for this managed resource.
QueryName string
Identifier for the GitOps Argo project.
OrgId string
Org identifier of the GitOps Agent where argo project resides.
ProjectId string
Project identifier of the Gitops Agent where argo project resides.
accountId String
Account identifier of the GitOps Agent where argo project resides.

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

agentId String
Agent identifier of the agent where argo project resides(include scope prefix)
id String
The provider-assigned unique ID for this managed resource.
queryName String
Identifier for the GitOps Argo project.
orgId String
Org identifier of the GitOps Agent where argo project resides.
projectId String
Project identifier of the Gitops Agent where argo project resides.
accountId string
Account identifier of the GitOps Agent where argo project resides.

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

agentId string
Agent identifier of the agent where argo project resides(include scope prefix)
id string
The provider-assigned unique ID for this managed resource.
queryName string
Identifier for the GitOps Argo project.
orgId string
Org identifier of the GitOps Agent where argo project resides.
projectId string
Project identifier of the Gitops Agent where argo project resides.
account_id str
Account identifier of the GitOps Agent where argo project resides.

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

agent_id str
Agent identifier of the agent where argo project resides(include scope prefix)
id str
The provider-assigned unique ID for this managed resource.
query_name str
Identifier for the GitOps Argo project.
org_id str
Org identifier of the GitOps Agent where argo project resides.
project_id str
Project identifier of the Gitops Agent where argo project resides.
accountId String
Account identifier of the GitOps Agent where argo project resides.

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

agentId String
Agent identifier of the agent where argo project resides(include scope prefix)
id String
The provider-assigned unique ID for this managed resource.
queryName String
Identifier for the GitOps Argo project.
orgId String
Org identifier of the GitOps Agent where argo project resides.
projectId String
Project identifier of the Gitops Agent where argo project resides.

Package Details

Repository
harness pulumi/pulumi-harness
License
Apache-2.0
Notes
This Pulumi package is based on the harness Terraform Provider.
Harness v0.7.2 published on Tuesday, Apr 15, 2025 by Pulumi