Set IP address whitelist for a role. If whitelist is null or empty, remove existing whitelist from role.
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 5.0.0.0 (5.0.0)
Syntax
C#
public void SetWhitelist( AdminPolicy policy, string roleName, IList<string> whitelist )
Parameters
- policy
- Type: Aerospike.ClientAdminPolicy
admin configuration parameters, pass in null for defaults - roleName
- Type: SystemString
role name - whitelist
- Type: System.Collections.GenericIListString
list of allowable IP addresses or null. IP addresses can contain wildcards (ie. 10.1.2.0/24).
Implements
IAerospikeClientSetWhitelist(AdminPolicy, String, IListString)Exceptions
Exception | Condition |
---|---|
AerospikeException | if command fails |
See Also