1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. getGitopsAppProject
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

harness.platform.getGitopsAppProject

Explore with Pulumi AI

harness logo
Harness v0.3.2 published on Monday, Sep 16, 2024 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harness:platform/getGitopsAppProject:getGitopsAppProject
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account identifier of the GitOps project.
    AgentId string
    Agent identifier of the GitOps project.
    OrgId string
    Org identifier of the GitOps project.
    ProjectId string
    Project identifier of the GitOps repository.
    QueryName string
    Identifier for the GitOps project.
    AccountId string
    Account identifier of the GitOps project.
    AgentId string
    Agent identifier of the GitOps project.
    OrgId string
    Org identifier of the GitOps project.
    ProjectId string
    Project identifier of the GitOps repository.
    QueryName string
    Identifier for the GitOps project.
    accountId String
    Account identifier of the GitOps project.
    agentId String
    Agent identifier of the GitOps project.
    orgId String
    Org identifier of the GitOps project.
    projectId String
    Project identifier of the GitOps repository.
    queryName String
    Identifier for the GitOps project.
    accountId string
    Account identifier of the GitOps project.
    agentId string
    Agent identifier of the GitOps project.
    orgId string
    Org identifier of the GitOps project.
    projectId string
    Project identifier of the GitOps repository.
    queryName string
    Identifier for the GitOps project.
    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.
    accountId String
    Account identifier of the GitOps project.
    agentId String
    Agent identifier of the GitOps project.
    orgId String
    Org identifier of the GitOps project.
    projectId String
    Project identifier of the GitOps repository.
    queryName String
    Identifier for the GitOps project.

    getGitopsAppProject Result

    The following output properties are available:

    AccountId string
    Account identifier of the GitOps project.
    AgentId string
    Agent identifier of the GitOps project.
    Id string
    The provider-assigned unique ID for this managed resource.
    QueryName string
    Identifier for the GitOps project.
    OrgId string
    Org identifier of the GitOps project.
    ProjectId string
    Project identifier of the GitOps repository.
    AccountId string
    Account identifier of the GitOps project.
    AgentId string
    Agent identifier of the GitOps project.
    Id string
    The provider-assigned unique ID for this managed resource.
    QueryName string
    Identifier for the GitOps project.
    OrgId string
    Org identifier of the GitOps project.
    ProjectId string
    Project identifier of the GitOps repository.
    accountId String
    Account identifier of the GitOps project.
    agentId String
    Agent identifier of the GitOps project.
    id String
    The provider-assigned unique ID for this managed resource.
    queryName String
    Identifier for the GitOps project.
    orgId String
    Org identifier of the GitOps project.
    projectId String
    Project identifier of the GitOps repository.
    accountId string
    Account identifier of the GitOps project.
    agentId string
    Agent identifier of the GitOps project.
    id string
    The provider-assigned unique ID for this managed resource.
    queryName string
    Identifier for the GitOps project.
    orgId string
    Org identifier of the GitOps project.
    projectId 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.
    accountId String
    Account identifier of the GitOps project.
    agentId String
    Agent identifier of the GitOps project.
    id String
    The provider-assigned unique ID for this managed resource.
    queryName String
    Identifier for the GitOps project.
    orgId String
    Org identifier of the GitOps project.
    projectId 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.
    harness logo
    Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi