blob: df10b856eba1430d11e944f7c9961c4f736e33ac [file] [log] [blame]
ehdouc2b8dcd2017-01-11 06:01:00 +02001package availabilityzones
2
3import (
4 "github.com/gophercloud/gophercloud"
5 "github.com/gophercloud/gophercloud/pagination"
6)
7
8// List will return the existing availability zones.
9func List(client *gophercloud.ServiceClient) pagination.Pager {
10 return pagination.NewPager(client, listURL(client), func(r pagination.PageResult) pagination.Page {
11 return AvailabilityZonePage{pagination.SinglePageBase(r)}
12 })
13}