You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ibm/acctest/acctest.go
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -259,6 +259,7 @@ var (
259
259
Pi_shared_processor_pool_idstring
260
260
Pi_snapshot_idstring
261
261
Pi_spp_placement_group_idstring
262
+
Pi_ssh_key_idstring
262
263
Pi_storage_connectionstring
263
264
Pi_target_storage_tierstring
264
265
Pi_virtual_serial_numberstring
@@ -1195,7 +1196,13 @@ func init() {
1195
1196
Pi_key_name=os.Getenv("PI_KEY_NAME")
1196
1197
ifPi_key_name=="" {
1197
1198
Pi_key_name="terraform-test-power"
1198
-
fmt.Println("[INFO] Set the environment variable PI_KEY_NAME for testing ibm_pi_key_name resource else it is set to default value 'terraform-test-power'")
1199
+
fmt.Println("[INFO] Set the environment variable PI_KEY_NAME for testing ibm_pi_key resource else it is set to default value 'terraform-test-power'")
1200
+
}
1201
+
1202
+
Pi_ssh_key_id=os.Getenv("PI_SSH_KEY_ID")
1203
+
ifPi_ssh_key_id=="" {
1204
+
Pi_ssh_key_id="terraform-test-power"
1205
+
fmt.Println("[INFO] Set the environment variable PI_SSH_KEY_ID for testing ibm_pi_key resource else it is set to default value 'terraform-test-power'")
Copy file name to clipboardExpand all lines: website/docs/d/pi_key.html.markdown
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,8 @@ Example usage:
40
40
Review the argument references that you can specify for your data source.
41
41
42
42
-`pi_cloud_instance_id` - (Required, String) The GUID of the service instance associated with an account.
43
-
-`pi_key_name` - (Required, String) User defined name for the SSH key or SSH key ID.
43
+
-`pi_key_name` - (Deprecated, Optional, String) User defined name for the SSH key or SSH key ID. Passing the name of the instance could fail or fetch stale data. Please pass an id and use `pi_ssh_key_id` instead.
44
+
-`pi_ssh_key_id` - (Optional, String) The SSH key ID.
0 commit comments