CreateHardwareAccount()
You can use the CreateHardwareAccount()
method to create an IBMTS2145_HardwareAccount instance. The CreateHardwareAccount()
method belongs to the IBMTS2145_AccountManagementService class.
Parameters
Table 233 shows the parameters you can specify for
the CreateHardwareAccount() method:
Table 233. CreateHardwareAccount() parameters
|
Parameter |
Type |
Description |
| Name |
String |
Defines the WWPN that must be identical to the UserID
value |
| UserID |
String |
Indicates the WWPN |
| UserIDType |
Uint16 |
Specifies the WWPN |
| [Host[]] |
String |
Defines the host name |
You can specify other applicable parameters, but you must set them to null;
otherwise, the CreateHardwareAccount() method fails.
Return values
The CreateHardwareAccount() method returns one of the following error codes:
- 0: The account was successfully created or modified.
- 2: An unexpected error occurred.
- 5: The number or type of parameters that have been passed is incorrect.
- 0x8000: The UserIDType is not equal to 2.
- 0x8001: The name and UserID are different.
- 0x8002: One of the unsupported parameters is not null.
- 0x9000 to 0x9FFF: This range represents various SAN Volume Controller return
codes and messages