From afa0ebf2a3323e23b04e7c827e832908c77ec6fb Mon Sep 17 00:00:00 2001 From: Chris Clonch Date: Mon, 11 Jan 2021 09:31:47 -0500 Subject: [PATCH] Add site import to docs (#90) * Add site import to docs * Add user_group import to docs --- docs/resources/site.md | 7 +++++++ docs/resources/user_group.md | 7 +++++++ examples/resources/unifi_site/import.sh | 2 ++ examples/resources/unifi_user_group/import.sh | 2 ++ 4 files changed, 18 insertions(+) create mode 100644 examples/resources/unifi_site/import.sh create mode 100644 examples/resources/unifi_user_group/import.sh diff --git a/docs/resources/site.md b/docs/resources/site.md index ccc5d4b..24d86d8 100644 --- a/docs/resources/site.md +++ b/docs/resources/site.md @@ -28,4 +28,11 @@ resource "unifi_site" "mysite" { - **id** (String) The ID of the site. - **name** (String) The name of the site. +## Import +Import is supported using the following syntax: + +```shell +# import using the ID +terraform import unifi_site.mysite 5fe6261995fe130013456a36 +``` diff --git a/docs/resources/user_group.md b/docs/resources/user_group.md index fd336f6..e424062 100644 --- a/docs/resources/user_group.md +++ b/docs/resources/user_group.md @@ -36,4 +36,11 @@ resource "unifi_user_group" "wifi" { - **id** (String) The ID of the user group. +## Import +Import is supported using the following syntax: + +```shell +# import using the ID +terraform import unifi_user_group.wifi 5fe6261995fe130013456a36 +``` diff --git a/examples/resources/unifi_site/import.sh b/examples/resources/unifi_site/import.sh new file mode 100644 index 0000000..04b7002 --- /dev/null +++ b/examples/resources/unifi_site/import.sh @@ -0,0 +1,2 @@ +# import using the ID +terraform import unifi_site.mysite 5fe6261995fe130013456a36 \ No newline at end of file diff --git a/examples/resources/unifi_user_group/import.sh b/examples/resources/unifi_user_group/import.sh new file mode 100644 index 0000000..a4fccd6 --- /dev/null +++ b/examples/resources/unifi_user_group/import.sh @@ -0,0 +1,2 @@ +# import using the ID +terraform import unifi_user_group.wifi 5fe6261995fe130013456a36 \ No newline at end of file