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.1.1.0 (5.1.1)
Syntax
C#
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).
Exceptions
Exception | Condition |
---|---|
AerospikeException | if command fails |
See Also