list_drs_rules
List DRS rules for a vSphere cluster: VM-VM affinity/anti-affinity and VM-Host rules with type, status, and members. Verify current rules before creating, deleting, or toggling DRS rule settings.
Instructions
[READ] List a cluster's DRS rules: VM-VM affinity/anti-affinity and VM-Host.
Per rule: key, name, type (affinity / antiAffinity / vmHost), enabled, mandatory, and the member VM names (VM-VM) or group names (VM-Host). The verify pair for create/delete/set_drs_rule_enabled.
Returns: Dict with cluster, count, and rules sorted by name. Errors return a dict with "error" + hint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | vCenter target name from config.yaml; omit to use the default target. | |
| cluster | Yes | Exact cluster name. |