Remove HPOVNetworkSet - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Remove-HPOVNetworkSet

Remove a network set.

SYNTAX

Remove-HPOVNetworkSet [-NetworkSet] <Object> [-ApplianceConnection] <Object>[ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

Delete a network set and its corresponding default connection type.

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

-NetworkSet <Object>

Aliases [-name, -uri] The network set object(s), name(s) or uri(s) to be deleted. If providing a URI, you must specify an Applinace Connection.

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

<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.NetworkSet [System.Management.Automation.PSCustomObject]

Network Set resource object

Return Values

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

Removal task

Examples

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

$task = Remove-HPOVNetworkSet -networkSet "MyNetSet" Wait-HPOVTaskComplete $task

Remove the network set specifed by name. Wait for remove to complete.

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

$netSet = Get-HPOVNetworkSet -name "MyNetSet" | Remove-HPOVNetwork

Remove the specified network set.

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

Get-HPOVNetworkSet | Remove-HPOVNetworkSet

Search for all network sets and remove them from appliance.

Related Links


Top

HPE OneView 4.00 Library

Remove-HPOVNetworkSet

Remove a network set.

SYNTAX

Remove-HPOVNetworkSet [-NetworkSet] <Object> [-ApplianceConnection] <Object>[ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

Delete a network set and its corresponding default connection type.

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

-NetworkSet <Object>

Aliases [-name, -uri] The network set object(s), name(s) or uri(s) to be deleted. If providing a URI, you must specify an Applinace Connection.

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

<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.NetworkSet [System.Management.Automation.PSCustomObject]

Network Set resource object

Return Values

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

Removal task

Examples

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

$task = Remove-HPOVNetworkSet -networkSet "MyNetSet" Wait-HPOVTaskComplete $task

Remove the network set specifed by name. Wait for remove to complete.

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

$netSet = Get-HPOVNetworkSet -name "MyNetSet" | Remove-HPOVNetwork

Remove the specified network set.

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

Get-HPOVNetworkSet | Remove-HPOVNetworkSet

Search for all network sets and remove them from appliance.

Related Links


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