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
Retrieves server profile template resources from an HPE OneView appliance. Supports filtering by name, label, or server hardware type.Syntax
Description
Get-OVServerProfileTemplate queries the HPE OneView appliance for server profile template resources. Templates define a reusable configuration baseline for server profiles. When called without parameters, all templates visible within the caller’s current scope are returned.
- Use
-Nameto filter by template name (supports wildcard characters). - Use
-ServerHardwareTypeto return only templates compatible with a given server hardware type. - Use
-Labelto filter by assigned label. - Use
-Detailedto include per-category compliance metadata. - Use
-Exportwith-Locationto serialise matching templates to JSON files.
Parameters
Name of the template to retrieve. Accepts wildcard characters (
*). Alias: profile.Server hardware type object (from
Get-OVServerHardwareType). When provided, returns only templates targeting that hardware type. Accepts pipeline input.Filter results to templates that have been assigned the specified label.
Limits results to resources belonging to the specified HPE OneView scope. Defaults to
AllResourcesInScope.Return extended detail, including per-category consistency metadata, for each matching template.
Export each matching template to a JSON file. Requires
-Location. Alias: x.Directory path where exported JSON files will be written. The directory is created if it does not exist. Requires
-Export. Alias: save.Specifies the HPE OneView appliance connection to query. Defaults to the default connected session. Alias:
Appliance.Examples
Get all server profile templates
Get a template by name
Get templates for a specific server hardware type
SY 480 Gen10 1 hardware type.
Export all templates to disk
C:\Backup\Templates.
Output
HPEOneView.ServerProfileTemplate — One or more server profile template objects.