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>",
});
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:
- Id string
- Environment
Variable List<ediri.Aliases Qovery. Inputs. Get Environment Environment Variable Alias> - Environment
Variable List<ediri.Overrides Qovery. Inputs. Get Environment Environment Variable Override> - Environment
Variables List<ediri.Qovery. Inputs. Get Environment Environment Variable> - Mode string
- Secret
Aliases List<ediri.Qovery. Inputs. Get Environment Secret Alias> - Secret
Overrides List<ediri.Qovery. Inputs. Get Environment Secret Override> - Secrets
List<ediri.
Qovery. Inputs. Get Environment Secret>
- Id string
- Environment
Variable []GetAliases Environment Environment Variable Alias - Environment
Variable []GetOverrides Environment Environment Variable Override - Environment
Variables []GetEnvironment Environment Variable - Mode string
- Secret
Aliases []GetEnvironment Secret Alias - Secret
Overrides []GetEnvironment Secret Override - Secrets
[]Get
Environment Secret
- id String
- environment
Variable List<GetAliases Environment Environment Variable Alias> - environment
Variable List<GetOverrides Environment Environment Variable Override> - environment
Variables List<GetEnvironment Environment Variable> - mode String
- secret
Aliases List<GetEnvironment Secret Alias> - secret
Overrides List<GetEnvironment Secret Override> - secrets
List<Get
Environment Secret>
- id string
- environment
Variable GetAliases Environment Environment Variable Alias[] - environment
Variable GetOverrides Environment Environment Variable Override[] - environment
Variables GetEnvironment Environment Variable[] - mode string
- secret
Aliases GetEnvironment Secret Alias[] - secret
Overrides GetEnvironment Secret Override[] - secrets
Get
Environment Secret[]
- id str
- environment_
variable_ Sequence[Getaliases Environment Environment Variable Alias] - environment_
variable_ Sequence[Getoverrides Environment Environment Variable Override] - environment_
variables Sequence[GetEnvironment Environment Variable] - mode str
- secret_
aliases Sequence[GetEnvironment Secret Alias] - secret_
overrides Sequence[GetEnvironment Secret Override] - secrets
Sequence[Get
Environment Secret]
getEnvironment Result
The following output properties are available:
- Built
In List<ediri.Environment Variables Qovery. Outputs. Get Environment Built In Environment Variable> - Cluster
Id string - Environment
Variable List<ediri.Aliases Qovery. Outputs. Get Environment Environment Variable Alias> - Environment
Variable List<ediri.Overrides Qovery. Outputs. Get Environment Environment Variable Override> - Environment
Variables List<ediri.Qovery. Outputs. Get Environment Environment Variable> - Id string
- Mode string
- Name string
- Project
Id string - Secret
Aliases List<ediri.Qovery. Outputs. Get Environment Secret Alias> - Secrets
List<ediri.
Qovery. Outputs. Get Environment Secret> - Secret
Overrides List<ediri.Qovery. Outputs. Get Environment Secret Override>
- Built
In []GetEnvironment Variables Environment Built In Environment Variable - Cluster
Id string - Environment
Variable []GetAliases Environment Environment Variable Alias - Environment
Variable []GetOverrides Environment Environment Variable Override - Environment
Variables []GetEnvironment Environment Variable - Id string
- Mode string
- Name string
- Project
Id string - Secret
Aliases []GetEnvironment Secret Alias - Secrets
[]Get
Environment Secret - Secret
Overrides []GetEnvironment Secret Override
- built
In List<GetEnvironment Variables Environment Built In Environment Variable> - cluster
Id String - environment
Variable List<GetAliases Environment Environment Variable Alias> - environment
Variable List<GetOverrides Environment Environment Variable Override> - environment
Variables List<GetEnvironment Environment Variable> - id String
- mode String
- name String
- project
Id String - secret
Aliases List<GetEnvironment Secret Alias> - secrets
List<Get
Environment Secret> - secret
Overrides List<GetEnvironment Secret Override>
- built
In GetEnvironment Variables Environment Built In Environment Variable[] - cluster
Id string - environment
Variable GetAliases Environment Environment Variable Alias[] - environment
Variable GetOverrides Environment Environment Variable Override[] - environment
Variables GetEnvironment Environment Variable[] - id string
- mode string
- name string
- project
Id string - secret
Aliases GetEnvironment Secret Alias[] - secrets
Get
Environment Secret[] - secret
Overrides GetEnvironment Secret Override[]
- built_
in_ Sequence[Getenvironment_ variables Environment Built In Environment Variable] - cluster_
id str - environment_
variable_ Sequence[Getaliases Environment Environment Variable Alias] - environment_
variable_ Sequence[Getoverrides Environment Environment Variable Override] - environment_
variables Sequence[GetEnvironment Environment Variable] - id str
- mode str
- name str
- project_
id str - secret_
aliases Sequence[GetEnvironment Secret Alias] - secrets
Sequence[Get
Environment Secret] - secret_
overrides Sequence[GetEnvironment Secret Override]
- built
In List<Property Map>Environment Variables - cluster
Id String - environment
Variable List<Property Map>Aliases - environment
Variable List<Property Map>Overrides - environment
Variables List<Property Map> - id String
- mode String
- name String
- project
Id String - secret
Aliases List<Property Map> - secrets List<Property Map>
- secret
Overrides List<Property Map>
Supporting Types
GetEnvironmentBuiltInEnvironmentVariable
- Description string
- Description 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.
- Description string
- Description 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.
- description String
- Description 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.
- description string
- Description 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.
- description str
- Description 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.
- description String
- Description 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
- Description string
- Description 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.
- Description string
- Description 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.
- description String
- Description 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.
- description string
- Description 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.
- description str
- Description 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.
- description String
- Description 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
- Description string
- Description of the environment variable.
- Id string
- Id of the environment variable alias.
- Key string
- Name of the environment variable alias.
- Value string
- Name of the variable to alias.
- Description string
- Description of the environment variable.
- Id string
- Id of the environment variable alias.
- Key string
- Name of the environment variable alias.
- Value string
- Name of the variable to alias.
- description String
- Description of the environment variable.
- id String
- Id of the environment variable alias.
- key String
- Name of the environment variable alias.
- value String
- Name of the variable to alias.
- description string
- Description of the environment variable.
- id string
- Id of the environment variable alias.
- key string
- Name of the environment variable alias.
- value string
- Name of the variable to alias.
- description str
- Description of the environment variable.
- id str
- Id of the environment variable alias.
- key str
- Name of the environment variable alias.
- value str
- Name of the variable to alias.
- description String
- Description of the environment variable.
- 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
- Description string
- Description of the environment variable.
- Id string
- Id of the environment variable override.
- Key string
- Name of the environment variable override.
- Value string
- Value of the environment variable override.
- Description string
- Description of the environment variable.
- Id string
- Id of the environment variable override.
- Key string
- Name of the environment variable override.
- Value string
- Value of the environment variable override.
- description String
- Description of the environment variable.
- id String
- Id of the environment variable override.
- key String
- Name of the environment variable override.
- value String
- Value of the environment variable override.
- description string
- Description of the environment variable.
- id string
- Id of the environment variable override.
- key string
- Name of the environment variable override.
- value string
- Value of the environment variable override.
- description str
- Description of the environment variable.
- id str
- Id of the environment variable override.
- key str
- Name of the environment variable override.
- value str
- Value of the environment variable override.
- description String
- Description of the environment variable.
- 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
- Description string
- Description of the environment variable.
- Id string
- Id of the secret.
- Key string
- Key of the secret.
- Value string
- Value of the secret.
- Description string
- Description of the environment variable.
- Id string
- Id of the secret.
- Key string
- Key of the secret.
- Value string
- Value of the secret.
- description String
- Description of the environment variable.
- id String
- Id of the secret.
- key String
- Key of the secret.
- value String
- Value of the secret.
- description string
- Description of the environment variable.
- id string
- Id of the secret.
- key string
- Key of the secret.
- value string
- Value of the secret.
- description str
- Description of the environment variable.
- id str
- Id of the secret.
- key str
- Key of the secret.
- value str
- Value of the secret.
- description String
- Description of the environment variable.
- id String
- Id of the secret.
- key String
- Key of the secret.
- value String
- Value of the secret.
GetEnvironmentSecretAlias
- Description string
- Description of the environment variable.
- Id string
- Id of the secret alias.
- Key string
- Name of the secret alias.
- Value string
- Name of the secret to alias.
- Description string
- Description of the environment variable.
- Id string
- Id of the secret alias.
- Key string
- Name of the secret alias.
- Value string
- Name of the secret to alias.
- description String
- Description of the environment variable.
- id String
- Id of the secret alias.
- key String
- Name of the secret alias.
- value String
- Name of the secret to alias.
- description string
- Description of the environment variable.
- id string
- Id of the secret alias.
- key string
- Name of the secret alias.
- value string
- Name of the secret to alias.
- description str
- Description of the environment variable.
- id str
- Id of the secret alias.
- key str
- Name of the secret alias.
- value str
- Name of the secret to alias.
- description String
- Description of the environment variable.
- id String
- Id of the secret alias.
- key String
- Name of the secret alias.
- value String
- Name of the secret to alias.
GetEnvironmentSecretOverride
- Description string
- Description of the environment variable.
- Id string
- Id of the secret override.
- Key string
- Name of the secret override.
- Value string
- Value of the secret override.
- Description string
- Description of the environment variable.
- Id string
- Id of the secret override.
- Key string
- Name of the secret override.
- Value string
- Value of the secret override.
- description String
- Description of the environment variable.
- id String
- Id of the secret override.
- key String
- Name of the secret override.
- value String
- Value of the secret override.
- description string
- Description of the environment variable.
- id string
- Id of the secret override.
- key string
- Name of the secret override.
- value string
- Value of the secret override.
- description str
- Description of the environment variable.
- id str
- Id of the secret override.
- key str
- Name of the secret override.
- value str
- Value of the secret override.
- description String
- Description of the environment variable.
- 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.