Save HPOVServerProfile - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Save-HPOVServerProfile

Save the contents of a Server Profile to the appliance.

SYNTAX

Save-HPOVServerProfile [-InputObject] <Object>[ [-Async] <SwitchParameter>][ [-ApplianceConnection] <Array>] [<CommonParameters>]

Detailed Description

This Cmdlet allows administrators to save the modified Server Profile object within the current PowerShell session to the target appliance.

Parameters

-ApplianceConnection <Array>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? False
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Async <SwitchParameter>

Use this parameter to immediately return the async task. By default, the Cmdlet will wait for the task to complete.

Aliases None
Required? False
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-InputObject <Object>

Server Profile object to be saved.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

HPOneView.ServerProfile

A Server Profile resource object from Get-ServerProfile that was modified and needs to be saved.

Return Values

HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]

Async task Resource object for monitoring the enclosure import process.

Examples

 -------------------------- EXAMPLE 1 --------------------------

$MyProfile = Get-HPOVServerProfile -Name "My Profile 1" -ErrorAction Stop $MyProfile.name = "My Profile NewName 1" Save-HPOVServerProfile -InputObject $MyProfile

Get a Server Profile, update its name, then save.

Related Links


Top

HPE OneView 4.00 Library

Save-HPOVServerProfile

Save the contents of a Server Profile to the appliance.

SYNTAX

Save-HPOVServerProfile [-InputObject] <Object>[ [-Async] <SwitchParameter>][ [-ApplianceConnection] <Array>] [<CommonParameters>]

Detailed Description

This Cmdlet allows administrators to save the modified Server Profile object within the current PowerShell session to the target appliance.

Parameters

-ApplianceConnection <Array>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? False
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Async <SwitchParameter>

Use this parameter to immediately return the async task. By default, the Cmdlet will wait for the task to complete.

Aliases None
Required? False
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-InputObject <Object>

Server Profile object to be saved.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

HPOneView.ServerProfile

A Server Profile resource object from Get-ServerProfile that was modified and needs to be saved.

Return Values

HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]

Async task Resource object for monitoring the enclosure import process.

Examples

 -------------------------- EXAMPLE 1 --------------------------

$MyProfile = Get-HPOVServerProfile -Name "My Profile 1" -ErrorAction Stop $MyProfile.name = "My Profile NewName 1" Save-HPOVServerProfile -InputObject $MyProfile

Get a Server Profile, update its name, then save.

Related Links


Top
⚠️ **GitHub.com Fallback** ⚠️