From 6413c4adea218a53615a397a06b335d397a3547f Mon Sep 17 00:00:00 2001 From: smutel Date: Thu, 29 Jun 2023 12:05:32 +0000 Subject: [PATCH] ci: Go fmt & go generate --- .../json_dcim_virtual_device_contexts_list.md | 46 +++++++++++++++++++ .../json_extras_saved_filters_list.md | 46 +++++++++++++++++++ docs/index.md | 5 +- 3 files changed, 93 insertions(+), 4 deletions(-) create mode 100644 docs/data-sources/json_dcim_virtual_device_contexts_list.md create mode 100644 docs/data-sources/json_extras_saved_filters_list.md diff --git a/docs/data-sources/json_dcim_virtual_device_contexts_list.md b/docs/data-sources/json_dcim_virtual_device_contexts_list.md new file mode 100644 index 000000000..c5221483f --- /dev/null +++ b/docs/data-sources/json_dcim_virtual_device_contexts_list.md @@ -0,0 +1,46 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "netbox_json_dcim_virtual_device_contexts_list Data Source - terraform-provider-netbox" +subcategory: "" +description: |- + Get json output from the dcimvirtualdevicecontextslist Netbox endpoint. +--- + +# netbox_json_dcim_virtual_device_contexts_list (Data Source) + +Get json output from the dcim_virtual_device_contexts_list Netbox endpoint. + +## Example Usage + +```terraform +data "netbox_json_dcim_virtual_device_contexts_list" "test" { + limit = 0 +} + +output "example" { + value = jsondecode(data.netbox_json_dcim_virtual_device_contexts_list.test.json) +} +``` + + +## Schema + +### Optional + +- `filter` (Block Set) Filter the records returned by the query. (see [below for nested schema](#nestedblock--filter)) +- `limit` (Number) The max number of returned results. If 0 is specified, all records will be returned. + +### Read-Only + +- `id` (String) The ID of this resource. +- `json` (String) JSON output of the list of objects for this Netbox endpoint. + + +### Nested Schema for `filter` + +Required: + +- `name` (String) Name of the field to use for filtering. +- `value` (String) Value of the field to use for filtering. + + diff --git a/docs/data-sources/json_extras_saved_filters_list.md b/docs/data-sources/json_extras_saved_filters_list.md new file mode 100644 index 000000000..648b3b9a2 --- /dev/null +++ b/docs/data-sources/json_extras_saved_filters_list.md @@ -0,0 +1,46 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "netbox_json_extras_saved_filters_list Data Source - terraform-provider-netbox" +subcategory: "" +description: |- + Get json output from the extrassavedfilters_list Netbox endpoint. +--- + +# netbox_json_extras_saved_filters_list (Data Source) + +Get json output from the extras_saved_filters_list Netbox endpoint. + +## Example Usage + +```terraform +data "netbox_json_extras_saved_filters_list" "test" { + limit = 0 +} + +output "example" { + value = jsondecode(data.netbox_json_extras_saved_filters_list.test.json) +} +``` + + +## Schema + +### Optional + +- `filter` (Block Set) Filter the records returned by the query. (see [below for nested schema](#nestedblock--filter)) +- `limit` (Number) The max number of returned results. If 0 is specified, all records will be returned. + +### Read-Only + +- `id` (String) The ID of this resource. +- `json` (String) JSON output of the list of objects for this Netbox endpoint. + + +### Nested Schema for `filter` + +Required: + +- `name` (String) Name of the field to use for filtering. +- `value` (String) Value of the field to use for filtering. + + diff --git a/docs/index.md b/docs/index.md index db02c79cb..12b505c9c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -18,9 +18,6 @@ The Netbox provider provides resources to interact with [Netbox](https://netbox. | 2.11 | 2.x.y | | 3.0 | 3.x.y | | 3.1 | 4.x.y | -| 3.2 | 5.x.y | -| 3.3 | 6.x.y | -| 3.4 | 7.x.y | ## Example Usage @@ -29,7 +26,7 @@ terraform { required_providers { netbox = { source = "smutel/netbox" - version = "~> 7.0.0" + version = "~> 6.3.0" } } }