Skip to content

Commit

Permalink
update docs for datasource civo_firewall (#114)
Browse files Browse the repository at this point in the history
Co-authored-by: Suraj Narwade <surajnarwade@life.local>
  • Loading branch information
surajnarwade and Suraj Narwade committed Dec 11, 2021
1 parent 5c6e5e0 commit 4e25738
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions civo/datasource_firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func dataSourceFirewall() *schema.Resource {
Description: strings.Join([]string{
"Retrieve information about a firewall for use in other resources.",
"This data source provides all of the firewall's properties as configured on your Civo account.",
"Firewalls may be looked up by id or label, and you can optionally pass region if you want to make a lookup for an expecific firewall inside that region.",
"Firewalls may be looked up by id or name, and you can optionally pass region if you want to make a lookup for an expecific firewall inside that region.",
}, "\n\n"),
Read: dataSourceFirewallRead,
Schema: map[string]*schema.Schema{
Expand All @@ -32,13 +32,13 @@ func dataSourceFirewall() *schema.Resource {
Optional: true,
ValidateFunc: validation.NoZeroValues,
ExactlyOneOf: []string{"id", "name"},
Description: "The name of the Kubernetes Cluster",
Description: "The name of the firewall",
},
"region": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.NoZeroValues,
Description: "The region where cluster is running",
Description: "The region where the firewall is",
},
// Computed resource
"network_id": {
Expand Down
4 changes: 4 additions & 0 deletions examples/data-sources/civo_firewall/data-source.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
data "civo_firewall" "test" {
name = "test-firewall"
region = "NYC1"
}

0 comments on commit 4e25738

Please sign in to comment.