IAerospikeClient.CreateRole(AdminPolicy, String, IList<Privilege>, IList<String>) Method
Create user defined role with optional privileges and whitelist.
Namespace: Aerospike.ClientAssembly: AerospikeClient (in AerospikeClient.dll) Version: 8.0.1+e35566e493546c0887ebb841c8e2a2c6a7cbde18
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 IList<Privilege>
- optional list of privileges assigned to role.
- whitelist IList<String>
-
optional list of allowable IP addresses assigned to role.
IP addresses can contain wildcards (ie. 10.1.2.0/24).