Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update docs for datasource civo_firewall #114

Merged
merged 1 commit into from
Dec 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}