diff --git a/docs/resources/team.md b/docs/resources/team.md index 412e9bd48..d7486defa 100644 --- a/docs/resources/team.md +++ b/docs/resources/team.md @@ -65,3 +65,12 @@ Optional: Optional: - `groups` (Set of String) + +## Import + +Import is supported using the following syntax: + +```shell +terraform import grafana_team.team_name {{team_id}} # To use the default provider org +terraform import grafana_team.team_name {{org_id}}:{{team_id}} # When "org_id" is set on the resource +``` diff --git a/examples/resources/grafana_team/import.sh b/examples/resources/grafana_team/import.sh new file mode 100644 index 000000000..a58fea8d8 --- /dev/null +++ b/examples/resources/grafana_team/import.sh @@ -0,0 +1,2 @@ +terraform import grafana_team.team_name {{team_id}} # To use the default provider org +terraform import grafana_team.team_name {{org_id}}:{{team_id}} # When "org_id" is set on the resource