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

feat: add uxi_network_group_assignment examples and generated docs #143

Merged
merged 2 commits into from
Nov 27, 2024
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
11 changes: 10 additions & 1 deletion docs/data-sources/network_group_assignment.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions docs/resources/network_group_assignment.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Retrieve data for a network group assignment
data "uxi_network_group_assignment" "my_network_group_assignment" {
filter = {
id = "<my_network_group_assignment_id>"
}
}
8 changes: 8 additions & 0 deletions examples/resources/uxi_network_group_assignment/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Import network group assignment using its ID
terraform import uxi_network_group_assignment.my_network_group_assignment <my_network_group_assignment_id>

# Import network group assignment using its ID with an import block
import {
to = uxi_network_group_assignment.my_network_group_assignment
id = "<my_network_group_assignment_id>"
}
4 changes: 4 additions & 0 deletions examples/resources/uxi_network_group_assignment/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "uxi_network_group_assignment" "my_network_group_assignment" {
network_id = uxi_wired_network.my_network.id
group_id = uxi_group.my_group.id
}
Loading