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,
});
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
This property is required. Changes to this property will trigger replacement.
- Disk directory.
- Disk
Store This property is required. Changes to this property will trigger replacement.
- Disk Store.
- Disk
Type This property is required. Changes to this property will trigger replacement.
Esxi Native. Disk Type - Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
- Name
Changes to this property will trigger replacement.
- Virtual Disk Name.
- Size int
- Virtual Disk size in GB.
- Directory
This property is required. Changes to this property will trigger replacement.
- Disk directory.
- Disk
Store This property is required. Changes to this property will trigger replacement.
- Disk Store.
- Disk
Type This property is required. Changes to this property will trigger replacement.
Type - Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
- Name
Changes to this property will trigger replacement.
- Virtual Disk Name.
- Size int
- Virtual Disk size in GB.
- directory
This property is required. Changes to this property will trigger replacement.
- Disk directory.
- disk
Store This property is required. Changes to this property will trigger replacement.
- Disk Store.
- disk
Type This property is required. Changes to this property will trigger replacement.
Type - Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
- name
Changes to this property will trigger replacement.
- Virtual Disk Name.
- size Integer
- Virtual Disk size in GB.
- directory
This property is required. Changes to this property will trigger replacement.
- Disk directory.
- disk
Store This property is required. Changes to this property will trigger replacement.
- Disk Store.
- disk
Type This property is required. Changes to this property will trigger replacement.
Type - Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
- name
Changes to this property will trigger replacement.
- Virtual Disk Name.
- size number
- Virtual Disk size in GB.
- directory
This property is required. Changes to this property will trigger replacement.
- Disk directory.
- disk_
store This property is required. Changes to this property will trigger replacement.
- Disk Store.
- disk_
type This property is required. Changes to this property will trigger replacement.
Type - Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
- name
Changes to this property will trigger replacement.
- Virtual Disk Name.
- size int
- Virtual Disk size in GB.
- directory
This property is required. Changes to this property will trigger replacement.
- Disk directory.
- disk
Store This property is required. Changes to this property will trigger replacement.
- Disk Store.
- disk
Type This property is required. Changes to this property will trigger replacement.
- Virtual Disk type. (thin, zeroedthick or eagerzeroedthick)
- name
Changes to this property will trigger replacement.
- 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
, DiskTypeArgs
- Thin
- thin
- Zeroed
Thick - zeroedthick
- Eager
Zeroed Thick - eagerzeroedthick
- Disk
Type Thin - thin
- Disk
Type Zeroed Thick - zeroedthick
- Disk
Type Eager Zeroed Thick - eagerzeroedthick
- Thin
- thin
- Zeroed
Thick - zeroedthick
- Eager
Zeroed Thick - eagerzeroedthick
- Thin
- thin
- Zeroed
Thick - zeroedthick
- Eager
Zeroed Thick - 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.