1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. getEnvironmentServiceOverrides
Harness v0.1.2 published on Friday, Jul 19, 2024 by Pulumi

harness.platform.getEnvironmentServiceOverrides

Explore with Pulumi AI

harness logo
Harness v0.1.2 published on Friday, Jul 19, 2024 by Pulumi

    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",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: harness:platform:getEnvironmentServiceOverrides
          Arguments:
            orgId: orgIdentifier
            projectId: projectIdentifier
            envId: environmentIdentifier
            serviceId: serviceIdentifier
    

    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>
    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]
    func LookupEnvironmentServiceOverrides(ctx *Context, args *LookupEnvironmentServiceOverridesArgs, opts ...InvokeOption) (*LookupEnvironmentServiceOverridesResult, error)
    func LookupEnvironmentServiceOverridesOutput(ctx *Context, args *LookupEnvironmentServiceOverridesOutputArgs, opts ...InvokeOption) LookupEnvironmentServiceOverridesResultOutput

    > 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)
    }
    public static CompletableFuture<GetEnvironmentServiceOverridesResult> getEnvironmentServiceOverrides(GetEnvironmentServiceOverridesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harness:platform/getEnvironmentServiceOverrides:getEnvironmentServiceOverrides
      arguments:
        # arguments dictionary

    The following arguments are supported:

    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}).
    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 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 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 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 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 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.
    harness logo
    Harness v0.1.2 published on Friday, Jul 19, 2024 by Pulumi