1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getEnvironmentServiceOverrides
Harness v0.7.1 published on Saturday, Mar 29, 2025 by Pulumi

harness.platform.getEnvironmentServiceOverrides

Explore with Pulumi AI

Data source for Harness environment service overrides.

Example Usage

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

const test = harness.platform.getEnvironmentServiceOverrides({
    orgId: "orgIdentifier",
    projectId: "projectIdentifier",
    envId: "environmentIdentifier",
    serviceId: "serviceIdentifier",
});
Copy
import pulumi
import pulumi_harness as harness

test = harness.platform.get_environment_service_overrides(org_id="orgIdentifier",
    project_id="projectIdentifier",
    env_id="environmentIdentifier",
    service_id="serviceIdentifier")
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.LookupEnvironmentServiceOverrides(ctx, &platform.LookupEnvironmentServiceOverridesArgs{
			OrgId:     pulumi.StringRef("orgIdentifier"),
			ProjectId: pulumi.StringRef("projectIdentifier"),
			EnvId:     "environmentIdentifier",
			ServiceId: pulumi.StringRef("serviceIdentifier"),
		}, 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 test = Harness.Platform.GetEnvironmentServiceOverrides.Invoke(new()
    {
        OrgId = "orgIdentifier",
        ProjectId = "projectIdentifier",
        EnvId = "environmentIdentifier",
        ServiceId = "serviceIdentifier",
    });

});
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.GetEnvironmentServiceOverridesArgs;
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.getEnvironmentServiceOverrides(GetEnvironmentServiceOverridesArgs.builder()
            .orgId("orgIdentifier")
            .projectId("projectIdentifier")
            .envId("environmentIdentifier")
            .serviceId("serviceIdentifier")
            .build());

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: harness:platform:getEnvironmentServiceOverrides
      arguments:
        orgId: orgIdentifier
        projectId: projectIdentifier
        envId: environmentIdentifier
        serviceId: serviceIdentifier
Copy

Using getEnvironmentServiceOverrides

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 getEnvironmentServiceOverrides(args: GetEnvironmentServiceOverridesArgs, opts?: InvokeOptions): Promise<GetEnvironmentServiceOverridesResult>
function getEnvironmentServiceOverridesOutput(args: GetEnvironmentServiceOverridesOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentServiceOverridesResult>
Copy
def get_environment_service_overrides(env_id: Optional[str] = None,
                                      identifier: Optional[str] = None,
                                      org_id: Optional[str] = None,
                                      project_id: Optional[str] = None,
                                      service_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetEnvironmentServiceOverridesResult
def get_environment_service_overrides_output(env_id: Optional[pulumi.Input[str]] = None,
                                      identifier: Optional[pulumi.Input[str]] = None,
                                      org_id: Optional[pulumi.Input[str]] = None,
                                      project_id: Optional[pulumi.Input[str]] = None,
                                      service_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentServiceOverridesResult]
Copy
func LookupEnvironmentServiceOverrides(ctx *Context, args *LookupEnvironmentServiceOverridesArgs, opts ...InvokeOption) (*LookupEnvironmentServiceOverridesResult, error)
func LookupEnvironmentServiceOverridesOutput(ctx *Context, args *LookupEnvironmentServiceOverridesOutputArgs, opts ...InvokeOption) LookupEnvironmentServiceOverridesResultOutput
Copy

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

public static class GetEnvironmentServiceOverrides 
{
    public static Task<GetEnvironmentServiceOverridesResult> InvokeAsync(GetEnvironmentServiceOverridesArgs args, InvokeOptions? opts = null)
    public static Output<GetEnvironmentServiceOverridesResult> Invoke(GetEnvironmentServiceOverridesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetEnvironmentServiceOverridesResult> getEnvironmentServiceOverrides(GetEnvironmentServiceOverridesArgs args, InvokeOptions options)
public static Output<GetEnvironmentServiceOverridesResult> getEnvironmentServiceOverrides(GetEnvironmentServiceOverridesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harness:platform/getEnvironmentServiceOverrides:getEnvironmentServiceOverrides
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

EnvId This property is required. string
The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).
Identifier string
identifier of the service overrides.
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
ServiceId string
The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).
EnvId This property is required. string
The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).
Identifier string
identifier of the service overrides.
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
ServiceId string
The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).
envId This property is required. String
The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).
identifier String
identifier of the service overrides.
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.
serviceId String
The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).
envId This property is required. string
The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).
identifier string
identifier of the service overrides.
orgId string
Unique identifier of the organization.
projectId string
Unique identifier of the project.
serviceId string
The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).
env_id This property is required. str
The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).
identifier str
identifier of the service overrides.
org_id str
Unique identifier of the organization.
project_id str
Unique identifier of the project.
service_id str
The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).
envId This property is required. String
The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).
identifier String
identifier of the service overrides.
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.
serviceId String
The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).

getEnvironmentServiceOverrides Result

The following output properties are available:

EnvId string
The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
identifier of the service overrides.
Yaml string
Environment Service Overrides YAML
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
ServiceId string
The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).
EnvId string
The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
identifier of the service overrides.
Yaml string
Environment Service Overrides YAML
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
ServiceId string
The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).
envId String
The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).
id String
The provider-assigned unique ID for this managed resource.
identifier String
identifier of the service overrides.
yaml String
Environment Service Overrides YAML
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.
serviceId String
The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).
envId string
The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).
id string
The provider-assigned unique ID for this managed resource.
identifier string
identifier of the service overrides.
yaml string
Environment Service Overrides YAML
orgId string
Unique identifier of the organization.
projectId string
Unique identifier of the project.
serviceId string
The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).
env_id str
The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).
id str
The provider-assigned unique ID for this managed resource.
identifier str
identifier of the service overrides.
yaml str
Environment Service Overrides YAML
org_id str
Unique identifier of the organization.
project_id str
Unique identifier of the project.
service_id str
The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).
envId String
The env Id associated with the overrides. To reference an environment at the organization scope, prefix 'org' to the expression: org.{envid}. To reference an environment at the account scope, prefix 'account' to the expression: account.{envid}).
id String
The provider-assigned unique ID for this managed resource.
identifier String
identifier of the service overrides.
yaml String
Environment Service Overrides YAML
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.
serviceId String
The service Id associated with the overrides. To reference a service at the organization scope, prefix 'org' to the expression: org.{serviceid}. To reference a service at the account scope, prefix 'account' to the expression: account.{serviceid}).

Package Details

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