1. Packages
  2. Hpegl Provider
  3. API Docs
  4. getVmaasPlan
Viewing docs for hpegl 0.4.20
published on Monday, Mar 2, 2026 by hpe
hpegl logo
Viewing docs for hpegl 0.4.20
published on Monday, Mar 2, 2026 by hpe

    The hpegl.getVmaasPlan data source can be used to discover the ID of a hpegl vmaas plan. This can then be used with resources or data sources that require a hpegl_vmaas_plan, such as the hpegl.VmaasInstance resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hpegl from "@pulumi/hpegl";
    
    // (C) Copyright 2021 Hewlett Packard Enterprise Development LP
    const g1Small = hpegl.getVmaasPlan({
        name: "G1-Small",
    });
    
    import pulumi
    import pulumi_hpegl as hpegl
    
    # (C) Copyright 2021 Hewlett Packard Enterprise Development LP
    g1_small = hpegl.get_vmaas_plan(name="G1-Small")
    
    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 {
    		// (C) Copyright 2021 Hewlett Packard Enterprise Development LP
    		_, err := hpegl.GetVmaasPlan(ctx, &hpegl.GetVmaasPlanArgs{
    			Name: "G1-Small",
    		}, 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(() => 
    {
        // (C) Copyright 2021 Hewlett Packard Enterprise Development LP
        var g1Small = Hpegl.GetVmaasPlan.Invoke(new()
        {
            Name = "G1-Small",
        });
    
    });
    
    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.GetVmaasPlanArgs;
    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) {
            // (C) Copyright 2021 Hewlett Packard Enterprise Development LP
            final var g1Small = HpeglFunctions.getVmaasPlan(GetVmaasPlanArgs.builder()
                .name("G1-Small")
                .build());
    
        }
    }
    
    variables:
      # (C) Copyright 2021 Hewlett Packard Enterprise Development LP
      g1Small:
        fn::invoke:
          function: hpegl:getVmaasPlan
          arguments:
            name: G1-Small
    

    Using getVmaasPlan

    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 getVmaasPlan(args: GetVmaasPlanArgs, opts?: InvokeOptions): Promise<GetVmaasPlanResult>
    function getVmaasPlanOutput(args: GetVmaasPlanOutputArgs, opts?: InvokeOptions): Output<GetVmaasPlanResult>
    def get_vmaas_plan(id: Optional[str] = None,
                       name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetVmaasPlanResult
    def get_vmaas_plan_output(id: Optional[pulumi.Input[str]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetVmaasPlanResult]
    func GetVmaasPlan(ctx *Context, args *GetVmaasPlanArgs, opts ...InvokeOption) (*GetVmaasPlanResult, error)
    func GetVmaasPlanOutput(ctx *Context, args *GetVmaasPlanOutputArgs, opts ...InvokeOption) GetVmaasPlanResultOutput

    > Note: This function is named GetVmaasPlan in the Go SDK.

    public static class GetVmaasPlan 
    {
        public static Task<GetVmaasPlanResult> InvokeAsync(GetVmaasPlanArgs args, InvokeOptions? opts = null)
        public static Output<GetVmaasPlanResult> Invoke(GetVmaasPlanInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVmaasPlanResult> getVmaasPlan(GetVmaasPlanArgs args, InvokeOptions options)
    public static Output<GetVmaasPlanResult> getVmaasPlan(GetVmaasPlanArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hpegl:index/getVmaasPlan:getVmaasPlan
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getVmaasPlan Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Name string
    Name of the Plan as it appears on HPE GreenLake for private cloud dashboard. If there is no Plan with this name, a 'NOT FOUND' error will returned.
    Id string
    The ID of this resource.
    Name string
    Name of the Plan as it appears on HPE GreenLake for private cloud dashboard. If there is no Plan with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.
    name String
    Name of the Plan as it appears on HPE GreenLake for private cloud dashboard. If there is no Plan with this name, a 'NOT FOUND' error will returned.
    id string
    The ID of this resource.
    name string
    Name of the Plan as it appears on HPE GreenLake for private cloud dashboard. If there is no Plan with this name, a 'NOT FOUND' error will returned.
    id str
    The ID of this resource.
    name str
    Name of the Plan as it appears on HPE GreenLake for private cloud dashboard. If there is no Plan with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.
    name String
    Name of the Plan as it appears on HPE GreenLake for private cloud dashboard. If there is no Plan 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
    Viewing docs for hpegl 0.4.20
    published on Monday, Mar 2, 2026 by hpe
      Try Pulumi Cloud free. Your team will thank you.