github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/networking/v2/extensions/networkipavailabilities/doc.go (about) 1 /* 2 Package networkipavailabilities provides the ability to retrieve and manage 3 networkipavailabilities through the Neutron API. 4 5 Example of Listing NetworkIPAvailabilities 6 7 allPages, err := networkipavailabilities.List(networkClient, networkipavailabilities.ListOpts{}).AllPages() 8 if err != nil { 9 panic(err) 10 } 11 12 allAvailabilities, err := subnetpools.ExtractSubnetPools(allPages) 13 if err != nil { 14 panic(err) 15 } 16 17 for _, availability := range allAvailabilities { 18 fmt.Printf("%+v\n", availability) 19 } 20 21 Example of Getting a single NetworkIPAvailability 22 23 availability, err := networkipavailabilities.Get(networkClient, "cf11ab78-2302-49fa-870f-851a08c7afb8").Extract() 24 if err != nil { 25 panic(err) 26 } 27 28 fmt.Printf("%+v\n", availability) 29 */ 30 package networkipavailabilities