network_pools.go raw
1 package linodego
2
3 import (
4 "context"
5 )
6
7 // ListIPv6Pools lists IPv6Pools
8 func (c *Client) ListIPv6Pools(ctx context.Context, opts *ListOptions) ([]IPv6Range, error) {
9 return getPaginatedResults[IPv6Range](ctx, c, "networking/ipv6/pools", opts)
10 }
11
12 // GetIPv6Pool gets the template with the provided ID
13 func (c *Client) GetIPv6Pool(ctx context.Context, id string) (*IPv6Range, error) {
14 e := formatAPIPath("networking/ipv6/pools/%s", id)
15 return doGETRequest[IPv6Range](ctx, c, e)
16 }
17