1. Packages
  2. Qovery
  3. API Docs
  4. getEnvironment
Qovery v0.28.10 published on Friday, Jun 7, 2024 by dirien

qovery.getEnvironment

Explore with Pulumi AI

qovery logo
Qovery v0.28.10 published on Friday, Jun 7, 2024 by dirien

    # qovery.Environment (Data Source)

    Provides a Qovery environment resource. This can be used to create and manage Qovery environments.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as qovery from "@pulumi/qovery";
    
    const myEnvironment = qovery.getEnvironment({
        id: "<environment_id>",
    });
    
    import pulumi
    import pulumi_qovery as qovery
    
    my_environment = qovery.get_environment(id="<environment_id>")
    
    package main
    
    import (
    	"github.com/dirien/pulumi-qovery/sdk/go/qovery"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := qovery.LookupEnvironment(ctx, &qovery.LookupEnvironmentArgs{
    			Id: "<environment_id>",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Qovery = Pulumi.Qovery;
    
    return await Deployment.RunAsync(() => 
    {
        var myEnvironment = Qovery.GetEnvironment.Invoke(new()
        {
            Id = "<environment_id>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.qovery.QoveryFunctions;
    import com.pulumi.qovery.inputs.GetEnvironmentArgs;
    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 myEnvironment = QoveryFunctions.getEnvironment(GetEnvironmentArgs.builder()
                .id("<environment_id>")
                .build());
    
        }
    }
    
    variables:
      myEnvironment:
        fn::invoke:
          Function: qovery:getEnvironment
          Arguments:
            id: <environment_id>
    

    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(environment_variable_aliases: Optional[Sequence[GetEnvironmentEnvironmentVariableAlias]] = None,
                        environment_variable_overrides: Optional[Sequence[GetEnvironmentEnvironmentVariableOverride]] = None,
                        environment_variables: Optional[Sequence[GetEnvironmentEnvironmentVariable]] = None,
                        id: Optional[str] = None,
                        mode: Optional[str] = None,
                        secret_aliases: Optional[Sequence[GetEnvironmentSecretAlias]] = None,
                        secret_overrides: Optional[Sequence[GetEnvironmentSecretOverride]] = None,
                        secrets: Optional[Sequence[GetEnvironmentSecret]] = None,
                        opts: Optional[InvokeOptions] = None) -> GetEnvironmentResult
    def get_environment_output(environment_variable_aliases: Optional[pulumi.Input[Sequence[pulumi.Input[GetEnvironmentEnvironmentVariableAliasArgs]]]] = None,
                        environment_variable_overrides: Optional[pulumi.Input[Sequence[pulumi.Input[GetEnvironmentEnvironmentVariableOverrideArgs]]]] = None,
                        environment_variables: Optional[pulumi.Input[Sequence[pulumi.Input[GetEnvironmentEnvironmentVariableArgs]]]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        mode: Optional[pulumi.Input[str]] = None,
                        secret_aliases: Optional[pulumi.Input[Sequence[pulumi.Input[GetEnvironmentSecretAliasArgs]]]] = None,
                        secret_overrides: Optional[pulumi.Input[Sequence[pulumi.Input[GetEnvironmentSecretOverrideArgs]]]] = None,
                        secrets: Optional[pulumi.Input[Sequence[pulumi.Input[GetEnvironmentSecretArgs]]]] = 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: qovery:index/getEnvironment:getEnvironment
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getEnvironment Result

    The following output properties are available:

    Supporting Types

    GetEnvironmentBuiltInEnvironmentVariable

    Id string
    Id of the environment variable.
    Key string
    Key of the environment variable.
    Value string
    Value of the environment variable.
    Id string
    Id of the environment variable.
    Key string
    Key of the environment variable.
    Value string
    Value of the environment variable.
    id String
    Id of the environment variable.
    key String
    Key of the environment variable.
    value String
    Value of the environment variable.
    id string
    Id of the environment variable.
    key string
    Key of the environment variable.
    value string
    Value of the environment variable.
    id str
    Id of the environment variable.
    key str
    Key of the environment variable.
    value str
    Value of the environment variable.
    id String
    Id of the environment variable.
    key String
    Key of the environment variable.
    value String
    Value of the environment variable.

    GetEnvironmentEnvironmentVariable

    Id string
    Id of the environment variable.
    Key string
    Key of the environment variable.
    Value string
    Value of the environment variable.
    Id string
    Id of the environment variable.
    Key string
    Key of the environment variable.
    Value string
    Value of the environment variable.
    id String
    Id of the environment variable.
    key String
    Key of the environment variable.
    value String
    Value of the environment variable.
    id string
    Id of the environment variable.
    key string
    Key of the environment variable.
    value string
    Value of the environment variable.
    id str
    Id of the environment variable.
    key str
    Key of the environment variable.
    value str
    Value of the environment variable.
    id String
    Id of the environment variable.
    key String
    Key of the environment variable.
    value String
    Value of the environment variable.

    GetEnvironmentEnvironmentVariableAlias

    Id string
    Id of the environment variable alias.
    Key string
    Name of the environment variable alias.
    Value string
    Name of the variable to alias.
    Id string
    Id of the environment variable alias.
    Key string
    Name of the environment variable alias.
    Value string
    Name of the variable to alias.
    id String
    Id of the environment variable alias.
    key String
    Name of the environment variable alias.
    value String
    Name of the variable to alias.
    id string
    Id of the environment variable alias.
    key string
    Name of the environment variable alias.
    value string
    Name of the variable to alias.
    id str
    Id of the environment variable alias.
    key str
    Name of the environment variable alias.
    value str
    Name of the variable to alias.
    id String
    Id of the environment variable alias.
    key String
    Name of the environment variable alias.
    value String
    Name of the variable to alias.

    GetEnvironmentEnvironmentVariableOverride

    Id string
    Id of the environment variable override.
    Key string
    Name of the environment variable override.
    Value string
    Value of the environment variable override.
    Id string
    Id of the environment variable override.
    Key string
    Name of the environment variable override.
    Value string
    Value of the environment variable override.
    id String
    Id of the environment variable override.
    key String
    Name of the environment variable override.
    value String
    Value of the environment variable override.
    id string
    Id of the environment variable override.
    key string
    Name of the environment variable override.
    value string
    Value of the environment variable override.
    id str
    Id of the environment variable override.
    key str
    Name of the environment variable override.
    value str
    Value of the environment variable override.
    id String
    Id of the environment variable override.
    key String
    Name of the environment variable override.
    value String
    Value of the environment variable override.

    GetEnvironmentSecret

    Id string
    Id of the secret.
    Key string
    Key of the secret.
    Value string
    Value of the secret.
    Id string
    Id of the secret.
    Key string
    Key of the secret.
    Value string
    Value of the secret.
    id String
    Id of the secret.
    key String
    Key of the secret.
    value String
    Value of the secret.
    id string
    Id of the secret.
    key string
    Key of the secret.
    value string
    Value of the secret.
    id str
    Id of the secret.
    key str
    Key of the secret.
    value str
    Value of the secret.
    id String
    Id of the secret.
    key String
    Key of the secret.
    value String
    Value of the secret.

    GetEnvironmentSecretAlias

    Id string
    Id of the secret alias.
    Key string
    Name of the secret alias.
    Value string
    Name of the secret to alias.
    Id string
    Id of the secret alias.
    Key string
    Name of the secret alias.
    Value string
    Name of the secret to alias.
    id String
    Id of the secret alias.
    key String
    Name of the secret alias.
    value String
    Name of the secret to alias.
    id string
    Id of the secret alias.
    key string
    Name of the secret alias.
    value string
    Name of the secret to alias.
    id str
    Id of the secret alias.
    key str
    Name of the secret alias.
    value str
    Name of the secret to alias.
    id String
    Id of the secret alias.
    key String
    Name of the secret alias.
    value String
    Name of the secret to alias.

    GetEnvironmentSecretOverride

    Id string
    Id of the secret override.
    Key string
    Name of the secret override.
    Value string
    Value of the secret override.
    Id string
    Id of the secret override.
    Key string
    Name of the secret override.
    Value string
    Value of the secret override.
    id String
    Id of the secret override.
    key String
    Name of the secret override.
    value String
    Value of the secret override.
    id string
    Id of the secret override.
    key string
    Name of the secret override.
    value string
    Value of the secret override.
    id str
    Id of the secret override.
    key str
    Name of the secret override.
    value str
    Value of the secret override.
    id String
    Id of the secret override.
    key String
    Name of the secret override.
    value String
    Value of the secret override.

    Package Details

    Repository
    qovery dirien/pulumi-qovery
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the qovery Terraform Provider.
    qovery logo
    Qovery v0.28.10 published on Friday, Jun 7, 2024 by dirien