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: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# 2.5.0 (2026-**-**)
2
2
3
+
ENHANCEMENTS:
4
+
5
+
Fixed import documentation on resources which are supporting import. ([#613](https://github.com/NetApp/terraform-provider-netapp-ontap/issues/613))
6
+
3
7
BUG FIXES:
4
8
5
9
-**netapp-ontap_name_services_ldap_resource**: Fixed duplicate Set Element Error with `preferred_ad_servers` ([#615](https://github.com/NetApp/terraform-provider-netapp-ontap/issues/615))
!> The terraform import CLI command can only import resources into the state. Importing via the CLI does not generate configuration. If you want to generate the accompanying configuration for imported resources, use the import block instead.
85
+
86
+
### Terraform Import Block
87
+
88
+
This requires Terraform 1.5 or higher, and will auto create the configuration for you
89
+
90
+
First create the block
91
+
92
+
```terraform
93
+
import {
94
+
to = netapp-ontap_cifs_local_user.user_import
95
+
id = "localuser1,svm1,cluster4"
96
+
}
97
+
```
98
+
99
+
Next run, this will auto create the configuration for you
100
+
101
+
```shell
102
+
terraform plan -generate-config-out=generated.tf
103
+
```
104
+
105
+
This will generate a file called generated.tf, which will contain the configuration for the imported resource
106
+
107
+
```terraform
108
+
# __generated__ by Terraform
109
+
# Please review these resources and move them into your main configuration files.
110
+
# __generated__ by Terraform from "localuser1,svm1,cluster4"
!> The terraform import CLI command can only import resources into the state. Importing via the CLI does not generate configuration. If you want to generate the accompanying configuration for imported resources, use the import block instead.
156
+
157
+
### Terraform Import Block
158
+
159
+
This requires Terraform 1.5 or higher, and will auto create the configuration for you
160
+
161
+
First create the block
162
+
163
+
```terraform
164
+
import {
165
+
to = netapp-ontap_cifs_service.cifs_import
166
+
id = "tftestcifs,testSVM,clustercifs,administrator,password"
167
+
}
168
+
```
169
+
170
+
Next run, this will auto create the configuration for you
171
+
172
+
```shell
173
+
terraform plan -generate-config-out=generated.tf
174
+
```
175
+
176
+
This will generate a file called generated.tf, which will contain the configuration for the imported resource
177
+
178
+
```terraform
179
+
# __generated__ by Terraform
180
+
# Please review these resources and move them into your main configuration files.
181
+
# __generated__ by Terraform from "tftestcifs,testSVM,clustercifs,administrator,password"
!> The terraform import CLI command can only import resources into the state. Importing via the CLI does not generate configuration. If you want to generate the accompanying configuration for imported resources, use the import block instead.
118
+
119
+
### Terraform Import Block
120
+
121
+
This requires Terraform 1.5 or higher, and will auto create the configuration for you
122
+
123
+
First create the block
124
+
125
+
```terraform
126
+
import {
127
+
to = netapp-ontap_cifs_share.share_import
128
+
id = "share1,svm1,cluster4"
129
+
}
130
+
```
131
+
132
+
Next run, this will auto create the configuration for you
133
+
134
+
```shell
135
+
terraform plan -generate-config-out=generated.tf
136
+
```
137
+
138
+
This will generate a file called generated.tf, which will contain the configuration for the imported resource
139
+
140
+
```terraform
141
+
# __generated__ by Terraform
142
+
# Please review these resources and move them into your main configuration files.
143
+
# __generated__ by Terraform from "share1,svm1,cluster4"
!> The terraform import CLI command can only import resources into the state. Importing via the CLI does not generate configuration. If you want to generate the accompanying configuration for imported resources, use the import block instead.
73
+
74
+
### Terraform Import Block
75
+
76
+
This requires Terraform 1.5 or higher, and will auto create the configuration for you
77
+
78
+
First create the block
79
+
80
+
```terraform
81
+
import {
82
+
to = netapp-ontap_iscsi_service.iscsi_import
83
+
id = "svm1,cluster4"
84
+
}
85
+
```
86
+
87
+
Next run, this will auto create the configuration for you
88
+
89
+
```shell
90
+
terraform plan -generate-config-out=generated.tf
91
+
```
92
+
93
+
This will generate a file called generated.tf, which will contain the configuration for the imported resource
94
+
95
+
```terraform
96
+
# __generated__ by Terraform
97
+
# Please review these resources and move them into your main configuration files.
!> The terraform import CLI command can only import resources into the state. Importing via the CLI does not generate configuration. If you want to generate the accompanying configuration for imported resources, use the import block instead.
102
+
103
+
### Terraform Import Block
104
+
105
+
This requires Terraform 1.5 or higher, and will auto create the configuration for you
106
+
107
+
First create the block
108
+
109
+
```terraform
110
+
import {
111
+
to = netapp-ontap_name_services_ldap.ldap_import
112
+
id = "testsvm1,cluster4"
113
+
}
114
+
```
115
+
116
+
Next run, this will auto create the configuration for you
117
+
118
+
```shell
119
+
terraform plan -generate-config-out=generated.tf
120
+
```
121
+
122
+
This will generate a file called generated.tf, which will contain the configuration for the imported resource
123
+
124
+
```terraform
125
+
# __generated__ by Terraform
126
+
# Please review these resources and move them into your main configuration files.
127
+
# __generated__ by Terraform from "testsvm1,cluster4"
!> The terraform import CLI command can only import resources into the state. Importing via the CLI does not generate configuration. If you want to generate the accompanying configuration for imported resources, use the import block instead.
84
+
85
+
### Terraform Import Block
86
+
87
+
This requires Terraform 1.5 or higher, and will auto create the configuration for you
88
+
89
+
First create the block
90
+
91
+
```terraform
92
+
import {
93
+
to = netapp-ontap_network_ip_route.route_import
94
+
id = "svm1,192.168.1.1,cluster4"
95
+
}
96
+
```
97
+
98
+
Next run, this will auto create the configuration for you
99
+
100
+
```shell
101
+
terraform plan -generate-config-out=generated.tf
102
+
```
103
+
104
+
This will generate a file called generated.tf, which will contain the configuration for the imported resource
105
+
106
+
```terraform
107
+
# __generated__ by Terraform
108
+
# Please review these resources and move them into your main configuration files.
109
+
# __generated__ by Terraform from "svm1,192.168.1.1,cluster4"
!> The terraform import CLI command can only import resources into the state. Importing via the CLI does not generate configuration. If you want to generate the accompanying configuration for imported resources, use the import block instead.
109
+
110
+
### Terraform Import Block
111
+
112
+
This requires Terraform 1.5 or higher, and will auto create the configuration for you
113
+
114
+
First create the block
115
+
116
+
```terraform
117
+
import {
118
+
to = netapp-ontap_s3_policy.policy_import
119
+
id = "policy1,svm1,cluster4"
120
+
}
121
+
```
122
+
123
+
Next run, this will auto create the configuration for you
124
+
125
+
```shell
126
+
terraform plan -generate-config-out=generated.tf
127
+
```
128
+
129
+
This will generate a file called generated.tf, which will contain the configuration for the imported resource
130
+
131
+
```terraform
132
+
# __generated__ by Terraform
133
+
# Please review these resources and move them into your main configuration files.
134
+
# __generated__ by Terraform from "policy1,svm1,cluster4"
0 commit comments