Skip to content

Commit

Permalink
feat: Add limit param to data resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Neychev committed Sep 17, 2021
1 parent 43e4185 commit 28e37b0
Show file tree
Hide file tree
Showing 136 changed files with 1,557 additions and 272 deletions.
8 changes: 5 additions & 3 deletions docs/data-sources/json_circuits_circuit_terminations_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_circuits_circuit_types_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_circuits_circuits_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_circuits_providers_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_dcim_cables_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_dcim_console_connections_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_dcim_console_port_templates_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_dcim_console_ports_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_dcim_console_server_ports_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_dcim_device_bay_templates_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_dcim_device_bays_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_dcim_device_roles_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_dcim_device_types_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_dcim_devices_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_dcim_front_port_templates_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_dcim_front_ports_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_dcim_interface_connections_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 5 additions & 3 deletions docs/data-sources/json_dcim_interface_templates_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading

0 comments on commit 28e37b0

Please sign in to comment.