Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add detach volume #58

Closed
wants to merge 4 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion website/docs/r/pi_volume_attach.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: |-
---

# ibm_pi_volume_attach
Attaches volume to a Power Systems Virtual Server instance. For more information, about managing volume, see [getting started with IBM Power Systems Virtual Servers](https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-getting-started).
Attach and Detach volume to a Power Systems Virtual Server instance. For more information, about managing volume, see [getting started with IBM Power Systems Virtual Servers](https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-getting-started).
Diptipowervs marked this conversation as resolved.
Show resolved Hide resolved

## Example usage
The following example attaches volume to a power systems virtual server instance.
Expand All @@ -19,6 +19,11 @@ resource "ibm_pi_volume_attach" "testacc_volume_attach"{
pi_volume_id = "<id of the volume to attach>"
pi_instance_id = "<pvm instance id>"
}
resource "ibm_pi_volume_detach" "testacc_volume_detach"{
pi_cloud_instance_id = "<value of the cloud_instance_id>"
pi_volume_id = "<id of the volume to detach>"
pi_instance_id = "<pvm instance id>"
}
Diptipowervs marked this conversation as resolved.
Show resolved Hide resolved
```

**Note**
Expand Down
Loading