// *** WARNING: this file was generated by pulumi-language-dotnet. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;
namespace Maxvojtkov.Dokploy
{
public static class GetEnvironment
{
///
/// Look up an existing environment by ID.
///
public static Task InvokeAsync(GetEnvironmentArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync("dokploy:index/getEnvironment:getEnvironment", args ?? new GetEnvironmentArgs(), options.WithDefaults());
///
/// Look up an existing environment by ID.
///
public static Output Invoke(GetEnvironmentInvokeArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke("dokploy:index/getEnvironment:getEnvironment", args ?? new GetEnvironmentInvokeArgs(), options.WithDefaults());
///
/// Look up an existing environment by ID.
///
public static Output Invoke(GetEnvironmentInvokeArgs args, InvokeOutputOptions options)
=> global::Pulumi.Deployment.Instance.Invoke("dokploy:index/getEnvironment:getEnvironment", args ?? new GetEnvironmentInvokeArgs(), options.WithDefaults());
}
public sealed class GetEnvironmentArgs : global::Pulumi.InvokeArgs
{
///
/// Environment identifier.
///
[Input("id", required: true)]
public string Id { get; set; } = null!;
public GetEnvironmentArgs()
{
}
public static new GetEnvironmentArgs Empty => new GetEnvironmentArgs();
}
public sealed class GetEnvironmentInvokeArgs : global::Pulumi.InvokeArgs
{
///
/// Environment identifier.
///
[Input("id", required: true)]
public Input Id { get; set; } = null!;
public GetEnvironmentInvokeArgs()
{
}
public static new GetEnvironmentInvokeArgs Empty => new GetEnvironmentInvokeArgs();
}
[OutputType]
public sealed class GetEnvironmentResult
{
///
/// Creation timestamp.
///
public readonly string CreatedAt;
///
/// Environment description.
///
public readonly string Description;
///
/// Environment-wide variables.
///
public readonly string Env;
///
/// Environment identifier.
///
public readonly string Id;
///
/// Whether this is the project's default environment.
///
public readonly bool IsDefault;
///
/// Environment name.
///
public readonly string Name;
///
/// Owning project.
///
public readonly string ProjectId;
[OutputConstructor]
private GetEnvironmentResult(
string createdAt,
string description,
string env,
string id,
bool isDefault,
string name,
string projectId)
{
CreatedAt = createdAt;
Description = description;
Env = env;
Id = id;
IsDefault = isDefault;
Name = name;
ProjectId = projectId;
}
}
}