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 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
The VirtualDisk resource accepts the following input properties:
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
- 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.