How to get list of sets from Aerospike Client?


Is there any way I can get the list of sets available in a namespace using AerospikeClient in C#? Any particular set having DB schema from where I can get the list of sets?

Thanks in advance, Jithin

asinfo tool gives you list of all sets in the cluster by namespace and set name plus all other set level params.

$ asinfo -v "sets" -l






In C# client, you have Info class available where you can issue a Request/Response pair request for this asinfo command and parse the response. See C# client API docs, Aerospike - Table of Content and look at Info class.

1 Like

Thanks for the response gupta. Tried below one, but getting name and value as ‘0’. new Info(new Connection(new IPEndPoint(new IPAddress(_ipAddress),_portNo),_timeout),“sets”).GetNameValueParser()

Not a C# expert but I quickly tried this in our DeveloperHub C# sandbox.
I first go through “Setup” “Create” “Read” … and in the “Read” example, I added the following code:

Node node = client.Nodes[0];
Console.Write(Info.Request(node, "sets"));

and I see the following output… my namespace is sandbox and set name is ufodata.

[Execution complete]

Here is screen shot of the C# developer hub on

Also, the C# client library code should have public access I believe. See other examples here: aerospike-client-csharp/ServerInfo.cs at master · aerospike/aerospike-client-csharp · GitHub


It worked!!. Awesome. Thanks. The second parameter in Info.Request - name was a little confusing. Thought it was name of the node, my bad. I think it needs to be renamed as command instead of name .?

This topic was automatically closed 84 days after the last reply. New replies are no longer allowed.