Create user defined role with optional privileges and whitelist.
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 5.3.0.0 (5.3.0)
Syntax
C#
void CreateRole( AdminPolicy policy, string roleName, IList<Privilege> privileges, IList<string> whitelist )
Parameters
- policy
- Type: Aerospike.ClientAdminPolicy
admin configuration parameters, pass in null for defaults - roleName
- Type: SystemString
role name - privileges
- Type: System.Collections.GenericIListPrivilege
optional list of privileges assigned to role. - whitelist
- Type: System.Collections.GenericIListString
optional list of allowable IP addresses assigned to role. IP addresses can contain wildcards (ie. 10.1.2.0/24).
Exceptions
Exception | Condition |
---|---|
AerospikeException | if command fails |
See Also