The resolution formed the legal basis for military intervention in the Libyan civil war, demanding "an immediate ceasefire" and authorizing the international community to establish a no-fly zone and to use all means necessary short of foreign occupation to protect civilians. Ten Security Council members voted in the affirmative (Bosnia and Herzegovina, Colombia, Gabon, Lebanon, Nigeria, Portugal, South Africa, and permanent members France, the United Kingdom, and the United States). Five (Brazil, Germany, and India, and permanent members China and Russia) abstained, with none opposed.