hmc_lpars
List or find logical partitions (LPARs) on IBM HMC, returning full details, current state, or filtered results by system or partition state.
Instructions
List logical partitions (LPARs) or get/find one.
Resolution priority (first match wins):
lpar_name_or_uuid + state_only=True → str | None — current LPAR state only (uses the cheap quick-property endpoint instead of a full fetch).
lpar_name_or_uuid → dict | None — full LPAR details. Accepts either a PartitionName or a UUID. When both lpar_name_or_uuid and name are supplied, lpar_name_or_uuid takes priority and name is ignored.
name → dict | None — find by PartitionName (exact match).
system_name_or_uuid → list[dict] — all LPARs on that system. Accepts either a SystemName or a UUID.
state → list[dict] — all LPARs whose PartitionState matches the given value (server-side /search/ endpoint).
(no arguments) → list[dict] — all LPARs known to the HMC.
Raises ValueError if state_only=True is supplied without lpar_name_or_uuid. The state filter is ignored when lpar_name_or_uuid or system_name_or_uuid is supplied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| state | No | ||
| state_only | No | ||
| lpar_name_or_uuid | No | ||
| system_name_or_uuid | No |