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 19, 2021
1 parent 43e4185 commit 472b9e1
Show file tree
Hide file tree
Showing 137 changed files with 2,965 additions and 1,680 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
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
Loading

0 comments on commit 472b9e1

Please sign in to comment.