IAerospikeClientCreateRole(AdminPolicy, String, IListPrivilege, IListString) Method
Create user defined role with optional privileges and whitelist.
Namespace: Aerospike.ClientAssembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
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).