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

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 This property is required. string
The unique name of the resource.
args This property is required. VirtualDiskArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. VirtualDiskArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VirtualDiskArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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,
});
Copy
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),
})
Copy
var virtualDiskResource = new VirtualDisk("virtualDiskResource", VirtualDiskArgs.builder()
    .directory("string")
    .diskStore("string")
    .diskType("thin")
    .name("string")
    .size(0)
    .build());
Copy
virtual_disk_resource = esxi_native.VirtualDisk("virtualDiskResource",
    directory="string",
    disk_store="string",
    disk_type=esxi_native.DiskType.THIN,
    name="string",
    size=0)
Copy
const virtualDiskResource = new esxi_native.VirtualDisk("virtualDiskResource", {
    directory: "string",
    diskStore: "string",
    diskType: esxi_native.DiskType.Thin,
    name: "string",
    size: 0,
});
Copy
type: esxi-native:VirtualDisk
properties:
    directory: string
    diskStore: string
    diskType: thin
    name: string
    size: 0
Copy

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
This property is required.
Changes to this property will trigger replacement.
string
Disk directory.
DiskStore
This property is required.
Changes to this property will trigger replacement.
string
Disk Store.
DiskType
This property is required.
Changes to this property will trigger replacement.
Pulumiverse.EsxiNative.DiskType
Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
Name Changes to this property will trigger replacement. string
Virtual Disk Name.
Size int
Virtual Disk size in GB.
Directory
This property is required.
Changes to this property will trigger replacement.
string
Disk directory.
DiskStore
This property is required.
Changes to this property will trigger replacement.
string
Disk Store.
DiskType
This property is required.
Changes to this property will trigger replacement.
DiskType
Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
Name Changes to this property will trigger replacement. string
Virtual Disk Name.
Size int
Virtual Disk size in GB.
directory
This property is required.
Changes to this property will trigger replacement.
String
Disk directory.
diskStore
This property is required.
Changes to this property will trigger replacement.
String
Disk Store.
diskType
This property is required.
Changes to this property will trigger replacement.
DiskType
Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
name Changes to this property will trigger replacement. String
Virtual Disk Name.
size Integer
Virtual Disk size in GB.
directory
This property is required.
Changes to this property will trigger replacement.
string
Disk directory.
diskStore
This property is required.
Changes to this property will trigger replacement.
string
Disk Store.
diskType
This property is required.
Changes to this property will trigger replacement.
DiskType
Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
name Changes to this property will trigger replacement. string
Virtual Disk Name.
size number
Virtual Disk size in GB.
directory
This property is required.
Changes to this property will trigger replacement.
str
Disk directory.
disk_store
This property is required.
Changes to this property will trigger replacement.
str
Disk Store.
disk_type
This property is required.
Changes to this property will trigger replacement.
DiskType
Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
name Changes to this property will trigger replacement. str
Virtual Disk Name.
size int
Virtual Disk size in GB.
directory
This property is required.
Changes to this property will trigger replacement.
String
Disk directory.
diskStore
This property is required.
Changes to this property will trigger replacement.
String
Disk Store.
diskType
This property is required.
Changes to this property will trigger replacement.
"thin" | "zeroedthick" | "eagerzeroedthick"
Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
name Changes to this property will trigger replacement. 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.