Skip to content

netbox_prefix - Cannot resolve keyword 'site_id' into field #826

@jbcraig

Description

@jbcraig

Netbox: v4.4.0
Provider: 5.1

resource "netbox_prefix" "netbox_subnet_prefixes" {
description = "my-subnet"
id = (known after apply)
prefix = "10.0.0.0/26"
site_id = 1700
status = "active"
tags_all = (known after apply)
}

Apply results in:

Error: [POST /ipam/prefixes/][500] ipam_prefixes_create default {"error":"Cannot resolve keyword 'site_id' into field. Choices are: _children, _depth, _location, _location_id, _region, _region_id, _site, _site_group, _site_group_id, _site_id, bookmarks, comments, contacts, created, custom_field_data, description, id, is_pool, journal_entries, last_updated, location, mark_utilized, prefix, region, role, role_id, scope, scope_id, scope_type, scope_type_id, site, site_group, status, subscriptions, tagged_items, tags, tenant, tenant_id, vlan, vlan_id, vrf, vrf_id","exception":"FieldError","netbox_version":"4.4.0","python_version":"3.10.12"}

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