Remove HPOVLogicalSwitchGroup - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Remove-HPOVLogicalSwitchGroup

Remove a new Logical Switch Group resource.

SYNTAX

Remove-HPOVLogicalSwitchGroup [-InputObject] <Object>[ [-ApplianceConnection] <Object>][ [-Force] <SwitchParameter>] [-WhatIf] <>[ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

This Cmdlet will remove the configured Logical Switch Group from the requested appliance(s). You cannot delete a logical switch group while it is being used by one or more logical switches. To delete the logical switch group, first delete the logical switches using the logical switch group. Required privileges: Infrastructure administrator or Network administrator

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

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

-Confirm <SwitchParameter>

Bypass the confirmation prompt, and process all of the objects.

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

-Force <SwitchParameter>

Force remove resource, even if there are communication problems.

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

-InputObject <Object>

The Logical Switch resource Name or Object to update.

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

-WhatIf <>

Aliases wi
Required?
Position? named
Default value
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.Networking.LogicalSwitchGroup [System.Management.Automation.PSCustomObject]

Logical Switch Group resource.

Return Values

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

The async task resource object results.

System.Collections.ArrayList <HPOneView.Appliance.TaskResource>

Collection of remove Logical Switch async task resources.

Examples

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

Get-HPOVLogicalSwitchGroup | Remove-HPOVLogicalSwitchGroup

Remove all logical switch group resources found on the default appliance connection.

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

Get-HPOVLogicalSwitchGroup -Name "My Logical Switch Group Policy 1" | Remove-HPOVLogicalSwitchGroup -confirm:$false

Remove the "My Logical SwitchGroup Policy 1" resource.

Related Links


Top

HPE OneView 4.00 Library

Remove-HPOVLogicalSwitchGroup

Remove a new Logical Switch Group resource.

SYNTAX

Remove-HPOVLogicalSwitchGroup [-InputObject] <Object>[ [-ApplianceConnection] <Object>][ [-Force] <SwitchParameter>] [-WhatIf] <>[ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

This Cmdlet will remove the configured Logical Switch Group from the requested appliance(s). You cannot delete a logical switch group while it is being used by one or more logical switches. To delete the logical switch group, first delete the logical switches using the logical switch group. Required privileges: Infrastructure administrator or Network administrator

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

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

-Confirm <SwitchParameter>

Bypass the confirmation prompt, and process all of the objects.

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

-Force <SwitchParameter>

Force remove resource, even if there are communication problems.

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

-InputObject <Object>

The Logical Switch resource Name or Object to update.

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

-WhatIf <>

Aliases wi
Required?
Position? named
Default value
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.Networking.LogicalSwitchGroup [System.Management.Automation.PSCustomObject]

Logical Switch Group resource.

Return Values

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

The async task resource object results.

System.Collections.ArrayList <HPOneView.Appliance.TaskResource>

Collection of remove Logical Switch async task resources.

Examples

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

Get-HPOVLogicalSwitchGroup | Remove-HPOVLogicalSwitchGroup

Remove all logical switch group resources found on the default appliance connection.

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

Get-HPOVLogicalSwitchGroup -Name "My Logical Switch Group Policy 1" | Remove-HPOVLogicalSwitchGroup -confirm:$false

Remove the "My Logical SwitchGroup Policy 1" resource.

Related Links


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