2023-03-28 20:12:41 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2017-08-14 14:36:07 +00:00
|
|
|
package api
|
|
|
|
|
|
|
|
// SegmentList returns all the available LAN segments.
|
|
|
|
func (op *Operator) SegmentList(q *QueryOptions) ([]string, *QueryMeta, error) {
|
|
|
|
var out []string
|
2017-09-01 19:34:27 +00:00
|
|
|
qm, err := op.c.query("/v1/operator/segment", &out, q)
|
2017-08-14 14:36:07 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, nil, err
|
|
|
|
}
|
|
|
|
return out, qm, nil
|
|
|
|
}
|