hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe
hpegl.getVmaasEnvironment
Explore with Pulumi AI
The hpegl.getVmaasEnvironment data source can be used to discover the ID/Code of a hpegl vmaas environment. This can then be used with resources or data sources that require a hpegl_vmaas_environment, such as the hpegl.VmaasInstance resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hpegl from "@pulumi/hpegl";
const staging = hpegl.getVmaasEnvironment({
    name: "Staging",
});
import pulumi
import pulumi_hpegl as hpegl
staging = hpegl.get_vmaas_environment(name="Staging")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hpegl/hpegl"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hpegl.GetVmaasEnvironment(ctx, &hpegl.GetVmaasEnvironmentArgs{
			Name: "Staging",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hpegl = Pulumi.Hpegl;
return await Deployment.RunAsync(() => 
{
    var staging = Hpegl.GetVmaasEnvironment.Invoke(new()
    {
        Name = "Staging",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hpegl.HpeglFunctions;
import com.pulumi.hpegl.inputs.GetVmaasEnvironmentArgs;
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 staging = HpeglFunctions.getVmaasEnvironment(GetVmaasEnvironmentArgs.builder()
            .name("Staging")
            .build());
    }
}
variables:
  staging:
    fn::invoke:
      function: hpegl:getVmaasEnvironment
      arguments:
        name: Staging
Using getVmaasEnvironment
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 getVmaasEnvironment(args: GetVmaasEnvironmentArgs, opts?: InvokeOptions): Promise<GetVmaasEnvironmentResult>
function getVmaasEnvironmentOutput(args: GetVmaasEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetVmaasEnvironmentResult>def get_vmaas_environment(id: Optional[str] = None,
                          name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetVmaasEnvironmentResult
def get_vmaas_environment_output(id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetVmaasEnvironmentResult]func GetVmaasEnvironment(ctx *Context, args *GetVmaasEnvironmentArgs, opts ...InvokeOption) (*GetVmaasEnvironmentResult, error)
func GetVmaasEnvironmentOutput(ctx *Context, args *GetVmaasEnvironmentOutputArgs, opts ...InvokeOption) GetVmaasEnvironmentResultOutput> Note: This function is named GetVmaasEnvironment in the Go SDK.
public static class GetVmaasEnvironment 
{
    public static Task<GetVmaasEnvironmentResult> InvokeAsync(GetVmaasEnvironmentArgs args, InvokeOptions? opts = null)
    public static Output<GetVmaasEnvironmentResult> Invoke(GetVmaasEnvironmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVmaasEnvironmentResult> getVmaasEnvironment(GetVmaasEnvironmentArgs args, InvokeOptions options)
public static Output<GetVmaasEnvironmentResult> getVmaasEnvironment(GetVmaasEnvironmentArgs args, InvokeOptions options)
fn::invoke:
  function: hpegl:index/getVmaasEnvironment:getVmaasEnvironment
  arguments:
    # arguments dictionaryThe following arguments are supported:
getVmaasEnvironment Result
The following output properties are available:
Package Details
- Repository
- hpegl hpe/terraform-provider-hpegl
- License
- Notes
- This Pulumi package is based on the hpeglTerraform Provider.