1. Packages
  2. Harness Provider
  3. API Docs
  4. service
  5. getDiscoveryAgent
Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi

harness.service.getDiscoveryAgent

Explore with Pulumi AI

harness logo
Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi

    Data source for retrieving a Harness Service Discovery Agent.

    This data source allows you to fetch details of a Service Discovery Agent using either its unique identifier or name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    // Data source to fetch a specific agent by name
    const byName = harness.service.getDiscoveryAgent({
        name: "example-agent",
        orgIdentifier: orgIdentifier,
        projectIdentifier: projectIdentifier,
        environmentIdentifier: environmentIdentifier,
    });
    export const agentDetailsByName = byName;
    // Data source to fetch a specific agent by identity
    const byIdentity = harness.service.getDiscoveryAgent({
        identity: "example-infra",
        orgIdentifier: orgIdentifier,
        projectIdentifier: projectIdentifier,
        environmentIdentifier: environmentIdentifier,
    });
    export const agentDetailsByIdentity = byIdentity;
    
    import pulumi
    import pulumi_harness as harness
    
    # Data source to fetch a specific agent by name
    by_name = harness.service.get_discovery_agent(name="example-agent",
        org_identifier=org_identifier,
        project_identifier=project_identifier,
        environment_identifier=environment_identifier)
    pulumi.export("agentDetailsByName", by_name)
    # Data source to fetch a specific agent by identity
    by_identity = harness.service.get_discovery_agent(identity="example-infra",
        org_identifier=org_identifier,
        project_identifier=project_identifier,
        environment_identifier=environment_identifier)
    pulumi.export("agentDetailsByIdentity", by_identity)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/service"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Data source to fetch a specific agent by name
    		byName, err := service.LookupDiscoveryAgent(ctx, &service.LookupDiscoveryAgentArgs{
    			Name:                  pulumi.StringRef("example-agent"),
    			OrgIdentifier:         pulumi.StringRef(orgIdentifier),
    			ProjectIdentifier:     pulumi.StringRef(projectIdentifier),
    			EnvironmentIdentifier: environmentIdentifier,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("agentDetailsByName", byName)
    		// Data source to fetch a specific agent by identity
    		byIdentity, err := service.LookupDiscoveryAgent(ctx, &service.LookupDiscoveryAgentArgs{
    			Identity:              pulumi.StringRef("example-infra"),
    			OrgIdentifier:         pulumi.StringRef(orgIdentifier),
    			ProjectIdentifier:     pulumi.StringRef(projectIdentifier),
    			EnvironmentIdentifier: environmentIdentifier,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("agentDetailsByIdentity", byIdentity)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        // Data source to fetch a specific agent by name
        var byName = Harness.Service.GetDiscoveryAgent.Invoke(new()
        {
            Name = "example-agent",
            OrgIdentifier = orgIdentifier,
            ProjectIdentifier = projectIdentifier,
            EnvironmentIdentifier = environmentIdentifier,
        });
    
        // Data source to fetch a specific agent by identity
        var byIdentity = Harness.Service.GetDiscoveryAgent.Invoke(new()
        {
            Identity = "example-infra",
            OrgIdentifier = orgIdentifier,
            ProjectIdentifier = projectIdentifier,
            EnvironmentIdentifier = environmentIdentifier,
        });
    
        return new Dictionary<string, object?>
        {
            ["agentDetailsByName"] = byName,
            ["agentDetailsByIdentity"] = byIdentity,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.service.ServiceFunctions;
    import com.pulumi.harness.service.inputs.GetDiscoveryAgentArgs;
    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) {
            // Data source to fetch a specific agent by name
            final var byName = ServiceFunctions.getDiscoveryAgent(GetDiscoveryAgentArgs.builder()
                .name("example-agent")
                .orgIdentifier(orgIdentifier)
                .projectIdentifier(projectIdentifier)
                .environmentIdentifier(environmentIdentifier)
                .build());
    
            ctx.export("agentDetailsByName", byName);
            // Data source to fetch a specific agent by identity
            final var byIdentity = ServiceFunctions.getDiscoveryAgent(GetDiscoveryAgentArgs.builder()
                .identity("example-infra")
                .orgIdentifier(orgIdentifier)
                .projectIdentifier(projectIdentifier)
                .environmentIdentifier(environmentIdentifier)
                .build());
    
            ctx.export("agentDetailsByIdentity", byIdentity);
        }
    }
    
    variables:
      # Data source to fetch a specific agent by name
      byName:
        fn::invoke:
          function: harness:service:getDiscoveryAgent
          arguments:
            name: example-agent
            orgIdentifier: ${orgIdentifier}
            projectIdentifier: ${projectIdentifier}
            environmentIdentifier: ${environmentIdentifier}
      # Data source to fetch a specific agent by identity
      byIdentity:
        fn::invoke:
          function: harness:service:getDiscoveryAgent
          arguments:
            identity: example-infra
            orgIdentifier: ${orgIdentifier}
            projectIdentifier: ${projectIdentifier}
            environmentIdentifier: ${environmentIdentifier}
    outputs:
      agentDetailsByName: ${byName}
      agentDetailsByIdentity: ${byIdentity}
    

    Using getDiscoveryAgent

    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 getDiscoveryAgent(args: GetDiscoveryAgentArgs, opts?: InvokeOptions): Promise<GetDiscoveryAgentResult>
    function getDiscoveryAgentOutput(args: GetDiscoveryAgentOutputArgs, opts?: InvokeOptions): Output<GetDiscoveryAgentResult>
    def get_discovery_agent(environment_identifier: Optional[str] = None,
                            identity: Optional[str] = None,
                            name: Optional[str] = None,
                            org_identifier: Optional[str] = None,
                            project_identifier: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetDiscoveryAgentResult
    def get_discovery_agent_output(environment_identifier: Optional[pulumi.Input[str]] = None,
                            identity: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            org_identifier: Optional[pulumi.Input[str]] = None,
                            project_identifier: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetDiscoveryAgentResult]
    func LookupDiscoveryAgent(ctx *Context, args *LookupDiscoveryAgentArgs, opts ...InvokeOption) (*LookupDiscoveryAgentResult, error)
    func LookupDiscoveryAgentOutput(ctx *Context, args *LookupDiscoveryAgentOutputArgs, opts ...InvokeOption) LookupDiscoveryAgentResultOutput

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

    public static class GetDiscoveryAgent 
    {
        public static Task<GetDiscoveryAgentResult> InvokeAsync(GetDiscoveryAgentArgs args, InvokeOptions? opts = null)
        public static Output<GetDiscoveryAgentResult> Invoke(GetDiscoveryAgentInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDiscoveryAgentResult> getDiscoveryAgent(GetDiscoveryAgentArgs args, InvokeOptions options)
    public static Output<GetDiscoveryAgentResult> getDiscoveryAgent(GetDiscoveryAgentArgs args, InvokeOptions options)
    
    fn::invoke:
      function: harness:service/getDiscoveryAgent:getDiscoveryAgent
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EnvironmentIdentifier string
    The environment identifier of the agent. This is a required field.
    Identity string
    The unique identity of the agent. Either this or 'name' must be provided.
    Name string
    The name of the agent. Either this or 'identity' must be provided.
    OrgIdentifier string
    The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    ProjectIdentifier string
    The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    EnvironmentIdentifier string
    The environment identifier of the agent. This is a required field.
    Identity string
    The unique identity of the agent. Either this or 'name' must be provided.
    Name string
    The name of the agent. Either this or 'identity' must be provided.
    OrgIdentifier string
    The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    ProjectIdentifier string
    The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    environmentIdentifier String
    The environment identifier of the agent. This is a required field.
    identity String
    The unique identity of the agent. Either this or 'name' must be provided.
    name String
    The name of the agent. Either this or 'identity' must be provided.
    orgIdentifier String
    The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    projectIdentifier String
    The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    environmentIdentifier string
    The environment identifier of the agent. This is a required field.
    identity string
    The unique identity of the agent. Either this or 'name' must be provided.
    name string
    The name of the agent. Either this or 'identity' must be provided.
    orgIdentifier string
    The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    projectIdentifier string
    The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    environment_identifier str
    The environment identifier of the agent. This is a required field.
    identity str
    The unique identity of the agent. Either this or 'name' must be provided.
    name str
    The name of the agent. Either this or 'identity' must be provided.
    org_identifier str
    The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    project_identifier str
    The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    environmentIdentifier String
    The environment identifier of the agent. This is a required field.
    identity String
    The unique identity of the agent. Either this or 'name' must be provided.
    name String
    The name of the agent. Either this or 'identity' must be provided.
    orgIdentifier String
    The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    projectIdentifier String
    The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.

    getDiscoveryAgent Result

    The following output properties are available:

    Configs List<GetDiscoveryAgentConfig>
    Configuration for the agent.
    CorrelationId string
    Correlation ID for the agent.
    CreatedAt string
    Timestamp when the agent was created.
    CreatedBy string
    User who created the agent.
    Description string
    Description of the agent.
    EnvironmentIdentifier string
    The environment identifier of the agent. This is a required field.
    Id string
    The unique identifier of the agent.
    InstallationDetails List<GetDiscoveryAgentInstallationDetail>
    Installation details of the agent.
    InstallationType string
    Type of installation for the agent.
    NetworkMapCount int
    Number of network maps associated with this agent.
    PermanentInstallation bool
    Whether this is a permanent installation.
    Removed bool
    Whether the agent has been removed.
    RemovedAt string
    Timestamp when the agent was removed.
    ServiceCount int
    Number of services managed by this agent.
    Tags List<string>
    Key-value list of resource tags for the agent.
    UpdatedAt string
    Timestamp when the agent was last updated.
    UpdatedBy string
    User who last updated the agent.
    WebhookUrl string
    Webhook URL for the agent.
    Identity string
    The unique identity of the agent. Either this or 'name' must be provided.
    Name string
    The name of the agent. Either this or 'identity' must be provided.
    OrgIdentifier string
    The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    ProjectIdentifier string
    The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    Configs []GetDiscoveryAgentConfig
    Configuration for the agent.
    CorrelationId string
    Correlation ID for the agent.
    CreatedAt string
    Timestamp when the agent was created.
    CreatedBy string
    User who created the agent.
    Description string
    Description of the agent.
    EnvironmentIdentifier string
    The environment identifier of the agent. This is a required field.
    Id string
    The unique identifier of the agent.
    InstallationDetails []GetDiscoveryAgentInstallationDetail
    Installation details of the agent.
    InstallationType string
    Type of installation for the agent.
    NetworkMapCount int
    Number of network maps associated with this agent.
    PermanentInstallation bool
    Whether this is a permanent installation.
    Removed bool
    Whether the agent has been removed.
    RemovedAt string
    Timestamp when the agent was removed.
    ServiceCount int
    Number of services managed by this agent.
    Tags []string
    Key-value list of resource tags for the agent.
    UpdatedAt string
    Timestamp when the agent was last updated.
    UpdatedBy string
    User who last updated the agent.
    WebhookUrl string
    Webhook URL for the agent.
    Identity string
    The unique identity of the agent. Either this or 'name' must be provided.
    Name string
    The name of the agent. Either this or 'identity' must be provided.
    OrgIdentifier string
    The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    ProjectIdentifier string
    The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    configs List<GetDiscoveryAgentConfig>
    Configuration for the agent.
    correlationId String
    Correlation ID for the agent.
    createdAt String
    Timestamp when the agent was created.
    createdBy String
    User who created the agent.
    description String
    Description of the agent.
    environmentIdentifier String
    The environment identifier of the agent. This is a required field.
    id String
    The unique identifier of the agent.
    installationDetails List<GetDiscoveryAgentInstallationDetail>
    Installation details of the agent.
    installationType String
    Type of installation for the agent.
    networkMapCount Integer
    Number of network maps associated with this agent.
    permanentInstallation Boolean
    Whether this is a permanent installation.
    removed Boolean
    Whether the agent has been removed.
    removedAt String
    Timestamp when the agent was removed.
    serviceCount Integer
    Number of services managed by this agent.
    tags List<String>
    Key-value list of resource tags for the agent.
    updatedAt String
    Timestamp when the agent was last updated.
    updatedBy String
    User who last updated the agent.
    webhookUrl String
    Webhook URL for the agent.
    identity String
    The unique identity of the agent. Either this or 'name' must be provided.
    name String
    The name of the agent. Either this or 'identity' must be provided.
    orgIdentifier String
    The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    projectIdentifier String
    The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    configs GetDiscoveryAgentConfig[]
    Configuration for the agent.
    correlationId string
    Correlation ID for the agent.
    createdAt string
    Timestamp when the agent was created.
    createdBy string
    User who created the agent.
    description string
    Description of the agent.
    environmentIdentifier string
    The environment identifier of the agent. This is a required field.
    id string
    The unique identifier of the agent.
    installationDetails GetDiscoveryAgentInstallationDetail[]
    Installation details of the agent.
    installationType string
    Type of installation for the agent.
    networkMapCount number
    Number of network maps associated with this agent.
    permanentInstallation boolean
    Whether this is a permanent installation.
    removed boolean
    Whether the agent has been removed.
    removedAt string
    Timestamp when the agent was removed.
    serviceCount number
    Number of services managed by this agent.
    tags string[]
    Key-value list of resource tags for the agent.
    updatedAt string
    Timestamp when the agent was last updated.
    updatedBy string
    User who last updated the agent.
    webhookUrl string
    Webhook URL for the agent.
    identity string
    The unique identity of the agent. Either this or 'name' must be provided.
    name string
    The name of the agent. Either this or 'identity' must be provided.
    orgIdentifier string
    The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    projectIdentifier string
    The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    configs Sequence[GetDiscoveryAgentConfig]
    Configuration for the agent.
    correlation_id str
    Correlation ID for the agent.
    created_at str
    Timestamp when the agent was created.
    created_by str
    User who created the agent.
    description str
    Description of the agent.
    environment_identifier str
    The environment identifier of the agent. This is a required field.
    id str
    The unique identifier of the agent.
    installation_details Sequence[GetDiscoveryAgentInstallationDetail]
    Installation details of the agent.
    installation_type str
    Type of installation for the agent.
    network_map_count int
    Number of network maps associated with this agent.
    permanent_installation bool
    Whether this is a permanent installation.
    removed bool
    Whether the agent has been removed.
    removed_at str
    Timestamp when the agent was removed.
    service_count int
    Number of services managed by this agent.
    tags Sequence[str]
    Key-value list of resource tags for the agent.
    updated_at str
    Timestamp when the agent was last updated.
    updated_by str
    User who last updated the agent.
    webhook_url str
    Webhook URL for the agent.
    identity str
    The unique identity of the agent. Either this or 'name' must be provided.
    name str
    The name of the agent. Either this or 'identity' must be provided.
    org_identifier str
    The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    project_identifier str
    The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    configs List<Property Map>
    Configuration for the agent.
    correlationId String
    Correlation ID for the agent.
    createdAt String
    Timestamp when the agent was created.
    createdBy String
    User who created the agent.
    description String
    Description of the agent.
    environmentIdentifier String
    The environment identifier of the agent. This is a required field.
    id String
    The unique identifier of the agent.
    installationDetails List<Property Map>
    Installation details of the agent.
    installationType String
    Type of installation for the agent.
    networkMapCount Number
    Number of network maps associated with this agent.
    permanentInstallation Boolean
    Whether this is a permanent installation.
    removed Boolean
    Whether the agent has been removed.
    removedAt String
    Timestamp when the agent was removed.
    serviceCount Number
    Number of services managed by this agent.
    tags List<String>
    Key-value list of resource tags for the agent.
    updatedAt String
    Timestamp when the agent was last updated.
    updatedBy String
    User who last updated the agent.
    webhookUrl String
    Webhook URL for the agent.
    identity String
    The unique identity of the agent. Either this or 'name' must be provided.
    name String
    The name of the agent. Either this or 'identity' must be provided.
    orgIdentifier String
    The organization identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.
    projectIdentifier String
    The project identifier of the agent (optional). Must be 1-64 characters and contain only alphanumeric characters, hyphens, or underscores.

    Supporting Types

    GetDiscoveryAgentConfig

    CollectorImage string
    Docker image for the collector.
    Datas List<GetDiscoveryAgentConfigData>
    Data collection configuration.
    ImagePullSecrets List<string>
    List of image pull secrets.
    Kubernetes List<GetDiscoveryAgentConfigKubernete>
    Kubernetes-specific configuration.
    LogWatcherImage string
    Docker image for the log watcher.
    Mtls List<GetDiscoveryAgentConfigMtl>
    mTLS configuration.
    Proxies List<GetDiscoveryAgentConfigProxy>
    Proxy configuration.
    SkipSecureVerify bool
    Whether to skip TLS verification.
    CollectorImage string
    Docker image for the collector.
    Datas []GetDiscoveryAgentConfigData
    Data collection configuration.
    ImagePullSecrets []string
    List of image pull secrets.
    Kubernetes []GetDiscoveryAgentConfigKubernete
    Kubernetes-specific configuration.
    LogWatcherImage string
    Docker image for the log watcher.
    Mtls []GetDiscoveryAgentConfigMtl
    mTLS configuration.
    Proxies []GetDiscoveryAgentConfigProxy
    Proxy configuration.
    SkipSecureVerify bool
    Whether to skip TLS verification.
    collectorImage String
    Docker image for the collector.
    datas List<GetDiscoveryAgentConfigData>
    Data collection configuration.
    imagePullSecrets List<String>
    List of image pull secrets.
    kubernetes List<GetDiscoveryAgentConfigKubernete>
    Kubernetes-specific configuration.
    logWatcherImage String
    Docker image for the log watcher.
    mtls List<GetDiscoveryAgentConfigMtl>
    mTLS configuration.
    proxies List<GetDiscoveryAgentConfigProxy>
    Proxy configuration.
    skipSecureVerify Boolean
    Whether to skip TLS verification.
    collectorImage string
    Docker image for the collector.
    datas GetDiscoveryAgentConfigData[]
    Data collection configuration.
    imagePullSecrets string[]
    List of image pull secrets.
    kubernetes GetDiscoveryAgentConfigKubernete[]
    Kubernetes-specific configuration.
    logWatcherImage string
    Docker image for the log watcher.
    mtls GetDiscoveryAgentConfigMtl[]
    mTLS configuration.
    proxies GetDiscoveryAgentConfigProxy[]
    Proxy configuration.
    skipSecureVerify boolean
    Whether to skip TLS verification.
    collector_image str
    Docker image for the collector.
    datas Sequence[GetDiscoveryAgentConfigData]
    Data collection configuration.
    image_pull_secrets Sequence[str]
    List of image pull secrets.
    kubernetes Sequence[GetDiscoveryAgentConfigKubernete]
    Kubernetes-specific configuration.
    log_watcher_image str
    Docker image for the log watcher.
    mtls Sequence[GetDiscoveryAgentConfigMtl]
    mTLS configuration.
    proxies Sequence[GetDiscoveryAgentConfigProxy]
    Proxy configuration.
    skip_secure_verify bool
    Whether to skip TLS verification.
    collectorImage String
    Docker image for the collector.
    datas List<Property Map>
    Data collection configuration.
    imagePullSecrets List<String>
    List of image pull secrets.
    kubernetes List<Property Map>
    Kubernetes-specific configuration.
    logWatcherImage String
    Docker image for the log watcher.
    mtls List<Property Map>
    mTLS configuration.
    proxies List<Property Map>
    Proxy configuration.
    skipSecureVerify Boolean
    Whether to skip TLS verification.

    GetDiscoveryAgentConfigData

    BlacklistedNamespaces List<string>
    List of namespaces to exclude from discovery.
    CollectionWindowInMin int
    Collection window in minutes.
    Crons List<GetDiscoveryAgentConfigDataCron>
    Cron schedule for data collection.
    EnableBatchResources bool
    Whether to enable batch resources.
    EnableNodeAgent bool
    Whether to enable node agent.
    EnableOrphanedPod bool
    Whether to enable orphaned pod detection.
    NamespaceSelector string
    Namespace selector for the agent.
    NodeAgentSelector string
    Node selector for the node agent.
    ObservedNamespaces List<string>
    List of namespaces to observe.
    BlacklistedNamespaces []string
    List of namespaces to exclude from discovery.
    CollectionWindowInMin int
    Collection window in minutes.
    Crons []GetDiscoveryAgentConfigDataCron
    Cron schedule for data collection.
    EnableBatchResources bool
    Whether to enable batch resources.
    EnableNodeAgent bool
    Whether to enable node agent.
    EnableOrphanedPod bool
    Whether to enable orphaned pod detection.
    NamespaceSelector string
    Namespace selector for the agent.
    NodeAgentSelector string
    Node selector for the node agent.
    ObservedNamespaces []string
    List of namespaces to observe.
    blacklistedNamespaces List<String>
    List of namespaces to exclude from discovery.
    collectionWindowInMin Integer
    Collection window in minutes.
    crons List<GetDiscoveryAgentConfigDataCron>
    Cron schedule for data collection.
    enableBatchResources Boolean
    Whether to enable batch resources.
    enableNodeAgent Boolean
    Whether to enable node agent.
    enableOrphanedPod Boolean
    Whether to enable orphaned pod detection.
    namespaceSelector String
    Namespace selector for the agent.
    nodeAgentSelector String
    Node selector for the node agent.
    observedNamespaces List<String>
    List of namespaces to observe.
    blacklistedNamespaces string[]
    List of namespaces to exclude from discovery.
    collectionWindowInMin number
    Collection window in minutes.
    crons GetDiscoveryAgentConfigDataCron[]
    Cron schedule for data collection.
    enableBatchResources boolean
    Whether to enable batch resources.
    enableNodeAgent boolean
    Whether to enable node agent.
    enableOrphanedPod boolean
    Whether to enable orphaned pod detection.
    namespaceSelector string
    Namespace selector for the agent.
    nodeAgentSelector string
    Node selector for the node agent.
    observedNamespaces string[]
    List of namespaces to observe.
    blacklisted_namespaces Sequence[str]
    List of namespaces to exclude from discovery.
    collection_window_in_min int
    Collection window in minutes.
    crons Sequence[GetDiscoveryAgentConfigDataCron]
    Cron schedule for data collection.
    enable_batch_resources bool
    Whether to enable batch resources.
    enable_node_agent bool
    Whether to enable node agent.
    enable_orphaned_pod bool
    Whether to enable orphaned pod detection.
    namespace_selector str
    Namespace selector for the agent.
    node_agent_selector str
    Node selector for the node agent.
    observed_namespaces Sequence[str]
    List of namespaces to observe.
    blacklistedNamespaces List<String>
    List of namespaces to exclude from discovery.
    collectionWindowInMin Number
    Collection window in minutes.
    crons List<Property Map>
    Cron schedule for data collection.
    enableBatchResources Boolean
    Whether to enable batch resources.
    enableNodeAgent Boolean
    Whether to enable node agent.
    enableOrphanedPod Boolean
    Whether to enable orphaned pod detection.
    namespaceSelector String
    Namespace selector for the agent.
    nodeAgentSelector String
    Node selector for the node agent.
    observedNamespaces List<String>
    List of namespaces to observe.

    GetDiscoveryAgentConfigDataCron

    Expression string
    Cron expression for scheduling.
    Expression string
    Cron expression for scheduling.
    expression String
    Cron expression for scheduling.
    expression string
    Cron expression for scheduling.
    expression str
    Cron expression for scheduling.
    expression String
    Cron expression for scheduling.

    GetDiscoveryAgentConfigKubernete

    Annotations Dictionary<string, string>
    Annotations to add to all resources.
    DisableNamespaceCreation bool
    Whether to disable namespace creation.
    ImagePullPolicy string
    The image pull policy.
    Labels Dictionary<string, string>
    Labels to add to all resources.
    Namespace string
    Kubernetes namespace to use
    Namespaced bool
    Whether the agent is namespaced.
    NodeSelector Dictionary<string, string>
    Node selector labels.
    Resources List<GetDiscoveryAgentConfigKuberneteResource>
    Compute resource requirements for the agent container.
    RunAsGroup int
    The group ID to run as.
    RunAsUser int
    The user ID to run as.
    ServiceAccount string
    Service account to use
    Tolerations List<GetDiscoveryAgentConfigKuberneteToleration>
    Tolerations for pod assignment.
    Annotations map[string]string
    Annotations to add to all resources.
    DisableNamespaceCreation bool
    Whether to disable namespace creation.
    ImagePullPolicy string
    The image pull policy.
    Labels map[string]string
    Labels to add to all resources.
    Namespace string
    Kubernetes namespace to use
    Namespaced bool
    Whether the agent is namespaced.
    NodeSelector map[string]string
    Node selector labels.
    Resources []GetDiscoveryAgentConfigKuberneteResource
    Compute resource requirements for the agent container.
    RunAsGroup int
    The group ID to run as.
    RunAsUser int
    The user ID to run as.
    ServiceAccount string
    Service account to use
    Tolerations []GetDiscoveryAgentConfigKuberneteToleration
    Tolerations for pod assignment.
    annotations Map<String,String>
    Annotations to add to all resources.
    disableNamespaceCreation Boolean
    Whether to disable namespace creation.
    imagePullPolicy String
    The image pull policy.
    labels Map<String,String>
    Labels to add to all resources.
    namespace String
    Kubernetes namespace to use
    namespaced Boolean
    Whether the agent is namespaced.
    nodeSelector Map<String,String>
    Node selector labels.
    resources List<GetDiscoveryAgentConfigKuberneteResource>
    Compute resource requirements for the agent container.
    runAsGroup Integer
    The group ID to run as.
    runAsUser Integer
    The user ID to run as.
    serviceAccount String
    Service account to use
    tolerations List<GetDiscoveryAgentConfigKuberneteToleration>
    Tolerations for pod assignment.
    annotations {[key: string]: string}
    Annotations to add to all resources.
    disableNamespaceCreation boolean
    Whether to disable namespace creation.
    imagePullPolicy string
    The image pull policy.
    labels {[key: string]: string}
    Labels to add to all resources.
    namespace string
    Kubernetes namespace to use
    namespaced boolean
    Whether the agent is namespaced.
    nodeSelector {[key: string]: string}
    Node selector labels.
    resources GetDiscoveryAgentConfigKuberneteResource[]
    Compute resource requirements for the agent container.
    runAsGroup number
    The group ID to run as.
    runAsUser number
    The user ID to run as.
    serviceAccount string
    Service account to use
    tolerations GetDiscoveryAgentConfigKuberneteToleration[]
    Tolerations for pod assignment.
    annotations Mapping[str, str]
    Annotations to add to all resources.
    disable_namespace_creation bool
    Whether to disable namespace creation.
    image_pull_policy str
    The image pull policy.
    labels Mapping[str, str]
    Labels to add to all resources.
    namespace str
    Kubernetes namespace to use
    namespaced bool
    Whether the agent is namespaced.
    node_selector Mapping[str, str]
    Node selector labels.
    resources Sequence[GetDiscoveryAgentConfigKuberneteResource]
    Compute resource requirements for the agent container.
    run_as_group int
    The group ID to run as.
    run_as_user int
    The user ID to run as.
    service_account str
    Service account to use
    tolerations Sequence[GetDiscoveryAgentConfigKuberneteToleration]
    Tolerations for pod assignment.
    annotations Map<String>
    Annotations to add to all resources.
    disableNamespaceCreation Boolean
    Whether to disable namespace creation.
    imagePullPolicy String
    The image pull policy.
    labels Map<String>
    Labels to add to all resources.
    namespace String
    Kubernetes namespace to use
    namespaced Boolean
    Whether the agent is namespaced.
    nodeSelector Map<String>
    Node selector labels.
    resources List<Property Map>
    Compute resource requirements for the agent container.
    runAsGroup Number
    The group ID to run as.
    runAsUser Number
    The user ID to run as.
    serviceAccount String
    Service account to use
    tolerations List<Property Map>
    Tolerations for pod assignment.

    GetDiscoveryAgentConfigKuberneteResource

    Limits List<GetDiscoveryAgentConfigKuberneteResourceLimit>
    Maximum amount of compute resources allowed.
    Requests List<GetDiscoveryAgentConfigKuberneteResourceRequest>
    Minimum amount of compute resources required.
    Limits []GetDiscoveryAgentConfigKuberneteResourceLimit
    Maximum amount of compute resources allowed.
    Requests []GetDiscoveryAgentConfigKuberneteResourceRequest
    Minimum amount of compute resources required.
    limits List<GetDiscoveryAgentConfigKuberneteResourceLimit>
    Maximum amount of compute resources allowed.
    requests List<GetDiscoveryAgentConfigKuberneteResourceRequest>
    Minimum amount of compute resources required.
    limits GetDiscoveryAgentConfigKuberneteResourceLimit[]
    Maximum amount of compute resources allowed.
    requests GetDiscoveryAgentConfigKuberneteResourceRequest[]
    Minimum amount of compute resources required.
    limits Sequence[GetDiscoveryAgentConfigKuberneteResourceLimit]
    Maximum amount of compute resources allowed.
    requests Sequence[GetDiscoveryAgentConfigKuberneteResourceRequest]
    Minimum amount of compute resources required.
    limits List<Property Map>
    Maximum amount of compute resources allowed.
    requests List<Property Map>
    Minimum amount of compute resources required.

    GetDiscoveryAgentConfigKuberneteResourceLimit

    Cpu string
    CPU limit in CPU units (e.g., 500m = 0.5 CPU, 2 = 2 CPUs).
    Memory string
    Memory limit in bytes (e.g., 128Mi, 1Gi).
    Cpu string
    CPU limit in CPU units (e.g., 500m = 0.5 CPU, 2 = 2 CPUs).
    Memory string
    Memory limit in bytes (e.g., 128Mi, 1Gi).
    cpu String
    CPU limit in CPU units (e.g., 500m = 0.5 CPU, 2 = 2 CPUs).
    memory String
    Memory limit in bytes (e.g., 128Mi, 1Gi).
    cpu string
    CPU limit in CPU units (e.g., 500m = 0.5 CPU, 2 = 2 CPUs).
    memory string
    Memory limit in bytes (e.g., 128Mi, 1Gi).
    cpu str
    CPU limit in CPU units (e.g., 500m = 0.5 CPU, 2 = 2 CPUs).
    memory str
    Memory limit in bytes (e.g., 128Mi, 1Gi).
    cpu String
    CPU limit in CPU units (e.g., 500m = 0.5 CPU, 2 = 2 CPUs).
    memory String
    Memory limit in bytes (e.g., 128Mi, 1Gi).

    GetDiscoveryAgentConfigKuberneteResourceRequest

    Cpu string
    CPU request in CPU units (e.g., 100m = 0.1 CPU).
    Memory string
    Memory request in bytes (e.g., 128Mi, 1Gi).
    Cpu string
    CPU request in CPU units (e.g., 100m = 0.1 CPU).
    Memory string
    Memory request in bytes (e.g., 128Mi, 1Gi).
    cpu String
    CPU request in CPU units (e.g., 100m = 0.1 CPU).
    memory String
    Memory request in bytes (e.g., 128Mi, 1Gi).
    cpu string
    CPU request in CPU units (e.g., 100m = 0.1 CPU).
    memory string
    Memory request in bytes (e.g., 128Mi, 1Gi).
    cpu str
    CPU request in CPU units (e.g., 100m = 0.1 CPU).
    memory str
    Memory request in bytes (e.g., 128Mi, 1Gi).
    cpu String
    CPU request in CPU units (e.g., 100m = 0.1 CPU).
    memory String
    Memory request in bytes (e.g., 128Mi, 1Gi).

    GetDiscoveryAgentConfigKuberneteToleration

    Effect string
    Effect indicates the taint effect to match.
    Key string
    The taint key that the toleration applies to.
    Operator string
    Operator represents a key's relationship to the value.
    TolerationSeconds int
    TolerationSeconds represents the period of time the toleration tolerates the taint.
    Value string
    The taint value the toleration matches to.
    Effect string
    Effect indicates the taint effect to match.
    Key string
    The taint key that the toleration applies to.
    Operator string
    Operator represents a key's relationship to the value.
    TolerationSeconds int
    TolerationSeconds represents the period of time the toleration tolerates the taint.
    Value string
    The taint value the toleration matches to.
    effect String
    Effect indicates the taint effect to match.
    key String
    The taint key that the toleration applies to.
    operator String
    Operator represents a key's relationship to the value.
    tolerationSeconds Integer
    TolerationSeconds represents the period of time the toleration tolerates the taint.
    value String
    The taint value the toleration matches to.
    effect string
    Effect indicates the taint effect to match.
    key string
    The taint key that the toleration applies to.
    operator string
    Operator represents a key's relationship to the value.
    tolerationSeconds number
    TolerationSeconds represents the period of time the toleration tolerates the taint.
    value string
    The taint value the toleration matches to.
    effect str
    Effect indicates the taint effect to match.
    key str
    The taint key that the toleration applies to.
    operator str
    Operator represents a key's relationship to the value.
    toleration_seconds int
    TolerationSeconds represents the period of time the toleration tolerates the taint.
    value str
    The taint value the toleration matches to.
    effect String
    Effect indicates the taint effect to match.
    key String
    The taint key that the toleration applies to.
    operator String
    Operator represents a key's relationship to the value.
    tolerationSeconds Number
    TolerationSeconds represents the period of time the toleration tolerates the taint.
    value String
    The taint value the toleration matches to.

    GetDiscoveryAgentConfigMtl

    CertPath string
    Path to the certificate file.
    KeyPath string
    Path to the key file.
    SecretName string
    Name of the Kubernetes secret containing the certificate and key.
    Url string
    URL of the mTLS server.
    CertPath string
    Path to the certificate file.
    KeyPath string
    Path to the key file.
    SecretName string
    Name of the Kubernetes secret containing the certificate and key.
    Url string
    URL of the mTLS server.
    certPath String
    Path to the certificate file.
    keyPath String
    Path to the key file.
    secretName String
    Name of the Kubernetes secret containing the certificate and key.
    url String
    URL of the mTLS server.
    certPath string
    Path to the certificate file.
    keyPath string
    Path to the key file.
    secretName string
    Name of the Kubernetes secret containing the certificate and key.
    url string
    URL of the mTLS server.
    cert_path str
    Path to the certificate file.
    key_path str
    Path to the key file.
    secret_name str
    Name of the Kubernetes secret containing the certificate and key.
    url str
    URL of the mTLS server.
    certPath String
    Path to the certificate file.
    keyPath String
    Path to the key file.
    secretName String
    Name of the Kubernetes secret containing the certificate and key.
    url String
    URL of the mTLS server.

    GetDiscoveryAgentConfigProxy

    HttpProxy string
    HTTP proxy URL.
    HttpsProxy string
    HTTPS proxy URL.
    NoProxy string
    Comma-separated list of hosts that should not use the proxy.
    Url string
    Proxy server URL.
    HttpProxy string
    HTTP proxy URL.
    HttpsProxy string
    HTTPS proxy URL.
    NoProxy string
    Comma-separated list of hosts that should not use the proxy.
    Url string
    Proxy server URL.
    httpProxy String
    HTTP proxy URL.
    httpsProxy String
    HTTPS proxy URL.
    noProxy String
    Comma-separated list of hosts that should not use the proxy.
    url String
    Proxy server URL.
    httpProxy string
    HTTP proxy URL.
    httpsProxy string
    HTTPS proxy URL.
    noProxy string
    Comma-separated list of hosts that should not use the proxy.
    url string
    Proxy server URL.
    http_proxy str
    HTTP proxy URL.
    https_proxy str
    HTTPS proxy URL.
    no_proxy str
    Comma-separated list of hosts that should not use the proxy.
    url str
    Proxy server URL.
    httpProxy String
    HTTP proxy URL.
    httpsProxy String
    HTTPS proxy URL.
    noProxy String
    Comma-separated list of hosts that should not use the proxy.
    url String
    Proxy server URL.

    GetDiscoveryAgentInstallationDetail

    AccountIdentifier string
    Account identifier of the installation.
    AgentDetails List<GetDiscoveryAgentInstallationDetailAgentDetail>
    Details about the agent installation.
    AgentId string
    ID of the agent.
    CreatedAt string
    When the installation was created.
    CreatedBy string
    Who created the installation.
    DelegateId string
    ID of the delegate.
    DelegateTaskId string
    ID of the delegate task.
    DelegateTaskStatus string
    Status of the delegate task.
    EnvironmentIdentifier string
    Environment identifier of the installation.
    Id string
    Installation ID.
    IsCronTriggered bool
    Whether the installation was triggered by a cron job.
    LogStreamCreatedAt string
    When the log stream was created.
    LogStreamId string
    ID of the log stream.
    OrgIdentifier string
    Organization identifier of the installation.
    ProjectIdentifier string
    Project identifier of the installation.
    Removed bool
    Whether the installation has been removed.
    RemovedAt string
    When the installation was removed.
    Stopped bool
    Whether the installation has been stopped.
    UpdatedAt string
    When the installation was last updated.
    UpdatedBy string
    Who last updated the installation.
    AccountIdentifier string
    Account identifier of the installation.
    AgentDetails []GetDiscoveryAgentInstallationDetailAgentDetail
    Details about the agent installation.
    AgentId string
    ID of the agent.
    CreatedAt string
    When the installation was created.
    CreatedBy string
    Who created the installation.
    DelegateId string
    ID of the delegate.
    DelegateTaskId string
    ID of the delegate task.
    DelegateTaskStatus string
    Status of the delegate task.
    EnvironmentIdentifier string
    Environment identifier of the installation.
    Id string
    Installation ID.
    IsCronTriggered bool
    Whether the installation was triggered by a cron job.
    LogStreamCreatedAt string
    When the log stream was created.
    LogStreamId string
    ID of the log stream.
    OrgIdentifier string
    Organization identifier of the installation.
    ProjectIdentifier string
    Project identifier of the installation.
    Removed bool
    Whether the installation has been removed.
    RemovedAt string
    When the installation was removed.
    Stopped bool
    Whether the installation has been stopped.
    UpdatedAt string
    When the installation was last updated.
    UpdatedBy string
    Who last updated the installation.
    accountIdentifier String
    Account identifier of the installation.
    agentDetails List<GetDiscoveryAgentInstallationDetailAgentDetail>
    Details about the agent installation.
    agentId String
    ID of the agent.
    createdAt String
    When the installation was created.
    createdBy String
    Who created the installation.
    delegateId String
    ID of the delegate.
    delegateTaskId String
    ID of the delegate task.
    delegateTaskStatus String
    Status of the delegate task.
    environmentIdentifier String
    Environment identifier of the installation.
    id String
    Installation ID.
    isCronTriggered Boolean
    Whether the installation was triggered by a cron job.
    logStreamCreatedAt String
    When the log stream was created.
    logStreamId String
    ID of the log stream.
    orgIdentifier String
    Organization identifier of the installation.
    projectIdentifier String
    Project identifier of the installation.
    removed Boolean
    Whether the installation has been removed.
    removedAt String
    When the installation was removed.
    stopped Boolean
    Whether the installation has been stopped.
    updatedAt String
    When the installation was last updated.
    updatedBy String
    Who last updated the installation.
    accountIdentifier string
    Account identifier of the installation.
    agentDetails GetDiscoveryAgentInstallationDetailAgentDetail[]
    Details about the agent installation.
    agentId string
    ID of the agent.
    createdAt string
    When the installation was created.
    createdBy string
    Who created the installation.
    delegateId string
    ID of the delegate.
    delegateTaskId string
    ID of the delegate task.
    delegateTaskStatus string
    Status of the delegate task.
    environmentIdentifier string
    Environment identifier of the installation.
    id string
    Installation ID.
    isCronTriggered boolean
    Whether the installation was triggered by a cron job.
    logStreamCreatedAt string
    When the log stream was created.
    logStreamId string
    ID of the log stream.
    orgIdentifier string
    Organization identifier of the installation.
    projectIdentifier string
    Project identifier of the installation.
    removed boolean
    Whether the installation has been removed.
    removedAt string
    When the installation was removed.
    stopped boolean
    Whether the installation has been stopped.
    updatedAt string
    When the installation was last updated.
    updatedBy string
    Who last updated the installation.
    account_identifier str
    Account identifier of the installation.
    agent_details Sequence[GetDiscoveryAgentInstallationDetailAgentDetail]
    Details about the agent installation.
    agent_id str
    ID of the agent.
    created_at str
    When the installation was created.
    created_by str
    Who created the installation.
    delegate_id str
    ID of the delegate.
    delegate_task_id str
    ID of the delegate task.
    delegate_task_status str
    Status of the delegate task.
    environment_identifier str
    Environment identifier of the installation.
    id str
    Installation ID.
    is_cron_triggered bool
    Whether the installation was triggered by a cron job.
    log_stream_created_at str
    When the log stream was created.
    log_stream_id str
    ID of the log stream.
    org_identifier str
    Organization identifier of the installation.
    project_identifier str
    Project identifier of the installation.
    removed bool
    Whether the installation has been removed.
    removed_at str
    When the installation was removed.
    stopped bool
    Whether the installation has been stopped.
    updated_at str
    When the installation was last updated.
    updated_by str
    Who last updated the installation.
    accountIdentifier String
    Account identifier of the installation.
    agentDetails List<Property Map>
    Details about the agent installation.
    agentId String
    ID of the agent.
    createdAt String
    When the installation was created.
    createdBy String
    Who created the installation.
    delegateId String
    ID of the delegate.
    delegateTaskId String
    ID of the delegate task.
    delegateTaskStatus String
    Status of the delegate task.
    environmentIdentifier String
    Environment identifier of the installation.
    id String
    Installation ID.
    isCronTriggered Boolean
    Whether the installation was triggered by a cron job.
    logStreamCreatedAt String
    When the log stream was created.
    logStreamId String
    ID of the log stream.
    orgIdentifier String
    Organization identifier of the installation.
    projectIdentifier String
    Project identifier of the installation.
    removed Boolean
    Whether the installation has been removed.
    removedAt String
    When the installation was removed.
    stopped Boolean
    Whether the installation has been stopped.
    updatedAt String
    When the installation was last updated.
    updatedBy String
    Who last updated the installation.

    GetDiscoveryAgentInstallationDetailAgentDetail

    clusters List<Property Map>
    Cluster information.
    nodes List<Property Map>
    List of nodes in the cluster.
    status String
    Status of the agent.

    GetDiscoveryAgentInstallationDetailAgentDetailCluster

    Name string
    Name of the cluster.
    Namespace string
    Namespace of the cluster.
    Status string
    Status of the cluster.
    Uid string
    UID of the cluster.
    Name string
    Name of the cluster.
    Namespace string
    Namespace of the cluster.
    Status string
    Status of the cluster.
    Uid string
    UID of the cluster.
    name String
    Name of the cluster.
    namespace String
    Namespace of the cluster.
    status String
    Status of the cluster.
    uid String
    UID of the cluster.
    name string
    Name of the cluster.
    namespace string
    Namespace of the cluster.
    status string
    Status of the cluster.
    uid string
    UID of the cluster.
    name str
    Name of the cluster.
    namespace str
    Namespace of the cluster.
    status str
    Status of the cluster.
    uid str
    UID of the cluster.
    name String
    Name of the cluster.
    namespace String
    Namespace of the cluster.
    status String
    Status of the cluster.
    uid String
    UID of the cluster.

    GetDiscoveryAgentInstallationDetailAgentDetailNode

    Name string
    Name of the node.
    Namespace string
    Namespace of the node.
    Status string
    Status of the node.
    Uid string
    UID of the node.
    Name string
    Name of the node.
    Namespace string
    Namespace of the node.
    Status string
    Status of the node.
    Uid string
    UID of the node.
    name String
    Name of the node.
    namespace String
    Namespace of the node.
    status String
    Status of the node.
    uid String
    UID of the node.
    name string
    Name of the node.
    namespace string
    Namespace of the node.
    status string
    Status of the node.
    uid string
    UID of the node.
    name str
    Name of the node.
    namespace str
    Namespace of the node.
    status str
    Status of the node.
    uid str
    UID of the node.
    name String
    Name of the node.
    namespace String
    Namespace of the node.
    status String
    Status of the node.
    uid String
    UID of the node.

    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.8.4 published on Thursday, Sep 11, 2025 by Pulumi