AerospikeClientCreateRole Method (AdminPolicy, String, IListPrivilege, IListString, Int32, Int32)

Aerospike
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.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public void CreateRole(
	AdminPolicy policy,
	string roleName,
	IList<Privilege> privileges,
	IList<string> whitelist,
	int readQuota,
	int writeQuota
)

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).
readQuota
Type: SystemInt32
optional maximum reads per second limit, pass in zero for no limit.
writeQuota
Type: SystemInt32
optional maximum writes per second limit, pass in zero for no limit.

Implements

IAerospikeClientCreateRole(AdminPolicy, String, IListPrivilege, IListString, Int32, Int32)
Exceptions

ExceptionCondition
AerospikeExceptionif command fails
See Also

Reference