IAerospikeClientSetWhitelist Method

Set IP address whitelist for a role. If whitelist is null or empty, remove existing whitelist from role.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
void SetWhitelist(
	AdminPolicy policy,
	string roleName,
	IList<string> whitelist
)

Parameters

policy  AdminPolicy
admin configuration parameters, pass in null for defaults
roleName  String
role name
whitelist  IListString
list of allowable IP addresses or null. IP addresses can contain wildcards (ie. 10.1.2.0/24).

Exceptions

AerospikeExceptionif command fails

See Also