Create user defined role with optional privileges, whitelist and read/write quotas.
Quotas require server security configuration "enable-quotas" to be set to true.
Namespace: Aerospike.ClientAssembly: AerospikeClient (in AerospikeClient.dll) Version: 4.2.0.0 (4.2.0)
Syntax
Parameters
- policy
- Type: Aerospike.Client AdminPolicy
admin configuration parameters, pass in null for defaults
- roleName
- Type: System String
role name
- privileges
- Type: System.Collections.Generic IList Privilege
optional list of privileges assigned to role.
- whitelist
- Type: System.Collections.Generic IList String
optional list of allowable IP addresses assigned to role. IP addresses can contain wildcards (ie. 10.1.2.0/24).
- readQuota
- Type: System Int32
optional maximum reads per second limit, pass in zero for no limit.
- writeQuota
- Type: System Int32
optional maximum writes per second limit, pass in zero for no limit.
Exceptions
Exception | Condition |
---|---|
Aerospike.Client AerospikeException | if command fails |
See Also