AerospikeClient.CreateRole(AdminPolicy, String, IList<Privilege>) Method

Create user defined role.

Definition

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

Parameters

policy  AdminPolicy
admin configuration parameters, pass in null for defaults
roleName  String
role name
privileges  IList<Privilege>
privileges assigned to the role.

Implements

IAerospikeClient.CreateRole(AdminPolicy, String, IList<Privilege>)

Exceptions

AerospikeExceptionif command fails

See Also