[Rest Client] Aerospike Rest Client

Hi, I was exploring rest client API documentations to check my one of user case is to

  1. Delete the records using secondary index
  2. Fetch the records using Secondary index.

But I did not find clear documentation to achieve this.

https://www.aerospike.com/apidocs/rest

Can somebody help here?

If I understand that you are trying to do something like: select all records where record[bin] == age,

the REST Client does not currently have support for the Query and Scan methods, so that operation is not currently possible.

Yes, I would like to know whether it is possible to delete the records using column which is secondary index in Aerospike.

Using primary key, I can do this where key is primary key.

I have use case where i have set secondary key also one of columns and I would like to delete the records using that Key. Same as like above

@Albot @rmarks @kporter^^

That is not currently possible with the REST client.

I believe the only way to achieve this, currently from any client, is to use a Background UDF.

Hello, I see there is scan API in newest REST client API reference. But there is still no query API. Is there any plan to support query in REST client?

Thanks!

The REST client seems to indeed be lacking that feature at this point (confirmed by this matrix).

I believe this will be added in the future… Probably after the whole secondary index sub-system is refreshed on the server side, sometimes in the first part of next year. This is just a guess from my side, but I will update here if I find out further details.

Get it, Thanks for update!

@qingtiaz, the query API is now added with the release of Rest Gateway 2.0. We renamed the Rest Client. The new API supports PI queries, SI queries via an optional filter, pagination, and query by partition. I hope this helps!

1 Like