From fe5109ba743ca867fb058c99024e53b8e9eb9904 Mon Sep 17 00:00:00 2001 From: Diptipowervs Date: Tue, 13 Feb 2024 13:06:10 +0530 Subject: [PATCH 1/2] Add detach volume --- website/docs/r/pi_volume_attach.html.markdown | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/website/docs/r/pi_volume_attach.html.markdown b/website/docs/r/pi_volume_attach.html.markdown index 776fe077f3..e91648cb0f 100644 --- a/website/docs/r/pi_volume_attach.html.markdown +++ b/website/docs/r/pi_volume_attach.html.markdown @@ -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). ## Example usage The following example attaches volume to a power systems virtual server instance. @@ -19,6 +19,11 @@ resource "ibm_pi_volume_attach" "testacc_volume_attach"{ pi_volume_id = "" pi_instance_id = "" } +resource "ibm_pi_volume_detach" "testacc_volume_detach"{ + pi_cloud_instance_id = "" + pi_volume_id = "" + pi_instance_id = "" +} ``` **Note** From afa6e5d9872ec875db3d75a72032ffb2f92b9a43 Mon Sep 17 00:00:00 2001 From: Diptipowervs Date: Tue, 13 Feb 2024 23:10:01 +0530 Subject: [PATCH 2/2] Updates made --- website/docs/r/pi_volume_attach.html.markdown | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/website/docs/r/pi_volume_attach.html.markdown b/website/docs/r/pi_volume_attach.html.markdown index e91648cb0f..b6c7c56b98 100644 --- a/website/docs/r/pi_volume_attach.html.markdown +++ b/website/docs/r/pi_volume_attach.html.markdown @@ -8,7 +8,7 @@ description: |- --- # ibm_pi_volume_attach -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). +Attach and Detach volumes 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). ## Example usage The following example attaches volume to a power systems virtual server instance. @@ -19,11 +19,6 @@ resource "ibm_pi_volume_attach" "testacc_volume_attach"{ pi_volume_id = "" pi_instance_id = "" } -resource "ibm_pi_volume_detach" "testacc_volume_detach"{ - pi_cloud_instance_id = "" - pi_volume_id = "" - pi_instance_id = "" -} ``` **Note**