Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi
harness.platform.getGitopsAppProject
Explore with Pulumi AI
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: harness:platform/getGitopsAppProject:getGitopsAppProject
arguments:
# arguments dictionary
The following arguments are supported:
- account_
id str - Account identifier of the GitOps project.
- agent_
id str - Agent identifier of the GitOps project.
- org_
id str - Org identifier of the GitOps project.
- project_
id str - Project identifier of the GitOps repository.
- query_
name str - Identifier for the GitOps project.
getGitopsAppProject Result
The following output properties are available:
- Account
Id string - Account identifier of the GitOps project.
- Agent
Id string - Agent identifier of the GitOps project.
- Id string
- The provider-assigned unique ID for this managed resource.
- Query
Name string - Identifier for the GitOps project.
- Org
Id string - Org identifier of the GitOps project.
- Project
Id string - Project identifier of the GitOps repository.
- Account
Id string - Account identifier of the GitOps project.
- Agent
Id string - Agent identifier of the GitOps project.
- Id string
- The provider-assigned unique ID for this managed resource.
- Query
Name string - Identifier for the GitOps project.
- Org
Id string - Org identifier of the GitOps project.
- Project
Id string - Project identifier of the GitOps repository.
- account
Id String - Account identifier of the GitOps project.
- agent
Id String - Agent identifier of the GitOps project.
- id String
- The provider-assigned unique ID for this managed resource.
- query
Name String - Identifier for the GitOps project.
- org
Id String - Org identifier of the GitOps project.
- project
Id String - Project identifier of the GitOps repository.
- account
Id string - Account identifier of the GitOps project.
- agent
Id string - Agent identifier of the GitOps project.
- id string
- The provider-assigned unique ID for this managed resource.
- query
Name string - Identifier for the GitOps project.
- org
Id string - Org identifier of the GitOps project.
- project
Id string - Project identifier of the GitOps repository.
- account_
id str - Account identifier of the GitOps project.
- agent_
id str - Agent identifier of the GitOps project.
- id str
- The provider-assigned unique ID for this managed resource.
- query_
name str - Identifier for the GitOps project.
- org_
id str - Org identifier of the GitOps project.
- project_
id str - Project identifier of the GitOps repository.
- account
Id String - Account identifier of the GitOps project.
- agent
Id String - Agent identifier of the GitOps project.
- id String
- The provider-assigned unique ID for this managed resource.
- query
Name String - Identifier for the GitOps project.
- org
Id String - Org identifier of the GitOps project.
- project
Id String - Project identifier of the GitOps repository.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.