Police stood outside the property on Rosehill Drive during the night while teams spoke to a young man at the window of a second floor flat.
At one point he was seen dangling from the property while relatives shouted his name from behind a police cordon.
Police confirmed this morning that one male has been arrested and that no one was seriously injured.
Inspector Jason Carrigan said: “I can confirm that this incident has been resolved.
“This was an isolated incident and there was no risk to the wider public. I am grateful to the public for their patience while the incident was dealt with.”
Police were first called to Rosehill Drive near North Anderson Road in the city centre at 4.40pm and cordoned off the road.
Later in the evening six officers with helmets and riot shields entered the property.
A paramedic also went into the building at about 11pm. A young man was led from the block of flats into a police vehicle half an hour later.
Residents and customers of nearby shops had been told to avoid the area during the incident.
Police moved to reassure the public.
A Police Scotland spokesman said: “There is no risk to the wider public.
“It is a contained incident we are dealing with.”