Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs
harness.getEnvironment
Explore with Pulumi AI
Data source for retrieving a Harness service
Using getEnvironment
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 getEnvironment(args: GetEnvironmentArgs, opts?: InvokeOptions): Promise<GetEnvironmentResult>
function getEnvironmentOutput(args: GetEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentResult>def get_environment(app_id: Optional[str] = None,
                    environment_id: Optional[str] = None,
                    name: Optional[str] = None,
                    variable_overrides: Optional[Sequence[GetEnvironmentVariableOverride]] = None,
                    opts: Optional[InvokeOptions] = None) -> GetEnvironmentResult
def get_environment_output(app_id: Optional[pulumi.Input[str]] = None,
                    environment_id: Optional[pulumi.Input[str]] = None,
                    name: Optional[pulumi.Input[str]] = None,
                    variable_overrides: Optional[pulumi.Input[Sequence[pulumi.Input[GetEnvironmentVariableOverrideArgs]]]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentResult]func LookupEnvironment(ctx *Context, args *LookupEnvironmentArgs, opts ...InvokeOption) (*LookupEnvironmentResult, error)
func LookupEnvironmentOutput(ctx *Context, args *LookupEnvironmentOutputArgs, opts ...InvokeOption) LookupEnvironmentResultOutput> Note: This function is named LookupEnvironment in the Go SDK.
public static class GetEnvironment 
{
    public static Task<GetEnvironmentResult> InvokeAsync(GetEnvironmentArgs args, InvokeOptions? opts = null)
    public static Output<GetEnvironmentResult> Invoke(GetEnvironmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEnvironmentResult> getEnvironment(GetEnvironmentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: harness:index/getEnvironment:getEnvironment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- App
Id string - The id of the application.
 - Environment
Id string - The id of the environment.
 - Name string
 - The name of the environment.
 - Variable
Overrides List<Lbrlabs.Pulumi Package. Harness. Inputs. Get Environment Variable Override>  - Override for a service variable
 
- App
Id string - The id of the application.
 - Environment
Id string - The id of the environment.
 - Name string
 - The name of the environment.
 - Variable
Overrides []GetEnvironment Variable Override  - Override for a service variable
 
- app
Id String - The id of the application.
 - environment
Id String - The id of the environment.
 - name String
 - The name of the environment.
 - variable
Overrides List<GetEnvironment Variable Override>  - Override for a service variable
 
- app
Id string - The id of the application.
 - environment
Id string - The id of the environment.
 - name string
 - The name of the environment.
 - variable
Overrides GetEnvironment Variable Override[]  - Override for a service variable
 
- app_
id str - The id of the application.
 - environment_
id str - The id of the environment.
 - name str
 - The name of the environment.
 - variable_
overrides Sequence[GetEnvironment Variable Override]  - Override for a service variable
 
- app
Id String - The id of the application.
 - environment
Id String - The id of the environment.
 - name String
 - The name of the environment.
 - variable
Overrides List<Property Map> - Override for a service variable
 
getEnvironment Result
The following output properties are available:
- App
Id string - The id of the application.
 - Description string
 - The description of the environment.
 - Id string
 - The id of the environment.
 - Type string
 - The type of the environment. Valid values are 
PRODandNON_PROD - Variable
Overrides List<Lbrlabs.Pulumi Package. Harness. Outputs. Get Environment Variable Override>  - Override for a service variable
 - Environment
Id string - The id of the environment.
 - Name string
 - The name of the environment.
 
- App
Id string - The id of the application.
 - Description string
 - The description of the environment.
 - Id string
 - The id of the environment.
 - Type string
 - The type of the environment. Valid values are 
PRODandNON_PROD - Variable
Overrides []GetEnvironment Variable Override  - Override for a service variable
 - Environment
Id string - The id of the environment.
 - Name string
 - The name of the environment.
 
- app
Id String - The id of the application.
 - description String
 - The description of the environment.
 - id String
 - The id of the environment.
 - type String
 - The type of the environment. Valid values are 
PRODandNON_PROD - variable
Overrides List<GetEnvironment Variable Override>  - Override for a service variable
 - environment
Id String - The id of the environment.
 - name String
 - The name of the environment.
 
- app
Id string - The id of the application.
 - description string
 - The description of the environment.
 - id string
 - The id of the environment.
 - type string
 - The type of the environment. Valid values are 
PRODandNON_PROD - variable
Overrides GetEnvironment Variable Override[]  - Override for a service variable
 - environment
Id string - The id of the environment.
 - name string
 - The name of the environment.
 
- app_
id str - The id of the application.
 - description str
 - The description of the environment.
 - id str
 - The id of the environment.
 - type str
 - The type of the environment. Valid values are 
PRODandNON_PROD - variable_
overrides Sequence[GetEnvironment Variable Override]  - Override for a service variable
 - environment_
id str - The id of the environment.
 - name str
 - The name of the environment.
 
- app
Id String - The id of the application.
 - description String
 - The description of the environment.
 - id String
 - The id of the environment.
 - type String
 - The type of the environment. Valid values are 
PRODandNON_PROD - variable
Overrides List<Property Map> - Override for a service variable
 - environment
Id String - The id of the environment.
 - name String
 - The name of the environment.
 
Supporting Types
GetEnvironmentVariableOverride   
- Name string
 - The name of the variable
 - Service
Name string - The name of the service
 - Type string
 - The type of the service variable. Valid values are 
TEXTandENCRYPTED_TEXT - Value string
 - The value of the service variable
 
- Name string
 - The name of the variable
 - Service
Name string - The name of the service
 - Type string
 - The type of the service variable. Valid values are 
TEXTandENCRYPTED_TEXT - Value string
 - The value of the service variable
 
- name String
 - The name of the variable
 - service
Name String - The name of the service
 - type String
 - The type of the service variable. Valid values are 
TEXTandENCRYPTED_TEXT - value String
 - The value of the service variable
 
- name string
 - The name of the variable
 - service
Name string - The name of the service
 - type string
 - The type of the service variable. Valid values are 
TEXTandENCRYPTED_TEXT - value string
 - The value of the service variable
 
- name str
 - The name of the variable
 - service_
name str - The name of the service
 - type str
 - The type of the service variable. Valid values are 
TEXTandENCRYPTED_TEXT - value str
 - The value of the service variable
 
- name String
 - The name of the variable
 - service
Name String - The name of the service
 - type String
 - The type of the service variable. Valid values are 
TEXTandENCRYPTED_TEXT - value String
 - The value of the service variable
 
Package Details
- Repository
 - harness lbrlabs/pulumi-harness
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
harnessTerraform Provider.