South Africa has petitioned the International Court of Justice to urge that "Israel" halt its war on Gaza, which the occupation has dismissed "with disgust."