Viewing docs for Harness v0.11.6
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Viewing docs for Harness v0.11.6
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 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",
});
import pulumi
import pulumi_harness as harness
example = harness.platform.get_gitops_app_project(agent_id="agent_id",
query_name="query_name")
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
})
}
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",
});
});
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());
}
}
variables:
example:
fn::invoke:
function: harness:platform:getGitopsAppProject
arguments:
agentId: agent_id
queryName: query_name
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>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]func LookupGitopsAppProject(ctx *Context, args *LookupGitopsAppProjectArgs, opts ...InvokeOption) (*LookupGitopsAppProjectResult, error)
func LookupGitopsAppProjectOutput(ctx *Context, args *LookupGitopsAppProjectOutputArgs, opts ...InvokeOption) LookupGitopsAppProjectResultOutput> 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)
}public static CompletableFuture<GetGitopsAppProjectResult> getGitopsAppProject(GetGitopsAppProjectArgs args, InvokeOptions options)
public static Output<GetGitopsAppProjectResult> getGitopsAppProject(GetGitopsAppProjectArgs args, InvokeOptions options)
fn::invoke:
function: harness:platform/getGitopsAppProject:getGitopsAppProject
arguments:
# arguments dictionaryThe following arguments are supported:
- Agent
Id string - Agent identifier of the agent where argo project resides(include scope prefix)
- Account
Id string - Account identifier of the GitOps Agent where argo project resides.
- Org
Id string - Org identifier of the GitOps Agent where argo project resides.
- Project
Id string - Project identifier of the Gitops Agent where argo project resides.
- Query
Name string - Identifier for the GitOps Argo project.
- Agent
Id string - Agent identifier of the agent where argo project resides(include scope prefix)
- Account
Id string - Account identifier of the GitOps Agent where argo project resides.
- Org
Id string - Org identifier of the GitOps Agent where argo project resides.
- Project
Id string - Project identifier of the Gitops Agent where argo project resides.
- Query
Name string - Identifier for the GitOps Argo project.
- agent
Id String - Agent identifier of the agent where argo project resides(include scope prefix)
- account
Id String - Account identifier of the GitOps Agent where argo project resides.
- org
Id String - Org identifier of the GitOps Agent where argo project resides.
- project
Id String - Project identifier of the Gitops Agent where argo project resides.
- query
Name String - Identifier for the GitOps Argo project.
- agent
Id string - Agent identifier of the agent where argo project resides(include scope prefix)
- account
Id string - Account identifier of the GitOps Agent where argo project resides.
- org
Id string - Org identifier of the GitOps Agent where argo project resides.
- project
Id string - Project identifier of the Gitops Agent where argo project resides.
- query
Name string - Identifier for the GitOps Argo project.
- agent_
id 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.
- 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.
- agent
Id String - Agent identifier of the agent where argo project resides(include scope prefix)
- account
Id String - Account identifier of the GitOps Agent where argo project resides.
- org
Id String - Org identifier of the GitOps Agent where argo project resides.
- project
Id String - Project identifier of the Gitops Agent where argo project resides.
- query
Name String - Identifier for the GitOps Argo project.
getGitopsAppProject Result
The following output properties are available:
- Account
Id string - Account identifier of the GitOps Agent where argo project resides.
- Agent
Id string - Agent identifier of the agent where argo project resides(include scope prefix)
- Id string
- The provider-assigned unique ID for this managed resource.
- Query
Name string - Identifier for the GitOps Argo project.
- Org
Id string - Org identifier of the GitOps Agent where argo project resides.
- Project
Id string - Project identifier of the Gitops Agent where argo project resides.
- Account
Id string - Account identifier of the GitOps Agent where argo project resides.
- Agent
Id string - Agent identifier of the agent where argo project resides(include scope prefix)
- Id string
- The provider-assigned unique ID for this managed resource.
- Query
Name string - Identifier for the GitOps Argo project.
- Org
Id string - Org identifier of the GitOps Agent where argo project resides.
- Project
Id string - Project identifier of the Gitops Agent where argo project resides.
- account
Id String - Account identifier of the GitOps Agent where argo project resides.
- agent
Id String - Agent identifier of the agent where argo project resides(include scope prefix)
- id String
- The provider-assigned unique ID for this managed resource.
- query
Name String - Identifier for the GitOps Argo project.
- org
Id String - Org identifier of the GitOps Agent where argo project resides.
- project
Id String - Project identifier of the Gitops Agent where argo project resides.
- account
Id string - Account identifier of the GitOps Agent where argo project resides.
- agent
Id string - Agent identifier of the agent where argo project resides(include scope prefix)
- id string
- The provider-assigned unique ID for this managed resource.
- query
Name string - Identifier for the GitOps Argo project.
- org
Id string - Org identifier of the GitOps Agent where argo project resides.
- project
Id string - Project identifier of the Gitops Agent where argo project resides.
- account_
id str - Account identifier of the GitOps Agent where argo project resides.
- 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.
- account
Id String - Account identifier of the GitOps Agent where argo project resides.
- agent
Id String - Agent identifier of the agent where argo project resides(include scope prefix)
- id String
- The provider-assigned unique ID for this managed resource.
- query
Name String - Identifier for the GitOps Argo project.
- org
Id String - Org identifier of the GitOps Agent where argo project resides.
- project
Id 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
harnessTerraform Provider.
Viewing docs for Harness v0.11.6
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
