salt '*' cmd.run 'hostname'
In above cmd => function and run => module function of main function, you can also write your own function and many people already made many of them, you can also use them.
salt '*' disk.usage
Above function is for disk usage