com.splunk
Class UserCollection
java.lang.Object
com.splunk.Resource
com.splunk.ResourceCollection<T>
com.splunk.EntityCollection<User>
com.splunk.UserCollection
- All Implemented Interfaces:
- java.util.Map<java.lang.String,User>
public class UserCollection
- extends EntityCollection<User>
The UserCollection
class represents a collection of Splunk users who
are registered on the current Splunk server.
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Method Summary |
User |
create(java.lang.String name,
java.lang.String password,
java.lang.String role)
Creates a new Splunk user from a username, password, and role. |
User |
create(java.lang.String name,
java.lang.String password,
java.lang.String[] roles)
Creates a new Splunk user from a username, password, and array of
roles. |
User |
create(java.lang.String name,
java.lang.String password,
java.lang.String[] roles,
java.util.Map args)
Creates a new Splunk user from a username, password, array of
roles, and additional arguments. |
User |
create(java.lang.String name,
java.lang.String password,
java.lang.String role,
java.util.Map args)
Creates a new Splunk user from a username, password, role, and
additional arguments. |
Methods inherited from class com.splunk.ResourceCollection |
clear, containsKey, containsKey, containsValue, entrySet, equals, get, get, hashCode, isEmpty, keySet, list, put, putAll, refresh, remove, size, validate, values, valueSize |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
create
public User create(java.lang.String name,
java.lang.String password,
java.lang.String role)
- Creates a new Splunk user from a username, password, and role.
Usernames must be unique on the system, and are used by the user to log
in to Splunk.
- Parameters:
name
- The username for the new user.password
- The password for the new user.role
- The role to assign to the new user.
- Returns:
- The new user.
create
public User create(java.lang.String name,
java.lang.String password,
java.lang.String[] roles)
- Creates a new Splunk user from a username, password, and array of
roles.
Usernames must be unique on the system, and are used by the user to log
in to Splunk.
- Parameters:
name
- The username for the new user.password
- The password for the new user.roles
- Array of roles to assign to the new user.
- Returns:
- The new user.
create
public User create(java.lang.String name,
java.lang.String password,
java.lang.String role,
java.util.Map args)
- Creates a new Splunk user from a username, password, role, and
additional arguments.
Usernames must be unique on the system, and are used by the user to log
in to Splunk.
- Parameters:
name
- The username for the new user.password
- The password for the new user.role
- The role to assign to the new user.args
- A map of additional arguments. For a list of available
parameters, see
User authentication parameters on
dev.splunk.com.
- Returns:
- The new user.
create
public User create(java.lang.String name,
java.lang.String password,
java.lang.String[] roles,
java.util.Map args)
- Creates a new Splunk user from a username, password, array of
roles, and additional arguments.
Usernames must be unique on the system, and are used by the user to log
in to Splunk.
- Parameters:
name
- The username for the new user.password
- The password for the new user.roles
- Array of roles to assign to the new user.args
- A map of additional arguments. For a list of available
parameters, see
User authentication parameters on
dev.splunk.com .
- Returns:
- The new user.