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

harness.platform.getOverrides

Explore with Pulumi AI

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

    Data source for Harness Overrides V2.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const test = harness.platform.getOverrides({
        identifier: "identifier",
        orgId: "orgIdentifier",
        projectId: "projectIdentifier",
    });
    
    import pulumi
    import pulumi_harness as harness
    
    test = harness.platform.get_overrides(identifier="identifier",
        org_id="orgIdentifier",
        project_id="projectIdentifier")
    
    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.LookupOverrides(ctx, &platform.LookupOverridesArgs{
    			Identifier: "identifier",
    			OrgId:      pulumi.StringRef("orgIdentifier"),
    			ProjectId:  pulumi.StringRef("projectIdentifier"),
    		}, 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.GetOverrides.Invoke(new()
        {
            Identifier = "identifier",
            OrgId = "orgIdentifier",
            ProjectId = "projectIdentifier",
        });
    
    });
    
    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.GetOverridesArgs;
    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 test = PlatformFunctions.getOverrides(GetOverridesArgs.builder()
                .identifier("identifier")
                .orgId("orgIdentifier")
                .projectId("projectIdentifier")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: harness:platform:getOverrides
          arguments:
            identifier: identifier
            orgId: orgIdentifier
            projectId: projectIdentifier
    

    Using getOverrides

    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 getOverrides(args: GetOverridesArgs, opts?: InvokeOptions): Promise<GetOverridesResult>
    function getOverridesOutput(args: GetOverridesOutputArgs, opts?: InvokeOptions): Output<GetOverridesResult>
    def get_overrides(git_details: Optional[GetOverridesGitDetails] = None,
                      identifier: Optional[str] = None,
                      org_id: Optional[str] = None,
                      project_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetOverridesResult
    def get_overrides_output(git_details: Optional[pulumi.Input[GetOverridesGitDetailsArgs]] = 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[GetOverridesResult]
    func LookupOverrides(ctx *Context, args *LookupOverridesArgs, opts ...InvokeOption) (*LookupOverridesResult, error)
    func LookupOverridesOutput(ctx *Context, args *LookupOverridesOutputArgs, opts ...InvokeOption) LookupOverridesResultOutput

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

    public static class GetOverrides 
    {
        public static Task<GetOverridesResult> InvokeAsync(GetOverridesArgs args, InvokeOptions? opts = null)
        public static Output<GetOverridesResult> Invoke(GetOverridesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOverridesResult> getOverrides(GetOverridesArgs args, InvokeOptions options)
    public static Output<GetOverridesResult> getOverrides(GetOverridesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: harness:platform/getOverrides:getOverrides
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Identifier string
    The identifier of the override entity.
    GitDetails GetOverridesGitDetails
    Contains parameters related to Git Experience for remote overrides
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Identifier string
    The identifier of the override entity.
    GitDetails GetOverridesGitDetails
    Contains parameters related to Git Experience for remote overrides
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    identifier String
    The identifier of the override entity.
    gitDetails GetOverridesGitDetails
    Contains parameters related to Git Experience for remote overrides
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    identifier string
    The identifier of the override entity.
    gitDetails GetOverridesGitDetails
    Contains parameters related to Git Experience for remote overrides
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    identifier str
    The identifier of the override entity.
    git_details GetOverridesGitDetails
    Contains parameters related to Git Experience for remote overrides
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    identifier String
    The identifier of the override entity.
    gitDetails Property Map
    Contains parameters related to Git Experience for remote overrides
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.

    getOverrides Result

    The following output properties are available:

    ClusterId string
    The cluster ID to which the override entity is associated.
    EnvId string
    The environment ID to which the override entity is associated.
    GitDetails GetOverridesGitDetails
    Contains parameters related to Git Experience for remote overrides
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    The identifier of the override entity.
    InfraId string
    The infrastructure ID to which the override entity is associated.
    ServiceId string
    The service ID to which the override entity is associated.
    Type string
    The type of the override entity.
    Yaml string
    The yaml of the override entity.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    ClusterId string
    The cluster ID to which the override entity is associated.
    EnvId string
    The environment ID to which the override entity is associated.
    GitDetails GetOverridesGitDetails
    Contains parameters related to Git Experience for remote overrides
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    The identifier of the override entity.
    InfraId string
    The infrastructure ID to which the override entity is associated.
    ServiceId string
    The service ID to which the override entity is associated.
    Type string
    The type of the override entity.
    Yaml string
    The yaml of the override entity.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    clusterId String
    The cluster ID to which the override entity is associated.
    envId String
    The environment ID to which the override entity is associated.
    gitDetails GetOverridesGitDetails
    Contains parameters related to Git Experience for remote overrides
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    The identifier of the override entity.
    infraId String
    The infrastructure ID to which the override entity is associated.
    serviceId String
    The service ID to which the override entity is associated.
    type String
    The type of the override entity.
    yaml String
    The yaml of the override entity.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    clusterId string
    The cluster ID to which the override entity is associated.
    envId string
    The environment ID to which the override entity is associated.
    gitDetails GetOverridesGitDetails
    Contains parameters related to Git Experience for remote overrides
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    The identifier of the override entity.
    infraId string
    The infrastructure ID to which the override entity is associated.
    serviceId string
    The service ID to which the override entity is associated.
    type string
    The type of the override entity.
    yaml string
    The yaml of the override entity.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    cluster_id str
    The cluster ID to which the override entity is associated.
    env_id str
    The environment ID to which the override entity is associated.
    git_details GetOverridesGitDetails
    Contains parameters related to Git Experience for remote overrides
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    The identifier of the override entity.
    infra_id str
    The infrastructure ID to which the override entity is associated.
    service_id str
    The service ID to which the override entity is associated.
    type str
    The type of the override entity.
    yaml str
    The yaml of the override entity.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    clusterId String
    The cluster ID to which the override entity is associated.
    envId String
    The environment ID to which the override entity is associated.
    gitDetails Property Map
    Contains parameters related to Git Experience for remote overrides
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    The identifier of the override entity.
    infraId String
    The infrastructure ID to which the override entity is associated.
    serviceId String
    The service ID to which the override entity is associated.
    type String
    The type of the override entity.
    yaml String
    The yaml of the override entity.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.

    Supporting Types

    GetOverridesGitDetails

    Branch string
    Name of the branch.
    LoadFromCache bool
    Load service yaml from fallback branch
    LoadFromFallbackBranch bool
    Load service yaml from fallback branch
    RepoName string
    Repo name of remote service override
    Branch string
    Name of the branch.
    LoadFromCache bool
    Load service yaml from fallback branch
    LoadFromFallbackBranch bool
    Load service yaml from fallback branch
    RepoName string
    Repo name of remote service override
    branch String
    Name of the branch.
    loadFromCache Boolean
    Load service yaml from fallback branch
    loadFromFallbackBranch Boolean
    Load service yaml from fallback branch
    repoName String
    Repo name of remote service override
    branch string
    Name of the branch.
    loadFromCache boolean
    Load service yaml from fallback branch
    loadFromFallbackBranch boolean
    Load service yaml from fallback branch
    repoName string
    Repo name of remote service override
    branch str
    Name of the branch.
    load_from_cache bool
    Load service yaml from fallback branch
    load_from_fallback_branch bool
    Load service yaml from fallback branch
    repo_name str
    Repo name of remote service override
    branch String
    Name of the branch.
    loadFromCache Boolean
    Load service yaml from fallback branch
    loadFromFallbackBranch Boolean
    Load service yaml from fallback branch
    repoName String
    Repo name of remote service override

    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