Two Different Commands for Enabling Allocation?

What is the difference between:

curl -XPUT "http://localhost:9200/_cluster/settings" -d'{ "persistent" : { "cluster.routing.allocation.enable" : "all" } }'

and:

curl -XPUT "http://$(hostname --ip-address):9200/_settings" -d'{ "index.routing.allocation.disable_allocation" : "false" }'

Enable: true or Disable:false??

Aren't those the same thing??