Skip to content

Commit

Permalink
docs: Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
smutel committed Oct 31, 2020
1 parent 8798e24 commit 7875f6d
Show file tree
Hide file tree
Showing 16 changed files with 95 additions and 15 deletions.
21 changes: 21 additions & 0 deletions docs/data-sources/dcim_platform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# netbox\_dcim\_platform Data Source

Get info about dcim platform from netbox.

## Example Usage

```hcl
data "netbox_dcim_platform" "platform_test" {
slug = "TestPlatform"
}
```

## Argument Reference

The following arguments are supported:
* ``slug`` - (Required) The slug of the dcim platform.

## Attributes Reference

In addition to the above arguments, the following attributes are exported:
* ``id`` - The id (ref in Netbox) of this object.
2 changes: 1 addition & 1 deletion docs/data-sources/dcim_site.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netbox\_dcim\_site Data Source

Get info about dcim site in the netbox provider.
Get info about dcim site from netbox.

## Example Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/ipam_ip_addresses.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netbox\_ipam\_ip\_addresses Data Source

Get info about ipam IP addresses in the netbox provider.
Get info about ipam IP addresses from netbox.

## Example Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/ipam_role.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netbox\_ipam\_role Data Source

Get info about ipam role in the netbox provider.
Get info about ipam role from netbox.

## Example Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/ipam_vlan.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netbox\_ipam\_vlan Data Source

Get info about ipam vlan in the netbox provider.
Get info about ipam vlan from netbox.

## Example Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/ipam_vlan_group.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netbox\_ipam\_vlan\_group Data Source

Get info about ipam vlan group in the netbox provider.
Get info about ipam vlan group from netbox.

## Example Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/tenancy_tenant.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netbox\_tenancy\_tenant Data Source

Get info about tenancy tenant in the netbox provider.
Get info about tenancy tenant from netbox.

## Example Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/tenancy_tenant_group.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netbox\_tenancy\_tenant\_group Data Source

Get info about tenancy tenant groups in the netbox provider.
Get info about tenancy tenant groups from netbox.

## Example Usage

Expand Down
21 changes: 21 additions & 0 deletions docs/data-sources/virtualization_cluster.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# netbox\_virtualization\_cluster Data Source

Get info about vitualization cluster from netbox.

## Example Usage

```hcl
data "netbox_virtualization_cluster" "cluster_test" {
name = "TestCluster"
}
```

## Argument Reference

The following arguments are supported:
* ``name`` - (Required) The name of the cluster.

## Attributes Reference

In addition to the above arguments, the following attributes are exported:
* ``id`` - The id (ref in Netbox) of this object.
6 changes: 4 additions & 2 deletions docs/resources/ipam_ip_addresses.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netbox\_ipam\_ip\_addresses Resource

Manages an ip address within Netbox.
Manage an ip address within Netbox.

## Example Usage

Expand All @@ -23,7 +23,9 @@ The following arguments are supported:
* ``address`` - (Required) The IP address (with mask) used for this object.
* ``description`` - (Optional) The description of this object.
* ``dns_name`` - (Optional) The DNS name of this object.
* ``interface_id`` - (Optional) The ID of the interface where this object is attached to.
* ``object_id`` - (Optional) The ID of the object where this object is attached to.
* ``object_type`` - (Optional) The object type among virtualization.vminterface
or dcim.interface (virtualization.vminterface by default)
* ``nat_inside_id`` - (Optional) The ID of the NAT inside of this object.
* ``nat_outside_id`` - (Optional) The ID of the NAT outside of this object.
* ``role`` - (Optional) The role among loopback, secondary, anycast, vip, vrrp, hsrp, glbp, carp of this object.
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/ipam_prefix.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netbox\_ipam\_prefix Resource

Manages a prefix within Netbox.
Manage a prefix within Netbox.

## Example Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/ipam_vlan.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netbox\_ipam\_vlan Resource

Manages a vlan within Netbox.
Manage a vlan within Netbox.

## Example Usage

Expand Down
3 changes: 1 addition & 2 deletions docs/resources/ipam_vlan_group.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# netbox\_ipam\_vlan\_group Resource

Manages a vlan group within Netbox.

Manage a vlan group within Netbox.

## Example Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/tenancy_tenant.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netbox\_tenancy\_tenant Resource

Manages a tenant within Netbox.
Manage a tenant within Netbox.

## Example Usage

Expand Down
37 changes: 37 additions & 0 deletions docs/resources/virtualization_interface.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# netbox\_virtualization\_interface Resource

Manage an interface resource within Netbox.

## Example Usage

```hcl
resource "netbox_virtualization_interface" "interface_test" {
name = "default"
virtualmachine_id = netbox_virtualization_vm.vm_test.id
mac_address = "AA:AA:AA:AA:AA:AA"
mtu = 1500
description = "Interface de test"
}
```

## Argument Reference

The following arguments are supported:
* ``description`` - (Optional) Description for this object.
* ``enabled`` - (Optional) true or false (true by default).
* ``mac_address`` - (Optional) Mac address for this object.
* ``mode`` - (Optional) The mode among access, tagged, tagged-all.
* ``mtu`` - (Optional) The MTU between 1 and 65536 for this object.
* ``name`` - (Required) The name for this object.
* ``tagged_vlans`` - (Optional) List of vlan id tagged for this interface
* ``untagged_vlans`` - (Optional) Vlan id untagged for this interface
* ``virtualmachine_id`` - (Required) ID of the virtual machine where this object
is attached
The ``tag`` block supports:
* ``name`` - (Required) Name of the existing tag to associate with this resource.
* ``slug`` - (Required) Slug of the existing tag to associate with this resource.

## Attributes Reference

In addition to the above arguments, the following attributes are exported:
* ``id`` - The id (ref in Netbox) of this object.
2 changes: 1 addition & 1 deletion docs/resources/virtualization_vm.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netbox\_virtualization\_vm Resource

Manages a virtual machine resource within Netbox.
Manage a virtual machine resource within Netbox.

## Example Usage

Expand Down

0 comments on commit 7875f6d

Please sign in to comment.