-
Notifications
You must be signed in to change notification settings - Fork 52
Add HPOVResourceToScope
Add supported resource to Scope.
Add-HPOVResourceToScope [-Scope] <HPOneView.Appliance.ScopeCollection> [-InputObject] <Object>[ [-Async] <SwitchParameter>][ [-ApplianceConnection] <Array>] [<CommonParameters>]
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
-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>
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 |
-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)
HPOneView.Appliance.ScopeCollection
Scope resource object from Get-HPOVScope.
HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]
Asyncronous task resource that updates the Scope and associated resources.
-------------------------- EXAMPLE 1 --------------------------$Resources += Get-HPOVNetwork -Name ProdVLan* $Resources += Get-HPOVServer -Name Encl1* Get-HPOVScope -Name MyScope | Add-HPOVResourceToScope -InputObject $Resources
Add the resources collected to the MyScope scope.
Add supported resource to Scope.
Add-HPOVResourceToScope [-Scope] <HPOneView.Appliance.ScopeCollection> [-InputObject] <Object>[ [-Async] <SwitchParameter>][ [-ApplianceConnection] <Array>] [<CommonParameters>]
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
-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>
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 |
-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)
HPOneView.Appliance.ScopeCollection
Scope resource object from Get-HPOVScope.
HPOneView.Appliance.TaskResource [System.Management.Automation.PSCustomObject]
Asyncronous task resource that updates the Scope and associated resources.
-------------------------- EXAMPLE 1 --------------------------$Resources += Get-HPOVNetwork -Name ProdVLan* $Resources += Get-HPOVServer -Name Encl1* Get-HPOVScope -Name MyScope | Add-HPOVResourceToScope -InputObject $Resources
Add the resources collected to the MyScope scope.