1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getGitopsAgent
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

harness.platform.getGitopsAgent

Explore with Pulumi AI

harness logo
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

    Datasource for fetching a Harness GitOps Agent.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = harness.platform.getGitopsAgent({
        identifier: "identifier",
        accountId: "account_id",
        projectId: "project_id",
        orgId: "org_id",
    });
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.get_gitops_agent(identifier="identifier",
        account_id="account_id",
        project_id="project_id",
        org_id="org_id")
    
    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.GetGitopsAgent(ctx, &platform.GetGitopsAgentArgs{
    			Identifier: "identifier",
    			AccountId:  "account_id",
    			ProjectId:  pulumi.StringRef("project_id"),
    			OrgId:      pulumi.StringRef("org_id"),
    		}, 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.GetGitopsAgent.Invoke(new()
        {
            Identifier = "identifier",
            AccountId = "account_id",
            ProjectId = "project_id",
            OrgId = "org_id",
        });
    
    });
    
    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.GetGitopsAgentArgs;
    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.getGitopsAgent(GetGitopsAgentArgs.builder()
                .identifier("identifier")
                .accountId("account_id")
                .projectId("project_id")
                .orgId("org_id")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: harness:platform:getGitopsAgent
          Arguments:
            identifier: identifier
            accountId: account_id
            projectId: project_id
            orgId: org_id
    

    Using getGitopsAgent

    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 getGitopsAgent(args: GetGitopsAgentArgs, opts?: InvokeOptions): Promise<GetGitopsAgentResult>
    function getGitopsAgentOutput(args: GetGitopsAgentOutputArgs, opts?: InvokeOptions): Output<GetGitopsAgentResult>
    def get_gitops_agent(account_id: Optional[str] = None,
                         identifier: Optional[str] = None,
                         org_id: Optional[str] = None,
                         project_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetGitopsAgentResult
    def get_gitops_agent_output(account_id: Optional[pulumi.Input[str]] = None,
                         identifier: Optional[pulumi.Input[str]] = None,
                         org_id: Optional[pulumi.Input[str]] = None,
                         project_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetGitopsAgentResult]
    func GetGitopsAgent(ctx *Context, args *GetGitopsAgentArgs, opts ...InvokeOption) (*GetGitopsAgentResult, error)
    func GetGitopsAgentOutput(ctx *Context, args *GetGitopsAgentOutputArgs, opts ...InvokeOption) GetGitopsAgentResultOutput

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

    public static class GetGitopsAgent 
    {
        public static Task<GetGitopsAgentResult> InvokeAsync(GetGitopsAgentArgs args, InvokeOptions? opts = null)
        public static Output<GetGitopsAgentResult> Invoke(GetGitopsAgentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGitopsAgentResult> getGitopsAgent(GetGitopsAgentArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harness:platform/getGitopsAgent:getGitopsAgent
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Account identifier of the GitOps agent.
    Identifier string
    Identifier of the GitOps agent.
    OrgId string
    Organization identifier of the GitOps agent.
    ProjectId string
    Project identifier of the GitOps agent.
    AccountId string
    Account identifier of the GitOps agent.
    Identifier string
    Identifier of the GitOps agent.
    OrgId string
    Organization identifier of the GitOps agent.
    ProjectId string
    Project identifier of the GitOps agent.
    accountId String
    Account identifier of the GitOps agent.
    identifier String
    Identifier of the GitOps agent.
    orgId String
    Organization identifier of the GitOps agent.
    projectId String
    Project identifier of the GitOps agent.
    accountId string
    Account identifier of the GitOps agent.
    identifier string
    Identifier of the GitOps agent.
    orgId string
    Organization identifier of the GitOps agent.
    projectId string
    Project identifier of the GitOps agent.
    account_id str
    Account identifier of the GitOps agent.
    identifier str
    Identifier of the GitOps agent.
    org_id str
    Organization identifier of the GitOps agent.
    project_id str
    Project identifier of the GitOps agent.
    accountId String
    Account identifier of the GitOps agent.
    identifier String
    Identifier of the GitOps agent.
    orgId String
    Organization identifier of the GitOps agent.
    projectId String
    Project identifier of the GitOps agent.

    getGitopsAgent Result

    The following output properties are available:

    AccountId string
    Account identifier of the GitOps agent.
    AgentToken string
    Agent token to be used for authentication of the agent with Harness.
    Description string
    Description of the GitOps agent.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier of the GitOps agent.
    Metadatas List<GetGitopsAgentMetadata>
    Metadata of the agent.
    Name string
    Name of the GitOps agent.
    Operator string
    The Operator to use for the Harness GitOps agent. Enum: "ARGO" "FLAMINGO"
    Tags Dictionary<string, string>
    Tags for the GitOps agents. These can be used to search or filter the GitOps agents.
    Type string
    Default: "AGENTTYPEUNSET" Enum: "AGENTTYPEUNSET" "CONNECTEDARGOPROVIDER" "MANAGEDARGOPROVIDER"
    OrgId string
    Organization identifier of the GitOps agent.
    ProjectId string
    Project identifier of the GitOps agent.
    AccountId string
    Account identifier of the GitOps agent.
    AgentToken string
    Agent token to be used for authentication of the agent with Harness.
    Description string
    Description of the GitOps agent.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier of the GitOps agent.
    Metadatas []GetGitopsAgentMetadata
    Metadata of the agent.
    Name string
    Name of the GitOps agent.
    Operator string
    The Operator to use for the Harness GitOps agent. Enum: "ARGO" "FLAMINGO"
    Tags map[string]string
    Tags for the GitOps agents. These can be used to search or filter the GitOps agents.
    Type string
    Default: "AGENTTYPEUNSET" Enum: "AGENTTYPEUNSET" "CONNECTEDARGOPROVIDER" "MANAGEDARGOPROVIDER"
    OrgId string
    Organization identifier of the GitOps agent.
    ProjectId string
    Project identifier of the GitOps agent.
    accountId String
    Account identifier of the GitOps agent.
    agentToken String
    Agent token to be used for authentication of the agent with Harness.
    description String
    Description of the GitOps agent.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier of the GitOps agent.
    metadatas List<GetGitopsAgentMetadata>
    Metadata of the agent.
    name String
    Name of the GitOps agent.
    operator String
    The Operator to use for the Harness GitOps agent. Enum: "ARGO" "FLAMINGO"
    tags Map<String,String>
    Tags for the GitOps agents. These can be used to search or filter the GitOps agents.
    type String
    Default: "AGENTTYPEUNSET" Enum: "AGENTTYPEUNSET" "CONNECTEDARGOPROVIDER" "MANAGEDARGOPROVIDER"
    orgId String
    Organization identifier of the GitOps agent.
    projectId String
    Project identifier of the GitOps agent.
    accountId string
    Account identifier of the GitOps agent.
    agentToken string
    Agent token to be used for authentication of the agent with Harness.
    description string
    Description of the GitOps agent.
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    Identifier of the GitOps agent.
    metadatas GetGitopsAgentMetadata[]
    Metadata of the agent.
    name string
    Name of the GitOps agent.
    operator string
    The Operator to use for the Harness GitOps agent. Enum: "ARGO" "FLAMINGO"
    tags {[key: string]: string}
    Tags for the GitOps agents. These can be used to search or filter the GitOps agents.
    type string
    Default: "AGENTTYPEUNSET" Enum: "AGENTTYPEUNSET" "CONNECTEDARGOPROVIDER" "MANAGEDARGOPROVIDER"
    orgId string
    Organization identifier of the GitOps agent.
    projectId string
    Project identifier of the GitOps agent.
    account_id str
    Account identifier of the GitOps agent.
    agent_token str
    Agent token to be used for authentication of the agent with Harness.
    description str
    Description of the GitOps agent.
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    Identifier of the GitOps agent.
    metadatas Sequence[GetGitopsAgentMetadata]
    Metadata of the agent.
    name str
    Name of the GitOps agent.
    operator str
    The Operator to use for the Harness GitOps agent. Enum: "ARGO" "FLAMINGO"
    tags Mapping[str, str]
    Tags for the GitOps agents. These can be used to search or filter the GitOps agents.
    type str
    Default: "AGENTTYPEUNSET" Enum: "AGENTTYPEUNSET" "CONNECTEDARGOPROVIDER" "MANAGEDARGOPROVIDER"
    org_id str
    Organization identifier of the GitOps agent.
    project_id str
    Project identifier of the GitOps agent.
    accountId String
    Account identifier of the GitOps agent.
    agentToken String
    Agent token to be used for authentication of the agent with Harness.
    description String
    Description of the GitOps agent.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier of the GitOps agent.
    metadatas List<Property Map>
    Metadata of the agent.
    name String
    Name of the GitOps agent.
    operator String
    The Operator to use for the Harness GitOps agent. Enum: "ARGO" "FLAMINGO"
    tags Map<String>
    Tags for the GitOps agents. These can be used to search or filter the GitOps agents.
    type String
    Default: "AGENTTYPEUNSET" Enum: "AGENTTYPEUNSET" "CONNECTEDARGOPROVIDER" "MANAGEDARGOPROVIDER"
    orgId String
    Organization identifier of the GitOps agent.
    projectId String
    Project identifier of the GitOps agent.

    Supporting Types

    GetGitopsAgentMetadata

    HighAvailability bool
    Indicates if the agent is deployed in HA mode.
    Namespace string
    The kubernetes namespace where the agent should be installed.
    IsNamespaced bool
    Indicates if the agent is namespaced.
    HighAvailability bool
    Indicates if the agent is deployed in HA mode.
    Namespace string
    The kubernetes namespace where the agent should be installed.
    IsNamespaced bool
    Indicates if the agent is namespaced.
    highAvailability Boolean
    Indicates if the agent is deployed in HA mode.
    namespace String
    The kubernetes namespace where the agent should be installed.
    isNamespaced Boolean
    Indicates if the agent is namespaced.
    highAvailability boolean
    Indicates if the agent is deployed in HA mode.
    namespace string
    The kubernetes namespace where the agent should be installed.
    isNamespaced boolean
    Indicates if the agent is namespaced.
    high_availability bool
    Indicates if the agent is deployed in HA mode.
    namespace str
    The kubernetes namespace where the agent should be installed.
    is_namespaced bool
    Indicates if the agent is namespaced.
    highAvailability Boolean
    Indicates if the agent is deployed in HA mode.
    namespace String
    The kubernetes namespace where the agent should be installed.
    isNamespaced Boolean
    Indicates if the agent is namespaced.

    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.4.4 published on Tuesday, Nov 12, 2024 by Pulumi