without v2.0 or v1,  you get a 404

specify the version or request which version to use in the arguments..
including v2.0 in the URL will leave this script specific to glance v2.0 . You could instead include the V2.0 on the url passed as parameter: glance_url