-
Notifications
You must be signed in to change notification settings - Fork 52
Remove HPOVServerProfile
Delete profile(s).
Remove-HPOVServerProfile [-ServerProfile] <Object> [-ApplianceConnection] <Object>[ [-force] <SwitchParameter>][ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]
Delete one or multiple profiles.
-ApplianceConnection <Object>
Aliases [-Appliance]
Specify one HPOneView.Appliance.Connection object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.
Default Value: ${Global:ConnectedSessions} | ? Default
Aliases | cf |
Required? | true |
Position? | named |
Default value | (${Global:ConnectedSessions} | ? Default) |
Accept pipeline input? | true (ByPropertyName) |
Accept wildcard characters? | False |
-Confirm <SwitchParameter>
Aliases | cf |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-ServerProfile <Object>
Aliases [-profile, -uri, -name] The server profile object(s), name(s) or URI(s) to be removed.
Aliases | cf |
Required? | true |
Position? | 0 |
Default value | |
Accept pipeline input? | true (ByValue) |
Accept wildcard characters? | False |
-WhatIf <SwitchParameter>
Aliases | cf |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-force <SwitchParameter>
Set to force-delete the profile. For example, force-remove will successfully remove the profile, even when connectivity has been lost to the server or enclosure.
Aliases | cf |
Required? | false |
Position? | named |
Default value | False |
Accept pipeline input? | false |
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)
HPOneView.ServerPRofile [System.Management.Automation.PSCustomObject] Server Profile resource object
System.String Server Profile Name or URI
HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject] A task resource that can be monitored for status of the profile deletion.
System.Collections.ArrayList <HPOneView.Appliance.TaskResource> Multiple task resources that can be monitored for status of the profile deletion.
-------------------------- EXAMPLE 1 --------------------------PS C:\> $task = Remove-HPOVServerProfile -profile "Profile6" PS C:\> Wait-HPOVTaskComplete $task.uri
Remove the profile specifed by name. Wait for remove to complete.
-------------------------- EXAMPLE 2 --------------------------PS C:\> $profile = Get-HPOVServerProfile -name "Profile2" PS C:\> Remove-HPOVServerProfile $profile -confirm:$false
Remove the profile specifed by $profile. Disable confirmation prompt.
-------------------------- EXAMPLE 3 --------------------------PS C:\> Get-HPOVServerProfile | Remove-HPOVServerProfile
Search for all profiles and remove them from appliance.
- [Get-HPOVServer] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVServer)
- [Add-HPOVServer] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Add-HPOVServer)
- [Get-HPOVServerProfile] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVServerProfile)
- [Update-HPOVServerProfile] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Update-HPOVServerProfile)
- [New-HPOVServerProfile] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVServerProfile)
- [New-HPOVServerProfileAssign] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVServerProfileAssign)
- [Copy-HPOVServerProfile] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Copy-HPOVServerProfile)
- [Wait-HPOVTaskComplete] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Wait-HPOVTaskComplete)