diff --git a/docs/data-sources/network.md b/docs/data-sources/network.md index 4f49957..975f474 100644 --- a/docs/data-sources/network.md +++ b/docs/data-sources/network.md @@ -15,13 +15,16 @@ description: |- ## Schema +### Required + +- **name** (String) The name of the network to look up. + ### Optional -- **name** (String) The name of the user group to look up. Defaults to `Default`. -- **site** (String) The name of the site the user group is associated with. +- **site** (String) The name of the site the network is associated with. ### Read-Only -- **id** (String) The ID of this AP group. +- **id** (String) The ID of this network. diff --git a/internal/provider/data_network.go b/internal/provider/data_network.go index 766e3c2..a64fa65 100644 --- a/internal/provider/data_network.go +++ b/internal/provider/data_network.go @@ -15,21 +15,20 @@ func dataNetwork() *schema.Resource { Schema: map[string]*schema.Schema{ "id": { - Description: "The ID of this AP group.", + Description: "The ID of this network.", Type: schema.TypeString, Computed: true, }, "site": { - Description: "The name of the site the user group is associated with.", + Description: "The name of the site the network is associated with.", Type: schema.TypeString, Computed: true, Optional: true, }, "name": { - Description: "The name of the user group to look up.", + Description: "The name of the network to look up.", Type: schema.TypeString, - Optional: true, - Default: "Default", + Required: true, }, }, }