1. Packages
  2. Hpegl Provider
  3. API Docs
  4. getVmaasEnvironment
hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe

hpegl.getVmaasEnvironment

Explore with Pulumi AI

hpegl logo
hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe

    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 dictionary

    The following arguments are supported:

    Name string
    Name of the Environment as it appears on HPE GreenLake for private cloud dashboard. If there is no Environment with this name, a 'NOT FOUND' error will returned.
    Id string
    The ID of this resource.
    Name string
    Name of the Environment as it appears on HPE GreenLake for private cloud dashboard. If there is no Environment with this name, a 'NOT FOUND' error will returned.
    Id string
    The ID of this resource.
    name String
    Name of the Environment as it appears on HPE GreenLake for private cloud dashboard. If there is no Environment with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.
    name string
    Name of the Environment as it appears on HPE GreenLake for private cloud dashboard. If there is no Environment with this name, a 'NOT FOUND' error will returned.
    id string
    The ID of this resource.
    name str
    Name of the Environment as it appears on HPE GreenLake for private cloud dashboard. If there is no Environment with this name, a 'NOT FOUND' error will returned.
    id str
    The ID of this resource.
    name String
    Name of the Environment as it appears on HPE GreenLake for private cloud dashboard. If there is no Environment with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.

    getVmaasEnvironment Result

    The following output properties are available:

    Code string
    code of each environment
    Id string
    The ID of this resource.
    Name string
    Name of the Environment as it appears on HPE GreenLake for private cloud dashboard. If there is no Environment with this name, a 'NOT FOUND' error will returned.
    Code string
    code of each environment
    Id string
    The ID of this resource.
    Name string
    Name of the Environment as it appears on HPE GreenLake for private cloud dashboard. If there is no Environment with this name, a 'NOT FOUND' error will returned.
    code String
    code of each environment
    id String
    The ID of this resource.
    name String
    Name of the Environment as it appears on HPE GreenLake for private cloud dashboard. If there is no Environment with this name, a 'NOT FOUND' error will returned.
    code string
    code of each environment
    id string
    The ID of this resource.
    name string
    Name of the Environment as it appears on HPE GreenLake for private cloud dashboard. If there is no Environment with this name, a 'NOT FOUND' error will returned.
    code str
    code of each environment
    id str
    The ID of this resource.
    name str
    Name of the Environment as it appears on HPE GreenLake for private cloud dashboard. If there is no Environment with this name, a 'NOT FOUND' error will returned.
    code String
    code of each environment
    id String
    The ID of this resource.
    name String
    Name of the Environment as it appears on HPE GreenLake for private cloud dashboard. If there is no Environment with this name, a 'NOT FOUND' error will returned.

    Package Details

    Repository
    hpegl hpe/terraform-provider-hpegl
    License
    Notes
    This Pulumi package is based on the hpegl Terraform Provider.
    hpegl logo
    hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe