-
Notifications
You must be signed in to change notification settings - Fork 52
Remove HPOVResourceFromLabel
Remove association of resource with existing Label.
Remove-HPOVResourceFromLabel [-Name] <String> [-InputObject] <Object>[ [-ApplianceConnection] <Object>] [-WhatIf] <> [-Confirm] <> [<CommonParameters>]
Remove-HPOVResourceFromLabel [-InputObject] <Object> [-RemoveAllLabelsFromResource] <SwitchParameter>[ [-ApplianceConnection] <Object>] [-WhatIf] <> [-Confirm] <> [<CommonParameters>]
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.
-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)
System.Management.Automation.PSCustomObject
Resource to remove label association.
System.Management.Automation.PSCustomObject
The created or modified Label resource.
-------------------------- 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.
Remove association of resource with existing Label.
Remove-HPOVResourceFromLabel [-Name] <String> [-InputObject] <Object>[ [-ApplianceConnection] <Object>] [-WhatIf] <> [-Confirm] <> [<CommonParameters>]
Remove-HPOVResourceFromLabel [-InputObject] <Object> [-RemoveAllLabelsFromResource] <SwitchParameter>[ [-ApplianceConnection] <Object>] [-WhatIf] <> [-Confirm] <> [<CommonParameters>]
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.
-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)
System.Management.Automation.PSCustomObject
Resource to remove label association.
System.Management.Automation.PSCustomObject
The created or modified Label resource.
-------------------------- 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.