1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getGitopsAgentDeployYaml
Harness v0.7.0 published on Friday, Mar 28, 2025 by Pulumi

harness.platform.getGitopsAgentDeployYaml

Explore with Pulumi AI

Datasource for fetching a Harness Gitops Agent deployment manifest YAML.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";

const example = harness.platform.getGitopsAgentDeployYaml({
    identifier: "identifier",
    accountId: "account_id",
    projectId: "project_id",
    orgId: "org_id",
    namespace: "namespace",
});
Copy
import pulumi
import pulumi_harness as harness

example = harness.platform.get_gitops_agent_deploy_yaml(identifier="identifier",
    account_id="account_id",
    project_id="project_id",
    org_id="org_id",
    namespace="namespace")
Copy
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.GetGitopsAgentDeployYaml(ctx, &platform.GetGitopsAgentDeployYamlArgs{
			Identifier: "identifier",
			AccountId:  pulumi.StringRef("account_id"),
			ProjectId:  pulumi.StringRef("project_id"),
			OrgId:      pulumi.StringRef("org_id"),
			Namespace:  "namespace",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;

return await Deployment.RunAsync(() => 
{
    var example = Harness.Platform.GetGitopsAgentDeployYaml.Invoke(new()
    {
        Identifier = "identifier",
        AccountId = "account_id",
        ProjectId = "project_id",
        OrgId = "org_id",
        Namespace = "namespace",
    });

});
Copy
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()
            .identifier("identifier")
            .accountId("account_id")
            .projectId("project_id")
            .orgId("org_id")
            .namespace("namespace")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: harness:platform:getGitopsAgentDeployYaml
      arguments:
        identifier: identifier
        accountId: account_id
        projectId: project_id
        orgId: org_id
        namespace: namespace
Copy

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>
Copy
def get_gitops_agent_deploy_yaml(account_id: Optional[str] = None,
                                 ca_data: Optional[str] = None,
                                 identifier: Optional[str] = None,
                                 namespace: Optional[str] = None,
                                 org_id: Optional[str] = None,
                                 private_key: Optional[str] = None,
                                 project_id: Optional[str] = None,
                                 proxies: Optional[Sequence[GetGitopsAgentDeployYamlProxy]] = None,
                                 skip_crds: Optional[bool] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetGitopsAgentDeployYamlResult
def get_gitops_agent_deploy_yaml_output(account_id: Optional[pulumi.Input[str]] = None,
                                 ca_data: Optional[pulumi.Input[str]] = None,
                                 identifier: Optional[pulumi.Input[str]] = None,
                                 namespace: Optional[pulumi.Input[str]] = None,
                                 org_id: Optional[pulumi.Input[str]] = None,
                                 private_key: Optional[pulumi.Input[str]] = None,
                                 project_id: Optional[pulumi.Input[str]] = None,
                                 proxies: Optional[pulumi.Input[Sequence[pulumi.Input[GetGitopsAgentDeployYamlProxyArgs]]]] = None,
                                 skip_crds: Optional[pulumi.Input[bool]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetGitopsAgentDeployYamlResult]
Copy
func GetGitopsAgentDeployYaml(ctx *Context, args *GetGitopsAgentDeployYamlArgs, opts ...InvokeOption) (*GetGitopsAgentDeployYamlResult, error)
func GetGitopsAgentDeployYamlOutput(ctx *Context, args *GetGitopsAgentDeployYamlOutputArgs, opts ...InvokeOption) GetGitopsAgentDeployYamlResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetGitopsAgentDeployYamlResult> getGitopsAgentDeployYaml(GetGitopsAgentDeployYamlArgs args, InvokeOptions options)
public static Output<GetGitopsAgentDeployYamlResult> getGitopsAgentDeployYaml(GetGitopsAgentDeployYamlArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harness:platform/getGitopsAgentDeployYaml:getGitopsAgentDeployYaml
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Identifier This property is required. string
Identifier of the GitOps agent.
Namespace This property is required. string
The kubernetes namespace where the agent is installed.
AccountId string
Account identifier of the GitOps agent.

Deprecated: This field is deprecated and will be removed in a future release.

CaData string
CA data of the GitOps agent, base64 encoded content of ca chain.
OrgId string
Organization identifier of the GitOps agent.
PrivateKey string
Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
ProjectId string
Project identifier of the GitOps agent.
Proxies List<GetGitopsAgentDeployYamlProxy>
Proxy settings for the GitOps agent.
SkipCrds bool
Skip CRDs for the GitOps agent.
Identifier This property is required. string
Identifier of the GitOps agent.
Namespace This property is required. string
The kubernetes namespace where the agent is installed.
AccountId string
Account identifier of the GitOps agent.

Deprecated: This field is deprecated and will be removed in a future release.

CaData string
CA data of the GitOps agent, base64 encoded content of ca chain.
OrgId string
Organization identifier of the GitOps agent.
PrivateKey string
Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
ProjectId string
Project identifier of the GitOps agent.
Proxies []GetGitopsAgentDeployYamlProxy
Proxy settings for the GitOps agent.
SkipCrds bool
Skip CRDs for the GitOps agent.
identifier This property is required. String
Identifier of the GitOps agent.
namespace This property is required. String
The kubernetes namespace where the agent is installed.
accountId String
Account identifier of the GitOps agent.

Deprecated: This field is deprecated and will be removed in a future release.

caData String
CA data of the GitOps agent, base64 encoded content of ca chain.
orgId String
Organization identifier of the GitOps agent.
privateKey String
Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
projectId String
Project identifier of the GitOps agent.
proxies List<GetGitopsAgentDeployYamlProxy>
Proxy settings for the GitOps agent.
skipCrds Boolean
Skip CRDs for the GitOps agent.
identifier This property is required. string
Identifier of the GitOps agent.
namespace This property is required. string
The kubernetes namespace where the agent is installed.
accountId string
Account identifier of the GitOps agent.

Deprecated: This field is deprecated and will be removed in a future release.

caData string
CA data of the GitOps agent, base64 encoded content of ca chain.
orgId string
Organization identifier of the GitOps agent.
privateKey string
Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
projectId string
Project identifier of the GitOps agent.
proxies GetGitopsAgentDeployYamlProxy[]
Proxy settings for the GitOps agent.
skipCrds boolean
Skip CRDs for the GitOps agent.
identifier This property is required. str
Identifier of the GitOps agent.
namespace This property is required. str
The kubernetes namespace where the agent is installed.
account_id str
Account identifier of the GitOps agent.

Deprecated: This field is deprecated and will be removed in a future release.

ca_data str
CA data of the GitOps agent, base64 encoded content of ca chain.
org_id str
Organization identifier of the GitOps agent.
private_key str
Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
project_id str
Project identifier of the GitOps agent.
proxies Sequence[GetGitopsAgentDeployYamlProxy]
Proxy settings for the GitOps agent.
skip_crds bool
Skip CRDs for the GitOps agent.
identifier This property is required. String
Identifier of the GitOps agent.
namespace This property is required. String
The kubernetes namespace where the agent is installed.
accountId String
Account identifier of the GitOps agent.

Deprecated: This field is deprecated and will be removed in a future release.

caData String
CA data of the GitOps agent, base64 encoded content of ca chain.
orgId String
Organization identifier of the GitOps agent.
privateKey String
Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
projectId String
Project identifier of the GitOps agent.
proxies List<Property Map>
Proxy settings for the GitOps agent.
skipCrds Boolean
Skip CRDs for the GitOps agent.

getGitopsAgentDeployYaml Result

The following output properties are available:

AccountId string
Account identifier of the GitOps agent.

Deprecated: This field is deprecated and will be removed in a future release.

Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Identifier of the GitOps agent.
Namespace string
The kubernetes namespace where the agent is installed.
Yaml string
The deployment manifest YAML of the GitOps agent.
CaData string
CA data of the GitOps agent, base64 encoded content of ca chain.
OrgId string
Organization identifier of the GitOps agent.
PrivateKey string
Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
ProjectId string
Project identifier of the GitOps agent.
Proxies List<GetGitopsAgentDeployYamlProxy>
Proxy settings for the GitOps agent.
SkipCrds bool
Skip CRDs for the GitOps agent.
AccountId string
Account identifier of the GitOps agent.

Deprecated: This field is deprecated and will be removed in a future release.

Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Identifier of the GitOps agent.
Namespace string
The kubernetes namespace where the agent is installed.
Yaml string
The deployment manifest YAML of the GitOps agent.
CaData string
CA data of the GitOps agent, base64 encoded content of ca chain.
OrgId string
Organization identifier of the GitOps agent.
PrivateKey string
Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
ProjectId string
Project identifier of the GitOps agent.
Proxies []GetGitopsAgentDeployYamlProxy
Proxy settings for the GitOps agent.
SkipCrds bool
Skip CRDs for the GitOps agent.
accountId String
Account identifier of the GitOps agent.

Deprecated: This field is deprecated and will be removed in a future release.

id String
The provider-assigned unique ID for this managed resource.
identifier String
Identifier of the GitOps agent.
namespace String
The kubernetes namespace where the agent is installed.
yaml String
The deployment manifest YAML of the GitOps agent.
caData String
CA data of the GitOps agent, base64 encoded content of ca chain.
orgId String
Organization identifier of the GitOps agent.
privateKey String
Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
projectId String
Project identifier of the GitOps agent.
proxies List<GetGitopsAgentDeployYamlProxy>
Proxy settings for the GitOps agent.
skipCrds Boolean
Skip CRDs for the GitOps agent.
accountId string
Account identifier of the GitOps agent.

Deprecated: This field is deprecated and will be removed in a future release.

id string
The provider-assigned unique ID for this managed resource.
identifier string
Identifier of the GitOps agent.
namespace string
The kubernetes namespace where the agent is installed.
yaml string
The deployment manifest YAML of the GitOps agent.
caData string
CA data of the GitOps agent, base64 encoded content of ca chain.
orgId string
Organization identifier of the GitOps agent.
privateKey string
Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
projectId string
Project identifier of the GitOps agent.
proxies GetGitopsAgentDeployYamlProxy[]
Proxy settings for the GitOps agent.
skipCrds boolean
Skip CRDs for the GitOps agent.
account_id str
Account identifier of the GitOps agent.

Deprecated: This field is deprecated and will be removed in a future release.

id str
The provider-assigned unique ID for this managed resource.
identifier str
Identifier of the GitOps agent.
namespace str
The kubernetes namespace where the agent is installed.
yaml str
The deployment manifest YAML of the GitOps agent.
ca_data str
CA data of the GitOps agent, base64 encoded content of ca chain.
org_id str
Organization identifier of the GitOps agent.
private_key str
Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
project_id str
Project identifier of the GitOps agent.
proxies Sequence[GetGitopsAgentDeployYamlProxy]
Proxy settings for the GitOps agent.
skip_crds bool
Skip CRDs for the GitOps agent.
accountId String
Account identifier of the GitOps agent.

Deprecated: This field is deprecated and will be removed in a future release.

id String
The provider-assigned unique ID for this managed resource.
identifier String
Identifier of the GitOps agent.
namespace String
The kubernetes namespace where the agent is installed.
yaml String
The deployment manifest YAML of the GitOps agent.
caData String
CA data of the GitOps agent, base64 encoded content of ca chain.
orgId String
Organization identifier of the GitOps agent.
privateKey String
Private key for the GitOps agent. If provided authentication token will not be regenerated. Must be base64 encoded.
projectId String
Project identifier of the GitOps agent.
proxies List<Property Map>
Proxy settings for the GitOps agent.
skipCrds Boolean
Skip CRDs for the GitOps agent.

Supporting Types

GetGitopsAgentDeployYamlProxy

Http string
HTTP proxy settings for the GitOps agent.
Https string
HTTPS proxy settings for the GitOps agent.
Password string
Password for the proxy.
Username string
Username for the proxy.
Http string
HTTP proxy settings for the GitOps agent.
Https string
HTTPS proxy settings for the GitOps agent.
Password string
Password for the proxy.
Username string
Username for the proxy.
http String
HTTP proxy settings for the GitOps agent.
https String
HTTPS proxy settings for the GitOps agent.
password String
Password for the proxy.
username String
Username for the proxy.
http string
HTTP proxy settings for the GitOps agent.
https string
HTTPS proxy settings for the GitOps agent.
password string
Password for the proxy.
username string
Username for the proxy.
http str
HTTP proxy settings for the GitOps agent.
https str
HTTPS proxy settings for the GitOps agent.
password str
Password for the proxy.
username str
Username for the proxy.
http String
HTTP proxy settings for the GitOps agent.
https String
HTTPS proxy settings for the GitOps agent.
password String
Password for the proxy.
username String
Username for the proxy.

Package Details

Repository
harness pulumi/pulumi-harness
License
Apache-2.0
Notes
This Pulumi package is based on the harness Terraform Provider.