hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe
hpegl.getVmaasInstanceStorageController
Explore with Pulumi AI
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:
- Bus
Number double - The Bus sequence for a storage controller type
- Controller
Name string - The controller name displayed in an instance storage controller section.
- Layout
Id string - The layout ID of an instance.
- Id string
- The ID of this resource.
- Interface
Number double - The interface number to be allocated. When not provided, the interface number is automatically allocated.
- Bus
Number float64 - The Bus sequence for a storage controller type
- Controller
Name string - The controller name displayed in an instance storage controller section.
- Layout
Id string - The layout ID of an instance.
- Id string
- The ID of this resource.
- Interface
Number float64 - The interface number to be allocated. When not provided, the interface number is automatically allocated.
- bus
Number Double - The Bus sequence for a storage controller type
- controller
Name String - The controller name displayed in an instance storage controller section.
- layout
Id String - The layout ID of an instance.
- id String
- The ID of this resource.
- interface
Number Double - The interface number to be allocated. When not provided, the interface number is automatically allocated.
- bus
Number number - The Bus sequence for a storage controller type
- controller
Name string - The controller name displayed in an instance storage controller section.
- layout
Id string - The layout ID of an instance.
- id string
- The ID of this resource.
- interface
Number 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.
- bus
Number Number - The Bus sequence for a storage controller type
- controller
Name String - The controller name displayed in an instance storage controller section.
- layout
Id String - The layout ID of an instance.
- id String
- The ID of this resource.
- interface
Number Number - The interface number to be allocated. When not provided, the interface number is automatically allocated.
getVmaasInstanceStorageController Result
The following output properties are available:
- Bus
Number double - The Bus sequence for a storage controller type
- Controller
Name string - The controller name displayed in an instance storage controller section.
- Id string
- The ID of this resource.
- Layout
Id string - The layout ID of an instance.
- Interface
Number double - The interface number to be allocated. When not provided, the interface number is automatically allocated.
- Bus
Number float64 - The Bus sequence for a storage controller type
- Controller
Name string - The controller name displayed in an instance storage controller section.
- Id string
- The ID of this resource.
- Layout
Id string - The layout ID of an instance.
- Interface
Number float64 - The interface number to be allocated. When not provided, the interface number is automatically allocated.
- bus
Number Double - The Bus sequence for a storage controller type
- controller
Name String - The controller name displayed in an instance storage controller section.
- id String
- The ID of this resource.
- layout
Id String - The layout ID of an instance.
- interface
Number Double - The interface number to be allocated. When not provided, the interface number is automatically allocated.
- bus
Number number - The Bus sequence for a storage controller type
- controller
Name string - The controller name displayed in an instance storage controller section.
- id string
- The ID of this resource.
- layout
Id string - The layout ID of an instance.
- interface
Number 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.
- bus
Number Number - The Bus sequence for a storage controller type
- controller
Name String - The controller name displayed in an instance storage controller section.
- id String
- The ID of this resource.
- layout
Id String - The layout ID of an instance.
- interface
Number 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.