What is a government representative to a foreign country called?

We call a representative to a foreign country an ambassador.