diff --git a/website/docs/r/multisite_org_association.html.markdown b/website/docs/r/multisite_org_association.html.markdown index e42d52e62..77ebb8a6d 100644 --- a/website/docs/r/multisite_org_association.html.markdown +++ b/website/docs/r/multisite_org_association.html.markdown @@ -63,7 +63,24 @@ You can see an example of one such method in the folder `/examples/multi-site/or * `status` - The status of the association (one of `ASYMMETRIC`, `ACTIVE`, `UNREACHABLE`, `ERROR`) +## Importing + +~> **Note:** The current implementation of Terraform import can only import resources into the state. It does not generate +configuration. [More information.](https://www.terraform.io/docs/import/) + +An existing org association can be [imported][docs-import] into this resource +via supplying the full dot separated path for the association, which requires the ID of the current org and the +associated one. For example, to import the association definied in example 1, we would run: + +``` +terraform import vcd_multisite_org_association.imported my-org-id.associated-org-id +``` + +To find the ID of the associated organization it might be necessary to inspect the XML file that was used to create the association. + ## More information See [Site and Org association](/providers/vmware/vcd/latest/docs/guides/site_org_association) for a broader description of association workflows. + +[docs-import]: https://www.terraform.io/docs/import/ diff --git a/website/docs/r/multisite_site_association.html.markdown b/website/docs/r/multisite_site_association.html.markdown index 8f8b758b9..abb782e67 100644 --- a/website/docs/r/multisite_site_association.html.markdown +++ b/website/docs/r/multisite_site_association.html.markdown @@ -57,7 +57,26 @@ You can see an example of one such method in the folder `/examples/multi-site/si * `associated_site_name` - The name of the associated site. * `status` - The status of the association (one of `ASYMMETRIC`, `ACTIVE`, `UNREACHABLE`, `ERROR`) + +## Importing + +~> **Note:** The current implementation of Terraform import can only import resources into the state. It does not generate +configuration. [More information.](https://www.terraform.io/docs/import/) + +An existing site association can be [imported][docs-import] into this resource +via supplying the ID of the associated site. +For example, to import the association definied in example 1, we would run: + +``` +terraform import vcd_multisite_site_association.imported associated-site-id +``` + +To find the ID of the associated site it might be necessary to inspect the XML file that was used to create the association. + + ## More information See [Site and Org association](/providers/vmware/vcd/latest/docs/guides/site_org_association) for a broader description -of association workflows. \ No newline at end of file +of association workflows. + +[docs-import]: https://www.terraform.io/docs/import/ \ No newline at end of file diff --git a/website/vcd.erb b/website/vcd.erb index 467154708..b339e9ed2 100644 --- a/website/vcd.erb +++ b/website/vcd.erb @@ -428,19 +428,19 @@ vcd_solution_landing_zone