Doping rules stop PM from having a beer with victorious Black Caps

Prime Minister John Key tried to get into the Eden Park changing room to congratulate the Black Caps - but was stopped because of ICC doping rules.

He watched much of the game against Australia with Australian Prime Minister Tony Abbott, who had to leave early to catch a flight home.

Mr Key left with Mr Abbott to accompany him to the airport, and then returned to Eden Park.

He told TV ONE's Breakfast he wanted to get into the dressing shed to have a beer with "Brendon and the boys", but wasn't allowed into the room before the players arrived because of ICC doping rules.

Instead, he said he watched the thrilling end to the game on a television alongside Sports Minister Jonathan Coleman.

Mr Key said the close finish was not what he was expecting and at one stage he thought "this feels like the Rugby World Cup final".

Cricket fans around the country are still recovering from the thrilling last-gasp victory by the Black Caps over the World Cup favourites.

The contest went down to the wire despite a woeful target of just 152 being posted by Australia.

Predictions of big totals collapsed with the Australian innings after Man of the Match Trent Boult took 5-27.

But the Black Caps made hard work of the chase, with Mitchell Starc twice on a hat-trick as he steered the Aussies from 1-78 to 9-146.

Kane Williamson hammered a six off Pat Cummins to bring up the winning runs in the 24th over.