public interface LocalAccounts extends Service, LocalAccountsTypes
LocalAccounts
interface provides methods to manage local user
account. This interface was added in vSphere API 6.7.LocalAccountsTypes.Config, LocalAccountsTypes.Info, LocalAccountsTypes.UpdateConfig
_VAPI_SERVICE_ID
Modifier and Type | Method and Description |
---|---|
void |
create(java.lang.String username,
LocalAccountsTypes.Config config)
Create a new local user account.
|
void |
create(java.lang.String username,
LocalAccountsTypes.Config config,
AsyncCallback<java.lang.Void> asyncCallback)
Create a new local user account.
|
void |
create(java.lang.String username,
LocalAccountsTypes.Config config,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Create a new local user account.
|
void |
create(java.lang.String username,
LocalAccountsTypes.Config config,
InvocationConfig invocationConfig)
Create a new local user account.
|
void |
delete(java.lang.String username)
Delete a local user account.
|
void |
delete(java.lang.String username,
AsyncCallback<java.lang.Void> asyncCallback)
Delete a local user account.
|
void |
delete(java.lang.String username,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Delete a local user account.
|
void |
delete(java.lang.String username,
InvocationConfig invocationConfig)
Delete a local user account.
|
LocalAccountsTypes.Info |
get(java.lang.String username)
Get the local user account information.
|
void |
get(java.lang.String username,
AsyncCallback<LocalAccountsTypes.Info> asyncCallback)
Get the local user account information.
|
void |
get(java.lang.String username,
AsyncCallback<LocalAccountsTypes.Info> asyncCallback,
InvocationConfig invocationConfig)
Get the local user account information.
|
LocalAccountsTypes.Info |
get(java.lang.String username,
InvocationConfig invocationConfig)
Get the local user account information.
|
java.util.List<java.lang.String> |
list()
Get a list of the local user accounts.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Get a list of the local user accounts.
|
void |
list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback,
InvocationConfig invocationConfig)
Get a list of the local user accounts.
|
java.util.List<java.lang.String> |
list(InvocationConfig invocationConfig)
Get a list of the local user accounts.
|
void |
set(java.lang.String username,
LocalAccountsTypes.Config config)
Set local user account properties.
|
void |
set(java.lang.String username,
LocalAccountsTypes.Config config,
AsyncCallback<java.lang.Void> asyncCallback)
Set local user account properties.
|
void |
set(java.lang.String username,
LocalAccountsTypes.Config config,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Set local user account properties.
|
void |
set(java.lang.String username,
LocalAccountsTypes.Config config,
InvocationConfig invocationConfig)
Set local user account properties.
|
void |
update(java.lang.String username,
LocalAccountsTypes.UpdateConfig config)
Update selected fields in local user account properties.
|
void |
update(java.lang.String username,
LocalAccountsTypes.UpdateConfig config,
AsyncCallback<java.lang.Void> asyncCallback)
Update selected fields in local user account properties.
|
void |
update(java.lang.String username,
LocalAccountsTypes.UpdateConfig config,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Update selected fields in local user account properties.
|
void |
update(java.lang.String username,
LocalAccountsTypes.UpdateConfig config,
InvocationConfig invocationConfig)
Update selected fields in local user account properties.
|
LocalAccountsTypes.Info get(java.lang.String username)
Synchronous method overload. Result of the invocation will be reported as a method return value.
LocalAccountsTypes.Info get(java.lang.String username, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
void get(java.lang.String username, AsyncCallback<LocalAccountsTypes.Info> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
Local user account information
Operation Errors:
NotFound
- If the account is not found
Error
- Generic error
username
- User login nameasyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(java.lang.String username, AsyncCallback<LocalAccountsTypes.Info> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
Local user account information
Operation Errors:
NotFound
- If the account is not found
Error
- Generic error
username
- User login nameasyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.util.List<java.lang.String> list()
Synchronous method overload. Result of the invocation will be reported as a method return value.
com.vmware.appliance.local_accounts
.Error
- Generic errorjava.util.List<java.lang.String> list(InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.com.vmware.appliance.local_accounts
.Error
- Generic errorvoid list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Invocation Result:
List of identifiers
The return value will contain identifiers for the resource type: com.vmware.appliance.local_accounts
.
Operation Errors:
Error
- Generic error
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void list(AsyncCallback<java.util.List<java.lang.String>> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Invocation Result:
List of identifiers
The return value will contain identifiers for the resource type: com.vmware.appliance.local_accounts
.
Operation Errors:
Error
- Generic error
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void create(java.lang.String username, LocalAccountsTypes.Config config)
Synchronous method overload. Result of the invocation will be reported as a method return value.
username
- User login name
The parameter must be an identifier for the resource type: com.vmware.appliance.local_accounts
.config
- User configurationAlreadyExists
- If an account already existsInvalidArgument
- If a username is invalid (username is validated against
[a-zA-Z0-9][a-zA-Z0-9\-\.@]*[a-zA-Z0-9] pattern)Error
- Generic errorvoid create(java.lang.String username, LocalAccountsTypes.Config config, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
username
- User login name
The parameter must be an identifier for the resource type: com.vmware.appliance.local_accounts
.config
- User configurationinvocationConfig
- Configuration for the method invocation.AlreadyExists
- If an account already existsInvalidArgument
- If a username is invalid (username is validated against
[a-zA-Z0-9][a-zA-Z0-9\-\.@]*[a-zA-Z0-9] pattern)Error
- Generic errorvoid create(java.lang.String username, LocalAccountsTypes.Config config, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
AlreadyExists
- If an account already exists
InvalidArgument
- If a username is invalid (username is validated against
[a-zA-Z0-9][a-zA-Z0-9\-\.@]*[a-zA-Z0-9] pattern)
Error
- Generic error
username
- User login name
The parameter must be an identifier for the resource type: com.vmware.appliance.local_accounts
.config
- User configurationasyncCallback
- Receives the status (progress, result or error) of the operation invocation.void create(java.lang.String username, LocalAccountsTypes.Config config, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
AlreadyExists
- If an account already exists
InvalidArgument
- If a username is invalid (username is validated against
[a-zA-Z0-9][a-zA-Z0-9\-\.@]*[a-zA-Z0-9] pattern)
Error
- Generic error
username
- User login name
The parameter must be an identifier for the resource type: com.vmware.appliance.local_accounts
.config
- User configurationasyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void set(java.lang.String username, LocalAccountsTypes.Config config)
Synchronous method overload. Result of the invocation will be reported as a method return value.
void set(java.lang.String username, LocalAccountsTypes.Config config, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
void set(java.lang.String username, LocalAccountsTypes.Config config, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- If the account is not found
Error
- Generic error
username
- User login name
The parameter must be an identifier for the resource type: com.vmware.appliance.local_accounts
.config
- User configurationasyncCallback
- Receives the status (progress, result or error) of the operation invocation.void set(java.lang.String username, LocalAccountsTypes.Config config, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
NotFound
- If the account is not found
Error
- Generic error
username
- User login name
The parameter must be an identifier for the resource type: com.vmware.appliance.local_accounts
.config
- User configurationasyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void update(java.lang.String username, LocalAccountsTypes.UpdateConfig config)
Synchronous method overload. Result of the invocation will be reported as a method return value.
void update(java.lang.String username, LocalAccountsTypes.UpdateConfig config, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
void update(java.lang.String username, LocalAccountsTypes.UpdateConfig config, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- If the account is not found
Error
- Generic error
username
- User login name
The parameter must be an identifier for the resource type: com.vmware.appliance.local_accounts
.config
- User configurationasyncCallback
- Receives the status (progress, result or error) of the operation invocation.void update(java.lang.String username, LocalAccountsTypes.UpdateConfig config, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
NotFound
- If the account is not found
Error
- Generic error
username
- User login name
The parameter must be an identifier for the resource type: com.vmware.appliance.local_accounts
.config
- User configurationasyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.void delete(java.lang.String username)
Synchronous method overload. Result of the invocation will be reported as a method return value.
void delete(java.lang.String username, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
void delete(java.lang.String username, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
NotFound
- If the account is not found
Error
- Generic error
username
- User login name
The parameter must be an identifier for the resource type: com.vmware.appliance.local_accounts
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void delete(java.lang.String username, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
NotFound
- If the account is not found
Error
- Generic error
username
- User login name
The parameter must be an identifier for the resource type: com.vmware.appliance.local_accounts
.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.