From da1e41a61b7767a53b24ac6891833c44b6bc7897 Mon Sep 17 00:00:00 2001 From: Paul Tyng Date: Thu, 9 Sep 2021 08:33:47 -0400 Subject: [PATCH] Re-run go generate --- docs/data-sources/network.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/data-sources/network.md b/docs/data-sources/network.md index 4cad71b..e5c21d0 100644 --- a/docs/data-sources/network.md +++ b/docs/data-sources/network.md @@ -3,27 +3,27 @@ page_title: "unifi_network Data Source - terraform-provider-unifi" subcategory: "" description: |- - unifi_network data source can be used to retrieve settings for a network by name or id. + unifi_network data source can be used to retrieve settings for a network by name or ID. --- # unifi_network (Data Source) -`unifi_network` data source can be used to retrieve settings for a network by name or id. +`unifi_network` data source can be used to retrieve settings for a network by name or ID. ## Example Usage ```terraform #retrieve network data by unifi network name -data "unifi_network" "byName" { - name="LAN" +data "unifi_network" "lan_network" { + name = "LAN" } #retrieve network data from user record -data "unifi_user" "byMac" { +data "unifi_user" "my_device" { mac = "01:23:45:67:89:ab" } -data "unifi_network" "byID" { - id = data.unifi_user.byMac.network_id +data "unifi_network" "my_network" { + id = data.unifi_user.my_device.network_id } ``` @@ -32,8 +32,8 @@ data "unifi_network" "byID" { ### Optional -- **id** (String) The ID of the network. One of `id` OR `name` is required. -- **name** (String) The name of the network. One of `id` OR `name` is required. +- **id** (String) The ID of the network. +- **name** (String) The name of the network. - **site** (String) The name of the site to associate the network with. ### Read-Only