Skip to content

error no value given for required property interface_count #182

Closed
@yourh3ro

Description

@yourh3ro

I was just trying to make it work.

package main

import (
	"context"
	"log"

	"github.com/netbox-community/go-netbox/v4"
)

func main() {
	ctx := context.Background()
	c := netbox.NewAPIClientFor("https://netbox.demo.com", "88x7agsxxyxuhbx8iyg")

	res, _, err := c.VirtualizationAPI.VirtualizationVirtualMachinesList(ctx).Limit(1).Execute()

	if err != nil {
		log.Fatal(err)
	}

	log.Printf("%v", res.Results)
}

I get an error every time

2024/07/25 23:03:53 no value given for required property interface_count
exit status 1

I tried to follow the instructions and add

res, _, err := c.VirtualizationAPI.VirtualizationVirtualMachinesList(ctx).InterfaceCount([]int32{0}).Limit(1).Execute()

But I got the same error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions