1. Packages
  2. Qovery
  3. API Docs
  4. getEnvironment
Qovery v0.41.0 published on Saturday, Sep 28, 2024 by dirien

qovery.getEnvironment

Explore with Pulumi AI

# 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>",
});
Copy
import pulumi
import pulumi_qovery as qovery

my_environment = qovery.get_environment(id="<environment_id>")
Copy
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
	})
}
Copy
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>",
    });

});
Copy
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());

    }
}
Copy
variables:
  myEnvironment:
    fn::invoke:
      Function: qovery:getEnvironment
      Arguments:
        id: <environment_id>
Copy

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>
Copy
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]
Copy
func LookupEnvironment(ctx *Context, args *LookupEnvironmentArgs, opts ...InvokeOption) (*LookupEnvironmentResult, error)
func LookupEnvironmentOutput(ctx *Context, args *LookupEnvironmentOutputArgs, opts ...InvokeOption) LookupEnvironmentResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetEnvironmentResult> getEnvironment(GetEnvironmentArgs args, InvokeOptions options)
public static Output<GetEnvironmentResult> getEnvironment(GetEnvironmentArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: qovery:index/getEnvironment:getEnvironment
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

getEnvironment Result

The following output properties are available:

Supporting Types

GetEnvironmentBuiltInEnvironmentVariable

Description This property is required. string
Description of the environment variable.
Id This property is required. string
Id of the environment variable.
Key This property is required. string
Key of the environment variable.
Value This property is required. string
Value of the environment variable.
Description This property is required. string
Description of the environment variable.
Id This property is required. string
Id of the environment variable.
Key This property is required. string
Key of the environment variable.
Value This property is required. string
Value of the environment variable.
description This property is required. String
Description of the environment variable.
id This property is required. String
Id of the environment variable.
key This property is required. String
Key of the environment variable.
value This property is required. String
Value of the environment variable.
description This property is required. string
Description of the environment variable.
id This property is required. string
Id of the environment variable.
key This property is required. string
Key of the environment variable.
value This property is required. string
Value of the environment variable.
description This property is required. str
Description of the environment variable.
id This property is required. str
Id of the environment variable.
key This property is required. str
Key of the environment variable.
value This property is required. str
Value of the environment variable.
description This property is required. String
Description of the environment variable.
id This property is required. String
Id of the environment variable.
key This property is required. String
Key of the environment variable.
value This property is required. String
Value of the environment variable.

GetEnvironmentEnvironmentVariable

Description This property is required. string
Description of the environment variable.
Id This property is required. string
Id of the environment variable.
Key This property is required. string
Key of the environment variable.
Value This property is required. string
Value of the environment variable.
Description This property is required. string
Description of the environment variable.
Id This property is required. string
Id of the environment variable.
Key This property is required. string
Key of the environment variable.
Value This property is required. string
Value of the environment variable.
description This property is required. String
Description of the environment variable.
id This property is required. String
Id of the environment variable.
key This property is required. String
Key of the environment variable.
value This property is required. String
Value of the environment variable.
description This property is required. string
Description of the environment variable.
id This property is required. string
Id of the environment variable.
key This property is required. string
Key of the environment variable.
value This property is required. string
Value of the environment variable.
description This property is required. str
Description of the environment variable.
id This property is required. str
Id of the environment variable.
key This property is required. str
Key of the environment variable.
value This property is required. str
Value of the environment variable.
description This property is required. String
Description of the environment variable.
id This property is required. String
Id of the environment variable.
key This property is required. String
Key of the environment variable.
value This property is required. String
Value of the environment variable.

GetEnvironmentEnvironmentVariableAlias

Description This property is required. string
Description of the environment variable.
Id This property is required. string
Id of the environment variable alias.
Key This property is required. string
Name of the environment variable alias.
Value This property is required. string
Name of the variable to alias.
Description This property is required. string
Description of the environment variable.
Id This property is required. string
Id of the environment variable alias.
Key This property is required. string
Name of the environment variable alias.
Value This property is required. string
Name of the variable to alias.
description This property is required. String
Description of the environment variable.
id This property is required. String
Id of the environment variable alias.
key This property is required. String
Name of the environment variable alias.
value This property is required. String
Name of the variable to alias.
description This property is required. string
Description of the environment variable.
id This property is required. string
Id of the environment variable alias.
key This property is required. string
Name of the environment variable alias.
value This property is required. string
Name of the variable to alias.
description This property is required. str
Description of the environment variable.
id This property is required. str
Id of the environment variable alias.
key This property is required. str
Name of the environment variable alias.
value This property is required. str
Name of the variable to alias.
description This property is required. String
Description of the environment variable.
id This property is required. String
Id of the environment variable alias.
key This property is required. String
Name of the environment variable alias.
value This property is required. String
Name of the variable to alias.

GetEnvironmentEnvironmentVariableOverride

Description This property is required. string
Description of the environment variable.
Id This property is required. string
Id of the environment variable override.
Key This property is required. string
Name of the environment variable override.
Value This property is required. string
Value of the environment variable override.
Description This property is required. string
Description of the environment variable.
Id This property is required. string
Id of the environment variable override.
Key This property is required. string
Name of the environment variable override.
Value This property is required. string
Value of the environment variable override.
description This property is required. String
Description of the environment variable.
id This property is required. String
Id of the environment variable override.
key This property is required. String
Name of the environment variable override.
value This property is required. String
Value of the environment variable override.
description This property is required. string
Description of the environment variable.
id This property is required. string
Id of the environment variable override.
key This property is required. string
Name of the environment variable override.
value This property is required. string
Value of the environment variable override.
description This property is required. str
Description of the environment variable.
id This property is required. str
Id of the environment variable override.
key This property is required. str
Name of the environment variable override.
value This property is required. str
Value of the environment variable override.
description This property is required. String
Description of the environment variable.
id This property is required. String
Id of the environment variable override.
key This property is required. String
Name of the environment variable override.
value This property is required. String
Value of the environment variable override.

GetEnvironmentSecret

Description This property is required. string
Description of the environment variable.
Id This property is required. string
Id of the secret.
Key This property is required. string
Key of the secret.
Value This property is required. string
Value of the secret.
Description This property is required. string
Description of the environment variable.
Id This property is required. string
Id of the secret.
Key This property is required. string
Key of the secret.
Value This property is required. string
Value of the secret.
description This property is required. String
Description of the environment variable.
id This property is required. String
Id of the secret.
key This property is required. String
Key of the secret.
value This property is required. String
Value of the secret.
description This property is required. string
Description of the environment variable.
id This property is required. string
Id of the secret.
key This property is required. string
Key of the secret.
value This property is required. string
Value of the secret.
description This property is required. str
Description of the environment variable.
id This property is required. str
Id of the secret.
key This property is required. str
Key of the secret.
value This property is required. str
Value of the secret.
description This property is required. String
Description of the environment variable.
id This property is required. String
Id of the secret.
key This property is required. String
Key of the secret.
value This property is required. String
Value of the secret.

GetEnvironmentSecretAlias

Description This property is required. string
Description of the environment variable.
Id This property is required. string
Id of the secret alias.
Key This property is required. string
Name of the secret alias.
Value This property is required. string
Name of the secret to alias.
Description This property is required. string
Description of the environment variable.
Id This property is required. string
Id of the secret alias.
Key This property is required. string
Name of the secret alias.
Value This property is required. string
Name of the secret to alias.
description This property is required. String
Description of the environment variable.
id This property is required. String
Id of the secret alias.
key This property is required. String
Name of the secret alias.
value This property is required. String
Name of the secret to alias.
description This property is required. string
Description of the environment variable.
id This property is required. string
Id of the secret alias.
key This property is required. string
Name of the secret alias.
value This property is required. string
Name of the secret to alias.
description This property is required. str
Description of the environment variable.
id This property is required. str
Id of the secret alias.
key This property is required. str
Name of the secret alias.
value This property is required. str
Name of the secret to alias.
description This property is required. String
Description of the environment variable.
id This property is required. String
Id of the secret alias.
key This property is required. String
Name of the secret alias.
value This property is required. String
Name of the secret to alias.

GetEnvironmentSecretOverride

Description This property is required. string
Description of the environment variable.
Id This property is required. string
Id of the secret override.
Key This property is required. string
Name of the secret override.
Value This property is required. string
Value of the secret override.
Description This property is required. string
Description of the environment variable.
Id This property is required. string
Id of the secret override.
Key This property is required. string
Name of the secret override.
Value This property is required. string
Value of the secret override.
description This property is required. String
Description of the environment variable.
id This property is required. String
Id of the secret override.
key This property is required. String
Name of the secret override.
value This property is required. String
Value of the secret override.
description This property is required. string
Description of the environment variable.
id This property is required. string
Id of the secret override.
key This property is required. string
Name of the secret override.
value This property is required. string
Value of the secret override.
description This property is required. str
Description of the environment variable.
id This property is required. str
Id of the secret override.
key This property is required. str
Name of the secret override.
value This property is required. str
Value of the secret override.
description This property is required. String
Description of the environment variable.
id This property is required. String
Id of the secret override.
key This property is required. String
Name of the secret override.
value This property is required. 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.