-
Notifications
You must be signed in to change notification settings - Fork 52
Push HPOVAppliancePermission
Change appliance connection active permissions.
Push-HPOVAppliancePermission [-SetActivePermissions] <Object>[ [-ApplianceConnection] <Array>] [<CommonParameters>]
Upon successful login, the caller can change their active permissions, and operate in a less priviledge mode at anytime. The Push-HPOVAppliancePermission Cmdlet will accept a single or collection of [HPOneView.Appliance.ConnectionPermission] objects. A new SessionID token will be stored within the ApplianceConnection, and the ConnectionPermissions within the ActivePermissions property that were not provided will have their State set to "false".
-ApplianceConnection <Array>
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 |
-SetActivePermissions <Object>
One or more [HPOneView.Appliance.ConnectionPermission] objects from an [HPOneView.Appliance.Connection] ActivePermissions property.
Aliases | None |
Required? | true |
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)
None. You cannot pipe objects to this cmdlet.
HPOneView.Appliance.ConnectionPermission
One or more appliance connection permissions and their active state.
-------------------------- EXAMPLE 1 --------------------------$ConnectedSessions[0].ActivePermissions RoleName ScopeName Active -------- --------- ------ Network administrator Site A Admins True Server administrator AllResources True $NewPermissions = $ConnectedSessions[0].ActivePermissions | ? RoleName -match "Network" Push-HPOVAppliancePermission -SetActivePermissions $NewPermissions
Change active permissions by filtering for a specific Role.
-------------------------- EXAMPLE 2 --------------------------$ConnectedSessions[0].ActivePermissions RoleName ScopeName Active -------- --------- ------ Network administrator Site A Admins True Server administrator AllResources True Server administrator AllResources True $NewPermissions = $ConnectedSessions[0].ActivePermissions | ? ScopeName -match "Site A Admins" Push-HPOVAppliancePermission -SetActivePermissions $NewPermissions
Change active permissions by filtering for a specific Scope.
Change appliance connection active permissions.
Push-HPOVAppliancePermission [-SetActivePermissions] <Object>[ [-ApplianceConnection] <Array>] [<CommonParameters>]
Upon successful login, the caller can change their active permissions, and operate in a less priviledge mode at anytime. The Push-HPOVAppliancePermission Cmdlet will accept a single or collection of [HPOneView.Appliance.ConnectionPermission] objects. A new SessionID token will be stored within the ApplianceConnection, and the ConnectionPermissions within the ActivePermissions property that were not provided will have their State set to "false".
-ApplianceConnection <Array>
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 |
-SetActivePermissions <Object>
One or more [HPOneView.Appliance.ConnectionPermission] objects from an [HPOneView.Appliance.Connection] ActivePermissions property.
Aliases | None |
Required? | true |
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)
None. You cannot pipe objects to this cmdlet.
HPOneView.Appliance.ConnectionPermission
One or more appliance connection permissions and their active state.
-------------------------- EXAMPLE 1 --------------------------$ConnectedSessions[0].ActivePermissions RoleName ScopeName Active -------- --------- ------ Network administrator Site A Admins True Server administrator AllResources True $NewPermissions = $ConnectedSessions[0].ActivePermissions | ? RoleName -match 'Network' Push-HPOVAppliancePermission -SetActivePermissions $NewPermissions
Change active permissions by filtering for a specific Role.
-------------------------- EXAMPLE 2 --------------------------$ConnectedSessions[0].ActivePermissions RoleName ScopeName Active -------- --------- ------ Network administrator Site A Admins True Server administrator AllResources True Server administrator AllResources True $NewPermissions = $ConnectedSessions[0].ActivePermissions | ? ScopeName -match 'Site A Admins' Push-HPOVAppliancePermission -SetActivePermissions $NewPermissions
Change active permissions by filtering for a specific Scope.