Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Returns one or more scope objects from an HPE OneView appliance.Syntax
Description
Get-OVScope retrieves scope definitions from the appliance. Scopes are named collections of resources used to implement role-based access control at a granular level. By assigning a user a role within a specific scope, you restrict that role’s permissions to only the resources belonging to that scope.
Scope objects returned by this cmdlet can be passed to New-OVUser or Set-OVUser via the -ScopePermissions parameter, and to Add-OVResourceToScope to manage scope membership.
Wildcard characters (*) are supported in the Name parameter.
Parameters
The name of the scope to retrieve. Supports wildcard characters (
*). When omitted, all scopes are returned.The appliance connection object or name. Defaults to the default connected session in
$ConnectedSessions. Accepts an array of connections to query multiple appliances. Aliased as Appliance.Examples
List all scopes
Get a specific scope by name
Production.
Use a wildcard to find scopes by pattern
Prod.
Get a scope to use in a permission assignment
Production scope and restricts jsmith’s Server administrator role to that scope.
Output
HPEOneView.Appliance.ScopeCollection
Each returned object includes the following key properties:
| Property | Type | Description |
|---|---|---|
Name | String | The scope name. |
Description | String | An optional description. |
Members | Collection | The resources currently assigned to this scope. |
Uri | String | The REST URI for this scope resource. |