Skip to content

Commit

Permalink
add agent group assignment examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cliftonHPE committed Nov 27, 2024
1 parent b5d5a84 commit c0d9e85
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/data-sources/agent_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/agent_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 an agent group assignment
data "uxi_agent_group_assignment" "my_agent_group_assignment" {
filter = {
id = "<my_agent_group_assignment_id>"
}
}
8 changes: 8 additions & 0 deletions examples/resources/uxi_agent_group_assignment/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Import an agent group assignment using its ID
terraform import uxi_agent_group_assignment.my_agent_group_assignment <my_agent_group_assignment_id>

# Import an agent group assignment using its ID with an import block
import {
to = uxi_agent_group_assignment.my_agent_group_assignment
id = "<my_agent_group_assignment_id>"
}
4 changes: 4 additions & 0 deletions examples/resources/uxi_agent_group_assignment/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "uxi_agent_group_assignment" "my_agent_group_assignment" {
agent_id = uxi_agent.my_agent.id
group_id = uxi_group.my_group.id
}

0 comments on commit c0d9e85

Please sign in to comment.