Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Retrieve one or more enclosure group objects from the HPE OneView appliance.Syntax
Description
Get-OVEnclosureGroup retrieves enclosure group resource objects from HPE OneView. An enclosure group is a logical configuration template that defines the interconnect bay layout and Logical Interconnect Group (LIG) mappings for a set of enclosures of the same type.
Enclosure groups are used when:
- Adding a c-Class enclosure to managed mode with
Add-OVEnclosure. - Creating a logical enclosure for HPE Synergy frames with
New-OVLogicalEnclosure. - Applying consistent interconnect configuration across multiple enclosures.
-Name to filter results by name (wildcards supported). Use -Export to save the enclosure group definition as a JSON file for backup or migration.
Parameters
The name (or wildcard pattern) of the enclosure group to retrieve. Supports
* and ? wildcard characters.A file system path to export the enclosure group object(s) as a JSON file. The parent directory must exist. Alias:
-exportFile, -x.Example: C:\Backups\enclosure-groups.jsonThe HPE OneView appliance connection object or connection name. Defaults to the current default connection stored in
${Global:ConnectedSessions}.Examples
Example 1: List all enclosure groups
Return all enclosure groups defined on the appliance.Example 2: Get a specific enclosure group
Retrieve a single enclosure group by exact name and store it in a variable.Example 3: Filter with wildcard
Return all enclosure groups whose names containSynergy.
Example 4: Export enclosure group definitions to JSON
Save all enclosure group definitions to a JSON file for backup.Example 5: Use the group object with Add-OVEnclosure
Retrieve an enclosure group and pass it toAdd-OVEnclosure.
Output
Returns one or moreHPEOneView.EnclosureGroup objects. Key properties include name, enclosureCount, interconnectBayMappings, ipAddressingMode, and uri.
Returns an empty collection when no matching groups are found.
Related cmdlets
New-OVEnclosureGroup— Create a new enclosure group.Set-OVEnclosureGroup— Modify an existing enclosure group.Remove-OVEnclosureGroup— Delete an enclosure group.Add-OVEnclosure— Add a c-Class enclosure using an enclosure group.Get-OVLogicalInterconnectGroup— Retrieve LIG objects referenced by enclosure groups.