Re-run go generate

This commit is contained in:
Paul Tyng
2021-09-09 08:33:47 -04:00
parent d09624e106
commit da1e41a61b

View File

@@ -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