Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add limit param to data resources #64

Merged
merged 1 commit into from
Sep 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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