diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e7b18e2dd..465719507 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -13,7 +13,7 @@ jobs: go: [ '1.15.x' ] steps: - name: Check conventional commits in PR - uses: Namchee/conventional-pr@v0.4.1 + uses: Namchee/conventional-pr@master with: access_token: ${{ secrets.github_token }} label: "no-conventional-commits" diff --git a/docs/data-sources/json_circuits_circuit_terminations_list.md b/docs/data-sources/json_circuits_circuit_terminations_list.md index 9de0d0de6..564013d59 100644 --- a/docs/data-sources/json_circuits_circuit_terminations_list.md +++ b/docs/data-sources/json_circuits_circuit_terminations_list.md @@ -5,15 +5,17 @@ Get json output from the circuits_circuit_terminations_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_circuits_circuit_terminations_list" "test" {} +data "netbox_json_circuits_circuit_terminations_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_circuits_circuit_terminations_list.test.json) + value = jsondecode(data.netbox_json_circuits_circuit_terminations_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_circuits_circuit_types_list.md b/docs/data-sources/json_circuits_circuit_types_list.md index 64c8eee88..86e0256d5 100644 --- a/docs/data-sources/json_circuits_circuit_types_list.md +++ b/docs/data-sources/json_circuits_circuit_types_list.md @@ -5,15 +5,17 @@ Get json output from the circuits_circuit_types_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_circuits_circuit_types_list" "test" {} +data "netbox_json_circuits_circuit_types_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_circuits_circuit_types_list.test.json) + value = jsondecode(data.netbox_json_circuits_circuit_types_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_circuits_circuits_list.md b/docs/data-sources/json_circuits_circuits_list.md index 875ea7856..d8eec9446 100644 --- a/docs/data-sources/json_circuits_circuits_list.md +++ b/docs/data-sources/json_circuits_circuits_list.md @@ -5,15 +5,17 @@ Get json output from the circuits_circuits_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_circuits_circuits_list" "test" {} +data "netbox_json_circuits_circuits_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_circuits_circuits_list.test.json) + value = jsondecode(data.netbox_json_circuits_circuits_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_circuits_providers_list.md b/docs/data-sources/json_circuits_providers_list.md index 50ddfc157..c96bdf01c 100644 --- a/docs/data-sources/json_circuits_providers_list.md +++ b/docs/data-sources/json_circuits_providers_list.md @@ -5,15 +5,17 @@ Get json output from the circuits_providers_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_circuits_providers_list" "test" {} +data "netbox_json_circuits_providers_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_circuits_providers_list.test.json) + value = jsondecode(data.netbox_json_circuits_providers_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_cables_list.md b/docs/data-sources/json_dcim_cables_list.md index 1a82133cd..c7262dc45 100644 --- a/docs/data-sources/json_dcim_cables_list.md +++ b/docs/data-sources/json_dcim_cables_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_cables_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_cables_list" "test" {} +data "netbox_json_dcim_cables_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_cables_list.test.json) + value = jsondecode(data.netbox_json_dcim_cables_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_console_connections_list.md b/docs/data-sources/json_dcim_console_connections_list.md index b11547e22..bb850aeb2 100644 --- a/docs/data-sources/json_dcim_console_connections_list.md +++ b/docs/data-sources/json_dcim_console_connections_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_console_connections_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_console_connections_list" "test" {} +data "netbox_json_dcim_console_connections_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_console_connections_list.test.json) + value = jsondecode(data.netbox_json_dcim_console_connections_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_console_port_templates_list.md b/docs/data-sources/json_dcim_console_port_templates_list.md index c4263cb53..31d55cddc 100644 --- a/docs/data-sources/json_dcim_console_port_templates_list.md +++ b/docs/data-sources/json_dcim_console_port_templates_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_console_port_templates_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_console_port_templates_list" "test" {} +data "netbox_json_dcim_console_port_templates_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_console_port_templates_list.test.json) + value = jsondecode(data.netbox_json_dcim_console_port_templates_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_console_ports_list.md b/docs/data-sources/json_dcim_console_ports_list.md index 135f12454..daa1cce57 100644 --- a/docs/data-sources/json_dcim_console_ports_list.md +++ b/docs/data-sources/json_dcim_console_ports_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_console_ports_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_console_ports_list" "test" {} +data "netbox_json_dcim_console_ports_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_console_ports_list.test.json) + value = jsondecode(data.netbox_json_dcim_console_ports_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_console_server_port_templates_list.md b/docs/data-sources/json_dcim_console_server_port_templates_list.md index 23aef11f6..1a89b2942 100644 --- a/docs/data-sources/json_dcim_console_server_port_templates_list.md +++ b/docs/data-sources/json_dcim_console_server_port_templates_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_console_server_port_templates_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_console_server_port_templates_list" "test" {} +data "netbox_json_dcim_console_server_port_templates_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_console_server_port_templates_list.test.json) + value = jsondecode(data.netbox_json_dcim_console_server_port_templates_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_console_server_ports_list.md b/docs/data-sources/json_dcim_console_server_ports_list.md index 082aa6c8d..2f4e38f2e 100644 --- a/docs/data-sources/json_dcim_console_server_ports_list.md +++ b/docs/data-sources/json_dcim_console_server_ports_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_console_server_ports_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_console_server_ports_list" "test" {} +data "netbox_json_dcim_console_server_ports_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_console_server_ports_list.test.json) + value = jsondecode(data.netbox_json_dcim_console_server_ports_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_device_bay_templates_list.md b/docs/data-sources/json_dcim_device_bay_templates_list.md index dfc5b8feb..631e74e5e 100644 --- a/docs/data-sources/json_dcim_device_bay_templates_list.md +++ b/docs/data-sources/json_dcim_device_bay_templates_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_device_bay_templates_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_device_bay_templates_list" "test" {} +data "netbox_json_dcim_device_bay_templates_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_device_bay_templates_list.test.json) + value = jsondecode(data.netbox_json_dcim_device_bay_templates_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_device_bays_list.md b/docs/data-sources/json_dcim_device_bays_list.md index 2b2dbd54a..fdd4425da 100644 --- a/docs/data-sources/json_dcim_device_bays_list.md +++ b/docs/data-sources/json_dcim_device_bays_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_device_bays_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_device_bays_list" "test" {} +data "netbox_json_dcim_device_bays_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_device_bays_list.test.json) + value = jsondecode(data.netbox_json_dcim_device_bays_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_device_roles_list.md b/docs/data-sources/json_dcim_device_roles_list.md index d6e99850b..b4145e401 100644 --- a/docs/data-sources/json_dcim_device_roles_list.md +++ b/docs/data-sources/json_dcim_device_roles_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_device_roles_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_device_roles_list" "test" {} +data "netbox_json_dcim_device_roles_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_device_roles_list.test.json) + value = jsondecode(data.netbox_json_dcim_device_roles_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_device_types_list.md b/docs/data-sources/json_dcim_device_types_list.md index 3bcba5310..695909bfd 100644 --- a/docs/data-sources/json_dcim_device_types_list.md +++ b/docs/data-sources/json_dcim_device_types_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_device_types_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_device_types_list" "test" {} +data "netbox_json_dcim_device_types_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_device_types_list.test.json) + value = jsondecode(data.netbox_json_dcim_device_types_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_devices_list.md b/docs/data-sources/json_dcim_devices_list.md index 0dd3ff100..5aa21e24b 100644 --- a/docs/data-sources/json_dcim_devices_list.md +++ b/docs/data-sources/json_dcim_devices_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_devices_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_devices_list" "test" {} +data "netbox_json_dcim_devices_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_devices_list.test.json) + value = jsondecode(data.netbox_json_dcim_devices_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_front_port_templates_list.md b/docs/data-sources/json_dcim_front_port_templates_list.md index 0007815b6..4f92e89b7 100644 --- a/docs/data-sources/json_dcim_front_port_templates_list.md +++ b/docs/data-sources/json_dcim_front_port_templates_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_front_port_templates_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_front_port_templates_list" "test" {} +data "netbox_json_dcim_front_port_templates_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_front_port_templates_list.test.json) + value = jsondecode(data.netbox_json_dcim_front_port_templates_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_front_ports_list.md b/docs/data-sources/json_dcim_front_ports_list.md index 21cd62796..f193cadd0 100644 --- a/docs/data-sources/json_dcim_front_ports_list.md +++ b/docs/data-sources/json_dcim_front_ports_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_front_ports_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_front_ports_list" "test" {} +data "netbox_json_dcim_front_ports_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_front_ports_list.test.json) + value = jsondecode(data.netbox_json_dcim_front_ports_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_interface_connections_list.md b/docs/data-sources/json_dcim_interface_connections_list.md index 6ff2530de..8776170c8 100644 --- a/docs/data-sources/json_dcim_interface_connections_list.md +++ b/docs/data-sources/json_dcim_interface_connections_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_interface_connections_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_interface_connections_list" "test" {} +data "netbox_json_dcim_interface_connections_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_interface_connections_list.test.json) + value = jsondecode(data.netbox_json_dcim_interface_connections_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_interface_templates_list.md b/docs/data-sources/json_dcim_interface_templates_list.md index 8fa1baec0..06c7c4205 100644 --- a/docs/data-sources/json_dcim_interface_templates_list.md +++ b/docs/data-sources/json_dcim_interface_templates_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_interface_templates_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_interface_templates_list" "test" {} +data "netbox_json_dcim_interface_templates_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_interface_templates_list.test.json) + value = jsondecode(data.netbox_json_dcim_interface_templates_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_interfaces_list.md b/docs/data-sources/json_dcim_interfaces_list.md index 9766a953a..a0d6188d1 100644 --- a/docs/data-sources/json_dcim_interfaces_list.md +++ b/docs/data-sources/json_dcim_interfaces_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_interfaces_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_interfaces_list" "test" {} +data "netbox_json_dcim_interfaces_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_interfaces_list.test.json) + value = jsondecode(data.netbox_json_dcim_interfaces_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_inventory_items_list.md b/docs/data-sources/json_dcim_inventory_items_list.md index 2c2870eb4..eeb9246fe 100644 --- a/docs/data-sources/json_dcim_inventory_items_list.md +++ b/docs/data-sources/json_dcim_inventory_items_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_inventory_items_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_inventory_items_list" "test" {} +data "netbox_json_dcim_inventory_items_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_inventory_items_list.test.json) + value = jsondecode(data.netbox_json_dcim_inventory_items_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_manufacturers_list.md b/docs/data-sources/json_dcim_manufacturers_list.md index 9966fd679..333015b12 100644 --- a/docs/data-sources/json_dcim_manufacturers_list.md +++ b/docs/data-sources/json_dcim_manufacturers_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_manufacturers_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_manufacturers_list" "test" {} +data "netbox_json_dcim_manufacturers_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_manufacturers_list.test.json) + value = jsondecode(data.netbox_json_dcim_manufacturers_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_platforms_list.md b/docs/data-sources/json_dcim_platforms_list.md index dec8064f1..e649a763a 100644 --- a/docs/data-sources/json_dcim_platforms_list.md +++ b/docs/data-sources/json_dcim_platforms_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_platforms_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_platforms_list" "test" {} +data "netbox_json_dcim_platforms_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_platforms_list.test.json) + value = jsondecode(data.netbox_json_dcim_platforms_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_power_connections_list.md b/docs/data-sources/json_dcim_power_connections_list.md index a7955ae9c..9ad2e0f19 100644 --- a/docs/data-sources/json_dcim_power_connections_list.md +++ b/docs/data-sources/json_dcim_power_connections_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_power_connections_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_power_connections_list" "test" {} +data "netbox_json_dcim_power_connections_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_power_connections_list.test.json) + value = jsondecode(data.netbox_json_dcim_power_connections_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_power_feeds_list.md b/docs/data-sources/json_dcim_power_feeds_list.md index c6ccb735e..4535b3883 100644 --- a/docs/data-sources/json_dcim_power_feeds_list.md +++ b/docs/data-sources/json_dcim_power_feeds_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_power_feeds_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_power_feeds_list" "test" {} +data "netbox_json_dcim_power_feeds_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_power_feeds_list.test.json) + value = jsondecode(data.netbox_json_dcim_power_feeds_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_power_outlet_templates_list.md b/docs/data-sources/json_dcim_power_outlet_templates_list.md index 6a866086d..4d1650428 100644 --- a/docs/data-sources/json_dcim_power_outlet_templates_list.md +++ b/docs/data-sources/json_dcim_power_outlet_templates_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_power_outlet_templates_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_power_outlet_templates_list" "test" {} +data "netbox_json_dcim_power_outlet_templates_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_power_outlet_templates_list.test.json) + value = jsondecode(data.netbox_json_dcim_power_outlet_templates_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_power_outlets_list.md b/docs/data-sources/json_dcim_power_outlets_list.md index 171defa86..899555f1c 100644 --- a/docs/data-sources/json_dcim_power_outlets_list.md +++ b/docs/data-sources/json_dcim_power_outlets_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_power_outlets_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_power_outlets_list" "test" {} +data "netbox_json_dcim_power_outlets_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_power_outlets_list.test.json) + value = jsondecode(data.netbox_json_dcim_power_outlets_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_power_panels_list.md b/docs/data-sources/json_dcim_power_panels_list.md index 2fac640ae..8164a5ac0 100644 --- a/docs/data-sources/json_dcim_power_panels_list.md +++ b/docs/data-sources/json_dcim_power_panels_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_power_panels_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_power_panels_list" "test" {} +data "netbox_json_dcim_power_panels_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_power_panels_list.test.json) + value = jsondecode(data.netbox_json_dcim_power_panels_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_power_port_templates_list.md b/docs/data-sources/json_dcim_power_port_templates_list.md index 862310f22..4c0b2e776 100644 --- a/docs/data-sources/json_dcim_power_port_templates_list.md +++ b/docs/data-sources/json_dcim_power_port_templates_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_power_port_templates_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_power_port_templates_list" "test" {} +data "netbox_json_dcim_power_port_templates_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_power_port_templates_list.test.json) + value = jsondecode(data.netbox_json_dcim_power_port_templates_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_power_ports_list.md b/docs/data-sources/json_dcim_power_ports_list.md index 73320b3da..422bd6940 100644 --- a/docs/data-sources/json_dcim_power_ports_list.md +++ b/docs/data-sources/json_dcim_power_ports_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_power_ports_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_power_ports_list" "test" {} +data "netbox_json_dcim_power_ports_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_power_ports_list.test.json) + value = jsondecode(data.netbox_json_dcim_power_ports_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_rack_groups_list.md b/docs/data-sources/json_dcim_rack_groups_list.md index acad80fd6..3a721fa83 100644 --- a/docs/data-sources/json_dcim_rack_groups_list.md +++ b/docs/data-sources/json_dcim_rack_groups_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_rack_groups_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_rack_groups_list" "test" {} +data "netbox_json_dcim_rack_groups_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_rack_groups_list.test.json) + value = jsondecode(data.netbox_json_dcim_rack_groups_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_rack_reservations_list.md b/docs/data-sources/json_dcim_rack_reservations_list.md index 34b6d8d8d..76c4b6ee9 100644 --- a/docs/data-sources/json_dcim_rack_reservations_list.md +++ b/docs/data-sources/json_dcim_rack_reservations_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_rack_reservations_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_rack_reservations_list" "test" {} +data "netbox_json_dcim_rack_reservations_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_rack_reservations_list.test.json) + value = jsondecode(data.netbox_json_dcim_rack_reservations_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_rack_roles_list.md b/docs/data-sources/json_dcim_rack_roles_list.md index bfd010298..189c62ad3 100644 --- a/docs/data-sources/json_dcim_rack_roles_list.md +++ b/docs/data-sources/json_dcim_rack_roles_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_rack_roles_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_rack_roles_list" "test" {} +data "netbox_json_dcim_rack_roles_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_rack_roles_list.test.json) + value = jsondecode(data.netbox_json_dcim_rack_roles_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_racks_list.md b/docs/data-sources/json_dcim_racks_list.md index 96d227dae..e37f49743 100644 --- a/docs/data-sources/json_dcim_racks_list.md +++ b/docs/data-sources/json_dcim_racks_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_racks_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_racks_list" "test" {} +data "netbox_json_dcim_racks_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_racks_list.test.json) + value = jsondecode(data.netbox_json_dcim_racks_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_rear_port_templates_list.md b/docs/data-sources/json_dcim_rear_port_templates_list.md index cd7aa1e69..8eda4287f 100644 --- a/docs/data-sources/json_dcim_rear_port_templates_list.md +++ b/docs/data-sources/json_dcim_rear_port_templates_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_rear_port_templates_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_rear_port_templates_list" "test" {} +data "netbox_json_dcim_rear_port_templates_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_rear_port_templates_list.test.json) + value = jsondecode(data.netbox_json_dcim_rear_port_templates_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_rear_ports_list.md b/docs/data-sources/json_dcim_rear_ports_list.md index 6f86210c5..7353d936d 100644 --- a/docs/data-sources/json_dcim_rear_ports_list.md +++ b/docs/data-sources/json_dcim_rear_ports_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_rear_ports_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_rear_ports_list" "test" {} +data "netbox_json_dcim_rear_ports_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_rear_ports_list.test.json) + value = jsondecode(data.netbox_json_dcim_rear_ports_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_regions_list.md b/docs/data-sources/json_dcim_regions_list.md index de18facf1..bfe3e38ab 100644 --- a/docs/data-sources/json_dcim_regions_list.md +++ b/docs/data-sources/json_dcim_regions_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_regions_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_regions_list" "test" {} +data "netbox_json_dcim_regions_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_regions_list.test.json) + value = jsondecode(data.netbox_json_dcim_regions_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_sites_list.md b/docs/data-sources/json_dcim_sites_list.md index 3d413a8be..ed415fd29 100644 --- a/docs/data-sources/json_dcim_sites_list.md +++ b/docs/data-sources/json_dcim_sites_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_sites_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_sites_list" "test" {} +data "netbox_json_dcim_sites_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_sites_list.test.json) + value = jsondecode(data.netbox_json_dcim_sites_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_dcim_virtual_chassis_list.md b/docs/data-sources/json_dcim_virtual_chassis_list.md index f6f952b85..eece1f390 100644 --- a/docs/data-sources/json_dcim_virtual_chassis_list.md +++ b/docs/data-sources/json_dcim_virtual_chassis_list.md @@ -5,15 +5,17 @@ Get json output from the dcim_virtual_chassis_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_dcim_virtual_chassis_list" "test" {} +data "netbox_json_dcim_virtual_chassis_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_dcim_virtual_chassis_list.test.json) + value = jsondecode(data.netbox_json_dcim_virtual_chassis_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_extras_config_contexts_list.md b/docs/data-sources/json_extras_config_contexts_list.md index eb5be9528..cbd962dca 100644 --- a/docs/data-sources/json_extras_config_contexts_list.md +++ b/docs/data-sources/json_extras_config_contexts_list.md @@ -5,15 +5,17 @@ Get json output from the extras_config_contexts_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_extras_config_contexts_list" "test" {} +data "netbox_json_extras_config_contexts_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_extras_config_contexts_list.test.json) + value = jsondecode(data.netbox_json_extras_config_contexts_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_extras_export_templates_list.md b/docs/data-sources/json_extras_export_templates_list.md index c04a275d6..e06d73030 100644 --- a/docs/data-sources/json_extras_export_templates_list.md +++ b/docs/data-sources/json_extras_export_templates_list.md @@ -5,15 +5,17 @@ Get json output from the extras_export_templates_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_extras_export_templates_list" "test" {} +data "netbox_json_extras_export_templates_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_extras_export_templates_list.test.json) + value = jsondecode(data.netbox_json_extras_export_templates_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_extras_graphs_list.md b/docs/data-sources/json_extras_graphs_list.md index cf382235b..984f2828c 100644 --- a/docs/data-sources/json_extras_graphs_list.md +++ b/docs/data-sources/json_extras_graphs_list.md @@ -5,15 +5,17 @@ Get json output from the extras_graphs_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_extras_graphs_list" "test" {} +data "netbox_json_extras_graphs_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_extras_graphs_list.test.json) + value = jsondecode(data.netbox_json_extras_graphs_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_extras_image_attachments_list.md b/docs/data-sources/json_extras_image_attachments_list.md index d5e78143d..fe699e224 100644 --- a/docs/data-sources/json_extras_image_attachments_list.md +++ b/docs/data-sources/json_extras_image_attachments_list.md @@ -5,15 +5,17 @@ Get json output from the extras_image_attachments_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_extras_image_attachments_list" "test" {} +data "netbox_json_extras_image_attachments_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_extras_image_attachments_list.test.json) + value = jsondecode(data.netbox_json_extras_image_attachments_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_extras_job_results_list.md b/docs/data-sources/json_extras_job_results_list.md index 618025e49..c0b70004f 100644 --- a/docs/data-sources/json_extras_job_results_list.md +++ b/docs/data-sources/json_extras_job_results_list.md @@ -5,15 +5,17 @@ Get json output from the extras_job_results_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_extras_job_results_list" "test" {} +data "netbox_json_extras_job_results_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_extras_job_results_list.test.json) + value = jsondecode(data.netbox_json_extras_job_results_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_extras_object_changes_list.md b/docs/data-sources/json_extras_object_changes_list.md index f46eb2b49..b0b5be825 100644 --- a/docs/data-sources/json_extras_object_changes_list.md +++ b/docs/data-sources/json_extras_object_changes_list.md @@ -5,15 +5,17 @@ Get json output from the extras_object_changes_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_extras_object_changes_list" "test" {} +data "netbox_json_extras_object_changes_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_extras_object_changes_list.test.json) + value = jsondecode(data.netbox_json_extras_object_changes_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_extras_tags_list.md b/docs/data-sources/json_extras_tags_list.md index 2af8a3033..6e04a04de 100644 --- a/docs/data-sources/json_extras_tags_list.md +++ b/docs/data-sources/json_extras_tags_list.md @@ -5,15 +5,17 @@ Get json output from the extras_tags_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_extras_tags_list" "test" {} +data "netbox_json_extras_tags_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_extras_tags_list.test.json) + value = jsondecode(data.netbox_json_extras_tags_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_ipam_aggregates_list.md b/docs/data-sources/json_ipam_aggregates_list.md index b7eca252e..833a17751 100644 --- a/docs/data-sources/json_ipam_aggregates_list.md +++ b/docs/data-sources/json_ipam_aggregates_list.md @@ -5,15 +5,17 @@ Get json output from the ipam_aggregates_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_ipam_aggregates_list" "test" {} +data "netbox_json_ipam_aggregates_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_ipam_aggregates_list.test.json) + value = jsondecode(data.netbox_json_ipam_aggregates_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_ipam_ip_addresses_list.md b/docs/data-sources/json_ipam_ip_addresses_list.md index b7e94bd87..62f49d896 100644 --- a/docs/data-sources/json_ipam_ip_addresses_list.md +++ b/docs/data-sources/json_ipam_ip_addresses_list.md @@ -5,15 +5,17 @@ Get json output from the ipam_ip_addresses_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_ipam_ip_addresses_list" "test" {} +data "netbox_json_ipam_ip_addresses_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_ipam_ip_addresses_list.test.json) + value = jsondecode(data.netbox_json_ipam_ip_addresses_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_ipam_prefixes_list.md b/docs/data-sources/json_ipam_prefixes_list.md index 0db9ee965..5dcfe1f51 100644 --- a/docs/data-sources/json_ipam_prefixes_list.md +++ b/docs/data-sources/json_ipam_prefixes_list.md @@ -5,15 +5,17 @@ Get json output from the ipam_prefixes_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_ipam_prefixes_list" "test" {} +data "netbox_json_ipam_prefixes_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_ipam_prefixes_list.test.json) + value = jsondecode(data.netbox_json_ipam_prefixes_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_ipam_rirs_list.md b/docs/data-sources/json_ipam_rirs_list.md index c1a9d9406..6c7b641c1 100644 --- a/docs/data-sources/json_ipam_rirs_list.md +++ b/docs/data-sources/json_ipam_rirs_list.md @@ -5,15 +5,17 @@ Get json output from the ipam_rirs_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_ipam_rirs_list" "test" {} +data "netbox_json_ipam_rirs_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_ipam_rirs_list.test.json) + value = jsondecode(data.netbox_json_ipam_rirs_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_ipam_roles_list.md b/docs/data-sources/json_ipam_roles_list.md index 35b0a8957..40492a8a4 100644 --- a/docs/data-sources/json_ipam_roles_list.md +++ b/docs/data-sources/json_ipam_roles_list.md @@ -5,15 +5,17 @@ Get json output from the ipam_roles_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_ipam_roles_list" "test" {} +data "netbox_json_ipam_roles_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_ipam_roles_list.test.json) + value = jsondecode(data.netbox_json_ipam_roles_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_ipam_services_list.md b/docs/data-sources/json_ipam_services_list.md index 6f85afc81..c9b1901a9 100644 --- a/docs/data-sources/json_ipam_services_list.md +++ b/docs/data-sources/json_ipam_services_list.md @@ -5,15 +5,17 @@ Get json output from the ipam_services_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_ipam_services_list" "test" {} +data "netbox_json_ipam_services_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_ipam_services_list.test.json) + value = jsondecode(data.netbox_json_ipam_services_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_ipam_vlan_groups_list.md b/docs/data-sources/json_ipam_vlan_groups_list.md index 50eaddccf..7e99ce5f4 100644 --- a/docs/data-sources/json_ipam_vlan_groups_list.md +++ b/docs/data-sources/json_ipam_vlan_groups_list.md @@ -5,15 +5,17 @@ Get json output from the ipam_vlan_groups_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_ipam_vlan_groups_list" "test" {} +data "netbox_json_ipam_vlan_groups_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_ipam_vlan_groups_list.test.json) + value = jsondecode(data.netbox_json_ipam_vlan_groups_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_ipam_vlans_list.md b/docs/data-sources/json_ipam_vlans_list.md index 189a8ed63..a972480b9 100644 --- a/docs/data-sources/json_ipam_vlans_list.md +++ b/docs/data-sources/json_ipam_vlans_list.md @@ -5,15 +5,17 @@ Get json output from the ipam_vlans_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_ipam_vlans_list" "test" {} +data "netbox_json_ipam_vlans_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_ipam_vlans_list.test.json) + value = jsondecode(data.netbox_json_ipam_vlans_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_ipam_vrfs_list.md b/docs/data-sources/json_ipam_vrfs_list.md index e7025fce3..cabdf583e 100644 --- a/docs/data-sources/json_ipam_vrfs_list.md +++ b/docs/data-sources/json_ipam_vrfs_list.md @@ -5,15 +5,17 @@ Get json output from the ipam_vrfs_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_ipam_vrfs_list" "test" {} +data "netbox_json_ipam_vrfs_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_ipam_vrfs_list.test.json) + value = jsondecode(data.netbox_json_ipam_vrfs_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_secrets_secret_roles_list.md b/docs/data-sources/json_secrets_secret_roles_list.md index dd438e3a0..299ac5712 100644 --- a/docs/data-sources/json_secrets_secret_roles_list.md +++ b/docs/data-sources/json_secrets_secret_roles_list.md @@ -5,15 +5,17 @@ Get json output from the secrets_secret_roles_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_secrets_secret_roles_list" "test" {} +data "netbox_json_secrets_secret_roles_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_secrets_secret_roles_list.test.json) + value = jsondecode(data.netbox_json_secrets_secret_roles_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_secrets_secrets_list.md b/docs/data-sources/json_secrets_secrets_list.md index 0c9eb2db4..e23e93270 100644 --- a/docs/data-sources/json_secrets_secrets_list.md +++ b/docs/data-sources/json_secrets_secrets_list.md @@ -5,15 +5,17 @@ Get json output from the secrets_secrets_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_secrets_secrets_list" "test" {} +data "netbox_json_secrets_secrets_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_secrets_secrets_list.test.json) + value = jsondecode(data.netbox_json_secrets_secrets_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_tenancy_tenant_groups_list.md b/docs/data-sources/json_tenancy_tenant_groups_list.md index 9838d8076..8a0c34995 100644 --- a/docs/data-sources/json_tenancy_tenant_groups_list.md +++ b/docs/data-sources/json_tenancy_tenant_groups_list.md @@ -5,15 +5,17 @@ Get json output from the tenancy_tenant_groups_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_tenancy_tenant_groups_list" "test" {} +data "netbox_json_tenancy_tenant_groups_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_tenancy_tenant_groups_list.test.json) + value = jsondecode(data.netbox_json_tenancy_tenant_groups_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_tenancy_tenants_list.md b/docs/data-sources/json_tenancy_tenants_list.md index 6628f2655..2d7765ac0 100644 --- a/docs/data-sources/json_tenancy_tenants_list.md +++ b/docs/data-sources/json_tenancy_tenants_list.md @@ -5,15 +5,17 @@ Get json output from the tenancy_tenants_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_tenancy_tenants_list" "test" {} +data "netbox_json_tenancy_tenants_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_tenancy_tenants_list.test.json) + value = jsondecode(data.netbox_json_tenancy_tenants_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_users_groups_list.md b/docs/data-sources/json_users_groups_list.md index f006409f5..65e87f8e2 100644 --- a/docs/data-sources/json_users_groups_list.md +++ b/docs/data-sources/json_users_groups_list.md @@ -5,15 +5,17 @@ Get json output from the users_groups_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_users_groups_list" "test" {} +data "netbox_json_users_groups_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_users_groups_list.test.json) + value = jsondecode(data.netbox_json_users_groups_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_users_permissions_list.md b/docs/data-sources/json_users_permissions_list.md index 3550b4647..e71579e5b 100644 --- a/docs/data-sources/json_users_permissions_list.md +++ b/docs/data-sources/json_users_permissions_list.md @@ -5,15 +5,17 @@ Get json output from the users_permissions_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_users_permissions_list" "test" {} +data "netbox_json_users_permissions_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_users_permissions_list.test.json) + value = jsondecode(data.netbox_json_users_permissions_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_users_users_list.md b/docs/data-sources/json_users_users_list.md index 493526be6..72e5252ae 100644 --- a/docs/data-sources/json_users_users_list.md +++ b/docs/data-sources/json_users_users_list.md @@ -5,15 +5,17 @@ Get json output from the users_users_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_users_users_list" "test" {} +data "netbox_json_users_users_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_users_users_list.test.json) + value = jsondecode(data.netbox_json_users_users_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_virtualization_cluster_groups_list.md b/docs/data-sources/json_virtualization_cluster_groups_list.md index 8f29601dc..afa604a86 100644 --- a/docs/data-sources/json_virtualization_cluster_groups_list.md +++ b/docs/data-sources/json_virtualization_cluster_groups_list.md @@ -5,15 +5,17 @@ Get json output from the virtualization_cluster_groups_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_virtualization_cluster_groups_list" "test" {} +data "netbox_json_virtualization_cluster_groups_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_virtualization_cluster_groups_list.test.json) + value = jsondecode(data.netbox_json_virtualization_cluster_groups_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_virtualization_cluster_types_list.md b/docs/data-sources/json_virtualization_cluster_types_list.md index eca42827e..0fe9add30 100644 --- a/docs/data-sources/json_virtualization_cluster_types_list.md +++ b/docs/data-sources/json_virtualization_cluster_types_list.md @@ -5,15 +5,17 @@ Get json output from the virtualization_cluster_types_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_virtualization_cluster_types_list" "test" {} +data "netbox_json_virtualization_cluster_types_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_virtualization_cluster_types_list.test.json) + value = jsondecode(data.netbox_json_virtualization_cluster_types_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_virtualization_clusters_list.md b/docs/data-sources/json_virtualization_clusters_list.md index 3aae6fb55..eac87f454 100644 --- a/docs/data-sources/json_virtualization_clusters_list.md +++ b/docs/data-sources/json_virtualization_clusters_list.md @@ -5,15 +5,17 @@ Get json output from the virtualization_clusters_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_virtualization_clusters_list" "test" {} +data "netbox_json_virtualization_clusters_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_virtualization_clusters_list.test.json) + value = jsondecode(data.netbox_json_virtualization_clusters_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_virtualization_interfaces_list.md b/docs/data-sources/json_virtualization_interfaces_list.md index 64dc1cf77..c8c038de2 100644 --- a/docs/data-sources/json_virtualization_interfaces_list.md +++ b/docs/data-sources/json_virtualization_interfaces_list.md @@ -5,15 +5,17 @@ Get json output from the virtualization_interfaces_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_virtualization_interfaces_list" "test" {} +data "netbox_json_virtualization_interfaces_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_virtualization_interfaces_list.test.json) + value = jsondecode(data.netbox_json_virtualization_interfaces_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/docs/data-sources/json_virtualization_virtual_machines_list.md b/docs/data-sources/json_virtualization_virtual_machines_list.md index 5b480a921..e750759ad 100644 --- a/docs/data-sources/json_virtualization_virtual_machines_list.md +++ b/docs/data-sources/json_virtualization_virtual_machines_list.md @@ -5,15 +5,17 @@ Get json output from the virtualization_virtual_machines_list Netbox endpoint ## Example Usage ```hcl -data "netbox_json_virtualization_virtual_machines_list" "test" {} +data "netbox_json_virtualization_virtual_machines_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_virtualization_virtual_machines_list.test.json) + value = jsondecode(data.netbox_json_virtualization_virtual_machines_list.test.json) } ``` ## Argument Reference -This function takes no arguments. +* ``limit`` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/netbox/data_netbox_json_circuits_circuit_terminations_list.go b/netbox/data_netbox_json_circuits_circuit_terminations_list.go index f41969093..f1c08b31c 100644 --- a/netbox/data_netbox_json_circuits_circuit_terminations_list.go +++ b/netbox/data_netbox_json_circuits_circuit_terminations_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/circuits" ) func dataNetboxJSONCircuitsCircuitTerminationsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONCircuitsCircuitTerminationsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONCircuitsCircuitTerminationsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONCircuitsCircuitTerminationsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Circuits.CircuitsCircuitTerminationsList(nil, nil) - if err != nil { - return err - } + params := circuits.NewCircuitsCircuitTerminationsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Circuits.CircuitsCircuitTerminationsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONCircuitsCircuitTerminationsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONCircuitsCircuitTerminationsList") + + return nil } diff --git a/netbox/data_netbox_json_circuits_circuit_types_list.go b/netbox/data_netbox_json_circuits_circuit_types_list.go index 99736a04c..8f2f22a78 100644 --- a/netbox/data_netbox_json_circuits_circuit_types_list.go +++ b/netbox/data_netbox_json_circuits_circuit_types_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/circuits" ) func dataNetboxJSONCircuitsCircuitTypesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONCircuitsCircuitTypesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONCircuitsCircuitTypesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONCircuitsCircuitTypesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Circuits.CircuitsCircuitTypesList(nil, nil) - if err != nil { - return err - } + params := circuits.NewCircuitsCircuitTypesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Circuits.CircuitsCircuitTypesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONCircuitsCircuitTypesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONCircuitsCircuitTypesList") + + return nil } diff --git a/netbox/data_netbox_json_circuits_circuits_list.go b/netbox/data_netbox_json_circuits_circuits_list.go index d75dc09c1..012cccac9 100644 --- a/netbox/data_netbox_json_circuits_circuits_list.go +++ b/netbox/data_netbox_json_circuits_circuits_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/circuits" ) func dataNetboxJSONCircuitsCircuitsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONCircuitsCircuitsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONCircuitsCircuitsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONCircuitsCircuitsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Circuits.CircuitsCircuitsList(nil, nil) - if err != nil { - return err - } + params := circuits.NewCircuitsCircuitsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Circuits.CircuitsCircuitsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONCircuitsCircuitsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONCircuitsCircuitsList") + + return nil } diff --git a/netbox/data_netbox_json_circuits_providers_list.go b/netbox/data_netbox_json_circuits_providers_list.go index 6ce0b7528..6762e9687 100644 --- a/netbox/data_netbox_json_circuits_providers_list.go +++ b/netbox/data_netbox_json_circuits_providers_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/circuits" ) func dataNetboxJSONCircuitsProvidersList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONCircuitsProvidersListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONCircuitsProvidersListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONCircuitsProvidersListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Circuits.CircuitsProvidersList(nil, nil) - if err != nil { - return err - } + params := circuits.NewCircuitsProvidersListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Circuits.CircuitsProvidersList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONCircuitsProvidersList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONCircuitsProvidersList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_cables_list.go b/netbox/data_netbox_json_dcim_cables_list.go index 740b8a087..f8e18c479 100644 --- a/netbox/data_netbox_json_dcim_cables_list.go +++ b/netbox/data_netbox_json_dcim_cables_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimCablesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimCablesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimCablesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimCablesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimCablesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimCablesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimCablesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimCablesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimCablesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_console_connections_list.go b/netbox/data_netbox_json_dcim_console_connections_list.go index 96be122f1..7db2de3c7 100644 --- a/netbox/data_netbox_json_dcim_console_connections_list.go +++ b/netbox/data_netbox_json_dcim_console_connections_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimConsoleConnectionsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimConsoleConnectionsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimConsoleConnectionsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimConsoleConnectionsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimConsoleConnectionsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimConsoleConnectionsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimConsoleConnectionsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimConsoleConnectionsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimConsoleConnectionsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_console_port_templates_list.go b/netbox/data_netbox_json_dcim_console_port_templates_list.go index fec81fa2b..2a63ada06 100644 --- a/netbox/data_netbox_json_dcim_console_port_templates_list.go +++ b/netbox/data_netbox_json_dcim_console_port_templates_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimConsolePortTemplatesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimConsolePortTemplatesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimConsolePortTemplatesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimConsolePortTemplatesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimConsolePortTemplatesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimConsolePortTemplatesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimConsolePortTemplatesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimConsolePortTemplatesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimConsolePortTemplatesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_console_ports_list.go b/netbox/data_netbox_json_dcim_console_ports_list.go index 95ac5a204..115b6c36f 100644 --- a/netbox/data_netbox_json_dcim_console_ports_list.go +++ b/netbox/data_netbox_json_dcim_console_ports_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimConsolePortsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimConsolePortsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimConsolePortsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimConsolePortsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimConsolePortsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimConsolePortsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimConsolePortsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimConsolePortsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimConsolePortsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_console_server_port_templates_list.go b/netbox/data_netbox_json_dcim_console_server_port_templates_list.go index 1aabed185..3acaf8ab4 100644 --- a/netbox/data_netbox_json_dcim_console_server_port_templates_list.go +++ b/netbox/data_netbox_json_dcim_console_server_port_templates_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimConsoleServerPortTemplatesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimConsoleServerPortTemplatesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimConsoleServerPortTemplatesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimConsoleServerPortTemplatesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimConsoleServerPortTemplatesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimConsoleServerPortTemplatesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimConsoleServerPortTemplatesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimConsoleServerPortTemplatesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimConsoleServerPortTemplatesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_console_server_ports_list.go b/netbox/data_netbox_json_dcim_console_server_ports_list.go index 7a51acbb7..9befcc6cb 100644 --- a/netbox/data_netbox_json_dcim_console_server_ports_list.go +++ b/netbox/data_netbox_json_dcim_console_server_ports_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimConsoleServerPortsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimConsoleServerPortsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimConsoleServerPortsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimConsoleServerPortsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimConsoleServerPortsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimConsoleServerPortsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimConsoleServerPortsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimConsoleServerPortsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimConsoleServerPortsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_device_bay_templates_list.go b/netbox/data_netbox_json_dcim_device_bay_templates_list.go index af95637a6..918e13d32 100644 --- a/netbox/data_netbox_json_dcim_device_bay_templates_list.go +++ b/netbox/data_netbox_json_dcim_device_bay_templates_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimDeviceBayTemplatesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimDeviceBayTemplatesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimDeviceBayTemplatesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimDeviceBayTemplatesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimDeviceBayTemplatesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimDeviceBayTemplatesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimDeviceBayTemplatesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimDeviceBayTemplatesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimDeviceBayTemplatesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_device_bays_list.go b/netbox/data_netbox_json_dcim_device_bays_list.go index ce0a02570..f4006fab1 100644 --- a/netbox/data_netbox_json_dcim_device_bays_list.go +++ b/netbox/data_netbox_json_dcim_device_bays_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimDeviceBaysList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimDeviceBaysListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimDeviceBaysListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimDeviceBaysListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimDeviceBaysList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimDeviceBaysListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimDeviceBaysList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimDeviceBaysList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimDeviceBaysList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_device_roles_list.go b/netbox/data_netbox_json_dcim_device_roles_list.go index e2cb71d2a..e69cfd6a3 100644 --- a/netbox/data_netbox_json_dcim_device_roles_list.go +++ b/netbox/data_netbox_json_dcim_device_roles_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimDeviceRolesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimDeviceRolesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimDeviceRolesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimDeviceRolesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimDeviceRolesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimDeviceRolesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimDeviceRolesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimDeviceRolesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimDeviceRolesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_device_types_list.go b/netbox/data_netbox_json_dcim_device_types_list.go index 01d54b10c..ec461dd49 100644 --- a/netbox/data_netbox_json_dcim_device_types_list.go +++ b/netbox/data_netbox_json_dcim_device_types_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimDeviceTypesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimDeviceTypesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimDeviceTypesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimDeviceTypesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimDeviceTypesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimDeviceTypesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimDeviceTypesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimDeviceTypesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimDeviceTypesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_devices_list.go b/netbox/data_netbox_json_dcim_devices_list.go index c814ccbb0..f0aadf219 100644 --- a/netbox/data_netbox_json_dcim_devices_list.go +++ b/netbox/data_netbox_json_dcim_devices_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimDevicesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimDevicesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimDevicesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimDevicesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimDevicesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimDevicesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimDevicesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimDevicesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimDevicesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_front_port_templates_list.go b/netbox/data_netbox_json_dcim_front_port_templates_list.go index 96940c29c..f2593c891 100644 --- a/netbox/data_netbox_json_dcim_front_port_templates_list.go +++ b/netbox/data_netbox_json_dcim_front_port_templates_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimFrontPortTemplatesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimFrontPortTemplatesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimFrontPortTemplatesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimFrontPortTemplatesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimFrontPortTemplatesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimFrontPortTemplatesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimFrontPortTemplatesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimFrontPortTemplatesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimFrontPortTemplatesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_front_ports_list.go b/netbox/data_netbox_json_dcim_front_ports_list.go index 854b799c1..8306b6d95 100644 --- a/netbox/data_netbox_json_dcim_front_ports_list.go +++ b/netbox/data_netbox_json_dcim_front_ports_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimFrontPortsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimFrontPortsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimFrontPortsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimFrontPortsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimFrontPortsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimFrontPortsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimFrontPortsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimFrontPortsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimFrontPortsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_interface_connections_list.go b/netbox/data_netbox_json_dcim_interface_connections_list.go index 4935f7dea..964b15d0b 100644 --- a/netbox/data_netbox_json_dcim_interface_connections_list.go +++ b/netbox/data_netbox_json_dcim_interface_connections_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimInterfaceConnectionsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimInterfaceConnectionsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimInterfaceConnectionsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimInterfaceConnectionsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimInterfaceConnectionsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimInterfaceConnectionsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimInterfaceConnectionsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimInterfaceConnectionsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimInterfaceConnectionsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_interface_templates_list.go b/netbox/data_netbox_json_dcim_interface_templates_list.go index 9a1c1d858..0b749f6fd 100644 --- a/netbox/data_netbox_json_dcim_interface_templates_list.go +++ b/netbox/data_netbox_json_dcim_interface_templates_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimInterfaceTemplatesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimInterfaceTemplatesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimInterfaceTemplatesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimInterfaceTemplatesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimInterfaceTemplatesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimInterfaceTemplatesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimInterfaceTemplatesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimInterfaceTemplatesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimInterfaceTemplatesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_interfaces_list.go b/netbox/data_netbox_json_dcim_interfaces_list.go index 4bfffc9dd..13fc4cbe3 100644 --- a/netbox/data_netbox_json_dcim_interfaces_list.go +++ b/netbox/data_netbox_json_dcim_interfaces_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimInterfacesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimInterfacesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimInterfacesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimInterfacesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimInterfacesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimInterfacesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimInterfacesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimInterfacesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimInterfacesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_inventory_items_list.go b/netbox/data_netbox_json_dcim_inventory_items_list.go index bea9c613a..44eea2bc1 100644 --- a/netbox/data_netbox_json_dcim_inventory_items_list.go +++ b/netbox/data_netbox_json_dcim_inventory_items_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimInventoryItemsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimInventoryItemsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimInventoryItemsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimInventoryItemsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimInventoryItemsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimInventoryItemsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimInventoryItemsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimInventoryItemsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimInventoryItemsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_manufacturers_list.go b/netbox/data_netbox_json_dcim_manufacturers_list.go index 263e25771..9142263be 100644 --- a/netbox/data_netbox_json_dcim_manufacturers_list.go +++ b/netbox/data_netbox_json_dcim_manufacturers_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimManufacturersList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimManufacturersListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimManufacturersListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimManufacturersListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimManufacturersList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimManufacturersListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimManufacturersList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimManufacturersList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimManufacturersList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_platforms_list.go b/netbox/data_netbox_json_dcim_platforms_list.go index 95788130a..e0fdaeabd 100644 --- a/netbox/data_netbox_json_dcim_platforms_list.go +++ b/netbox/data_netbox_json_dcim_platforms_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimPlatformsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimPlatformsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimPlatformsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimPlatformsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimPlatformsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimPlatformsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimPlatformsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimPlatformsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimPlatformsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_power_connections_list.go b/netbox/data_netbox_json_dcim_power_connections_list.go index 8976b2a48..c15b63b82 100644 --- a/netbox/data_netbox_json_dcim_power_connections_list.go +++ b/netbox/data_netbox_json_dcim_power_connections_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimPowerConnectionsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimPowerConnectionsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimPowerConnectionsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimPowerConnectionsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimPowerConnectionsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimPowerConnectionsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimPowerConnectionsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimPowerConnectionsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimPowerConnectionsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_power_feeds_list.go b/netbox/data_netbox_json_dcim_power_feeds_list.go index 08e1146a5..60ee7597c 100644 --- a/netbox/data_netbox_json_dcim_power_feeds_list.go +++ b/netbox/data_netbox_json_dcim_power_feeds_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimPowerFeedsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimPowerFeedsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimPowerFeedsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimPowerFeedsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimPowerFeedsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimPowerFeedsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimPowerFeedsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimPowerFeedsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimPowerFeedsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_power_outlet_templates_list.go b/netbox/data_netbox_json_dcim_power_outlet_templates_list.go index 3c9bc1036..481d59d65 100644 --- a/netbox/data_netbox_json_dcim_power_outlet_templates_list.go +++ b/netbox/data_netbox_json_dcim_power_outlet_templates_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimPowerOutletTemplatesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimPowerOutletTemplatesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimPowerOutletTemplatesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimPowerOutletTemplatesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimPowerOutletTemplatesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimPowerOutletTemplatesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimPowerOutletTemplatesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimPowerOutletTemplatesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimPowerOutletTemplatesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_power_outlets_list.go b/netbox/data_netbox_json_dcim_power_outlets_list.go index c852a7e50..3f60ce3f2 100644 --- a/netbox/data_netbox_json_dcim_power_outlets_list.go +++ b/netbox/data_netbox_json_dcim_power_outlets_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimPowerOutletsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimPowerOutletsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimPowerOutletsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimPowerOutletsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimPowerOutletsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimPowerOutletsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimPowerOutletsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimPowerOutletsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimPowerOutletsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_power_panels_list.go b/netbox/data_netbox_json_dcim_power_panels_list.go index 2bcd25d50..f2cfe8f40 100644 --- a/netbox/data_netbox_json_dcim_power_panels_list.go +++ b/netbox/data_netbox_json_dcim_power_panels_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimPowerPanelsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimPowerPanelsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimPowerPanelsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimPowerPanelsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimPowerPanelsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimPowerPanelsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimPowerPanelsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimPowerPanelsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimPowerPanelsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_power_port_templates_list.go b/netbox/data_netbox_json_dcim_power_port_templates_list.go index 627c17220..06e13f18a 100644 --- a/netbox/data_netbox_json_dcim_power_port_templates_list.go +++ b/netbox/data_netbox_json_dcim_power_port_templates_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimPowerPortTemplatesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimPowerPortTemplatesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimPowerPortTemplatesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimPowerPortTemplatesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimPowerPortTemplatesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimPowerPortTemplatesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimPowerPortTemplatesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimPowerPortTemplatesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimPowerPortTemplatesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_power_ports_list.go b/netbox/data_netbox_json_dcim_power_ports_list.go index e882a86c7..9fbe61c08 100644 --- a/netbox/data_netbox_json_dcim_power_ports_list.go +++ b/netbox/data_netbox_json_dcim_power_ports_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimPowerPortsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimPowerPortsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimPowerPortsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimPowerPortsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimPowerPortsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimPowerPortsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimPowerPortsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimPowerPortsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimPowerPortsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_rack_groups_list.go b/netbox/data_netbox_json_dcim_rack_groups_list.go index 0728b8b03..24fe137a6 100644 --- a/netbox/data_netbox_json_dcim_rack_groups_list.go +++ b/netbox/data_netbox_json_dcim_rack_groups_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimRackGroupsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimRackGroupsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimRackGroupsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimRackGroupsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimRackGroupsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimRackGroupsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimRackGroupsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimRackGroupsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimRackGroupsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_rack_reservations_list.go b/netbox/data_netbox_json_dcim_rack_reservations_list.go index dd28382a9..96cd3882a 100644 --- a/netbox/data_netbox_json_dcim_rack_reservations_list.go +++ b/netbox/data_netbox_json_dcim_rack_reservations_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimRackReservationsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimRackReservationsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimRackReservationsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimRackReservationsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimRackReservationsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimRackReservationsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimRackReservationsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimRackReservationsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimRackReservationsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_rack_roles_list.go b/netbox/data_netbox_json_dcim_rack_roles_list.go index e431c34c2..dc1d69cce 100644 --- a/netbox/data_netbox_json_dcim_rack_roles_list.go +++ b/netbox/data_netbox_json_dcim_rack_roles_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimRackRolesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimRackRolesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimRackRolesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimRackRolesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimRackRolesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimRackRolesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimRackRolesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimRackRolesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimRackRolesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_racks_list.go b/netbox/data_netbox_json_dcim_racks_list.go index 189ad2229..cc6ffcbcc 100644 --- a/netbox/data_netbox_json_dcim_racks_list.go +++ b/netbox/data_netbox_json_dcim_racks_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimRacksList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimRacksListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimRacksListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimRacksListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimRacksList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimRacksListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimRacksList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimRacksList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimRacksList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_rear_port_templates_list.go b/netbox/data_netbox_json_dcim_rear_port_templates_list.go index a9d56f91d..14698981f 100644 --- a/netbox/data_netbox_json_dcim_rear_port_templates_list.go +++ b/netbox/data_netbox_json_dcim_rear_port_templates_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimRearPortTemplatesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimRearPortTemplatesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimRearPortTemplatesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimRearPortTemplatesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimRearPortTemplatesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimRearPortTemplatesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimRearPortTemplatesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimRearPortTemplatesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimRearPortTemplatesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_rear_ports_list.go b/netbox/data_netbox_json_dcim_rear_ports_list.go index 6223155e2..2598c3d34 100644 --- a/netbox/data_netbox_json_dcim_rear_ports_list.go +++ b/netbox/data_netbox_json_dcim_rear_ports_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimRearPortsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimRearPortsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimRearPortsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimRearPortsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimRearPortsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimRearPortsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimRearPortsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimRearPortsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimRearPortsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_regions_list.go b/netbox/data_netbox_json_dcim_regions_list.go index b45d89f90..110080087 100644 --- a/netbox/data_netbox_json_dcim_regions_list.go +++ b/netbox/data_netbox_json_dcim_regions_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimRegionsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimRegionsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimRegionsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimRegionsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimRegionsList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimRegionsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimRegionsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimRegionsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimRegionsList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_sites_list.go b/netbox/data_netbox_json_dcim_sites_list.go index eb44468e3..dcc49c8cd 100644 --- a/netbox/data_netbox_json_dcim_sites_list.go +++ b/netbox/data_netbox_json_dcim_sites_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimSitesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimSitesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimSitesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimSitesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimSitesList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimSitesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimSitesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimSitesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimSitesList") + + return nil } diff --git a/netbox/data_netbox_json_dcim_virtual_chassis_list.go b/netbox/data_netbox_json_dcim_virtual_chassis_list.go index 9c42f3fcc..9113916c8 100644 --- a/netbox/data_netbox_json_dcim_virtual_chassis_list.go +++ b/netbox/data_netbox_json_dcim_virtual_chassis_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/dcim" ) func dataNetboxJSONDcimVirtualChassisList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONDcimVirtualChassisListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONDcimVirtualChassisListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONDcimVirtualChassisListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Dcim.DcimVirtualChassisList(nil, nil) - if err != nil { - return err - } + params := dcim.NewDcimVirtualChassisListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Dcim.DcimVirtualChassisList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONDcimVirtualChassisList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONDcimVirtualChassisList") + + return nil } diff --git a/netbox/data_netbox_json_extras_config_contexts_list.go b/netbox/data_netbox_json_extras_config_contexts_list.go index bc5aed960..152d1df0a 100644 --- a/netbox/data_netbox_json_extras_config_contexts_list.go +++ b/netbox/data_netbox_json_extras_config_contexts_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/extras" ) func dataNetboxJSONExtrasConfigContextsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONExtrasConfigContextsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONExtrasConfigContextsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONExtrasConfigContextsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Extras.ExtrasConfigContextsList(nil, nil) - if err != nil { - return err - } + params := extras.NewExtrasConfigContextsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Extras.ExtrasConfigContextsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONExtrasConfigContextsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONExtrasConfigContextsList") + + return nil } diff --git a/netbox/data_netbox_json_extras_export_templates_list.go b/netbox/data_netbox_json_extras_export_templates_list.go index 1d9ca32d8..ad53eae1d 100644 --- a/netbox/data_netbox_json_extras_export_templates_list.go +++ b/netbox/data_netbox_json_extras_export_templates_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/extras" ) func dataNetboxJSONExtrasExportTemplatesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONExtrasExportTemplatesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONExtrasExportTemplatesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONExtrasExportTemplatesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Extras.ExtrasExportTemplatesList(nil, nil) - if err != nil { - return err - } + params := extras.NewExtrasExportTemplatesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Extras.ExtrasExportTemplatesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONExtrasExportTemplatesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONExtrasExportTemplatesList") + + return nil } diff --git a/netbox/data_netbox_json_extras_graphs_list.go b/netbox/data_netbox_json_extras_graphs_list.go index 52bc4013f..2504a1b0e 100644 --- a/netbox/data_netbox_json_extras_graphs_list.go +++ b/netbox/data_netbox_json_extras_graphs_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/extras" ) func dataNetboxJSONExtrasGraphsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONExtrasGraphsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONExtrasGraphsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONExtrasGraphsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Extras.ExtrasGraphsList(nil, nil) - if err != nil { - return err - } + params := extras.NewExtrasGraphsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Extras.ExtrasGraphsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONExtrasGraphsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONExtrasGraphsList") + + return nil } diff --git a/netbox/data_netbox_json_extras_image_attachments_list.go b/netbox/data_netbox_json_extras_image_attachments_list.go index 858608e2c..1802deaee 100644 --- a/netbox/data_netbox_json_extras_image_attachments_list.go +++ b/netbox/data_netbox_json_extras_image_attachments_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/extras" ) func dataNetboxJSONExtrasImageAttachmentsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONExtrasImageAttachmentsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONExtrasImageAttachmentsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONExtrasImageAttachmentsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Extras.ExtrasImageAttachmentsList(nil, nil) - if err != nil { - return err - } + params := extras.NewExtrasImageAttachmentsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Extras.ExtrasImageAttachmentsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONExtrasImageAttachmentsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONExtrasImageAttachmentsList") + + return nil } diff --git a/netbox/data_netbox_json_extras_job_results_list.go b/netbox/data_netbox_json_extras_job_results_list.go index cd9024122..6178e9d23 100644 --- a/netbox/data_netbox_json_extras_job_results_list.go +++ b/netbox/data_netbox_json_extras_job_results_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/extras" ) func dataNetboxJSONExtrasJobResultsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONExtrasJobResultsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONExtrasJobResultsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONExtrasJobResultsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Extras.ExtrasJobResultsList(nil, nil) - if err != nil { - return err - } + params := extras.NewExtrasJobResultsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Extras.ExtrasJobResultsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONExtrasJobResultsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONExtrasJobResultsList") + + return nil } diff --git a/netbox/data_netbox_json_extras_object_changes_list.go b/netbox/data_netbox_json_extras_object_changes_list.go index 3c7bbb839..2d22d4ebf 100644 --- a/netbox/data_netbox_json_extras_object_changes_list.go +++ b/netbox/data_netbox_json_extras_object_changes_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/extras" ) func dataNetboxJSONExtrasObjectChangesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONExtrasObjectChangesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONExtrasObjectChangesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONExtrasObjectChangesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Extras.ExtrasObjectChangesList(nil, nil) - if err != nil { - return err - } + params := extras.NewExtrasObjectChangesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Extras.ExtrasObjectChangesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONExtrasObjectChangesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONExtrasObjectChangesList") + + return nil } diff --git a/netbox/data_netbox_json_extras_tags_list.go b/netbox/data_netbox_json_extras_tags_list.go index 032d5b911..5c18b2f03 100644 --- a/netbox/data_netbox_json_extras_tags_list.go +++ b/netbox/data_netbox_json_extras_tags_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/extras" ) func dataNetboxJSONExtrasTagsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONExtrasTagsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONExtrasTagsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONExtrasTagsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Extras.ExtrasTagsList(nil, nil) - if err != nil { - return err - } + params := extras.NewExtrasTagsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Extras.ExtrasTagsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONExtrasTagsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONExtrasTagsList") + + return nil } diff --git a/netbox/data_netbox_json_ipam_aggregates_list.go b/netbox/data_netbox_json_ipam_aggregates_list.go index 83dd0d4de..1034a1ac4 100644 --- a/netbox/data_netbox_json_ipam_aggregates_list.go +++ b/netbox/data_netbox_json_ipam_aggregates_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/ipam" ) func dataNetboxJSONIpamAggregatesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONIpamAggregatesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONIpamAggregatesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONIpamAggregatesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Ipam.IpamAggregatesList(nil, nil) - if err != nil { - return err - } + params := ipam.NewIpamAggregatesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Ipam.IpamAggregatesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONIpamAggregatesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONIpamAggregatesList") + + return nil } diff --git a/netbox/data_netbox_json_ipam_ip_addresses_list.go b/netbox/data_netbox_json_ipam_ip_addresses_list.go index f3c69b014..27dce5126 100644 --- a/netbox/data_netbox_json_ipam_ip_addresses_list.go +++ b/netbox/data_netbox_json_ipam_ip_addresses_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/ipam" ) func dataNetboxJSONIpamIPAddressesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONIpamIPAddressesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONIpamIPAddressesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONIpamIPAddressesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Ipam.IpamIPAddressesList(nil, nil) - if err != nil { - return err - } + params := ipam.NewIpamIPAddressesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Ipam.IpamIPAddressesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONIpamIPAddressesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONIpamIPAddressesList") + + return nil } diff --git a/netbox/data_netbox_json_ipam_prefixes_list.go b/netbox/data_netbox_json_ipam_prefixes_list.go index b494587f3..8e90bd104 100644 --- a/netbox/data_netbox_json_ipam_prefixes_list.go +++ b/netbox/data_netbox_json_ipam_prefixes_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/ipam" ) func dataNetboxJSONIpamPrefixesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONIpamPrefixesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONIpamPrefixesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONIpamPrefixesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Ipam.IpamPrefixesList(nil, nil) - if err != nil { - return err - } + params := ipam.NewIpamPrefixesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Ipam.IpamPrefixesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONIpamPrefixesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONIpamPrefixesList") + + return nil } diff --git a/netbox/data_netbox_json_ipam_rirs_list.go b/netbox/data_netbox_json_ipam_rirs_list.go index ea186fab6..bc6d0382a 100644 --- a/netbox/data_netbox_json_ipam_rirs_list.go +++ b/netbox/data_netbox_json_ipam_rirs_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/ipam" ) func dataNetboxJSONIpamRirsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONIpamRirsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONIpamRirsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONIpamRirsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Ipam.IpamRirsList(nil, nil) - if err != nil { - return err - } + params := ipam.NewIpamRirsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Ipam.IpamRirsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONIpamRirsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONIpamRirsList") + + return nil } diff --git a/netbox/data_netbox_json_ipam_roles_list.go b/netbox/data_netbox_json_ipam_roles_list.go index e53ad3527..f99ab39b8 100644 --- a/netbox/data_netbox_json_ipam_roles_list.go +++ b/netbox/data_netbox_json_ipam_roles_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/ipam" ) func dataNetboxJSONIpamRolesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONIpamRolesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONIpamRolesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONIpamRolesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Ipam.IpamRolesList(nil, nil) - if err != nil { - return err - } + params := ipam.NewIpamRolesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Ipam.IpamRolesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONIpamRolesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONIpamRolesList") + + return nil } diff --git a/netbox/data_netbox_json_ipam_services_list.go b/netbox/data_netbox_json_ipam_services_list.go index dc3fb2d5b..bfa059039 100644 --- a/netbox/data_netbox_json_ipam_services_list.go +++ b/netbox/data_netbox_json_ipam_services_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/ipam" ) func dataNetboxJSONIpamServicesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONIpamServicesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONIpamServicesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONIpamServicesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Ipam.IpamServicesList(nil, nil) - if err != nil { - return err - } + params := ipam.NewIpamServicesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Ipam.IpamServicesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONIpamServicesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONIpamServicesList") + + return nil } diff --git a/netbox/data_netbox_json_ipam_vlan_groups_list.go b/netbox/data_netbox_json_ipam_vlan_groups_list.go index f49a341cd..bafcccd85 100644 --- a/netbox/data_netbox_json_ipam_vlan_groups_list.go +++ b/netbox/data_netbox_json_ipam_vlan_groups_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/ipam" ) func dataNetboxJSONIpamVlanGroupsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONIpamVlanGroupsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONIpamVlanGroupsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONIpamVlanGroupsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Ipam.IpamVlanGroupsList(nil, nil) - if err != nil { - return err - } + params := ipam.NewIpamVlanGroupsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Ipam.IpamVlanGroupsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONIpamVlanGroupsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONIpamVlanGroupsList") + + return nil } diff --git a/netbox/data_netbox_json_ipam_vlans_list.go b/netbox/data_netbox_json_ipam_vlans_list.go index 3cffa95b3..f752f3500 100644 --- a/netbox/data_netbox_json_ipam_vlans_list.go +++ b/netbox/data_netbox_json_ipam_vlans_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/ipam" ) func dataNetboxJSONIpamVlansList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONIpamVlansListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONIpamVlansListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONIpamVlansListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Ipam.IpamVlansList(nil, nil) - if err != nil { - return err - } + params := ipam.NewIpamVlansListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Ipam.IpamVlansList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONIpamVlansList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONIpamVlansList") + + return nil } diff --git a/netbox/data_netbox_json_ipam_vrfs_list.go b/netbox/data_netbox_json_ipam_vrfs_list.go index 63f84cf1c..7d44b1bec 100644 --- a/netbox/data_netbox_json_ipam_vrfs_list.go +++ b/netbox/data_netbox_json_ipam_vrfs_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/ipam" ) func dataNetboxJSONIpamVrfsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONIpamVrfsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONIpamVrfsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONIpamVrfsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Ipam.IpamVrfsList(nil, nil) - if err != nil { - return err - } + params := ipam.NewIpamVrfsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Ipam.IpamVrfsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONIpamVrfsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONIpamVrfsList") + + return nil } diff --git a/netbox/data_netbox_json_secrets_secret_roles_list.go b/netbox/data_netbox_json_secrets_secret_roles_list.go index fe6686279..12e049703 100644 --- a/netbox/data_netbox_json_secrets_secret_roles_list.go +++ b/netbox/data_netbox_json_secrets_secret_roles_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/secrets" ) func dataNetboxJSONSecretsSecretRolesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONSecretsSecretRolesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONSecretsSecretRolesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONSecretsSecretRolesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Secrets.SecretsSecretRolesList(nil, nil) - if err != nil { - return err - } + params := secrets.NewSecretsSecretRolesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Secrets.SecretsSecretRolesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONSecretsSecretRolesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONSecretsSecretRolesList") + + return nil } diff --git a/netbox/data_netbox_json_secrets_secrets_list.go b/netbox/data_netbox_json_secrets_secrets_list.go index 52634562f..84efaa162 100644 --- a/netbox/data_netbox_json_secrets_secrets_list.go +++ b/netbox/data_netbox_json_secrets_secrets_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/secrets" ) func dataNetboxJSONSecretsSecretsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONSecretsSecretsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONSecretsSecretsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONSecretsSecretsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Secrets.SecretsSecretsList(nil, nil) - if err != nil { - return err - } + params := secrets.NewSecretsSecretsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Secrets.SecretsSecretsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONSecretsSecretsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONSecretsSecretsList") + + return nil } diff --git a/netbox/data_netbox_json_tenancy_tenant_groups_list.go b/netbox/data_netbox_json_tenancy_tenant_groups_list.go index 4eeee5bee..e81d7e099 100644 --- a/netbox/data_netbox_json_tenancy_tenant_groups_list.go +++ b/netbox/data_netbox_json_tenancy_tenant_groups_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/tenancy" ) func dataNetboxJSONTenancyTenantGroupsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONTenancyTenantGroupsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONTenancyTenantGroupsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONTenancyTenantGroupsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Tenancy.TenancyTenantGroupsList(nil, nil) - if err != nil { - return err - } + params := tenancy.NewTenancyTenantGroupsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Tenancy.TenancyTenantGroupsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONTenancyTenantGroupsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONTenancyTenantGroupsList") + + return nil } diff --git a/netbox/data_netbox_json_tenancy_tenants_list.go b/netbox/data_netbox_json_tenancy_tenants_list.go index 83ab28189..f8ca05cc8 100644 --- a/netbox/data_netbox_json_tenancy_tenants_list.go +++ b/netbox/data_netbox_json_tenancy_tenants_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/tenancy" ) func dataNetboxJSONTenancyTenantsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONTenancyTenantsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONTenancyTenantsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONTenancyTenantsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Tenancy.TenancyTenantsList(nil, nil) - if err != nil { - return err - } + params := tenancy.NewTenancyTenantsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Tenancy.TenancyTenantsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONTenancyTenantsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONTenancyTenantsList") + + return nil } diff --git a/netbox/data_netbox_json_users_groups_list.go b/netbox/data_netbox_json_users_groups_list.go index c2d9f6c7e..c5747f706 100644 --- a/netbox/data_netbox_json_users_groups_list.go +++ b/netbox/data_netbox_json_users_groups_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/users" ) func dataNetboxJSONUsersGroupsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONUsersGroupsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONUsersGroupsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONUsersGroupsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Users.UsersGroupsList(nil, nil) - if err != nil { - return err - } + params := users.NewUsersGroupsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Users.UsersGroupsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONUsersGroupsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONUsersGroupsList") + + return nil } diff --git a/netbox/data_netbox_json_users_permissions_list.go b/netbox/data_netbox_json_users_permissions_list.go index a53d596f5..a670d83bc 100644 --- a/netbox/data_netbox_json_users_permissions_list.go +++ b/netbox/data_netbox_json_users_permissions_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/users" ) func dataNetboxJSONUsersPermissionsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONUsersPermissionsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONUsersPermissionsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONUsersPermissionsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Users.UsersPermissionsList(nil, nil) - if err != nil { - return err - } + params := users.NewUsersPermissionsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Users.UsersPermissionsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONUsersPermissionsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONUsersPermissionsList") + + return nil } diff --git a/netbox/data_netbox_json_users_users_list.go b/netbox/data_netbox_json_users_users_list.go index 100db7347..4991a0f09 100644 --- a/netbox/data_netbox_json_users_users_list.go +++ b/netbox/data_netbox_json_users_users_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/users" ) func dataNetboxJSONUsersUsersList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONUsersUsersListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONUsersUsersListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONUsersUsersListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Users.UsersUsersList(nil, nil) - if err != nil { - return err - } + params := users.NewUsersUsersListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Users.UsersUsersList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONUsersUsersList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONUsersUsersList") + + return nil } diff --git a/netbox/data_netbox_json_virtualization_cluster_groups_list.go b/netbox/data_netbox_json_virtualization_cluster_groups_list.go index 51eeabbf8..29451c8bd 100644 --- a/netbox/data_netbox_json_virtualization_cluster_groups_list.go +++ b/netbox/data_netbox_json_virtualization_cluster_groups_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/virtualization" ) func dataNetboxJSONVirtualizationClusterGroupsList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONVirtualizationClusterGroupsListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONVirtualizationClusterGroupsListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONVirtualizationClusterGroupsListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Virtualization.VirtualizationClusterGroupsList(nil, nil) - if err != nil { - return err - } + params := virtualization.NewVirtualizationClusterGroupsListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Virtualization.VirtualizationClusterGroupsList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONVirtualizationClusterGroupsList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONVirtualizationClusterGroupsList") + + return nil } diff --git a/netbox/data_netbox_json_virtualization_cluster_types_list.go b/netbox/data_netbox_json_virtualization_cluster_types_list.go index d993df23e..4f5984820 100644 --- a/netbox/data_netbox_json_virtualization_cluster_types_list.go +++ b/netbox/data_netbox_json_virtualization_cluster_types_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/virtualization" ) func dataNetboxJSONVirtualizationClusterTypesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONVirtualizationClusterTypesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONVirtualizationClusterTypesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONVirtualizationClusterTypesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Virtualization.VirtualizationClusterTypesList(nil, nil) - if err != nil { - return err - } + params := virtualization.NewVirtualizationClusterTypesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Virtualization.VirtualizationClusterTypesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONVirtualizationClusterTypesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONVirtualizationClusterTypesList") + + return nil } diff --git a/netbox/data_netbox_json_virtualization_clusters_list.go b/netbox/data_netbox_json_virtualization_clusters_list.go index 570cbab24..8e465e644 100644 --- a/netbox/data_netbox_json_virtualization_clusters_list.go +++ b/netbox/data_netbox_json_virtualization_clusters_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/virtualization" ) func dataNetboxJSONVirtualizationClustersList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONVirtualizationClustersListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONVirtualizationClustersListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONVirtualizationClustersListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Virtualization.VirtualizationClustersList(nil, nil) - if err != nil { - return err - } + params := virtualization.NewVirtualizationClustersListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Virtualization.VirtualizationClustersList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONVirtualizationClustersList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONVirtualizationClustersList") + + return nil } diff --git a/netbox/data_netbox_json_virtualization_interfaces_list.go b/netbox/data_netbox_json_virtualization_interfaces_list.go index 76c4efe28..f14987d41 100644 --- a/netbox/data_netbox_json_virtualization_interfaces_list.go +++ b/netbox/data_netbox_json_virtualization_interfaces_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/virtualization" ) func dataNetboxJSONVirtualizationInterfacesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONVirtualizationInterfacesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONVirtualizationInterfacesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONVirtualizationInterfacesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Virtualization.VirtualizationInterfacesList(nil, nil) - if err != nil { - return err - } + params := virtualization.NewVirtualizationInterfacesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Virtualization.VirtualizationInterfacesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONVirtualizationInterfacesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONVirtualizationInterfacesList") + + return nil } diff --git a/netbox/data_netbox_json_virtualization_virtual_machines_list.go b/netbox/data_netbox_json_virtualization_virtual_machines_list.go index a00bc4f75..eec71fd59 100644 --- a/netbox/data_netbox_json_virtualization_virtual_machines_list.go +++ b/netbox/data_netbox_json_virtualization_virtual_machines_list.go @@ -1,37 +1,47 @@ package netbox import ( - "encoding/json" + "encoding/json" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/virtualization" ) func dataNetboxJSONVirtualizationVirtualMachinesList() *schema.Resource { - return &schema.Resource{ - Read: dataNetboxJSONVirtualizationVirtualMachinesListRead, - - Schema: map[string]*schema.Schema{ - "json": { - Type: schema.TypeString, - Computed: true, - }, - }, - } + return &schema.Resource{ + Read: dataNetboxJSONVirtualizationVirtualMachinesListRead, + + Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, + "json": { + Type: schema.TypeString, + Computed: true, + }, + }, + } } func dataNetboxJSONVirtualizationVirtualMachinesListRead(d *schema.ResourceData, m interface{}) error { - client := m.(*netboxclient.NetBoxAPI) + client := m.(*netboxclient.NetBoxAPI) - list, err := client.Virtualization.VirtualizationVirtualMachinesList(nil, nil) - if err != nil { - return err - } + params := virtualization.NewVirtualizationVirtualMachinesListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit - j, _ := json.Marshal(list.Payload.Results) + list, err := client.Virtualization.VirtualizationVirtualMachinesList(params, nil) + if err != nil { + return err + } - d.Set("json", string(j)) - d.SetId("NetboxJSONVirtualizationVirtualMachinesList") + j, _ := json.Marshal(list.Payload.Results) - return nil + d.Set("json", string(j)) + d.SetId("NetboxJSONVirtualizationVirtualMachinesList") + + return nil } diff --git a/utils/netbox_generate_json_datasources.sh b/utils/netbox_generate_json_datasources.sh index dc81e02c7..d3c60f8d9 100755 --- a/utils/netbox_generate_json_datasources.sh +++ b/utils/netbox_generate_json_datasources.sh @@ -17,6 +17,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/helper/schema" netboxclient "github.com/netbox-community/go-netbox/netbox/client" + "github.com/netbox-community/go-netbox/netbox/client/${SECTION,}" ) func dataNetboxJSON${SECTION}${ITEM}List() *schema.Resource { @@ -24,6 +25,11 @@ func dataNetboxJSON${SECTION}${ITEM}List() *schema.Resource { Read: dataNetboxJSON${SECTION}${ITEM}ListRead, Schema: map[string]*schema.Schema{ + "limit": { + Type: schema.TypeInt, + Optional: true, + Default: 0, + }, "json": { Type: schema.TypeString, Computed: true, @@ -35,7 +41,11 @@ func dataNetboxJSON${SECTION}${ITEM}List() *schema.Resource { func dataNetboxJSON${SECTION}${ITEM}ListRead(d *schema.ResourceData, m interface{}) error { client := m.(*netboxclient.NetBoxAPI) - list, err := client.${SECTION}.${SECTION}${ITEM}List(nil, nil) + params := ${SECTION,}.New${SECTION}${ITEM}ListParams() + limit := int64(d.Get("limit").(int)) + params.Limit = &limit + + list, err := client.${SECTION}.${SECTION}${ITEM}List(params, nil) if err != nil { return err } @@ -63,15 +73,17 @@ Get json output from the ${ENDPOINT}_list Netbox endpoint ## Example Usage \`\`\`hcl -data "netbox_json_${ENDPOINT}_list" "test" {} +data "netbox_json_${ENDPOINT}_list" "test" { + limit = 0 +} output "example" { - value = jsondecode(data.netbox_json_${ENDPOINT}_list.test.json) + value = jsondecode(data.netbox_json_${ENDPOINT}_list.test.json) } \`\`\` ## Argument Reference -This function takes no arguments. +* \`\`limit\`\` (Optional). The max number of returned results. If 0 is specified, all records will be returned. ## Attributes Reference diff --git a/utils/provider_update.txt b/utils/provider_update.txt index 1f10033fb..f5eb506e2 100644 --- a/utils/provider_update.txt +++ b/utils/provider_update.txt @@ -132,3 +132,472 @@ "netbox_json_virtualization_clusters_list": dataNetboxJSONVirtualizationClustersList(), "netbox_json_virtualization_interfaces_list": dataNetboxJSONVirtualizationInterfacesList(), "netbox_json_virtualization_virtual_machines_list": dataNetboxJSONVirtualizationVirtualMachinesList(), +"netbox_json_circuits_circuit_terminations_list": dataNetboxJSONCircuitsCircuitTerminationsList(), +"netbox_json_circuits_circuit_types_list": dataNetboxJSONCircuitsCircuitTypesList(), +"netbox_json_circuits_circuits_list": dataNetboxJSONCircuitsCircuitsList(), +"netbox_json_circuits_providers_list": dataNetboxJSONCircuitsProvidersList(), +"netbox_json_dcim_cables_list": dataNetboxJSONDcimCablesList(), +"netbox_json_dcim_console_connections_list": dataNetboxJSONDcimConsoleConnectionsList(), +"netbox_json_dcim_console_port_templates_list": dataNetboxJSONDcimConsolePortTemplatesList(), +"netbox_json_dcim_console_ports_list": dataNetboxJSONDcimConsolePortsList(), +"netbox_json_dcim_console_server_port_templates_list": dataNetboxJSONDcimConsoleServerPortTemplatesList(), +"netbox_json_dcim_console_server_ports_list": dataNetboxJSONDcimConsoleServerPortsList(), +"netbox_json_dcim_device_bay_templates_list": dataNetboxJSONDcimDeviceBayTemplatesList(), +"netbox_json_dcim_device_bays_list": dataNetboxJSONDcimDeviceBaysList(), +"netbox_json_dcim_device_roles_list": dataNetboxJSONDcimDeviceRolesList(), +"netbox_json_dcim_device_types_list": dataNetboxJSONDcimDeviceTypesList(), +"netbox_json_dcim_devices_list": dataNetboxJSONDcimDevicesList(), +"netbox_json_dcim_front_port_templates_list": dataNetboxJSONDcimFrontPortTemplatesList(), +"netbox_json_dcim_front_ports_list": dataNetboxJSONDcimFrontPortsList(), +"netbox_json_dcim_interface_connections_list": dataNetboxJSONDcimInterfaceConnectionsList(), +"netbox_json_dcim_interface_templates_list": dataNetboxJSONDcimInterfaceTemplatesList(), +"netbox_json_dcim_interfaces_list": dataNetboxJSONDcimInterfacesList(), +"netbox_json_dcim_inventory_items_list": dataNetboxJSONDcimInventoryItemsList(), +"netbox_json_dcim_manufacturers_list": dataNetboxJSONDcimManufacturersList(), +"netbox_json_dcim_platforms_list": dataNetboxJSONDcimPlatformsList(), +"netbox_json_dcim_power_connections_list": dataNetboxJSONDcimPowerConnectionsList(), +"netbox_json_dcim_power_feeds_list": dataNetboxJSONDcimPowerFeedsList(), +"netbox_json_dcim_power_outlet_templates_list": dataNetboxJSONDcimPowerOutletTemplatesList(), +"netbox_json_dcim_power_outlets_list": dataNetboxJSONDcimPowerOutletsList(), +"netbox_json_dcim_power_panels_list": dataNetboxJSONDcimPowerPanelsList(), +"netbox_json_dcim_power_port_templates_list": dataNetboxJSONDcimPowerPortTemplatesList(), +"netbox_json_dcim_power_ports_list": dataNetboxJSONDcimPowerPortsList(), +"netbox_json_dcim_rack_groups_list": dataNetboxJSONDcimRackGroupsList(), +"netbox_json_dcim_rack_reservations_list": dataNetboxJSONDcimRackReservationsList(), +"netbox_json_dcim_rack_roles_list": dataNetboxJSONDcimRackRolesList(), +"netbox_json_dcim_racks_list": dataNetboxJSONDcimRacksList(), +"netbox_json_dcim_rear_port_templates_list": dataNetboxJSONDcimRearPortTemplatesList(), +"netbox_json_dcim_rear_ports_list": dataNetboxJSONDcimRearPortsList(), +"netbox_json_dcim_regions_list": dataNetboxJSONDcimRegionsList(), +"netbox_json_dcim_sites_list": dataNetboxJSONDcimSitesList(), +"netbox_json_dcim_virtual_chassis_list": dataNetboxJSONDcimVirtualChassisList(), +"netbox_json_extras_config_contexts_list": dataNetboxJSONExtrasConfigContextsList(), +"netbox_json_extras_export_templates_list": dataNetboxJSONExtrasExportTemplatesList(), +"netbox_json_extras_graphs_list": dataNetboxJSONExtrasGraphsList(), +"netbox_json_extras_image_attachments_list": dataNetboxJSONExtrasImageAttachmentsList(), +"netbox_json_extras_job_results_list": dataNetboxJSONExtrasJobResultsList(), +"netbox_json_extras_object_changes_list": dataNetboxJSONExtrasObjectChangesList(), +"netbox_json_extras_tags_list": dataNetboxJSONExtrasTagsList(), +"netbox_json_ipam_aggregates_list": dataNetboxJSONIpamAggregatesList(), +"netbox_json_ipam_ip_addresses_list": dataNetboxJSONIpamIPAddressesList(), +"netbox_json_ipam_prefixes_list": dataNetboxJSONIpamPrefixesList(), +"netbox_json_ipam_rirs_list": dataNetboxJSONIpamRirsList(), +"netbox_json_ipam_roles_list": dataNetboxJSONIpamRolesList(), +"netbox_json_ipam_services_list": dataNetboxJSONIpamServicesList(), +"netbox_json_ipam_vlan_groups_list": dataNetboxJSONIpamVlanGroupsList(), +"netbox_json_ipam_vlans_list": dataNetboxJSONIpamVlansList(), +"netbox_json_ipam_vrfs_list": dataNetboxJSONIpamVrfsList(), +"netbox_json_secrets_secret_roles_list": dataNetboxJSONSecretsSecretRolesList(), +"netbox_json_secrets_secrets_list": dataNetboxJSONSecretsSecretsList(), +"netbox_json_tenancy_tenant_groups_list": dataNetboxJSONTenancyTenantGroupsList(), +"netbox_json_tenancy_tenants_list": dataNetboxJSONTenancyTenantsList(), +"netbox_json_users_groups_list": dataNetboxJSONUsersGroupsList(), +"netbox_json_users_permissions_list": dataNetboxJSONUsersPermissionsList(), +"netbox_json_users_users_list": dataNetboxJSONUsersUsersList(), +"netbox_json_virtualization_cluster_groups_list": dataNetboxJSONVirtualizationClusterGroupsList(), +"netbox_json_virtualization_cluster_types_list": dataNetboxJSONVirtualizationClusterTypesList(), +"netbox_json_virtualization_clusters_list": dataNetboxJSONVirtualizationClustersList(), +"netbox_json_virtualization_interfaces_list": dataNetboxJSONVirtualizationInterfacesList(), +"netbox_json_virtualization_virtual_machines_list": dataNetboxJSONVirtualizationVirtualMachinesList(), +"netbox_json_circuits_circuit_terminations_list": dataNetboxJSONCircuitsCircuitTerminationsList(), +"netbox_json_circuits_circuit_types_list": dataNetboxJSONCircuitsCircuitTypesList(), +"netbox_json_circuits_circuits_list": dataNetboxJSONCircuitsCircuitsList(), +"netbox_json_circuits_providers_list": dataNetboxJSONCircuitsProvidersList(), +"netbox_json_dcim_cables_list": dataNetboxJSONDcimCablesList(), +"netbox_json_dcim_console_connections_list": dataNetboxJSONDcimConsoleConnectionsList(), +"netbox_json_dcim_console_port_templates_list": dataNetboxJSONDcimConsolePortTemplatesList(), +"netbox_json_dcim_console_ports_list": dataNetboxJSONDcimConsolePortsList(), +"netbox_json_dcim_console_server_port_templates_list": dataNetboxJSONDcimConsoleServerPortTemplatesList(), +"netbox_json_dcim_console_server_ports_list": dataNetboxJSONDcimConsoleServerPortsList(), +"netbox_json_dcim_device_bay_templates_list": dataNetboxJSONDcimDeviceBayTemplatesList(), +"netbox_json_dcim_device_bays_list": dataNetboxJSONDcimDeviceBaysList(), +"netbox_json_dcim_device_roles_list": dataNetboxJSONDcimDeviceRolesList(), +"netbox_json_dcim_device_types_list": dataNetboxJSONDcimDeviceTypesList(), +"netbox_json_dcim_devices_list": dataNetboxJSONDcimDevicesList(), +"netbox_json_dcim_front_port_templates_list": dataNetboxJSONDcimFrontPortTemplatesList(), +"netbox_json_dcim_front_ports_list": dataNetboxJSONDcimFrontPortsList(), +"netbox_json_dcim_interface_connections_list": dataNetboxJSONDcimInterfaceConnectionsList(), +"netbox_json_dcim_interface_templates_list": dataNetboxJSONDcimInterfaceTemplatesList(), +"netbox_json_dcim_interfaces_list": dataNetboxJSONDcimInterfacesList(), +"netbox_json_dcim_inventory_items_list": dataNetboxJSONDcimInventoryItemsList(), +"netbox_json_dcim_manufacturers_list": dataNetboxJSONDcimManufacturersList(), +"netbox_json_dcim_platforms_list": dataNetboxJSONDcimPlatformsList(), +"netbox_json_dcim_power_connections_list": dataNetboxJSONDcimPowerConnectionsList(), +"netbox_json_dcim_power_feeds_list": dataNetboxJSONDcimPowerFeedsList(), +"netbox_json_dcim_power_outlet_templates_list": dataNetboxJSONDcimPowerOutletTemplatesList(), +"netbox_json_dcim_power_outlets_list": dataNetboxJSONDcimPowerOutletsList(), +"netbox_json_dcim_power_panels_list": dataNetboxJSONDcimPowerPanelsList(), +"netbox_json_dcim_power_port_templates_list": dataNetboxJSONDcimPowerPortTemplatesList(), +"netbox_json_dcim_power_ports_list": dataNetboxJSONDcimPowerPortsList(), +"netbox_json_dcim_rack_groups_list": dataNetboxJSONDcimRackGroupsList(), +"netbox_json_dcim_rack_reservations_list": dataNetboxJSONDcimRackReservationsList(), +"netbox_json_dcim_rack_roles_list": dataNetboxJSONDcimRackRolesList(), +"netbox_json_dcim_racks_list": dataNetboxJSONDcimRacksList(), +"netbox_json_dcim_rear_port_templates_list": dataNetboxJSONDcimRearPortTemplatesList(), +"netbox_json_dcim_rear_ports_list": dataNetboxJSONDcimRearPortsList(), +"netbox_json_dcim_regions_list": dataNetboxJSONDcimRegionsList(), +"netbox_json_dcim_sites_list": dataNetboxJSONDcimSitesList(), +"netbox_json_dcim_virtual_chassis_list": dataNetboxJSONDcimVirtualChassisList(), +"netbox_json_extras_config_contexts_list": dataNetboxJSONExtrasConfigContextsList(), +"netbox_json_extras_export_templates_list": dataNetboxJSONExtrasExportTemplatesList(), +"netbox_json_extras_graphs_list": dataNetboxJSONExtrasGraphsList(), +"netbox_json_extras_image_attachments_list": dataNetboxJSONExtrasImageAttachmentsList(), +"netbox_json_extras_job_results_list": dataNetboxJSONExtrasJobResultsList(), +"netbox_json_extras_object_changes_list": dataNetboxJSONExtrasObjectChangesList(), +"netbox_json_extras_tags_list": dataNetboxJSONExtrasTagsList(), +"netbox_json_ipam_aggregates_list": dataNetboxJSONIpamAggregatesList(), +"netbox_json_ipam_ip_addresses_list": dataNetboxJSONIpamIPAddressesList(), +"netbox_json_ipam_prefixes_list": dataNetboxJSONIpamPrefixesList(), +"netbox_json_ipam_rirs_list": dataNetboxJSONIpamRirsList(), +"netbox_json_ipam_roles_list": dataNetboxJSONIpamRolesList(), +"netbox_json_ipam_services_list": dataNetboxJSONIpamServicesList(), +"netbox_json_ipam_vlan_groups_list": dataNetboxJSONIpamVlanGroupsList(), +"netbox_json_ipam_vlans_list": dataNetboxJSONIpamVlansList(), +"netbox_json_ipam_vrfs_list": dataNetboxJSONIpamVrfsList(), +"netbox_json_secrets_secret_roles_list": dataNetboxJSONSecretsSecretRolesList(), +"netbox_json_secrets_secrets_list": dataNetboxJSONSecretsSecretsList(), +"netbox_json_tenancy_tenant_groups_list": dataNetboxJSONTenancyTenantGroupsList(), +"netbox_json_tenancy_tenants_list": dataNetboxJSONTenancyTenantsList(), +"netbox_json_users_groups_list": dataNetboxJSONUsersGroupsList(), +"netbox_json_users_permissions_list": dataNetboxJSONUsersPermissionsList(), +"netbox_json_users_users_list": dataNetboxJSONUsersUsersList(), +"netbox_json_virtualization_cluster_groups_list": dataNetboxJSONVirtualizationClusterGroupsList(), +"netbox_json_virtualization_cluster_types_list": dataNetboxJSONVirtualizationClusterTypesList(), +"netbox_json_virtualization_clusters_list": dataNetboxJSONVirtualizationClustersList(), +"netbox_json_virtualization_interfaces_list": dataNetboxJSONVirtualizationInterfacesList(), +"netbox_json_virtualization_virtual_machines_list": dataNetboxJSONVirtualizationVirtualMachinesList(), +"netbox_json_circuits_circuit_terminations_list": dataNetboxJSONCircuitsCircuitTerminationsList(), +"netbox_json_circuits_circuit_types_list": dataNetboxJSONCircuitsCircuitTypesList(), +"netbox_json_circuits_circuits_list": dataNetboxJSONCircuitsCircuitsList(), +"netbox_json_circuits_providers_list": dataNetboxJSONCircuitsProvidersList(), +"netbox_json_dcim_cables_list": dataNetboxJSONDcimCablesList(), +"netbox_json_dcim_console_connections_list": dataNetboxJSONDcimConsoleConnectionsList(), +"netbox_json_dcim_console_port_templates_list": dataNetboxJSONDcimConsolePortTemplatesList(), +"netbox_json_dcim_console_ports_list": dataNetboxJSONDcimConsolePortsList(), +"netbox_json_dcim_console_server_port_templates_list": dataNetboxJSONDcimConsoleServerPortTemplatesList(), +"netbox_json_dcim_console_server_ports_list": dataNetboxJSONDcimConsoleServerPortsList(), +"netbox_json_dcim_device_bay_templates_list": dataNetboxJSONDcimDeviceBayTemplatesList(), +"netbox_json_dcim_device_bays_list": dataNetboxJSONDcimDeviceBaysList(), +"netbox_json_dcim_device_roles_list": dataNetboxJSONDcimDeviceRolesList(), +"netbox_json_dcim_device_types_list": dataNetboxJSONDcimDeviceTypesList(), +"netbox_json_dcim_devices_list": dataNetboxJSONDcimDevicesList(), +"netbox_json_dcim_front_port_templates_list": dataNetboxJSONDcimFrontPortTemplatesList(), +"netbox_json_dcim_front_ports_list": dataNetboxJSONDcimFrontPortsList(), +"netbox_json_dcim_interface_connections_list": dataNetboxJSONDcimInterfaceConnectionsList(), +"netbox_json_dcim_interface_templates_list": dataNetboxJSONDcimInterfaceTemplatesList(), +"netbox_json_dcim_interfaces_list": dataNetboxJSONDcimInterfacesList(), +"netbox_json_dcim_inventory_items_list": dataNetboxJSONDcimInventoryItemsList(), +"netbox_json_dcim_manufacturers_list": dataNetboxJSONDcimManufacturersList(), +"netbox_json_dcim_platforms_list": dataNetboxJSONDcimPlatformsList(), +"netbox_json_dcim_power_connections_list": dataNetboxJSONDcimPowerConnectionsList(), +"netbox_json_dcim_power_feeds_list": dataNetboxJSONDcimPowerFeedsList(), +"netbox_json_dcim_power_outlet_templates_list": dataNetboxJSONDcimPowerOutletTemplatesList(), +"netbox_json_dcim_power_outlets_list": dataNetboxJSONDcimPowerOutletsList(), +"netbox_json_dcim_power_panels_list": dataNetboxJSONDcimPowerPanelsList(), +"netbox_json_dcim_power_port_templates_list": dataNetboxJSONDcimPowerPortTemplatesList(), +"netbox_json_dcim_power_ports_list": dataNetboxJSONDcimPowerPortsList(), +"netbox_json_dcim_rack_groups_list": dataNetboxJSONDcimRackGroupsList(), +"netbox_json_dcim_rack_reservations_list": dataNetboxJSONDcimRackReservationsList(), +"netbox_json_dcim_rack_roles_list": dataNetboxJSONDcimRackRolesList(), +"netbox_json_dcim_racks_list": dataNetboxJSONDcimRacksList(), +"netbox_json_dcim_rear_port_templates_list": dataNetboxJSONDcimRearPortTemplatesList(), +"netbox_json_dcim_rear_ports_list": dataNetboxJSONDcimRearPortsList(), +"netbox_json_dcim_regions_list": dataNetboxJSONDcimRegionsList(), +"netbox_json_dcim_sites_list": dataNetboxJSONDcimSitesList(), +"netbox_json_dcim_virtual_chassis_list": dataNetboxJSONDcimVirtualChassisList(), +"netbox_json_extras_config_contexts_list": dataNetboxJSONExtrasConfigContextsList(), +"netbox_json_extras_export_templates_list": dataNetboxJSONExtrasExportTemplatesList(), +"netbox_json_extras_graphs_list": dataNetboxJSONExtrasGraphsList(), +"netbox_json_extras_image_attachments_list": dataNetboxJSONExtrasImageAttachmentsList(), +"netbox_json_extras_job_results_list": dataNetboxJSONExtrasJobResultsList(), +"netbox_json_extras_object_changes_list": dataNetboxJSONExtrasObjectChangesList(), +"netbox_json_extras_tags_list": dataNetboxJSONExtrasTagsList(), +"netbox_json_ipam_aggregates_list": dataNetboxJSONIpamAggregatesList(), +"netbox_json_ipam_ip_addresses_list": dataNetboxJSONIpamIPAddressesList(), +"netbox_json_ipam_prefixes_list": dataNetboxJSONIpamPrefixesList(), +"netbox_json_ipam_rirs_list": dataNetboxJSONIpamRirsList(), +"netbox_json_ipam_roles_list": dataNetboxJSONIpamRolesList(), +"netbox_json_ipam_services_list": dataNetboxJSONIpamServicesList(), +"netbox_json_ipam_vlan_groups_list": dataNetboxJSONIpamVlanGroupsList(), +"netbox_json_ipam_vlans_list": dataNetboxJSONIpamVlansList(), +"netbox_json_ipam_vrfs_list": dataNetboxJSONIpamVrfsList(), +"netbox_json_secrets_secret_roles_list": dataNetboxJSONSecretsSecretRolesList(), +"netbox_json_secrets_secrets_list": dataNetboxJSONSecretsSecretsList(), +"netbox_json_tenancy_tenant_groups_list": dataNetboxJSONTenancyTenantGroupsList(), +"netbox_json_tenancy_tenants_list": dataNetboxJSONTenancyTenantsList(), +"netbox_json_users_groups_list": dataNetboxJSONUsersGroupsList(), +"netbox_json_users_permissions_list": dataNetboxJSONUsersPermissionsList(), +"netbox_json_users_users_list": dataNetboxJSONUsersUsersList(), +"netbox_json_virtualization_cluster_groups_list": dataNetboxJSONVirtualizationClusterGroupsList(), +"netbox_json_virtualization_cluster_types_list": dataNetboxJSONVirtualizationClusterTypesList(), +"netbox_json_virtualization_clusters_list": dataNetboxJSONVirtualizationClustersList(), +"netbox_json_virtualization_interfaces_list": dataNetboxJSONVirtualizationInterfacesList(), +"netbox_json_virtualization_virtual_machines_list": dataNetboxJSONVirtualizationVirtualMachinesList(), +"netbox_json_circuits_circuit_terminations_list": dataNetboxJSONCircuitsCircuitTerminationsList(), +"netbox_json_circuits_circuit_types_list": dataNetboxJSONCircuitsCircuitTypesList(), +"netbox_json_circuits_circuits_list": dataNetboxJSONCircuitsCircuitsList(), +"netbox_json_circuits_providers_list": dataNetboxJSONCircuitsProvidersList(), +"netbox_json_dcim_cables_list": dataNetboxJSONDcimCablesList(), +"netbox_json_dcim_console_connections_list": dataNetboxJSONDcimConsoleConnectionsList(), +"netbox_json_dcim_console_port_templates_list": dataNetboxJSONDcimConsolePortTemplatesList(), +"netbox_json_dcim_console_ports_list": dataNetboxJSONDcimConsolePortsList(), +"netbox_json_dcim_console_server_port_templates_list": dataNetboxJSONDcimConsoleServerPortTemplatesList(), +"netbox_json_dcim_console_server_ports_list": dataNetboxJSONDcimConsoleServerPortsList(), +"netbox_json_dcim_device_bay_templates_list": dataNetboxJSONDcimDeviceBayTemplatesList(), +"netbox_json_dcim_device_bays_list": dataNetboxJSONDcimDeviceBaysList(), +"netbox_json_dcim_device_roles_list": dataNetboxJSONDcimDeviceRolesList(), +"netbox_json_dcim_device_types_list": dataNetboxJSONDcimDeviceTypesList(), +"netbox_json_dcim_devices_list": dataNetboxJSONDcimDevicesList(), +"netbox_json_dcim_front_port_templates_list": dataNetboxJSONDcimFrontPortTemplatesList(), +"netbox_json_dcim_front_ports_list": dataNetboxJSONDcimFrontPortsList(), +"netbox_json_dcim_interface_connections_list": dataNetboxJSONDcimInterfaceConnectionsList(), +"netbox_json_dcim_interface_templates_list": dataNetboxJSONDcimInterfaceTemplatesList(), +"netbox_json_dcim_interfaces_list": dataNetboxJSONDcimInterfacesList(), +"netbox_json_dcim_inventory_items_list": dataNetboxJSONDcimInventoryItemsList(), +"netbox_json_dcim_manufacturers_list": dataNetboxJSONDcimManufacturersList(), +"netbox_json_dcim_platforms_list": dataNetboxJSONDcimPlatformsList(), +"netbox_json_dcim_power_connections_list": dataNetboxJSONDcimPowerConnectionsList(), +"netbox_json_dcim_power_feeds_list": dataNetboxJSONDcimPowerFeedsList(), +"netbox_json_dcim_power_outlet_templates_list": dataNetboxJSONDcimPowerOutletTemplatesList(), +"netbox_json_dcim_power_outlets_list": dataNetboxJSONDcimPowerOutletsList(), +"netbox_json_dcim_power_panels_list": dataNetboxJSONDcimPowerPanelsList(), +"netbox_json_dcim_power_port_templates_list": dataNetboxJSONDcimPowerPortTemplatesList(), +"netbox_json_dcim_power_ports_list": dataNetboxJSONDcimPowerPortsList(), +"netbox_json_dcim_rack_groups_list": dataNetboxJSONDcimRackGroupsList(), +"netbox_json_dcim_rack_reservations_list": dataNetboxJSONDcimRackReservationsList(), +"netbox_json_dcim_rack_roles_list": dataNetboxJSONDcimRackRolesList(), +"netbox_json_dcim_racks_list": dataNetboxJSONDcimRacksList(), +"netbox_json_dcim_rear_port_templates_list": dataNetboxJSONDcimRearPortTemplatesList(), +"netbox_json_dcim_rear_ports_list": dataNetboxJSONDcimRearPortsList(), +"netbox_json_dcim_regions_list": dataNetboxJSONDcimRegionsList(), +"netbox_json_dcim_sites_list": dataNetboxJSONDcimSitesList(), +"netbox_json_dcim_virtual_chassis_list": dataNetboxJSONDcimVirtualChassisList(), +"netbox_json_extras_config_contexts_list": dataNetboxJSONExtrasConfigContextsList(), +"netbox_json_extras_export_templates_list": dataNetboxJSONExtrasExportTemplatesList(), +"netbox_json_extras_graphs_list": dataNetboxJSONExtrasGraphsList(), +"netbox_json_extras_image_attachments_list": dataNetboxJSONExtrasImageAttachmentsList(), +"netbox_json_extras_job_results_list": dataNetboxJSONExtrasJobResultsList(), +"netbox_json_extras_object_changes_list": dataNetboxJSONExtrasObjectChangesList(), +"netbox_json_extras_tags_list": dataNetboxJSONExtrasTagsList(), +"netbox_json_ipam_aggregates_list": dataNetboxJSONIpamAggregatesList(), +"netbox_json_ipam_ip_addresses_list": dataNetboxJSONIpamIPAddressesList(), +"netbox_json_ipam_prefixes_list": dataNetboxJSONIpamPrefixesList(), +"netbox_json_ipam_rirs_list": dataNetboxJSONIpamRirsList(), +"netbox_json_ipam_roles_list": dataNetboxJSONIpamRolesList(), +"netbox_json_ipam_services_list": dataNetboxJSONIpamServicesList(), +"netbox_json_ipam_vlan_groups_list": dataNetboxJSONIpamVlanGroupsList(), +"netbox_json_ipam_vlans_list": dataNetboxJSONIpamVlansList(), +"netbox_json_ipam_vrfs_list": dataNetboxJSONIpamVrfsList(), +"netbox_json_secrets_secret_roles_list": dataNetboxJSONSecretsSecretRolesList(), +"netbox_json_secrets_secrets_list": dataNetboxJSONSecretsSecretsList(), +"netbox_json_tenancy_tenant_groups_list": dataNetboxJSONTenancyTenantGroupsList(), +"netbox_json_tenancy_tenants_list": dataNetboxJSONTenancyTenantsList(), +"netbox_json_users_groups_list": dataNetboxJSONUsersGroupsList(), +"netbox_json_users_permissions_list": dataNetboxJSONUsersPermissionsList(), +"netbox_json_users_users_list": dataNetboxJSONUsersUsersList(), +"netbox_json_virtualization_cluster_groups_list": dataNetboxJSONVirtualizationClusterGroupsList(), +"netbox_json_virtualization_cluster_types_list": dataNetboxJSONVirtualizationClusterTypesList(), +"netbox_json_virtualization_clusters_list": dataNetboxJSONVirtualizationClustersList(), +"netbox_json_virtualization_interfaces_list": dataNetboxJSONVirtualizationInterfacesList(), +"netbox_json_virtualization_virtual_machines_list": dataNetboxJSONVirtualizationVirtualMachinesList(), +"netbox_json_circuits_circuit_terminations_list": dataNetboxJSONCircuitsCircuitTerminationsList(), +"netbox_json_circuits_circuit_types_list": dataNetboxJSONCircuitsCircuitTypesList(), +"netbox_json_circuits_circuits_list": dataNetboxJSONCircuitsCircuitsList(), +"netbox_json_circuits_providers_list": dataNetboxJSONCircuitsProvidersList(), +"netbox_json_dcim_cables_list": dataNetboxJSONDcimCablesList(), +"netbox_json_dcim_console_connections_list": dataNetboxJSONDcimConsoleConnectionsList(), +"netbox_json_dcim_console_port_templates_list": dataNetboxJSONDcimConsolePortTemplatesList(), +"netbox_json_dcim_console_ports_list": dataNetboxJSONDcimConsolePortsList(), +"netbox_json_dcim_console_server_port_templates_list": dataNetboxJSONDcimConsoleServerPortTemplatesList(), +"netbox_json_dcim_console_server_ports_list": dataNetboxJSONDcimConsoleServerPortsList(), +"netbox_json_dcim_device_bay_templates_list": dataNetboxJSONDcimDeviceBayTemplatesList(), +"netbox_json_dcim_device_bays_list": dataNetboxJSONDcimDeviceBaysList(), +"netbox_json_dcim_device_roles_list": dataNetboxJSONDcimDeviceRolesList(), +"netbox_json_dcim_device_types_list": dataNetboxJSONDcimDeviceTypesList(), +"netbox_json_dcim_devices_list": dataNetboxJSONDcimDevicesList(), +"netbox_json_dcim_front_port_templates_list": dataNetboxJSONDcimFrontPortTemplatesList(), +"netbox_json_dcim_front_ports_list": dataNetboxJSONDcimFrontPortsList(), +"netbox_json_dcim_interface_connections_list": dataNetboxJSONDcimInterfaceConnectionsList(), +"netbox_json_dcim_interface_templates_list": dataNetboxJSONDcimInterfaceTemplatesList(), +"netbox_json_dcim_interfaces_list": dataNetboxJSONDcimInterfacesList(), +"netbox_json_dcim_inventory_items_list": dataNetboxJSONDcimInventoryItemsList(), +"netbox_json_dcim_manufacturers_list": dataNetboxJSONDcimManufacturersList(), +"netbox_json_dcim_platforms_list": dataNetboxJSONDcimPlatformsList(), +"netbox_json_dcim_power_connections_list": dataNetboxJSONDcimPowerConnectionsList(), +"netbox_json_dcim_power_feeds_list": dataNetboxJSONDcimPowerFeedsList(), +"netbox_json_dcim_power_outlet_templates_list": dataNetboxJSONDcimPowerOutletTemplatesList(), +"netbox_json_dcim_power_outlets_list": dataNetboxJSONDcimPowerOutletsList(), +"netbox_json_dcim_power_panels_list": dataNetboxJSONDcimPowerPanelsList(), +"netbox_json_dcim_power_port_templates_list": dataNetboxJSONDcimPowerPortTemplatesList(), +"netbox_json_dcim_power_ports_list": dataNetboxJSONDcimPowerPortsList(), +"netbox_json_dcim_rack_groups_list": dataNetboxJSONDcimRackGroupsList(), +"netbox_json_dcim_rack_reservations_list": dataNetboxJSONDcimRackReservationsList(), +"netbox_json_dcim_rack_roles_list": dataNetboxJSONDcimRackRolesList(), +"netbox_json_dcim_racks_list": dataNetboxJSONDcimRacksList(), +"netbox_json_dcim_rear_port_templates_list": dataNetboxJSONDcimRearPortTemplatesList(), +"netbox_json_dcim_rear_ports_list": dataNetboxJSONDcimRearPortsList(), +"netbox_json_dcim_regions_list": dataNetboxJSONDcimRegionsList(), +"netbox_json_dcim_sites_list": dataNetboxJSONDcimSitesList(), +"netbox_json_dcim_virtual_chassis_list": dataNetboxJSONDcimVirtualChassisList(), +"netbox_json_extras_config_contexts_list": dataNetboxJSONExtrasConfigContextsList(), +"netbox_json_extras_export_templates_list": dataNetboxJSONExtrasExportTemplatesList(), +"netbox_json_extras_graphs_list": dataNetboxJSONExtrasGraphsList(), +"netbox_json_extras_image_attachments_list": dataNetboxJSONExtrasImageAttachmentsList(), +"netbox_json_extras_job_results_list": dataNetboxJSONExtrasJobResultsList(), +"netbox_json_extras_object_changes_list": dataNetboxJSONExtrasObjectChangesList(), +"netbox_json_extras_tags_list": dataNetboxJSONExtrasTagsList(), +"netbox_json_ipam_aggregates_list": dataNetboxJSONIpamAggregatesList(), +"netbox_json_ipam_ip_addresses_list": dataNetboxJSONIpamIPAddressesList(), +"netbox_json_ipam_prefixes_list": dataNetboxJSONIpamPrefixesList(), +"netbox_json_ipam_rirs_list": dataNetboxJSONIpamRirsList(), +"netbox_json_ipam_roles_list": dataNetboxJSONIpamRolesList(), +"netbox_json_ipam_services_list": dataNetboxJSONIpamServicesList(), +"netbox_json_ipam_vlan_groups_list": dataNetboxJSONIpamVlanGroupsList(), +"netbox_json_ipam_vlans_list": dataNetboxJSONIpamVlansList(), +"netbox_json_ipam_vrfs_list": dataNetboxJSONIpamVrfsList(), +"netbox_json_secrets_secret_roles_list": dataNetboxJSONSecretsSecretRolesList(), +"netbox_json_secrets_secrets_list": dataNetboxJSONSecretsSecretsList(), +"netbox_json_tenancy_tenant_groups_list": dataNetboxJSONTenancyTenantGroupsList(), +"netbox_json_tenancy_tenants_list": dataNetboxJSONTenancyTenantsList(), +"netbox_json_users_groups_list": dataNetboxJSONUsersGroupsList(), +"netbox_json_users_permissions_list": dataNetboxJSONUsersPermissionsList(), +"netbox_json_users_users_list": dataNetboxJSONUsersUsersList(), +"netbox_json_virtualization_cluster_groups_list": dataNetboxJSONVirtualizationClusterGroupsList(), +"netbox_json_virtualization_cluster_types_list": dataNetboxJSONVirtualizationClusterTypesList(), +"netbox_json_virtualization_clusters_list": dataNetboxJSONVirtualizationClustersList(), +"netbox_json_virtualization_interfaces_list": dataNetboxJSONVirtualizationInterfacesList(), +"netbox_json_virtualization_virtual_machines_list": dataNetboxJSONVirtualizationVirtualMachinesList(), +"netbox_json_circuits_circuit_terminations_list": dataNetboxJSONCircuitsCircuitTerminationsList(), +"netbox_json_circuits_circuit_types_list": dataNetboxJSONCircuitsCircuitTypesList(), +"netbox_json_circuits_circuits_list": dataNetboxJSONCircuitsCircuitsList(), +"netbox_json_circuits_providers_list": dataNetboxJSONCircuitsProvidersList(), +"netbox_json_dcim_cables_list": dataNetboxJSONDcimCablesList(), +"netbox_json_dcim_console_connections_list": dataNetboxJSONDcimConsoleConnectionsList(), +"netbox_json_dcim_console_port_templates_list": dataNetboxJSONDcimConsolePortTemplatesList(), +"netbox_json_dcim_console_ports_list": dataNetboxJSONDcimConsolePortsList(), +"netbox_json_dcim_console_server_port_templates_list": dataNetboxJSONDcimConsoleServerPortTemplatesList(), +"netbox_json_dcim_console_server_ports_list": dataNetboxJSONDcimConsoleServerPortsList(), +"netbox_json_dcim_device_bay_templates_list": dataNetboxJSONDcimDeviceBayTemplatesList(), +"netbox_json_dcim_device_bays_list": dataNetboxJSONDcimDeviceBaysList(), +"netbox_json_dcim_device_roles_list": dataNetboxJSONDcimDeviceRolesList(), +"netbox_json_dcim_device_types_list": dataNetboxJSONDcimDeviceTypesList(), +"netbox_json_dcim_devices_list": dataNetboxJSONDcimDevicesList(), +"netbox_json_dcim_front_port_templates_list": dataNetboxJSONDcimFrontPortTemplatesList(), +"netbox_json_dcim_front_ports_list": dataNetboxJSONDcimFrontPortsList(), +"netbox_json_dcim_interface_connections_list": dataNetboxJSONDcimInterfaceConnectionsList(), +"netbox_json_dcim_interface_templates_list": dataNetboxJSONDcimInterfaceTemplatesList(), +"netbox_json_dcim_interfaces_list": dataNetboxJSONDcimInterfacesList(), +"netbox_json_dcim_inventory_items_list": dataNetboxJSONDcimInventoryItemsList(), +"netbox_json_dcim_manufacturers_list": dataNetboxJSONDcimManufacturersList(), +"netbox_json_dcim_platforms_list": dataNetboxJSONDcimPlatformsList(), +"netbox_json_dcim_power_connections_list": dataNetboxJSONDcimPowerConnectionsList(), +"netbox_json_dcim_power_feeds_list": dataNetboxJSONDcimPowerFeedsList(), +"netbox_json_dcim_power_outlet_templates_list": dataNetboxJSONDcimPowerOutletTemplatesList(), +"netbox_json_dcim_power_outlets_list": dataNetboxJSONDcimPowerOutletsList(), +"netbox_json_dcim_power_panels_list": dataNetboxJSONDcimPowerPanelsList(), +"netbox_json_dcim_power_port_templates_list": dataNetboxJSONDcimPowerPortTemplatesList(), +"netbox_json_dcim_power_ports_list": dataNetboxJSONDcimPowerPortsList(), +"netbox_json_dcim_rack_groups_list": dataNetboxJSONDcimRackGroupsList(), +"netbox_json_dcim_rack_reservations_list": dataNetboxJSONDcimRackReservationsList(), +"netbox_json_dcim_rack_roles_list": dataNetboxJSONDcimRackRolesList(), +"netbox_json_dcim_racks_list": dataNetboxJSONDcimRacksList(), +"netbox_json_dcim_rear_port_templates_list": dataNetboxJSONDcimRearPortTemplatesList(), +"netbox_json_dcim_rear_ports_list": dataNetboxJSONDcimRearPortsList(), +"netbox_json_dcim_regions_list": dataNetboxJSONDcimRegionsList(), +"netbox_json_dcim_sites_list": dataNetboxJSONDcimSitesList(), +"netbox_json_dcim_virtual_chassis_list": dataNetboxJSONDcimVirtualChassisList(), +"netbox_json_extras_config_contexts_list": dataNetboxJSONExtrasConfigContextsList(), +"netbox_json_extras_export_templates_list": dataNetboxJSONExtrasExportTemplatesList(), +"netbox_json_extras_graphs_list": dataNetboxJSONExtrasGraphsList(), +"netbox_json_extras_image_attachments_list": dataNetboxJSONExtrasImageAttachmentsList(), +"netbox_json_extras_job_results_list": dataNetboxJSONExtrasJobResultsList(), +"netbox_json_extras_object_changes_list": dataNetboxJSONExtrasObjectChangesList(), +"netbox_json_extras_tags_list": dataNetboxJSONExtrasTagsList(), +"netbox_json_ipam_aggregates_list": dataNetboxJSONIpamAggregatesList(), +"netbox_json_ipam_ip_addresses_list": dataNetboxJSONIpamIPAddressesList(), +"netbox_json_ipam_prefixes_list": dataNetboxJSONIpamPrefixesList(), +"netbox_json_ipam_rirs_list": dataNetboxJSONIpamRirsList(), +"netbox_json_ipam_roles_list": dataNetboxJSONIpamRolesList(), +"netbox_json_ipam_services_list": dataNetboxJSONIpamServicesList(), +"netbox_json_ipam_vlan_groups_list": dataNetboxJSONIpamVlanGroupsList(), +"netbox_json_ipam_vlans_list": dataNetboxJSONIpamVlansList(), +"netbox_json_ipam_vrfs_list": dataNetboxJSONIpamVrfsList(), +"netbox_json_secrets_secret_roles_list": dataNetboxJSONSecretsSecretRolesList(), +"netbox_json_secrets_secrets_list": dataNetboxJSONSecretsSecretsList(), +"netbox_json_tenancy_tenant_groups_list": dataNetboxJSONTenancyTenantGroupsList(), +"netbox_json_tenancy_tenants_list": dataNetboxJSONTenancyTenantsList(), +"netbox_json_users_groups_list": dataNetboxJSONUsersGroupsList(), +"netbox_json_users_permissions_list": dataNetboxJSONUsersPermissionsList(), +"netbox_json_users_users_list": dataNetboxJSONUsersUsersList(), +"netbox_json_virtualization_cluster_groups_list": dataNetboxJSONVirtualizationClusterGroupsList(), +"netbox_json_virtualization_cluster_types_list": dataNetboxJSONVirtualizationClusterTypesList(), +"netbox_json_virtualization_clusters_list": dataNetboxJSONVirtualizationClustersList(), +"netbox_json_virtualization_interfaces_list": dataNetboxJSONVirtualizationInterfacesList(), +"netbox_json_virtualization_virtual_machines_list": dataNetboxJSONVirtualizationVirtualMachinesList(), +"netbox_json_circuits_circuit_terminations_list": dataNetboxJSONCircuitsCircuitTerminationsList(), +"netbox_json_circuits_circuit_types_list": dataNetboxJSONCircuitsCircuitTypesList(), +"netbox_json_circuits_circuits_list": dataNetboxJSONCircuitsCircuitsList(), +"netbox_json_circuits_providers_list": dataNetboxJSONCircuitsProvidersList(), +"netbox_json_dcim_cables_list": dataNetboxJSONDcimCablesList(), +"netbox_json_dcim_console_connections_list": dataNetboxJSONDcimConsoleConnectionsList(), +"netbox_json_dcim_console_port_templates_list": dataNetboxJSONDcimConsolePortTemplatesList(), +"netbox_json_dcim_console_ports_list": dataNetboxJSONDcimConsolePortsList(), +"netbox_json_dcim_console_server_port_templates_list": dataNetboxJSONDcimConsoleServerPortTemplatesList(), +"netbox_json_dcim_console_server_ports_list": dataNetboxJSONDcimConsoleServerPortsList(), +"netbox_json_dcim_device_bay_templates_list": dataNetboxJSONDcimDeviceBayTemplatesList(), +"netbox_json_dcim_device_bays_list": dataNetboxJSONDcimDeviceBaysList(), +"netbox_json_dcim_device_roles_list": dataNetboxJSONDcimDeviceRolesList(), +"netbox_json_dcim_device_types_list": dataNetboxJSONDcimDeviceTypesList(), +"netbox_json_dcim_devices_list": dataNetboxJSONDcimDevicesList(), +"netbox_json_dcim_front_port_templates_list": dataNetboxJSONDcimFrontPortTemplatesList(), +"netbox_json_dcim_front_ports_list": dataNetboxJSONDcimFrontPortsList(), +"netbox_json_dcim_interface_connections_list": dataNetboxJSONDcimInterfaceConnectionsList(), +"netbox_json_dcim_interface_templates_list": dataNetboxJSONDcimInterfaceTemplatesList(), +"netbox_json_dcim_interfaces_list": dataNetboxJSONDcimInterfacesList(), +"netbox_json_dcim_inventory_items_list": dataNetboxJSONDcimInventoryItemsList(), +"netbox_json_dcim_manufacturers_list": dataNetboxJSONDcimManufacturersList(), +"netbox_json_dcim_platforms_list": dataNetboxJSONDcimPlatformsList(), +"netbox_json_dcim_power_connections_list": dataNetboxJSONDcimPowerConnectionsList(), +"netbox_json_dcim_power_feeds_list": dataNetboxJSONDcimPowerFeedsList(), +"netbox_json_dcim_power_outlet_templates_list": dataNetboxJSONDcimPowerOutletTemplatesList(), +"netbox_json_dcim_power_outlets_list": dataNetboxJSONDcimPowerOutletsList(), +"netbox_json_dcim_power_panels_list": dataNetboxJSONDcimPowerPanelsList(), +"netbox_json_dcim_power_port_templates_list": dataNetboxJSONDcimPowerPortTemplatesList(), +"netbox_json_dcim_power_ports_list": dataNetboxJSONDcimPowerPortsList(), +"netbox_json_dcim_rack_groups_list": dataNetboxJSONDcimRackGroupsList(), +"netbox_json_dcim_rack_reservations_list": dataNetboxJSONDcimRackReservationsList(), +"netbox_json_dcim_rack_roles_list": dataNetboxJSONDcimRackRolesList(), +"netbox_json_dcim_racks_list": dataNetboxJSONDcimRacksList(), +"netbox_json_dcim_rear_port_templates_list": dataNetboxJSONDcimRearPortTemplatesList(), +"netbox_json_dcim_rear_ports_list": dataNetboxJSONDcimRearPortsList(), +"netbox_json_dcim_regions_list": dataNetboxJSONDcimRegionsList(), +"netbox_json_dcim_sites_list": dataNetboxJSONDcimSitesList(), +"netbox_json_dcim_virtual_chassis_list": dataNetboxJSONDcimVirtualChassisList(), +"netbox_json_extras_config_contexts_list": dataNetboxJSONExtrasConfigContextsList(), +"netbox_json_extras_export_templates_list": dataNetboxJSONExtrasExportTemplatesList(), +"netbox_json_extras_graphs_list": dataNetboxJSONExtrasGraphsList(), +"netbox_json_extras_image_attachments_list": dataNetboxJSONExtrasImageAttachmentsList(), +"netbox_json_extras_job_results_list": dataNetboxJSONExtrasJobResultsList(), +"netbox_json_extras_object_changes_list": dataNetboxJSONExtrasObjectChangesList(), +"netbox_json_extras_tags_list": dataNetboxJSONExtrasTagsList(), +"netbox_json_ipam_aggregates_list": dataNetboxJSONIpamAggregatesList(), +"netbox_json_ipam_ip_addresses_list": dataNetboxJSONIpamIPAddressesList(), +"netbox_json_ipam_prefixes_list": dataNetboxJSONIpamPrefixesList(), +"netbox_json_ipam_rirs_list": dataNetboxJSONIpamRirsList(), +"netbox_json_ipam_roles_list": dataNetboxJSONIpamRolesList(), +"netbox_json_ipam_services_list": dataNetboxJSONIpamServicesList(), +"netbox_json_ipam_vlan_groups_list": dataNetboxJSONIpamVlanGroupsList(), +"netbox_json_ipam_vlans_list": dataNetboxJSONIpamVlansList(), +"netbox_json_ipam_vrfs_list": dataNetboxJSONIpamVrfsList(), +"netbox_json_secrets_secret_roles_list": dataNetboxJSONSecretsSecretRolesList(), +"netbox_json_secrets_secrets_list": dataNetboxJSONSecretsSecretsList(), +"netbox_json_tenancy_tenant_groups_list": dataNetboxJSONTenancyTenantGroupsList(), +"netbox_json_tenancy_tenants_list": dataNetboxJSONTenancyTenantsList(), +"netbox_json_users_groups_list": dataNetboxJSONUsersGroupsList(), +"netbox_json_users_permissions_list": dataNetboxJSONUsersPermissionsList(), +"netbox_json_users_users_list": dataNetboxJSONUsersUsersList(), +"netbox_json_virtualization_cluster_groups_list": dataNetboxJSONVirtualizationClusterGroupsList(), +"netbox_json_virtualization_cluster_types_list": dataNetboxJSONVirtualizationClusterTypesList(), +"netbox_json_virtualization_clusters_list": dataNetboxJSONVirtualizationClustersList(), +"netbox_json_virtualization_interfaces_list": dataNetboxJSONVirtualizationInterfacesList(), +"netbox_json_virtualization_virtual_machines_list": dataNetboxJSONVirtualizationVirtualMachinesList(),