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