Skip to content

Remove-OVResourceFromScope

Syntax

Remove-OVResourceFromScope
    [-Scope] <HPEOneView.Appliance.ScopeCollection>
    [-InputObject] <Object>
    [-Async]
    [-ApplianceConnection <Array>]
    [<CommonParameters>]

Description

This Cmdlet will add supported resources to a specified Scope. All the resources in these categories can be added to or removed from a scope:

  • Enclosures
  • Server Hardware
  • Networks (Ethernet, FC, and FCoE)
  • Network Sets
  • Interconnects, excluding SAS resources
  • Logical Interconnects, excluding SAS resources
  • Logical Interconnect Groups, excluding SAS resources
  • Switches
  • Logical Switches
  • Logical Switch Groups
Info

Resources in other categories are considered to be included in all scopes, and they cannot be removed.

Info

Minimum required privileges: Infrastructure administrator

Examples

Example 1

$Resources += Get-OVNetwork -Name ProdVLan* 
$Resources += Get-OVServer -Name Encl1* 
Get-OVScope -Name MyScope | Add-OVResourceToScope -InputObject $Resources

Add the resources collected to the MyScope scope.

Parameters

-Scope <HPEOneView.Appliance.ScopeCollection>

The Scope resource to add the resource(s) to.

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

-InputObject <Object>

Use this parameter to immediately return the async task. By default, the Cmdlet will wait for the task to complete.

Aliases Resource
Required? True
Position? Named
Default value
Accept pipeline input? false
Accept wildcard characters? False

-Async <SwitchParameter>

Use this parameter to immediately return the async task. By default, the Cmdlet will wait for the task to complete.

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

-ApplianceConnection <Array>

Specify one [HPEOneView.Appliance.Connection] object or Name property value.

Aliases Appliance
Required? False
Position? Named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
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

Scope resource object from Get-OVScope.

Return Values

Asynchronous task resource that updates the Scope and associated resources.