Skip to content

Add HPOVResourceToScope

Chris Lynch edited this page Nov 4, 2016 · 23 revisions

### HPE OneView 3.00 Library

Add-HPOVResourceToScope

Add supported resource to Scope.

SYNTAX

Add-HPOVResourceToScope [-Scope] <HPOneView.Appliance.ScopeCollection> [-InputObject] <Object>[ [-Async] <SwitchParameter>][ [-ApplianceConnection] <Array>] [<CommonParameters>]

Detailed 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

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

Minimum required privileges: Infrastructure administrator

Parameters

-ApplianceConnection <Array>

Aliases [-Appliance]

Specify one HPOneView.Appliance.Connection object or Name property value.

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

-Async <SwitchParameter>

Immediately return appliance Async task resource to be monitored by the caller.

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

-InputObject <Object>

Specify to return asyncronous task after file upload has completed.

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

-Scope <HPOneView.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

<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.Appliance.ScopeCollection Scope resource object from Get-HPOVScope.

Return Values

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

Asyncronous task resource that updates the Scope and associated resources.

Examples

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

PS C:\> $Resources += Get-HPOVNetwork -Name ProdVLan* PS C:\> $Resources += Get-HPOVServer -Name Encl1* PS C:\> Get-HPOVScope -Name MyScope | Add-HPOVResourceToScope -InputObject $Resources

Add the resources collected to the MyScope scope.

Related Links


Wiki Table of Contents

Clone this wiki locally