diff --git a/docs/data-sources/platform.md b/docs/data-sources/platform.md index 117674d8..8983053e 100644 --- a/docs/data-sources/platform.md +++ b/docs/data-sources/platform.md @@ -25,10 +25,13 @@ data "netbox_platform" "PANOS" { - `name` (String) +### Optional + +- `manufacturer_id` (Number) + ### Read-Only - `id` (String) The ID of this resource. - `slug` (String) -- `manufacturer_id` (String) diff --git a/docs/data-sources/prefix.md b/docs/data-sources/prefix.md index a1026933..7971f6d9 100644 --- a/docs/data-sources/prefix.md +++ b/docs/data-sources/prefix.md @@ -17,18 +17,20 @@ description: |- ### Optional -- `cidr` (String, Deprecated) At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `cidr` or `tag` must be given. Conflicts with `prefix`. -- `description` (String) Description to include in the data source filter. At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `cidr` or `tag` must be given. -- `family` (Number) The IP family of the prefix. One of 4 or 6. At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `cidr` or `tag` must be given. -- `prefix` (String) At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `cidr` or `tag` must be given. Conflicts with `cidr`. -- `site_id` (Number) At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `cidr` or `tag` must be given. -- `tag` (String) Tag to include in the data source filter (must match the tag's slug). At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `cidr` or `tag` must be given. +- `cidr` (String, Deprecated) At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `role_id`, `cidr` or `tag` must be given. Conflicts with `prefix`. +- `custom_fields` (Map of String) +- `description` (String) Description to include in the data source filter. At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `role_id`, `cidr` or `tag` must be given. +- `family` (Number) The IP family of the prefix. One of 4 or 6. At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `role_id`, `cidr` or `tag` must be given. +- `prefix` (String) At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `role_id`, `cidr` or `tag` must be given. Conflicts with `cidr`. +- `role_id` (Number) At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `role_id`, `cidr` or `tag` must be given. +- `site_id` (Number) At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `role_id`, `cidr` or `tag` must be given. +- `tag` (String) Tag to include in the data source filter (must match the tag's slug). At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `role_id`, `cidr` or `tag` must be given. - `tag__n` (String) Tag to exclude from the data source filter (must match the tag's slug). Refer to [Netbox's documentation](https://demo.netbox.dev/static/docs/rest-api/filtering/#lookup-expressions) for more information on available lookup expressions. -- `vlan_id` (Number) At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `cidr` or `tag` must be given. -- `vlan_vid` (Number) At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `cidr` or `tag` must be given. -- `vrf_id` (Number) At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `cidr` or `tag` must be given. +- `vlan_id` (Number) At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `role_id`, `cidr` or `tag` must be given. +- `vlan_vid` (Number) At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `role_id`, `cidr` or `tag` must be given. +- `vrf_id` (Number) At least one of `description`, `family`, `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `site_id`, `role_id`, `cidr` or `tag` must be given. ### Read-Only diff --git a/docs/data-sources/prefixes.md b/docs/data-sources/prefixes.md index f2dec271..79168f5f 100644 --- a/docs/data-sources/prefixes.md +++ b/docs/data-sources/prefixes.md @@ -30,7 +30,7 @@ description: |- Required: -- `name` (String) The name of the field to filter on. Supported fields are: `prefix`, `vlan_vid`, `vrf_id`, `vlan_id`, `status`, `site_id`, & `tag`. +- `name` (String) The name of the field to filter on. Supported fields are: `prefix`, `contains`, `vlan_vid`, `vrf_id`, `vlan_id`, `status`, `site_id`, & `tag`. - `value` (String) The value to pass to the specified filter. @@ -42,6 +42,7 @@ Read-Only: - `description` (String) - `id` (Number) - `prefix` (String) +- `site_id` (Number) - `status` (String) - `tags` (Set of String) - `vlan_id` (Number) diff --git a/docs/data-sources/vlans.md b/docs/data-sources/vlans.md index 509f7014..a203e82c 100644 --- a/docs/data-sources/vlans.md +++ b/docs/data-sources/vlans.md @@ -45,6 +45,7 @@ Read-Only: - `role` (Number) - `site` (Number) - `status` (String) +- `tag_ids` (List of Number) - `tenant` (Number) - `vid` (Number) diff --git a/docs/resources/config_template.md b/docs/resources/config_template.md index 61992f99..b99a23db 100644 --- a/docs/resources/config_template.md +++ b/docs/resources/config_template.md @@ -14,16 +14,16 @@ From the [official documentation](https://docs.netbox.dev/en/stable/models/extra > Configuration templates can be used to render device configurations from context data. Templates are written in the Jinja2 language and can be associated with devices roles, platforms, and/or individual devices. -Context data is made available to devices and/or virtual machines based on their relationships to other objects in NetBox. For example, context data can be associated only with devices assigned to a particular site, or only to virtual machines in a certain cluster. +> Context data is made available to devices and/or virtual machines based on their relationships to other objects in NetBox. For example, context data can be associated only with devices assigned to a particular site, or only to virtual machines in a certain cluster. ## Example Usage ```terraform resource "netbox_config_template" "test" { - name = "test" - description = "test description" - template_code = "hostname {{ name }}" - environment_params = jsonencode({"name" = "my-hostname"}) + name = "test" + description = "test description" + template_code = "hostname {{ name }}" + environment_params = jsonencode({ "name" = "my-hostname" }) } ``` diff --git a/docs/resources/device_interface.md b/docs/resources/device_interface.md index 38bcb3c0..7d7d18f1 100644 --- a/docs/resources/device_interface.md +++ b/docs/resources/device_interface.md @@ -37,6 +37,7 @@ resource "netbox_device_interface" "test" { - `description` (String) - `enabled` (Boolean) Defaults to `true`. +- `label` (String) - `lag_device_interface_id` (Number) If this device is a member of a LAG group, you can reference the LAG interface here. - `mac_address` (String) - `mgmtonly` (Boolean) diff --git a/docs/resources/platform.md b/docs/resources/platform.md index ae56166b..1fcc43ad 100644 --- a/docs/resources/platform.md +++ b/docs/resources/platform.md @@ -31,8 +31,8 @@ resource "netbox_platform" "PANOS" { ### Optional +- `manufacturer_id` (Number) - `slug` (String) -- `manufacturer_id` (String) ### Read-Only