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

hpegl.getVmaasLayout

Explore with Pulumi AI

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

    The hpegl.getVmaasLayout data source can be used to discover the ID of a hpegl vmaas layout. This can then be used with resources or data sources that require a hpegl_vmaas_layout, such as the hpegl.VmaasInstance resource or hpegl.getVmaasInstanceStorageController datasource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hpegl from "@pulumi/hpegl";
    
    const vmware = hpegl.getVmaasLayout({
        instanceTypeCode: "vmware",
        name: "Vmware VM",
    });
    
    import pulumi
    import pulumi_hpegl as hpegl
    
    vmware = hpegl.get_vmaas_layout(instance_type_code="vmware",
        name="Vmware VM")
    
    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.GetVmaasLayout(ctx, &hpegl.GetVmaasLayoutArgs{
    			InstanceTypeCode: "vmware",
    			Name:             "Vmware VM",
    		}, 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 vmware = Hpegl.GetVmaasLayout.Invoke(new()
        {
            InstanceTypeCode = "vmware",
            Name = "Vmware VM",
        });
    
    });
    
    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.GetVmaasLayoutArgs;
    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 vmware = HpeglFunctions.getVmaasLayout(GetVmaasLayoutArgs.builder()
                .instanceTypeCode("vmware")
                .name("Vmware VM")
                .build());
    
        }
    }
    
    variables:
      vmware:
        fn::invoke:
          function: hpegl:getVmaasLayout
          arguments:
            instanceTypeCode: vmware
            name: Vmware VM
    

    Using getVmaasLayout

    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 getVmaasLayout(args: GetVmaasLayoutArgs, opts?: InvokeOptions): Promise<GetVmaasLayoutResult>
    function getVmaasLayoutOutput(args: GetVmaasLayoutOutputArgs, opts?: InvokeOptions): Output<GetVmaasLayoutResult>
    def get_vmaas_layout(id: Optional[str] = None,
                         instance_type_code: Optional[str] = None,
                         name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetVmaasLayoutResult
    def get_vmaas_layout_output(id: Optional[pulumi.Input[str]] = None,
                         instance_type_code: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetVmaasLayoutResult]
    func GetVmaasLayout(ctx *Context, args *GetVmaasLayoutArgs, opts ...InvokeOption) (*GetVmaasLayoutResult, error)
    func GetVmaasLayoutOutput(ctx *Context, args *GetVmaasLayoutOutputArgs, opts ...InvokeOption) GetVmaasLayoutResultOutput

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

    public static class GetVmaasLayout 
    {
        public static Task<GetVmaasLayoutResult> InvokeAsync(GetVmaasLayoutArgs args, InvokeOptions? opts = null)
        public static Output<GetVmaasLayoutResult> Invoke(GetVmaasLayoutInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVmaasLayoutResult> getVmaasLayout(GetVmaasLayoutArgs args, InvokeOptions options)
    public static Output<GetVmaasLayoutResult> getVmaasLayout(GetVmaasLayoutArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hpegl:index/getVmaasLayout:getVmaasLayout
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceTypeCode string
    Unique code used to identify the instance type. instancetypecode can be used in resource hpeglvmaasinstance
    Name string
    Name of the layout as it appears on HPE GreenLake for private cloud dashboard. If there is no layout with this name, a 'NOT FOUND' error will returned.
    Id string
    The ID of this resource.
    InstanceTypeCode string
    Unique code used to identify the instance type. instancetypecode can be used in resource hpeglvmaasinstance
    Name string
    Name of the layout as it appears on HPE GreenLake for private cloud dashboard. If there is no layout with this name, a 'NOT FOUND' error will returned.
    Id string
    The ID of this resource.
    instanceTypeCode String
    Unique code used to identify the instance type. instancetypecode can be used in resource hpeglvmaasinstance
    name String
    Name of the layout as it appears on HPE GreenLake for private cloud dashboard. If there is no layout with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.
    instanceTypeCode string
    Unique code used to identify the instance type. instancetypecode can be used in resource hpeglvmaasinstance
    name string
    Name of the layout as it appears on HPE GreenLake for private cloud dashboard. If there is no layout with this name, a 'NOT FOUND' error will returned.
    id string
    The ID of this resource.
    instance_type_code str
    Unique code used to identify the instance type. instancetypecode can be used in resource hpeglvmaasinstance
    name str
    Name of the layout as it appears on HPE GreenLake for private cloud dashboard. If there is no layout with this name, a 'NOT FOUND' error will returned.
    id str
    The ID of this resource.
    instanceTypeCode String
    Unique code used to identify the instance type. instancetypecode can be used in resource hpeglvmaasinstance
    name String
    Name of the layout as it appears on HPE GreenLake for private cloud dashboard. If there is no layout with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.

    getVmaasLayout Result

    The following output properties are available:

    Id string
    The ID of this resource.
    InstanceTypeCode string
    Unique code used to identify the instance type. instancetypecode can be used in resource hpeglvmaasinstance
    Name string
    Name of the layout as it appears on HPE GreenLake for private cloud dashboard. If there is no layout with this name, a 'NOT FOUND' error will returned.
    Id string
    The ID of this resource.
    InstanceTypeCode string
    Unique code used to identify the instance type. instancetypecode can be used in resource hpeglvmaasinstance
    Name string
    Name of the layout as it appears on HPE GreenLake for private cloud dashboard. If there is no layout with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.
    instanceTypeCode String
    Unique code used to identify the instance type. instancetypecode can be used in resource hpeglvmaasinstance
    name String
    Name of the layout as it appears on HPE GreenLake for private cloud dashboard. If there is no layout with this name, a 'NOT FOUND' error will returned.
    id string
    The ID of this resource.
    instanceTypeCode string
    Unique code used to identify the instance type. instancetypecode can be used in resource hpeglvmaasinstance
    name string
    Name of the layout as it appears on HPE GreenLake for private cloud dashboard. If there is no layout with this name, a 'NOT FOUND' error will returned.
    id str
    The ID of this resource.
    instance_type_code str
    Unique code used to identify the instance type. instancetypecode can be used in resource hpeglvmaasinstance
    name str
    Name of the layout as it appears on HPE GreenLake for private cloud dashboard. If there is no layout with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.
    instanceTypeCode String
    Unique code used to identify the instance type. instancetypecode can be used in resource hpeglvmaasinstance
    name String
    Name of the layout as it appears on HPE GreenLake for private cloud dashboard. If there is no layout 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