AssignAccess()
You can use the AssignAccess()
method to create a temporary IBM2145_AccessControlInformation instance that
contains the IBM2145_AuthorizationSubject, IBM2145_AuthorizationTarget, IBMTS2145_HostedACI,
and IBMTS2145_AuthorizedUse associations in the CIMOM repository. The AssignAccess()
method belongs to the IBMTS2145_AuthorizationService class.
Parameters
Table 229 shows the parameters you can specify for
the AssignAccess() method:
Table 229. AssignAccess() parameters
|
Parameter |
Type |
Description |
| Subject |
|
Defines the IBMTS2145_HardwareAccount instance that
is in the same IBMTS2145_Cluster as the IBMTS2145_AuthorizationService instance |
| [AccessRights] |
|
Defines the level of access authority |
| Target |
|
Defines the IBMTS2145_Controller instance with the AuthorizationTarget
parameter set to true that is in the same IBMTS2145_Cluster as
the IBMTS2145_AuthorizationService instance |
Return values
The AssignAccess() method returns one of the following error codes:
- 0: All instances were successfully created.
- 2: An unexpected error occurred.
- 5: The number or type of parameters that have been passed is incorrect.
- 0x1000: The subject parameter is invalid.
- 0x1002: The target parameter is invalid.
- 0x8100: One of the parameters was out of the cluster scope.