Remove HPOVResourceFromLabel - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Remove-HPOVResourceFromLabel

Remove association of resource with existing Label.

SYNTAX

Remove-HPOVResourceFromLabel [-Name] <String> [-InputObject] <Object>[ [-ApplianceConnection] <Object>] [-WhatIf] <> [-Confirm] <> [<CommonParameters>]
Remove-HPOVResourceFromLabel [-InputObject] <Object> [-RemoveAllLabelsFromResource] <SwitchParameter>[ [-ApplianceConnection] <Object>] [-WhatIf] <> [-Confirm] <> [<CommonParameters>]

Detailed Description

Labels identify resources so you can organize them into groups. For example, you might want to identify the servers that are used primarily by the Finance team, or identify the storage systems assigned to the Asia/Pacific division.

This Cmdlet will remove the specified resource from the requested label. To remove the resource from all labels, use the -RemoveAllLabelsFromResource switch parameter. If there are no more associated resources with a label, the appliance will automatically delete the label.

Parameters

-ApplianceConnection <Object>

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

-Confirm <>

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

-InputObject <Object>

The resource to remove associatation with the label.

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

-Name <String>

The name of the Label associated with the resource.

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

-RemoveAllLabelsFromResource <SwitchParameter>

Use to remove all associated labels with the provide resource.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? false
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

System.Management.Automation.PSCustomObject

Resource to remove label association.

Return Values

System.Management.Automation.PSCustomObject

The created or modified Label resource.

Examples

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

Get-HPOVNetwork -Name Finance* | Remove-HPOVResourceFromLabel -Name Finance

Remove the Finance network resources from the "Finance" label.

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

Get-HPOVNetwork | Remove-HPOVResourceFromLabel -RemoveAllLabelsFromResource

Remove all label associations from network resources.

Related Links


Top

HPE OneView 4.00 Library

Remove-HPOVResourceFromLabel

Remove association of resource with existing Label.

SYNTAX

Remove-HPOVResourceFromLabel [-Name] <String> [-InputObject] <Object>[ [-ApplianceConnection] <Object>] [-WhatIf] <> [-Confirm] <> [<CommonParameters>]
Remove-HPOVResourceFromLabel [-InputObject] <Object> [-RemoveAllLabelsFromResource] <SwitchParameter>[ [-ApplianceConnection] <Object>] [-WhatIf] <> [-Confirm] <> [<CommonParameters>]

Detailed Description

Labels identify resources so you can organize them into groups. For example, you might want to identify the servers that are used primarily by the Finance team, or identify the storage systems assigned to the Asia/Pacific division.

This Cmdlet will remove the specified resource from the requested label. To remove the resource from all labels, use the -RemoveAllLabelsFromResource switch parameter. If there are no more associated resources with a label, the appliance will automatically delete the label.

Parameters

-ApplianceConnection <Object>

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

-Confirm <>

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

-InputObject <Object>

The resource to remove associatation with the label.

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

-Name <String>

The name of the Label associated with the resource.

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

-RemoveAllLabelsFromResource <SwitchParameter>

Use to remove all associated labels with the provide resource.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? false
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

System.Management.Automation.PSCustomObject

Resource to remove label association.

Return Values

System.Management.Automation.PSCustomObject

The created or modified Label resource.

Examples

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

Get-HPOVNetwork -Name Finance* | Remove-HPOVResourceFromLabel -Name Finance

Remove the Finance network resources from the 'Finance' label.

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

Get-HPOVNetwork | Remove-HPOVResourceFromLabel -RemoveAllLabelsFromResource

Remove all label associations from network resources.

Related Links


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