diff --git a/docs/data-sources/agent_group_assignment.md b/docs/data-sources/agent_group_assignment.md index e9d38dde..76d12737 100644 --- a/docs/data-sources/agent_group_assignment.md +++ b/docs/data-sources/agent_group_assignment.md @@ -10,7 +10,16 @@ description: |- Retrieves a specific agent group assignment. - +## Example Usage + +```terraform +# Retrieve data for an agent group assignment +data "uxi_agent_group_assignment" "my_agent_group_assignment" { + filter = { + id = "" + } +} +``` ## Schema diff --git a/docs/resources/agent_group_assignment.md b/docs/resources/agent_group_assignment.md index d8ad4417..8d531d27 100644 --- a/docs/resources/agent_group_assignment.md +++ b/docs/resources/agent_group_assignment.md @@ -10,7 +10,14 @@ description: |- Manages an agent group assignment. +## Example Usage +```terraform +resource "uxi_agent_group_assignment" "my_agent_group_assignment" { + agent_id = uxi_agent.my_agent.id + group_id = uxi_group.my_group.id +} +``` ## Schema @@ -23,3 +30,18 @@ Manages an agent group assignment. ### Read-Only - `id` (String) The identifier of the agent group assignment. + +## Import + +Import is supported using the following syntax: + +```shell +# Import an agent group assignment using its ID +terraform import uxi_agent_group_assignment.my_agent_group_assignment + +# Import an agent group assignment using its ID with an import block +import { + to = uxi_agent_group_assignment.my_agent_group_assignment + id = "" +} +``` diff --git a/examples/data-sources/uxi_agent_group_assignment/data-source.tf b/examples/data-sources/uxi_agent_group_assignment/data-source.tf new file mode 100644 index 00000000..ed505400 --- /dev/null +++ b/examples/data-sources/uxi_agent_group_assignment/data-source.tf @@ -0,0 +1,6 @@ +# Retrieve data for an agent group assignment +data "uxi_agent_group_assignment" "my_agent_group_assignment" { + filter = { + id = "" + } +} diff --git a/examples/resources/uxi_agent_group_assignment/import.sh b/examples/resources/uxi_agent_group_assignment/import.sh new file mode 100644 index 00000000..940e66d5 --- /dev/null +++ b/examples/resources/uxi_agent_group_assignment/import.sh @@ -0,0 +1,8 @@ +# Import an agent group assignment using its ID +terraform import uxi_agent_group_assignment.my_agent_group_assignment + +# Import an agent group assignment using its ID with an import block +import { + to = uxi_agent_group_assignment.my_agent_group_assignment + id = "" +} diff --git a/examples/resources/uxi_agent_group_assignment/resource.tf b/examples/resources/uxi_agent_group_assignment/resource.tf new file mode 100644 index 00000000..c3acf044 --- /dev/null +++ b/examples/resources/uxi_agent_group_assignment/resource.tf @@ -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 +}