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

hpegl.getVmaasInstanceStorageController

Explore with Pulumi AI

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

    The hpegl.getVmaasInstanceStorageController data source can be used to discover the ID of a storage controller mount. This can then be used with resources or data sources that require a hpegl_vmaas_instance_disk_type, such as the hpegl.VmaasInstance resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hpegl from "@pulumi/hpegl";
    
    const scsi0 = hpegl.getVmaasInstanceStorageController({
        layoutId: data.hpegl_vmaas_layout.vmware.id,
        controllerName: "SCSI VMware Paravirtual",
        busNumber: 0,
        interfaceNumber: 0,
    });
    
    import pulumi
    import pulumi_hpegl as hpegl
    
    scsi0 = hpegl.get_vmaas_instance_storage_controller(layout_id=data["hpegl_vmaas_layout"]["vmware"]["id"],
        controller_name="SCSI VMware Paravirtual",
        bus_number=0,
        interface_number=0)
    
    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.GetVmaasInstanceStorageController(ctx, &hpegl.GetVmaasInstanceStorageControllerArgs{
    			LayoutId:        data.Hpegl_vmaas_layout.Vmware.Id,
    			ControllerName:  "SCSI VMware Paravirtual",
    			BusNumber:       0,
    			InterfaceNumber: pulumi.Float64Ref(0),
    		}, 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 scsi0 = Hpegl.GetVmaasInstanceStorageController.Invoke(new()
        {
            LayoutId = data.Hpegl_vmaas_layout.Vmware.Id,
            ControllerName = "SCSI VMware Paravirtual",
            BusNumber = 0,
            InterfaceNumber = 0,
        });
    
    });
    
    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.GetVmaasInstanceStorageControllerArgs;
    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 scsi0 = HpeglFunctions.getVmaasInstanceStorageController(GetVmaasInstanceStorageControllerArgs.builder()
                .layoutId(data.hpegl_vmaas_layout().vmware().id())
                .controllerName("SCSI VMware Paravirtual")
                .busNumber(0)
                .interfaceNumber(0)
                .build());
    
        }
    }
    
    variables:
      scsi0:
        fn::invoke:
          function: hpegl:getVmaasInstanceStorageController
          arguments:
            layoutId: ${data.hpegl_vmaas_layout.vmware.id}
            controllerName: SCSI VMware Paravirtual
            busNumber: 0
            interfaceNumber: 0
    

    Using getVmaasInstanceStorageController

    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 getVmaasInstanceStorageController(args: GetVmaasInstanceStorageControllerArgs, opts?: InvokeOptions): Promise<GetVmaasInstanceStorageControllerResult>
    function getVmaasInstanceStorageControllerOutput(args: GetVmaasInstanceStorageControllerOutputArgs, opts?: InvokeOptions): Output<GetVmaasInstanceStorageControllerResult>
    def get_vmaas_instance_storage_controller(bus_number: Optional[float] = None,
                                              controller_name: Optional[str] = None,
                                              id: Optional[str] = None,
                                              interface_number: Optional[float] = None,
                                              layout_id: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetVmaasInstanceStorageControllerResult
    def get_vmaas_instance_storage_controller_output(bus_number: Optional[pulumi.Input[float]] = None,
                                              controller_name: Optional[pulumi.Input[str]] = None,
                                              id: Optional[pulumi.Input[str]] = None,
                                              interface_number: Optional[pulumi.Input[float]] = None,
                                              layout_id: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetVmaasInstanceStorageControllerResult]
    func GetVmaasInstanceStorageController(ctx *Context, args *GetVmaasInstanceStorageControllerArgs, opts ...InvokeOption) (*GetVmaasInstanceStorageControllerResult, error)
    func GetVmaasInstanceStorageControllerOutput(ctx *Context, args *GetVmaasInstanceStorageControllerOutputArgs, opts ...InvokeOption) GetVmaasInstanceStorageControllerResultOutput

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

    public static class GetVmaasInstanceStorageController 
    {
        public static Task<GetVmaasInstanceStorageControllerResult> InvokeAsync(GetVmaasInstanceStorageControllerArgs args, InvokeOptions? opts = null)
        public static Output<GetVmaasInstanceStorageControllerResult> Invoke(GetVmaasInstanceStorageControllerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVmaasInstanceStorageControllerResult> getVmaasInstanceStorageController(GetVmaasInstanceStorageControllerArgs args, InvokeOptions options)
    public static Output<GetVmaasInstanceStorageControllerResult> getVmaasInstanceStorageController(GetVmaasInstanceStorageControllerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hpegl:index/getVmaasInstanceStorageController:getVmaasInstanceStorageController
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BusNumber double
    The Bus sequence for a storage controller type
    ControllerName string
    The controller name displayed in an instance storage controller section.
    LayoutId string
    The layout ID of an instance.
    Id string
    The ID of this resource.
    InterfaceNumber double
    The interface number to be allocated. When not provided, the interface number is automatically allocated.
    BusNumber float64
    The Bus sequence for a storage controller type
    ControllerName string
    The controller name displayed in an instance storage controller section.
    LayoutId string
    The layout ID of an instance.
    Id string
    The ID of this resource.
    InterfaceNumber float64
    The interface number to be allocated. When not provided, the interface number is automatically allocated.
    busNumber Double
    The Bus sequence for a storage controller type
    controllerName String
    The controller name displayed in an instance storage controller section.
    layoutId String
    The layout ID of an instance.
    id String
    The ID of this resource.
    interfaceNumber Double
    The interface number to be allocated. When not provided, the interface number is automatically allocated.
    busNumber number
    The Bus sequence for a storage controller type
    controllerName string
    The controller name displayed in an instance storage controller section.
    layoutId string
    The layout ID of an instance.
    id string
    The ID of this resource.
    interfaceNumber number
    The interface number to be allocated. When not provided, the interface number is automatically allocated.
    bus_number float
    The Bus sequence for a storage controller type
    controller_name str
    The controller name displayed in an instance storage controller section.
    layout_id str
    The layout ID of an instance.
    id str
    The ID of this resource.
    interface_number float
    The interface number to be allocated. When not provided, the interface number is automatically allocated.
    busNumber Number
    The Bus sequence for a storage controller type
    controllerName String
    The controller name displayed in an instance storage controller section.
    layoutId String
    The layout ID of an instance.
    id String
    The ID of this resource.
    interfaceNumber Number
    The interface number to be allocated. When not provided, the interface number is automatically allocated.

    getVmaasInstanceStorageController Result

    The following output properties are available:

    BusNumber double
    The Bus sequence for a storage controller type
    ControllerName string
    The controller name displayed in an instance storage controller section.
    Id string
    The ID of this resource.
    LayoutId string
    The layout ID of an instance.
    InterfaceNumber double
    The interface number to be allocated. When not provided, the interface number is automatically allocated.
    BusNumber float64
    The Bus sequence for a storage controller type
    ControllerName string
    The controller name displayed in an instance storage controller section.
    Id string
    The ID of this resource.
    LayoutId string
    The layout ID of an instance.
    InterfaceNumber float64
    The interface number to be allocated. When not provided, the interface number is automatically allocated.
    busNumber Double
    The Bus sequence for a storage controller type
    controllerName String
    The controller name displayed in an instance storage controller section.
    id String
    The ID of this resource.
    layoutId String
    The layout ID of an instance.
    interfaceNumber Double
    The interface number to be allocated. When not provided, the interface number is automatically allocated.
    busNumber number
    The Bus sequence for a storage controller type
    controllerName string
    The controller name displayed in an instance storage controller section.
    id string
    The ID of this resource.
    layoutId string
    The layout ID of an instance.
    interfaceNumber number
    The interface number to be allocated. When not provided, the interface number is automatically allocated.
    bus_number float
    The Bus sequence for a storage controller type
    controller_name str
    The controller name displayed in an instance storage controller section.
    id str
    The ID of this resource.
    layout_id str
    The layout ID of an instance.
    interface_number float
    The interface number to be allocated. When not provided, the interface number is automatically allocated.
    busNumber Number
    The Bus sequence for a storage controller type
    controllerName String
    The controller name displayed in an instance storage controller section.
    id String
    The ID of this resource.
    layoutId String
    The layout ID of an instance.
    interfaceNumber Number
    The interface number to be allocated. When not provided, the interface number is automatically allocated.

    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