Viewing docs for Harness v0.17.9
published on Thursday, Nov 12, 2026 by Pulumi
published on Thursday, Nov 12, 2026 by Pulumi
Viewing docs for Harness v0.17.9
published on Thursday, Nov 12, 2026 by Pulumi
published on Thursday, Nov 12, 2026 by Pulumi
Data source for retrieving a GitOps Repository Certificate. It fetches all the certificates that are added to the provided agent.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const test = harness.platform.getGitopsRepoCert({
identifier: "identifier",
accountId: "account_id",
projectId: "project_id",
orgId: "org_id",
agentId: "agent_id",
});
import pulumi
import pulumi_harness as harness
test = harness.platform.get_gitops_repo_cert(identifier="identifier",
account_id="account_id",
project_id="project_id",
org_id="org_id",
agent_id="agent_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.GetGitopsRepoCert(ctx, &platform.GetGitopsRepoCertArgs{
Identifier: "identifier",
AccountId: pulumi.StringRef("account_id"),
ProjectId: pulumi.StringRef("project_id"),
OrgId: pulumi.StringRef("org_id"),
AgentId: "agent_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 test = Harness.Platform.GetGitopsRepoCert.Invoke(new()
{
Identifier = "identifier",
AccountId = "account_id",
ProjectId = "project_id",
OrgId = "org_id",
AgentId = "agent_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.GetGitopsRepoCertArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 test = PlatformFunctions.getGitopsRepoCert(GetGitopsRepoCertArgs.builder()
.identifier("identifier")
.accountId("account_id")
.projectId("project_id")
.orgId("org_id")
.agentId("agent_id")
.build());
}
}
variables:
test:
fn::invoke:
function: harness:platform:getGitopsRepoCert
arguments:
identifier: identifier
accountId: account_id
projectId: project_id
orgId: org_id
agentId: agent_id
terraform {
required_providers {
harness = {
source = "pulumi/harness"
}
}
}
data "harness_platform_gitops_repo_cert" "test" {
identifier = "identifier"
account_id = "account_id"
project_id = "project_id"
org_id = "org_id"
agent_id = "agent_id"
}
Using getGitopsRepoCert
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 getGitopsRepoCert(args: GetGitopsRepoCertArgs, opts?: InvokeOptions): Promise<GetGitopsRepoCertResult>
function getGitopsRepoCertOutput(args: GetGitopsRepoCertOutputArgs, opts?: InvokeOutputOptions): Output<GetGitopsRepoCertResult>def get_gitops_repo_cert(account_id: Optional[str] = None,
agent_id: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGitopsRepoCertResult
def get_gitops_repo_cert_output(account_id: pulumi.Input[Optional[str]] = None,
agent_id: pulumi.Input[Optional[str]] = None,
org_id: pulumi.Input[Optional[str]] = None,
project_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetGitopsRepoCertResult]func GetGitopsRepoCert(ctx *Context, args *GetGitopsRepoCertArgs, opts ...InvokeOption) (*GetGitopsRepoCertResult, error)
func GetGitopsRepoCertOutput(ctx *Context, args *GetGitopsRepoCertOutputArgs, opts ...InvokeOption) GetGitopsRepoCertResultOutput> Note: This function is named GetGitopsRepoCert in the Go SDK.
public static class GetGitopsRepoCert
{
public static Task<GetGitopsRepoCertResult> InvokeAsync(GetGitopsRepoCertArgs args, InvokeOptions? opts = null)
public static Output<GetGitopsRepoCertResult> Invoke(GetGitopsRepoCertInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetGitopsRepoCertResult> Invoke(GetGitopsRepoCertInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetGitopsRepoCertResult> getGitopsRepoCert(GetGitopsRepoCertArgs args, InvokeOptions options)
public static Output<GetGitopsRepoCertResult> getGitopsRepoCert(GetGitopsRepoCertArgs args, InvokeOptions options)
public static Output<GetGitopsRepoCertResult> getGitopsRepoCert(GetGitopsRepoCertArgs args, InvokeOutputOptions options)
fn::invoke:
function: harness:platform/getGitopsRepoCert:getGitopsRepoCert
arguments:
# arguments dictionarydata "harness_platform_get_gitops_repo_cert" "name" {
# arguments
}The following arguments are supported:
- agent_
id string - Agent identifier of the GitOps repository certificate.
- account_
id string - Account identifier of the GitOps repository certificate.
- org_
id string - Organization identifier of the GitOps repository certificate.
- project_
id string - Project identifier of the GitOps repository certificate.
- agent_
id str - Agent identifier of the GitOps repository certificate.
- account_
id str - Account identifier of the GitOps repository certificate.
- org_
id str - Organization identifier of the GitOps repository certificate.
- project_
id str - Project identifier of the GitOps repository certificate.
getGitopsRepoCert Result
The following output properties are available:
- Account
Id string - Account identifier of the GitOps repository certificate.
- Agent
Id string - Agent identifier of the GitOps repository certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Organization identifier of the GitOps repository certificate.
- Project
Id string - Project identifier of the GitOps repository certificate.
- Account
Id string - Account identifier of the GitOps repository certificate.
- Agent
Id string - Agent identifier of the GitOps repository certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Organization identifier of the GitOps repository certificate.
- Project
Id string - Project identifier of the GitOps repository certificate.
- account_
id string - Account identifier of the GitOps repository certificate.
- agent_
id string - Agent identifier of the GitOps repository certificate.
- id string
- The provider-assigned unique ID for this managed resource.
- org_
id string - Organization identifier of the GitOps repository certificate.
- project_
id string - Project identifier of the GitOps repository certificate.
- account
Id String - Account identifier of the GitOps repository certificate.
- agent
Id String - Agent identifier of the GitOps repository certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - Organization identifier of the GitOps repository certificate.
- project
Id String - Project identifier of the GitOps repository certificate.
- account
Id string - Account identifier of the GitOps repository certificate.
- agent
Id string - Agent identifier of the GitOps repository certificate.
- id string
- The provider-assigned unique ID for this managed resource.
- org
Id string - Organization identifier of the GitOps repository certificate.
- project
Id string - Project identifier of the GitOps repository certificate.
- account_
id str - Account identifier of the GitOps repository certificate.
- agent_
id str - Agent identifier of the GitOps repository certificate.
- id str
- The provider-assigned unique ID for this managed resource.
- org_
id str - Organization identifier of the GitOps repository certificate.
- project_
id str - Project identifier of the GitOps repository certificate.
- account
Id String - Account identifier of the GitOps repository certificate.
- agent
Id String - Agent identifier of the GitOps repository certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - Organization identifier of the GitOps repository certificate.
- project
Id String - Project identifier of the GitOps repository certificate.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
Viewing docs for Harness v0.17.9
published on Thursday, Nov 12, 2026 by Pulumi
published on Thursday, Nov 12, 2026 by Pulumi