DatastoreCluster
The vsphere..DatastoreCluster resource can be used to create and manage
datastore clusters. This can be used to create groups of datastores with a
shared management interface, allowing for resource control and load balancing
through Storage DRS.
For more information on vSphere datastore clusters and Storage DRS, see this page.
NOTE: This resource requires vCenter and is not available on direct ESXi connections.
NOTE: Storage DRS requires a vSphere Enterprise Plus license.
Create a DatastoreCluster Resource
new DatastoreCluster(name: string, args: DatastoreClusterArgs, opts?: CustomResourceOptions);def DatastoreCluster(resource_name, opts=None, custom_attributes=None, datacenter_id=None, folder=None, name=None, sdrs_advanced_options=None, sdrs_automation_level=None, sdrs_default_intra_vm_affinity=None, sdrs_enabled=None, sdrs_free_space_threshold=None, sdrs_free_space_threshold_mode=None, sdrs_free_space_utilization_difference=None, sdrs_io_balance_automation_level=None, sdrs_io_latency_threshold=None, sdrs_io_load_balance_enabled=None, sdrs_io_load_imbalance_threshold=None, sdrs_io_reservable_iops_threshold=None, sdrs_io_reservable_percent_threshold=None, sdrs_io_reservable_threshold_mode=None, sdrs_load_balance_interval=None, sdrs_policy_enforcement_automation_level=None, sdrs_rule_enforcement_automation_level=None, sdrs_space_balance_automation_level=None, sdrs_space_utilization_threshold=None, sdrs_vm_evacuation_automation_level=None, tags=None, __props__=None);func NewDatastoreCluster(ctx *Context, name string, args DatastoreClusterArgs, opts ...ResourceOption) (*DatastoreCluster, error)public DatastoreCluster(string name, DatastoreClusterArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args DatastoreClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DatastoreClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatastoreClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
DatastoreCluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The DatastoreCluster resource accepts the following input properties:
- Datacenter
Id string The managed object ID of the datacenter to create the datastore cluster in. Forces a new resource if changed.
- Custom
Attributes Dictionary<string, string> A map of custom attribute ids to attribute value strings to set for the datastore cluster. See [here][docs-setting-custom-attributes] for a reference on how to set values for custom attributes.
- Folder string
The relative path to a folder to put this datastore cluster in. This is a path relative to the datacenter you are deploying the datastore to. Example: for the
dc1datacenter, and a providedfolderoffoo/bar, The provider will place a datastore cluster nameddatastore-cluster-testin a datastore folder located at/dc1/datastore/foo/bar, with the final inventory path being/dc1/datastore/foo/bar/datastore-cluster-test.- Name string
The name of the datastore cluster.
- Sdrs
Advanced Dictionary<string, string>Options A key/value map of advanced Storage DRS settings that are not exposed via the provider or the vSphere client.
- Sdrs
Automation stringLevel The global automation level for all virtual machines in this datastore cluster. Default:
manual.- Sdrs
Default boolIntra Vm Affinity When
true, all disks in a single virtual machine will be kept on the same datastore. Default:true.- Sdrs
Enabled bool Enable Storage DRS for this datastore cluster. Default:
false.- Sdrs
Free intSpace Threshold The free space threshold to use. When set to
utilization,drs_space_utilization_thresholdis used, and when set tofreeSpace,drs_free_space_thresholdis used. Default:utilization.- Sdrs
Free stringSpace Threshold Mode The free space threshold to use. When set to utilization, drs_space_utilization_threshold is used, and when set to freeSpace, drs_free_space_threshold is used.
- Sdrs
Free intSpace Utilization Difference The threshold, in percent, of difference between space utilization in datastores before storage DRS makes decisions to balance the space. Default:
5percent.- Sdrs
Io stringBalance Automation Level Overrides the default automation settings when correcting I/O load imbalances.
- Sdrs
Io intLatency Threshold The I/O latency threshold, in milliseconds, that storage DRS uses to make recommendations to move disks from this datastore. Default:
15seconds.- Sdrs
Io boolLoad Balance Enabled Enable I/O load balancing for this datastore cluster. Default:
true.- Sdrs
Io intLoad Imbalance Threshold The difference between load in datastores in the cluster before storage DRS makes recommendations to balance the load. Default:
5percent.- Sdrs
Io intReservable Iops Threshold The threshold of reservable IOPS of all virtual machines on the datastore before storage DRS makes recommendations to move VMs off of a datastore. Note that this setting should only be set if
sdrs_io_reservable_percent_thresholdcannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set to roughly 50-60% of the worst case peak performance of the backing LUNs.- Sdrs
Io intReservable Percent Threshold The threshold, in percent, of actual estimated performance of the datastore (in IOPS) that storage DRS uses to make recommendations to move VMs off of a datastore when the total reservable IOPS exceeds the threshold. Default:
60percent.- Sdrs
Io stringReservable Threshold Mode The reservable IOPS threshold setting to use,
sdrs_io_reservable_percent_thresholdin the event ofautomatic, orsdrs_io_reservable_iops_thresholdin the event ofmanual. Default:automatic.- Sdrs
Load intBalance Interval The storage DRS poll interval, in minutes. Default:
480minutes.- Sdrs
Policy stringEnforcement Automation Level Overrides the default automation settings when correcting storage and VM policy violations.
- Sdrs
Rule stringEnforcement Automation Level Overrides the default automation settings when correcting affinity rule violations.
- Sdrs
Space stringBalance Automation Level Overrides the default automation settings when correcting disk space imbalances.
- Sdrs
Space intUtilization Threshold The threshold, in percent of used space, that storage DRS uses to make decisions to migrate VMs out of a datastore.
- Sdrs
Vm stringEvacuation Automation Level Overrides the default automation settings when generating recommendations for datastore evacuation.
- List<string>
The IDs of any tags to attach to this resource.
- Datacenter
Id string The managed object ID of the datacenter to create the datastore cluster in. Forces a new resource if changed.
- Custom
Attributes map[string]string A map of custom attribute ids to attribute value strings to set for the datastore cluster. See [here][docs-setting-custom-attributes] for a reference on how to set values for custom attributes.
- Folder string
The relative path to a folder to put this datastore cluster in. This is a path relative to the datacenter you are deploying the datastore to. Example: for the
dc1datacenter, and a providedfolderoffoo/bar, The provider will place a datastore cluster nameddatastore-cluster-testin a datastore folder located at/dc1/datastore/foo/bar, with the final inventory path being/dc1/datastore/foo/bar/datastore-cluster-test.- Name string
The name of the datastore cluster.
- Sdrs
Advanced map[string]stringOptions A key/value map of advanced Storage DRS settings that are not exposed via the provider or the vSphere client.
- Sdrs
Automation stringLevel The global automation level for all virtual machines in this datastore cluster. Default:
manual.- Sdrs
Default boolIntra Vm Affinity When
true, all disks in a single virtual machine will be kept on the same datastore. Default:true.- Sdrs
Enabled bool Enable Storage DRS for this datastore cluster. Default:
false.- Sdrs
Free intSpace Threshold The free space threshold to use. When set to
utilization,drs_space_utilization_thresholdis used, and when set tofreeSpace,drs_free_space_thresholdis used. Default:utilization.- Sdrs
Free stringSpace Threshold Mode The free space threshold to use. When set to utilization, drs_space_utilization_threshold is used, and when set to freeSpace, drs_free_space_threshold is used.
- Sdrs
Free intSpace Utilization Difference The threshold, in percent, of difference between space utilization in datastores before storage DRS makes decisions to balance the space. Default:
5percent.- Sdrs
Io stringBalance Automation Level Overrides the default automation settings when correcting I/O load imbalances.
- Sdrs
Io intLatency Threshold The I/O latency threshold, in milliseconds, that storage DRS uses to make recommendations to move disks from this datastore. Default:
15seconds.- Sdrs
Io boolLoad Balance Enabled Enable I/O load balancing for this datastore cluster. Default:
true.- Sdrs
Io intLoad Imbalance Threshold The difference between load in datastores in the cluster before storage DRS makes recommendations to balance the load. Default:
5percent.- Sdrs
Io intReservable Iops Threshold The threshold of reservable IOPS of all virtual machines on the datastore before storage DRS makes recommendations to move VMs off of a datastore. Note that this setting should only be set if
sdrs_io_reservable_percent_thresholdcannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set to roughly 50-60% of the worst case peak performance of the backing LUNs.- Sdrs
Io intReservable Percent Threshold The threshold, in percent, of actual estimated performance of the datastore (in IOPS) that storage DRS uses to make recommendations to move VMs off of a datastore when the total reservable IOPS exceeds the threshold. Default:
60percent.- Sdrs
Io stringReservable Threshold Mode The reservable IOPS threshold setting to use,
sdrs_io_reservable_percent_thresholdin the event ofautomatic, orsdrs_io_reservable_iops_thresholdin the event ofmanual. Default:automatic.- Sdrs
Load intBalance Interval The storage DRS poll interval, in minutes. Default:
480minutes.- Sdrs
Policy stringEnforcement Automation Level Overrides the default automation settings when correcting storage and VM policy violations.
- Sdrs
Rule stringEnforcement Automation Level Overrides the default automation settings when correcting affinity rule violations.
- Sdrs
Space stringBalance Automation Level Overrides the default automation settings when correcting disk space imbalances.
- Sdrs
Space intUtilization Threshold The threshold, in percent of used space, that storage DRS uses to make decisions to migrate VMs out of a datastore.
- Sdrs
Vm stringEvacuation Automation Level Overrides the default automation settings when generating recommendations for datastore evacuation.
- []string
The IDs of any tags to attach to this resource.
- datacenter
Id string The managed object ID of the datacenter to create the datastore cluster in. Forces a new resource if changed.
- custom
Attributes {[key: string]: string} A map of custom attribute ids to attribute value strings to set for the datastore cluster. See [here][docs-setting-custom-attributes] for a reference on how to set values for custom attributes.
- folder string
The relative path to a folder to put this datastore cluster in. This is a path relative to the datacenter you are deploying the datastore to. Example: for the
dc1datacenter, and a providedfolderoffoo/bar, The provider will place a datastore cluster nameddatastore-cluster-testin a datastore folder located at/dc1/datastore/foo/bar, with the final inventory path being/dc1/datastore/foo/bar/datastore-cluster-test.- name string
The name of the datastore cluster.
- sdrs
Advanced {[key: string]: string}Options A key/value map of advanced Storage DRS settings that are not exposed via the provider or the vSphere client.
- sdrs
Automation stringLevel The global automation level for all virtual machines in this datastore cluster. Default:
manual.- sdrs
Default booleanIntra Vm Affinity When
true, all disks in a single virtual machine will be kept on the same datastore. Default:true.- sdrs
Enabled boolean Enable Storage DRS for this datastore cluster. Default:
false.- sdrs
Free numberSpace Threshold The free space threshold to use. When set to
utilization,drs_space_utilization_thresholdis used, and when set tofreeSpace,drs_free_space_thresholdis used. Default:utilization.- sdrs
Free stringSpace Threshold Mode The free space threshold to use. When set to utilization, drs_space_utilization_threshold is used, and when set to freeSpace, drs_free_space_threshold is used.
- sdrs
Free numberSpace Utilization Difference The threshold, in percent, of difference between space utilization in datastores before storage DRS makes decisions to balance the space. Default:
5percent.- sdrs
Io stringBalance Automation Level Overrides the default automation settings when correcting I/O load imbalances.
- sdrs
Io numberLatency Threshold The I/O latency threshold, in milliseconds, that storage DRS uses to make recommendations to move disks from this datastore. Default:
15seconds.- sdrs
Io booleanLoad Balance Enabled Enable I/O load balancing for this datastore cluster. Default:
true.- sdrs
Io numberLoad Imbalance Threshold The difference between load in datastores in the cluster before storage DRS makes recommendations to balance the load. Default:
5percent.- sdrs
Io numberReservable Iops Threshold The threshold of reservable IOPS of all virtual machines on the datastore before storage DRS makes recommendations to move VMs off of a datastore. Note that this setting should only be set if
sdrs_io_reservable_percent_thresholdcannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set to roughly 50-60% of the worst case peak performance of the backing LUNs.- sdrs
Io numberReservable Percent Threshold The threshold, in percent, of actual estimated performance of the datastore (in IOPS) that storage DRS uses to make recommendations to move VMs off of a datastore when the total reservable IOPS exceeds the threshold. Default:
60percent.- sdrs
Io stringReservable Threshold Mode The reservable IOPS threshold setting to use,
sdrs_io_reservable_percent_thresholdin the event ofautomatic, orsdrs_io_reservable_iops_thresholdin the event ofmanual. Default:automatic.- sdrs
Load numberBalance Interval The storage DRS poll interval, in minutes. Default:
480minutes.- sdrs
Policy stringEnforcement Automation Level Overrides the default automation settings when correcting storage and VM policy violations.
- sdrs
Rule stringEnforcement Automation Level Overrides the default automation settings when correcting affinity rule violations.
- sdrs
Space stringBalance Automation Level Overrides the default automation settings when correcting disk space imbalances.
- sdrs
Space numberUtilization Threshold The threshold, in percent of used space, that storage DRS uses to make decisions to migrate VMs out of a datastore.
- sdrs
Vm stringEvacuation Automation Level Overrides the default automation settings when generating recommendations for datastore evacuation.
- string[]
The IDs of any tags to attach to this resource.
- datacenter_
id str The managed object ID of the datacenter to create the datastore cluster in. Forces a new resource if changed.
- custom_
attributes Dict[str, str] A map of custom attribute ids to attribute value strings to set for the datastore cluster. See [here][docs-setting-custom-attributes] for a reference on how to set values for custom attributes.
- folder str
The relative path to a folder to put this datastore cluster in. This is a path relative to the datacenter you are deploying the datastore to. Example: for the
dc1datacenter, and a providedfolderoffoo/bar, The provider will place a datastore cluster nameddatastore-cluster-testin a datastore folder located at/dc1/datastore/foo/bar, with the final inventory path being/dc1/datastore/foo/bar/datastore-cluster-test.- name str
The name of the datastore cluster.
- sdrs_
advanced_ Dict[str, str]options A key/value map of advanced Storage DRS settings that are not exposed via the provider or the vSphere client.
- sdrs_
automation_ strlevel The global automation level for all virtual machines in this datastore cluster. Default:
manual.- sdrs_
default_ boolintra_ vm_ affinity When
true, all disks in a single virtual machine will be kept on the same datastore. Default:true.- sdrs_
enabled bool Enable Storage DRS for this datastore cluster. Default:
false.- sdrs_
free_ floatspace_ threshold The free space threshold to use. When set to
utilization,drs_space_utilization_thresholdis used, and when set tofreeSpace,drs_free_space_thresholdis used. Default:utilization.- sdrs_
free_ strspace_ threshold_ mode The free space threshold to use. When set to utilization, drs_space_utilization_threshold is used, and when set to freeSpace, drs_free_space_threshold is used.
- sdrs_
free_ floatspace_ utilization_ difference The threshold, in percent, of difference between space utilization in datastores before storage DRS makes decisions to balance the space. Default:
5percent.- sdrs_
io_ strbalance_ automation_ level Overrides the default automation settings when correcting I/O load imbalances.
- sdrs_
io_ floatlatency_ threshold The I/O latency threshold, in milliseconds, that storage DRS uses to make recommendations to move disks from this datastore. Default:
15seconds.- sdrs_
io_ boolload_ balance_ enabled Enable I/O load balancing for this datastore cluster. Default:
true.- sdrs_
io_ floatload_ imbalance_ threshold The difference between load in datastores in the cluster before storage DRS makes recommendations to balance the load. Default:
5percent.- sdrs_
io_ floatreservable_ iops_ threshold The threshold of reservable IOPS of all virtual machines on the datastore before storage DRS makes recommendations to move VMs off of a datastore. Note that this setting should only be set if
sdrs_io_reservable_percent_thresholdcannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set to roughly 50-60% of the worst case peak performance of the backing LUNs.- sdrs_
io_ floatreservable_ percent_ threshold The threshold, in percent, of actual estimated performance of the datastore (in IOPS) that storage DRS uses to make recommendations to move VMs off of a datastore when the total reservable IOPS exceeds the threshold. Default:
60percent.- sdrs_
io_ strreservable_ threshold_ mode The reservable IOPS threshold setting to use,
sdrs_io_reservable_percent_thresholdin the event ofautomatic, orsdrs_io_reservable_iops_thresholdin the event ofmanual. Default:automatic.- sdrs_
load_ floatbalance_ interval The storage DRS poll interval, in minutes. Default:
480minutes.- sdrs_
policy_ strenforcement_ automation_ level Overrides the default automation settings when correcting storage and VM policy violations.
- sdrs_
rule_ strenforcement_ automation_ level Overrides the default automation settings when correcting affinity rule violations.
- sdrs_
space_ strbalance_ automation_ level Overrides the default automation settings when correcting disk space imbalances.
- sdrs_
space_ floatutilization_ threshold The threshold, in percent of used space, that storage DRS uses to make decisions to migrate VMs out of a datastore.
- sdrs_
vm_ strevacuation_ automation_ level Overrides the default automation settings when generating recommendations for datastore evacuation.
- List[str]
The IDs of any tags to attach to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DatastoreCluster resource produces the following output properties:
Look up an Existing DatastoreCluster Resource
Get an existing DatastoreCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DatastoreClusterState, opts?: CustomResourceOptions): DatastoreClusterstatic get(resource_name, id, opts=None, custom_attributes=None, datacenter_id=None, folder=None, name=None, sdrs_advanced_options=None, sdrs_automation_level=None, sdrs_default_intra_vm_affinity=None, sdrs_enabled=None, sdrs_free_space_threshold=None, sdrs_free_space_threshold_mode=None, sdrs_free_space_utilization_difference=None, sdrs_io_balance_automation_level=None, sdrs_io_latency_threshold=None, sdrs_io_load_balance_enabled=None, sdrs_io_load_imbalance_threshold=None, sdrs_io_reservable_iops_threshold=None, sdrs_io_reservable_percent_threshold=None, sdrs_io_reservable_threshold_mode=None, sdrs_load_balance_interval=None, sdrs_policy_enforcement_automation_level=None, sdrs_rule_enforcement_automation_level=None, sdrs_space_balance_automation_level=None, sdrs_space_utilization_threshold=None, sdrs_vm_evacuation_automation_level=None, tags=None, __props__=None);func GetDatastoreCluster(ctx *Context, name string, id IDInput, state *DatastoreClusterState, opts ...ResourceOption) (*DatastoreCluster, error)public static DatastoreCluster Get(string name, Input<string> id, DatastoreClusterState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Custom
Attributes Dictionary<string, string> A map of custom attribute ids to attribute value strings to set for the datastore cluster. See [here][docs-setting-custom-attributes] for a reference on how to set values for custom attributes.
- Datacenter
Id string The managed object ID of the datacenter to create the datastore cluster in. Forces a new resource if changed.
- Folder string
The relative path to a folder to put this datastore cluster in. This is a path relative to the datacenter you are deploying the datastore to. Example: for the
dc1datacenter, and a providedfolderoffoo/bar, The provider will place a datastore cluster nameddatastore-cluster-testin a datastore folder located at/dc1/datastore/foo/bar, with the final inventory path being/dc1/datastore/foo/bar/datastore-cluster-test.- Name string
The name of the datastore cluster.
- Sdrs
Advanced Dictionary<string, string>Options A key/value map of advanced Storage DRS settings that are not exposed via the provider or the vSphere client.
- Sdrs
Automation stringLevel The global automation level for all virtual machines in this datastore cluster. Default:
manual.- Sdrs
Default boolIntra Vm Affinity When
true, all disks in a single virtual machine will be kept on the same datastore. Default:true.- Sdrs
Enabled bool Enable Storage DRS for this datastore cluster. Default:
false.- Sdrs
Free intSpace Threshold The free space threshold to use. When set to
utilization,drs_space_utilization_thresholdis used, and when set tofreeSpace,drs_free_space_thresholdis used. Default:utilization.- Sdrs
Free stringSpace Threshold Mode The free space threshold to use. When set to utilization, drs_space_utilization_threshold is used, and when set to freeSpace, drs_free_space_threshold is used.
- Sdrs
Free intSpace Utilization Difference The threshold, in percent, of difference between space utilization in datastores before storage DRS makes decisions to balance the space. Default:
5percent.- Sdrs
Io stringBalance Automation Level Overrides the default automation settings when correcting I/O load imbalances.
- Sdrs
Io intLatency Threshold The I/O latency threshold, in milliseconds, that storage DRS uses to make recommendations to move disks from this datastore. Default:
15seconds.- Sdrs
Io boolLoad Balance Enabled Enable I/O load balancing for this datastore cluster. Default:
true.- Sdrs
Io intLoad Imbalance Threshold The difference between load in datastores in the cluster before storage DRS makes recommendations to balance the load. Default:
5percent.- Sdrs
Io intReservable Iops Threshold The threshold of reservable IOPS of all virtual machines on the datastore before storage DRS makes recommendations to move VMs off of a datastore. Note that this setting should only be set if
sdrs_io_reservable_percent_thresholdcannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set to roughly 50-60% of the worst case peak performance of the backing LUNs.- Sdrs
Io intReservable Percent Threshold The threshold, in percent, of actual estimated performance of the datastore (in IOPS) that storage DRS uses to make recommendations to move VMs off of a datastore when the total reservable IOPS exceeds the threshold. Default:
60percent.- Sdrs
Io stringReservable Threshold Mode The reservable IOPS threshold setting to use,
sdrs_io_reservable_percent_thresholdin the event ofautomatic, orsdrs_io_reservable_iops_thresholdin the event ofmanual. Default:automatic.- Sdrs
Load intBalance Interval The storage DRS poll interval, in minutes. Default:
480minutes.- Sdrs
Policy stringEnforcement Automation Level Overrides the default automation settings when correcting storage and VM policy violations.
- Sdrs
Rule stringEnforcement Automation Level Overrides the default automation settings when correcting affinity rule violations.
- Sdrs
Space stringBalance Automation Level Overrides the default automation settings when correcting disk space imbalances.
- Sdrs
Space intUtilization Threshold The threshold, in percent of used space, that storage DRS uses to make decisions to migrate VMs out of a datastore.
- Sdrs
Vm stringEvacuation Automation Level Overrides the default automation settings when generating recommendations for datastore evacuation.
- List<string>
The IDs of any tags to attach to this resource.
- Custom
Attributes map[string]string A map of custom attribute ids to attribute value strings to set for the datastore cluster. See [here][docs-setting-custom-attributes] for a reference on how to set values for custom attributes.
- Datacenter
Id string The managed object ID of the datacenter to create the datastore cluster in. Forces a new resource if changed.
- Folder string
The relative path to a folder to put this datastore cluster in. This is a path relative to the datacenter you are deploying the datastore to. Example: for the
dc1datacenter, and a providedfolderoffoo/bar, The provider will place a datastore cluster nameddatastore-cluster-testin a datastore folder located at/dc1/datastore/foo/bar, with the final inventory path being/dc1/datastore/foo/bar/datastore-cluster-test.- Name string
The name of the datastore cluster.
- Sdrs
Advanced map[string]stringOptions A key/value map of advanced Storage DRS settings that are not exposed via the provider or the vSphere client.
- Sdrs
Automation stringLevel The global automation level for all virtual machines in this datastore cluster. Default:
manual.- Sdrs
Default boolIntra Vm Affinity When
true, all disks in a single virtual machine will be kept on the same datastore. Default:true.- Sdrs
Enabled bool Enable Storage DRS for this datastore cluster. Default:
false.- Sdrs
Free intSpace Threshold The free space threshold to use. When set to
utilization,drs_space_utilization_thresholdis used, and when set tofreeSpace,drs_free_space_thresholdis used. Default:utilization.- Sdrs
Free stringSpace Threshold Mode The free space threshold to use. When set to utilization, drs_space_utilization_threshold is used, and when set to freeSpace, drs_free_space_threshold is used.
- Sdrs
Free intSpace Utilization Difference The threshold, in percent, of difference between space utilization in datastores before storage DRS makes decisions to balance the space. Default:
5percent.- Sdrs
Io stringBalance Automation Level Overrides the default automation settings when correcting I/O load imbalances.
- Sdrs
Io intLatency Threshold The I/O latency threshold, in milliseconds, that storage DRS uses to make recommendations to move disks from this datastore. Default:
15seconds.- Sdrs
Io boolLoad Balance Enabled Enable I/O load balancing for this datastore cluster. Default:
true.- Sdrs
Io intLoad Imbalance Threshold The difference between load in datastores in the cluster before storage DRS makes recommendations to balance the load. Default:
5percent.- Sdrs
Io intReservable Iops Threshold The threshold of reservable IOPS of all virtual machines on the datastore before storage DRS makes recommendations to move VMs off of a datastore. Note that this setting should only be set if
sdrs_io_reservable_percent_thresholdcannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set to roughly 50-60% of the worst case peak performance of the backing LUNs.- Sdrs
Io intReservable Percent Threshold The threshold, in percent, of actual estimated performance of the datastore (in IOPS) that storage DRS uses to make recommendations to move VMs off of a datastore when the total reservable IOPS exceeds the threshold. Default:
60percent.- Sdrs
Io stringReservable Threshold Mode The reservable IOPS threshold setting to use,
sdrs_io_reservable_percent_thresholdin the event ofautomatic, orsdrs_io_reservable_iops_thresholdin the event ofmanual. Default:automatic.- Sdrs
Load intBalance Interval The storage DRS poll interval, in minutes. Default:
480minutes.- Sdrs
Policy stringEnforcement Automation Level Overrides the default automation settings when correcting storage and VM policy violations.
- Sdrs
Rule stringEnforcement Automation Level Overrides the default automation settings when correcting affinity rule violations.
- Sdrs
Space stringBalance Automation Level Overrides the default automation settings when correcting disk space imbalances.
- Sdrs
Space intUtilization Threshold The threshold, in percent of used space, that storage DRS uses to make decisions to migrate VMs out of a datastore.
- Sdrs
Vm stringEvacuation Automation Level Overrides the default automation settings when generating recommendations for datastore evacuation.
- []string
The IDs of any tags to attach to this resource.
- custom
Attributes {[key: string]: string} A map of custom attribute ids to attribute value strings to set for the datastore cluster. See [here][docs-setting-custom-attributes] for a reference on how to set values for custom attributes.
- datacenter
Id string The managed object ID of the datacenter to create the datastore cluster in. Forces a new resource if changed.
- folder string
The relative path to a folder to put this datastore cluster in. This is a path relative to the datacenter you are deploying the datastore to. Example: for the
dc1datacenter, and a providedfolderoffoo/bar, The provider will place a datastore cluster nameddatastore-cluster-testin a datastore folder located at/dc1/datastore/foo/bar, with the final inventory path being/dc1/datastore/foo/bar/datastore-cluster-test.- name string
The name of the datastore cluster.
- sdrs
Advanced {[key: string]: string}Options A key/value map of advanced Storage DRS settings that are not exposed via the provider or the vSphere client.
- sdrs
Automation stringLevel The global automation level for all virtual machines in this datastore cluster. Default:
manual.- sdrs
Default booleanIntra Vm Affinity When
true, all disks in a single virtual machine will be kept on the same datastore. Default:true.- sdrs
Enabled boolean Enable Storage DRS for this datastore cluster. Default:
false.- sdrs
Free numberSpace Threshold The free space threshold to use. When set to
utilization,drs_space_utilization_thresholdis used, and when set tofreeSpace,drs_free_space_thresholdis used. Default:utilization.- sdrs
Free stringSpace Threshold Mode The free space threshold to use. When set to utilization, drs_space_utilization_threshold is used, and when set to freeSpace, drs_free_space_threshold is used.
- sdrs
Free numberSpace Utilization Difference The threshold, in percent, of difference between space utilization in datastores before storage DRS makes decisions to balance the space. Default:
5percent.- sdrs
Io stringBalance Automation Level Overrides the default automation settings when correcting I/O load imbalances.
- sdrs
Io numberLatency Threshold The I/O latency threshold, in milliseconds, that storage DRS uses to make recommendations to move disks from this datastore. Default:
15seconds.- sdrs
Io booleanLoad Balance Enabled Enable I/O load balancing for this datastore cluster. Default:
true.- sdrs
Io numberLoad Imbalance Threshold The difference between load in datastores in the cluster before storage DRS makes recommendations to balance the load. Default:
5percent.- sdrs
Io numberReservable Iops Threshold The threshold of reservable IOPS of all virtual machines on the datastore before storage DRS makes recommendations to move VMs off of a datastore. Note that this setting should only be set if
sdrs_io_reservable_percent_thresholdcannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set to roughly 50-60% of the worst case peak performance of the backing LUNs.- sdrs
Io numberReservable Percent Threshold The threshold, in percent, of actual estimated performance of the datastore (in IOPS) that storage DRS uses to make recommendations to move VMs off of a datastore when the total reservable IOPS exceeds the threshold. Default:
60percent.- sdrs
Io stringReservable Threshold Mode The reservable IOPS threshold setting to use,
sdrs_io_reservable_percent_thresholdin the event ofautomatic, orsdrs_io_reservable_iops_thresholdin the event ofmanual. Default:automatic.- sdrs
Load numberBalance Interval The storage DRS poll interval, in minutes. Default:
480minutes.- sdrs
Policy stringEnforcement Automation Level Overrides the default automation settings when correcting storage and VM policy violations.
- sdrs
Rule stringEnforcement Automation Level Overrides the default automation settings when correcting affinity rule violations.
- sdrs
Space stringBalance Automation Level Overrides the default automation settings when correcting disk space imbalances.
- sdrs
Space numberUtilization Threshold The threshold, in percent of used space, that storage DRS uses to make decisions to migrate VMs out of a datastore.
- sdrs
Vm stringEvacuation Automation Level Overrides the default automation settings when generating recommendations for datastore evacuation.
- string[]
The IDs of any tags to attach to this resource.
- custom_
attributes Dict[str, str] A map of custom attribute ids to attribute value strings to set for the datastore cluster. See [here][docs-setting-custom-attributes] for a reference on how to set values for custom attributes.
- datacenter_
id str The managed object ID of the datacenter to create the datastore cluster in. Forces a new resource if changed.
- folder str
The relative path to a folder to put this datastore cluster in. This is a path relative to the datacenter you are deploying the datastore to. Example: for the
dc1datacenter, and a providedfolderoffoo/bar, The provider will place a datastore cluster nameddatastore-cluster-testin a datastore folder located at/dc1/datastore/foo/bar, with the final inventory path being/dc1/datastore/foo/bar/datastore-cluster-test.- name str
The name of the datastore cluster.
- sdrs_
advanced_ Dict[str, str]options A key/value map of advanced Storage DRS settings that are not exposed via the provider or the vSphere client.
- sdrs_
automation_ strlevel The global automation level for all virtual machines in this datastore cluster. Default:
manual.- sdrs_
default_ boolintra_ vm_ affinity When
true, all disks in a single virtual machine will be kept on the same datastore. Default:true.- sdrs_
enabled bool Enable Storage DRS for this datastore cluster. Default:
false.- sdrs_
free_ floatspace_ threshold The free space threshold to use. When set to
utilization,drs_space_utilization_thresholdis used, and when set tofreeSpace,drs_free_space_thresholdis used. Default:utilization.- sdrs_
free_ strspace_ threshold_ mode The free space threshold to use. When set to utilization, drs_space_utilization_threshold is used, and when set to freeSpace, drs_free_space_threshold is used.
- sdrs_
free_ floatspace_ utilization_ difference The threshold, in percent, of difference between space utilization in datastores before storage DRS makes decisions to balance the space. Default:
5percent.- sdrs_
io_ strbalance_ automation_ level Overrides the default automation settings when correcting I/O load imbalances.
- sdrs_
io_ floatlatency_ threshold The I/O latency threshold, in milliseconds, that storage DRS uses to make recommendations to move disks from this datastore. Default:
15seconds.- sdrs_
io_ boolload_ balance_ enabled Enable I/O load balancing for this datastore cluster. Default:
true.- sdrs_
io_ floatload_ imbalance_ threshold The difference between load in datastores in the cluster before storage DRS makes recommendations to balance the load. Default:
5percent.- sdrs_
io_ floatreservable_ iops_ threshold The threshold of reservable IOPS of all virtual machines on the datastore before storage DRS makes recommendations to move VMs off of a datastore. Note that this setting should only be set if
sdrs_io_reservable_percent_thresholdcannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set to roughly 50-60% of the worst case peak performance of the backing LUNs.- sdrs_
io_ floatreservable_ percent_ threshold The threshold, in percent, of actual estimated performance of the datastore (in IOPS) that storage DRS uses to make recommendations to move VMs off of a datastore when the total reservable IOPS exceeds the threshold. Default:
60percent.- sdrs_
io_ strreservable_ threshold_ mode The reservable IOPS threshold setting to use,
sdrs_io_reservable_percent_thresholdin the event ofautomatic, orsdrs_io_reservable_iops_thresholdin the event ofmanual. Default:automatic.- sdrs_
load_ floatbalance_ interval The storage DRS poll interval, in minutes. Default:
480minutes.- sdrs_
policy_ strenforcement_ automation_ level Overrides the default automation settings when correcting storage and VM policy violations.
- sdrs_
rule_ strenforcement_ automation_ level Overrides the default automation settings when correcting affinity rule violations.
- sdrs_
space_ strbalance_ automation_ level Overrides the default automation settings when correcting disk space imbalances.
- sdrs_
space_ floatutilization_ threshold The threshold, in percent of used space, that storage DRS uses to make decisions to migrate VMs out of a datastore.
- sdrs_
vm_ strevacuation_ automation_ level Overrides the default automation settings when generating recommendations for datastore evacuation.
- List[str]
The IDs of any tags to attach to this resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphereTerraform Provider.