If you want to reject query for a table, you can add table name to ‘read_block_list’.
curl --location --request POST 'http://localhost:5000/admin/block' \ --header 'Content-Type: application/json' \ -d '{ "operation":"Add", "write_block_list":[], "read_block_list":["my_table"] }'
{ "write_block_list": [], "read_block_list": ["my_table"] }
You can use set operation to clear exist tables and set new tables to ‘read_block_list’ like following example.
curl --location --request POST 'http://localhost:5000/admin/block' \ --header 'Content-Type: application/json' \ -d '{ "operation":"Set", "write_block_list":[], "read_block_list":["my_table1","my_table2"] }'
{ "write_block_list": [], "read_block_list": ["my_table1", "my_table2"] }
You can remove tables from ‘read_block_list’ like following example.
curl --location --request POST 'http://localhost:5000/admin/block' \ --header 'Content-Type: application/json' \ -d '{ "operation":"Remove", "write_block_list":[], "read_block_list":["my_table1"] }'
{ "write_block_list": [], "read_block_list": ["my_table2"] }