From 2b64869e5c6d91d384ce4a3018a41249282c1574 Mon Sep 17 00:00:00 2001 From: cliftonHPE Date: Wed, 27 Nov 2024 09:39:24 +0200 Subject: [PATCH] service test group assignments example --- .../service_test_group_assignment.md | 11 +++++++++- .../service_test_group_assignment.md | 22 +++++++++++++++++++ .../data-source.tf | 6 +++++ .../import.sh | 8 +++++++ .../resource.tf | 4 ++++ 5 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 examples/data-sources/uxi_service_test_group_assignment/data-source.tf create mode 100644 examples/resources/uxi_service_test_group_assignment/import.sh create mode 100644 examples/resources/uxi_service_test_group_assignment/resource.tf diff --git a/docs/data-sources/service_test_group_assignment.md b/docs/data-sources/service_test_group_assignment.md index 83b6f4a7..199236bc 100644 --- a/docs/data-sources/service_test_group_assignment.md +++ b/docs/data-sources/service_test_group_assignment.md @@ -10,7 +10,16 @@ description: |- Retrieves a specific service test group assignment. - +## Example Usage + +```terraform +# Retrieve data for a service test group assignment +data "uxi_service_test_group_assignment" "my_service_test_group_assignment" { + filter = { + id = "" + } +} +``` ## Schema diff --git a/docs/resources/service_test_group_assignment.md b/docs/resources/service_test_group_assignment.md index cbfdf426..b7255460 100644 --- a/docs/resources/service_test_group_assignment.md +++ b/docs/resources/service_test_group_assignment.md @@ -10,7 +10,14 @@ description: |- Manages a service test group assignment. +## Example Usage +```terraform +resource "uxi_service_test_group_assignment" "my_service_test_group_assignment" { + service_test_id = uxi_service_test.my_service_test.id + group_id = uxi_group.my_group.id +} +``` ## Schema @@ -23,3 +30,18 @@ Manages a service test group assignment. ### Read-Only - `id` (String) The identifier of the service test group assignment + +## Import + +Import is supported using the following syntax: + +```shell +# Import service test group assignment using its ID +terraform import uxi_service_test_group_assignment.my_service_test_group_assignment + +# Import service test group assignment using its ID with an import block +import { + to = uxi_service_test_group_assignment.my_service_test_group_assignment + id = "" +} +``` diff --git a/examples/data-sources/uxi_service_test_group_assignment/data-source.tf b/examples/data-sources/uxi_service_test_group_assignment/data-source.tf new file mode 100644 index 00000000..17d49e2a --- /dev/null +++ b/examples/data-sources/uxi_service_test_group_assignment/data-source.tf @@ -0,0 +1,6 @@ +# Retrieve data for a service test group assignment +data "uxi_service_test_group_assignment" "my_service_test_group_assignment" { + filter = { + id = "" + } +} diff --git a/examples/resources/uxi_service_test_group_assignment/import.sh b/examples/resources/uxi_service_test_group_assignment/import.sh new file mode 100644 index 00000000..e12252e0 --- /dev/null +++ b/examples/resources/uxi_service_test_group_assignment/import.sh @@ -0,0 +1,8 @@ +# Import service test group assignment using its ID +terraform import uxi_service_test_group_assignment.my_service_test_group_assignment + +# Import service test group assignment using its ID with an import block +import { + to = uxi_service_test_group_assignment.my_service_test_group_assignment + id = "" +} diff --git a/examples/resources/uxi_service_test_group_assignment/resource.tf b/examples/resources/uxi_service_test_group_assignment/resource.tf new file mode 100644 index 00000000..6498d615 --- /dev/null +++ b/examples/resources/uxi_service_test_group_assignment/resource.tf @@ -0,0 +1,4 @@ +resource "uxi_service_test_group_assignment" "my_service_test_group_assignment" { + service_test_id = uxi_service_test.my_service_test.id + group_id = uxi_group.my_group.id +}