Remove HPOVUnmanagedDevice - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Remove-HPOVUnmanagedDevice

Remove an Unmanaged Device.

SYNTAX

Remove-HPOVUnmanagedDevice [-UnmanagedDevice] <Object>[ [-force] <SwitchParameter>] [-ApplianceConnection] <Object>[ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

Use this Cmdlet to remove an Unmanaged Device from the appliance.

Parameters

-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 Appliance
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

-UnmanagedDevice <Object>

Alias [-name, -uri]

The Name, URI or Object of the Unmanaged Device to remove.

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

-WhatIf <SwitchParameter>

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

-force <SwitchParameter>

Set to force-remove the resource.

When the request is accepted by the appliance, it does not return an Async Task Resource.

Aliases None
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)

Input Types

HPOneView.UnmanagedResource [System.Management.Automation.PSCustomObject]

Unmanaged Device resource object

Return Values

System.Management.Automation.PSCustomObject

When using the -Force parameter, a PSCustomObject is returned indicating successful removal of the resource

Examples

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

Remove-HPOVUnmanagedDevice MyDevice

Remove the Unmanaged Device "MyDevice" from the appliance.

 -------------------------- EXAMPLE 2 --------------------------

Remove-HPOVUnmanagedDevice MyDevice -confirm:$false

Remove the Unmanaged Device "MyDevice" from the appliance and do not prompt for confirmation.

 -------------------------- EXAMPLE 3 --------------------------

Get-HPOVUnmanagedDevice | Remove-HPOVUnmanagedDevice

Get all Unmanaged Devices on the appliance and remove them.

Related Links


Top

HPE OneView 4.00 Library

Remove-HPOVUnmanagedDevice

Remove an Unmanaged Device.

SYNTAX

Remove-HPOVUnmanagedDevice [-UnmanagedDevice] <Object>[ [-force] <SwitchParameter>] [-ApplianceConnection] <Object>[ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

Use this Cmdlet to remove an Unmanaged Device from the appliance.

Parameters

-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 Appliance
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

-UnmanagedDevice <Object>

Alias [-name, -uri]

The Name, URI or Object of the Unmanaged Device to remove.

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

-WhatIf <SwitchParameter>

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

-force <SwitchParameter>

Set to force-remove the resource.

When the request is accepted by the appliance, it does not return an Async Task Resource.

Aliases None
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)

Input Types

HPOneView.UnmanagedResource [System.Management.Automation.PSCustomObject]

Unmanaged Device resource object

Return Values

System.Management.Automation.PSCustomObject

When using the -Force parameter, a PSCustomObject is returned indicating successful removal of the resource

Examples

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

Remove-HPOVUnmanagedDevice MyDevice

Remove the Unmanaged Device 'MyDevice' from the appliance.

 -------------------------- EXAMPLE 2 --------------------------

Remove-HPOVUnmanagedDevice MyDevice -confirm:$false

Remove the Unmanaged Device 'MyDevice' from the appliance and do not prompt for confirmation.

 -------------------------- EXAMPLE 3 --------------------------

Get-HPOVUnmanagedDevice | Remove-HPOVUnmanagedDevice

Get all Unmanaged Devices on the appliance and remove them.

Related Links


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