Article 51 of the UN Charter pertaining to legitimate defence would conclude that Irans retaliation to Israel attacking their Embassy in Damascus on April 1st, which is considered sovereign territory of Iran, is perfectly legal under international law.