Coercive measures taken against a nation violating international law are called "sanctions".
International sanctions are political and financial restrictions that are a piece of discretionary endeavors by nations, multilateral or territorial associations against states or associations either to ensure national security interests, or to ensure universal law, and shield against dangers to worldwide peace and security.