1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. getGitopsAgentDeployYaml
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.platform.getGitopsAgentDeployYaml

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Datasource for fetching a Harness Gitops Agents.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Harness.Platform.GetGitopsAgentDeployYaml.Invoke(new()
        {
            AccountId = "account_id",
            Identifier = "identifier",
            Namespace = "namespace",
            OrgId = "org_id",
            ProjectId = "project_id",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/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.GetGitopsAgentDeployYaml(ctx, &platform.GetGitopsAgentDeployYamlArgs{
    			AccountId:  "account_id",
    			Identifier: "identifier",
    			Namespace:  "namespace",
    			OrgId:      pulumi.StringRef("org_id"),
    			ProjectId:  pulumi.StringRef("project_id"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.GetGitopsAgentDeployYamlArgs;
    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.getGitopsAgentDeployYaml(GetGitopsAgentDeployYamlArgs.builder()
                .accountId("account_id")
                .identifier("identifier")
                .namespace("namespace")
                .orgId("org_id")
                .projectId("project_id")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.get_gitops_agent_deploy_yaml(account_id="account_id",
        identifier="identifier",
        namespace="namespace",
        org_id="org_id",
        project_id="project_id")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = harness.platform.getGitopsAgentDeployYaml({
        accountId: "account_id",
        identifier: "identifier",
        namespace: "namespace",
        orgId: "org_id",
        projectId: "project_id",
    });
    
    variables:
      example:
        fn::invoke:
          Function: harness:platform:getGitopsAgentDeployYaml
          Arguments:
            accountId: account_id
            identifier: identifier
            namespace: namespace
            orgId: org_id
            projectId: project_id
    

    Using getGitopsAgentDeployYaml

    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 getGitopsAgentDeployYaml(args: GetGitopsAgentDeployYamlArgs, opts?: InvokeOptions): Promise<GetGitopsAgentDeployYamlResult>
    function getGitopsAgentDeployYamlOutput(args: GetGitopsAgentDeployYamlOutputArgs, opts?: InvokeOptions): Output<GetGitopsAgentDeployYamlResult>
    def get_gitops_agent_deploy_yaml(account_id: Optional[str] = None,
                                     identifier: Optional[str] = None,
                                     namespace: Optional[str] = None,
                                     org_id: Optional[str] = None,
                                     project_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetGitopsAgentDeployYamlResult
    def get_gitops_agent_deploy_yaml_output(account_id: Optional[pulumi.Input[str]] = None,
                                     identifier: Optional[pulumi.Input[str]] = None,
                                     namespace: Optional[pulumi.Input[str]] = None,
                                     org_id: Optional[pulumi.Input[str]] = None,
                                     project_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetGitopsAgentDeployYamlResult]
    func GetGitopsAgentDeployYaml(ctx *Context, args *GetGitopsAgentDeployYamlArgs, opts ...InvokeOption) (*GetGitopsAgentDeployYamlResult, error)
    func GetGitopsAgentDeployYamlOutput(ctx *Context, args *GetGitopsAgentDeployYamlOutputArgs, opts ...InvokeOption) GetGitopsAgentDeployYamlResultOutput

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

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

    The following arguments are supported:

    AccountId string
    Account identifier of the GitOps agent.
    Identifier string
    Identifier of the GitOps agent.
    Namespace string
    The k8s namespace that the GitOps agent resides in.
    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.
    Namespace string
    The k8s namespace that the GitOps agent resides in.
    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.
    namespace String
    The k8s namespace that the GitOps agent resides in.
    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.
    namespace string
    The k8s namespace that the GitOps agent resides in.
    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.
    namespace str
    The k8s namespace that the GitOps agent resides in.
    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.
    namespace String
    The k8s namespace that the GitOps agent resides in.
    orgId String
    Organization identifier of the GitOps agent.
    projectId String
    Project identifier of the GitOps agent.

    getGitopsAgentDeployYaml Result

    The following output properties are available:

    AccountId string
    Account identifier of the GitOps agent.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier of the GitOps agent.
    Namespace string
    The k8s namespace that the GitOps agent resides in.
    Yaml string
    Deployment YAML 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.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier of the GitOps agent.
    Namespace string
    The k8s namespace that the GitOps agent resides in.
    Yaml string
    Deployment YAML 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.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier of the GitOps agent.
    namespace String
    The k8s namespace that the GitOps agent resides in.
    yaml String
    Deployment YAML 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.
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    Identifier of the GitOps agent.
    namespace string
    The k8s namespace that the GitOps agent resides in.
    yaml string
    Deployment YAML 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.
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    Identifier of the GitOps agent.
    namespace str
    The k8s namespace that the GitOps agent resides in.
    yaml str
    Deployment YAML 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.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier of the GitOps agent.
    namespace String
    The k8s namespace that the GitOps agent resides in.
    yaml String
    Deployment YAML of the GitOps agent.
    orgId String
    Organization identifier of the GitOps agent.
    projectId String
    Project identifier of the GitOps agent.

    Package Details

    Repository
    harness lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs