List
Get services
client.V1.Services.List(ctx) (*ServicesarrayV1ServiceListResponse, error)
get/v1/services
Fetches a list of services used by Metronome and the associated IP addresses. IP addresses are not necessarily unique between services. In most cases, IP addresses will appear in the list at least 30 days before they are used for the first time.
Returns
V1ServiceListResponsestruct
package main
import (
"context"
"fmt"
"github.com/Metronome-Industries/metronome-go"
"github.com/Metronome-Industries/metronome-go/option"
)
func main() {
client := metronome.NewClient(
option.WithBearerToken("My Bearer Token"),
)
services, err := client.V1.Services.List(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", services.Services)
}
200 Example
{
"services": [
{
"ips": [
"string"
],
"name": "name",
"usage": "makes_connections_from"
}
]
}