Get loaded config info from each node

hi,

We have below set in config of each node in the es7 cluster. Is there any way I can fetch these values for each node from the api?

    thread_pool.search.queue_size
    thread_pool.search.size
    thread_pool.write.queue_size
    thread_pool.write.size