1. Packages
  2. ESXi Native
  3. API Docs
  4. VirtualDisk
ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse

esxi-native.VirtualDisk

Explore with Pulumi AI

esxi-native logo
ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse

    Create VirtualDisk Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VirtualDisk(name: string, args: VirtualDiskArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualDisk(resource_name: str,
                    args: VirtualDiskArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualDisk(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    directory: Optional[str] = None,
                    disk_store: Optional[str] = None,
                    disk_type: Optional[DiskType] = None,
                    name: Optional[str] = None,
                    size: Optional[int] = None)
    func NewVirtualDisk(ctx *Context, name string, args VirtualDiskArgs, opts ...ResourceOption) (*VirtualDisk, error)
    public VirtualDisk(string name, VirtualDiskArgs args, CustomResourceOptions? opts = null)
    public VirtualDisk(String name, VirtualDiskArgs args)
    public VirtualDisk(String name, VirtualDiskArgs args, CustomResourceOptions options)
    
    type: esxi-native:VirtualDisk
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VirtualDiskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VirtualDiskArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VirtualDiskArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualDiskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualDiskArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var virtualDiskResource = new EsxiNative.VirtualDisk("virtualDiskResource", new()
    {
        Directory = "string",
        DiskStore = "string",
        DiskType = EsxiNative.DiskType.Thin,
        Name = "string",
        Size = 0,
    });
    
    example, err := esxinative.NewVirtualDisk(ctx, "virtualDiskResource", &esxinative.VirtualDiskArgs{
    	Directory: pulumi.String("string"),
    	DiskStore: pulumi.String("string"),
    	DiskType:  esxinative.DiskTypeThin,
    	Name:      pulumi.String("string"),
    	Size:      pulumi.Int(0),
    })
    
    var virtualDiskResource = new VirtualDisk("virtualDiskResource", VirtualDiskArgs.builder()
        .directory("string")
        .diskStore("string")
        .diskType("thin")
        .name("string")
        .size(0)
        .build());
    
    virtual_disk_resource = esxi_native.VirtualDisk("virtualDiskResource",
        directory="string",
        disk_store="string",
        disk_type=esxi_native.DiskType.THIN,
        name="string",
        size=0)
    
    const virtualDiskResource = new esxi_native.VirtualDisk("virtualDiskResource", {
        directory: "string",
        diskStore: "string",
        diskType: esxi_native.DiskType.Thin,
        name: "string",
        size: 0,
    });
    
    type: esxi-native:VirtualDisk
    properties:
        directory: string
        diskStore: string
        diskType: thin
        name: string
        size: 0
    

    VirtualDisk Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VirtualDisk resource accepts the following input properties:

    Directory string
    Disk directory.
    DiskStore string
    Disk Store.
    DiskType Pulumiverse.EsxiNative.DiskType
    Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
    Name string
    Virtual Disk Name.
    Size int
    Virtual Disk size in GB.
    Directory string
    Disk directory.
    DiskStore string
    Disk Store.
    DiskType DiskType
    Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
    Name string
    Virtual Disk Name.
    Size int
    Virtual Disk size in GB.
    directory String
    Disk directory.
    diskStore String
    Disk Store.
    diskType DiskType
    Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
    name String
    Virtual Disk Name.
    size Integer
    Virtual Disk size in GB.
    directory string
    Disk directory.
    diskStore string
    Disk Store.
    diskType DiskType
    Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
    name string
    Virtual Disk Name.
    size number
    Virtual Disk size in GB.
    directory str
    Disk directory.
    disk_store str
    Disk Store.
    disk_type DiskType
    Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
    name str
    Virtual Disk Name.
    size int
    Virtual Disk size in GB.
    directory String
    Disk directory.
    diskStore String
    Disk Store.
    diskType "thin" | "zeroedthick" | "eagerzeroedthick"
    Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
    name String
    Virtual Disk Name.
    size Number
    Virtual Disk size in GB.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VirtualDisk resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    DiskType, DiskTypeArgs

    Thin
    thin
    ZeroedThick
    zeroedthick
    EagerZeroedThick
    eagerzeroedthick
    DiskTypeThin
    thin
    DiskTypeZeroedThick
    zeroedthick
    DiskTypeEagerZeroedThick
    eagerzeroedthick
    Thin
    thin
    ZeroedThick
    zeroedthick
    EagerZeroedThick
    eagerzeroedthick
    Thin
    thin
    ZeroedThick
    zeroedthick
    EagerZeroedThick
    eagerzeroedthick
    THIN
    thin
    ZEROED_THICK
    zeroedthick
    EAGER_ZEROED_THICK
    eagerzeroedthick
    "thin"
    thin
    "zeroedthick"
    zeroedthick
    "eagerzeroedthick"
    eagerzeroedthick

    Package Details

    Repository
    esxi-native pulumiverse/pulumi-esxi-native
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the Terraform Provider terraform-provider-esxi.
    esxi-native logo
    ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse