Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Maxia <[email protected]>
  • Loading branch information
Giuseppe Maxia committed Jun 24, 2024
1 parent dc2c3e2 commit d4c3255
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 6 deletions.
17 changes: 17 additions & 0 deletions website/docs/r/multisite_org_association.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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/
21 changes: 20 additions & 1 deletion website/docs/r/multisite_site_association.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.
of association workflows.

[docs-import]: https://www.terraform.io/docs/import/
16 changes: 11 additions & 5 deletions website/vcd.erb
Original file line number Diff line number Diff line change
Expand Up @@ -428,19 +428,19 @@
<a href="/docs/providers/vcd/d/solution_landing_zone.html">vcd_solution_landing_zone</a>
</li>
<li<%= sidebar_current("docs-vcd-data-source-multisite-site") %>>
<a href="/docs/providers/vcd/d/multisite_site.html">Site</a>
<a href="/docs/providers/vcd/d/multisite_site.html">vcd_multisite_site</a>
</li>
<li<%= sidebar_current("docs-vcd-data-source-multisite-site-data") %>>
<a href="/docs/providers/vcd/d/multisite_site_data.html">Multisite site data</a>
<a href="/docs/providers/vcd/d/multisite_site_data.html">vcd_multisite_site_data</a>
</li>
<li<%= sidebar_current("docs-vcd-data-source-multisite-org-data") %>>
<a href="/docs/providers/vcd/d/multisite_org_data.html">Multisite organization data</a>
<a href="/docs/providers/vcd/d/multisite_org_data.html">vcd_multisite_org_data</a>
</li>
<li<%= sidebar_current("docs-vcd-data-source-multisite-site-association") %>>
<a href="/docs/providers/vcd/d/multisite_site_association.html">Multisite site association</a>
<a href="/docs/providers/vcd/d/multisite_site_association.html">vcd_multisite_site_association</a>
</li>
<li<%= sidebar_current("docs-vcd-data-source-multisite-org-association") %>>
<a href="/docs/providers/vcd/d/multisite_org_association.html">Multisite organization association</a>
<a href="/docs/providers/vcd/d/multisite_org_association.html">vcd_multisite_org_association</a>
</li>
<li<%= sidebar_current("docs-vcd-data-source-solution-add-on") %>>
<a href="/docs/providers/vcd/d/solution_add_on.html">vcd_solution_add_on</a>
Expand Down Expand Up @@ -774,6 +774,12 @@
<li<%= sidebar_current("docs-vcd-resource-solution-add-on") %>>
<a href="/docs/providers/vcd/r/solution_add_on.html">vcd_solution_add_on</a>
</li>
<li<%= sidebar_current("docs-vcd-resource-multisite-site-association") %>>
<a href="/docs/providers/vcd/r/multisite_site_association.html">vcd_multisite_site_association</a>
</li>
<li<%= sidebar_current("docs-vcd-resource-multisite-org-association") %>>
<a href="/docs/providers/vcd/r/multisite_org_association.html">vcd_multisite_org_association</a>
</li>
</ul>
</li>
</ul>
Expand Down

0 comments on commit d4c3255

Please sign in to comment.