Skip to main content

Set-LXCAResourceView

This cmdlet modifies the access-control settings for a specific device.

Note
  • Only users with lxc-supervisor or lxc-security-admin authority can modify the access-control settings.

  • You cannot pipe objects to this cmdlet.

Syntax

Set-LXCAResourceView [-Connection LXCAConnection] 
[-RoleGroupNames String[]]
[-PublicAccess Boolean]
-Uuid String
{-Chassis | -Server | -Storage | -Switch}
[CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
-RoleGroupName String[]
Specifies the name of one or more role groups. You can use the Get-LXCARoleGroup cmdlet to obtain the role-group names.
-PublicAccess Boolean
Indicates whether the device can be accessed by all role groups. This can be one of the following values.
  • true. The device is can be access by all role group.

  • false. The device is restricted to specific role groups.

-Uuid String
Specifies the UUID of the device. You can use the Get-LXCAChassis, Get-LXCARackSwitch, Get-LXCAServer, Get-LXCAThinkServer, and Get-LXCAStorageNode cmdlets to obtain the device UUIDs.
-Chassis
Indicates that the specified UUID is for a managed chassis.
-Server
Indicates that the specified UUID is for a managed server.
-Storage
Indicates that the specified UUID is for a managed storage device.
-Switch
Indicates that the specified UUID is for a managed switch.
CommonParameters
This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.

Results

This cmdlet does not return an object.

Examples

The following example modifies public access and role groups for a specific managed server.

$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred

Set-LXCAResourceView -Uuid $uuid -server -PublicAccess $true -RoleGroupNames $roleGroupName1,$roleGroupName2

Disconnect-LXCA