AerospikeClientCreateRole(AdminPolicy, String, IListPrivilege, IListString) Method

Create user defined role with optional privileges and whitelist.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public void CreateRole(
	AdminPolicy policy,
	string roleName,
	IList<Privilege> privileges,
	IList<string> whitelist
)

Parameters

policy  AdminPolicy
admin configuration parameters, pass in null for defaults
roleName  String
role name
privileges  IListPrivilege
optional list of privileges assigned to role.
whitelist  IListString
optional list of allowable IP addresses assigned to role. IP addresses can contain wildcards (ie. 10.1.2.0/24).

Implements

IAerospikeClientCreateRole(AdminPolicy, String, IListPrivilege, IListString)

Exceptions

AerospikeExceptionif command fails

See Also