Skip to content

Commit fd81b7c

Browse files
authored
Merge pull request #448 from acch/protocols_iscsi_service
Add `iscsi_service` resource
2 parents 2826569 + 3cebe81 commit fd81b7c

22 files changed

Lines changed: 1303 additions & 0 deletions

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# 2.2.0 (2025-xx-xx)
22

3+
FEATURES:
4+
5+
- **New Data Source:** `netapp-ontap_iscsi_service` ([#442](https://github.com/NetApp/terraform-provider-netapp-ontap/issues/442))
6+
- **New Data Source:** `netapp-ontap_iscsi_services` ([#442](https://github.com/NetApp/terraform-provider-netapp-ontap/issues/442))
7+
- **New Resource:** `netapp-ontap_iscsi_service` ([#442](https://github.com/NetApp/terraform-provider-netapp-ontap/issues/442))
8+
39
ENHANCEMENTS:
410

511
- **netapp-ontap_aggregate_data_source**, **netapp-ontap_aggregates_data_source**: added `space.block_storage.available` option ([#256](https://github.com/NetApp/terraform-provider-netapp-ontap/issues/256))

docs/data-sources/iscsi_service.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "netapp-ontap_iscsi_service Data Source - netapp-ontap"
4+
subcategory: "SAN"
5+
description: |-
6+
Protocols iSCSI Service data source
7+
---
8+
9+
# netapp-ontap_iscsi_service (Data Source)
10+
11+
Protocols iSCSI Service data source
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "netapp-ontap_iscsi_service" "protcols_iscsi_service" {
17+
# required to know which system to interface with
18+
cx_profile_name = "cluster2"
19+
svm_name = "svm02"
20+
}
21+
```
22+
23+
<!-- schema generated by tfplugindocs -->
24+
25+
## Schema
26+
27+
### Required
28+
29+
- `cx_profile_name` (String) Connection profile name
30+
- `svm_name` (String) iSCSI SVM name
31+
32+
### Read-Only
33+
34+
- `enabled` (Boolean) iSCSI should be enabled or disabled
35+
- `target` (Attributes) iSCSI target properties (see [below for nested schema](#nestedatt--target))
36+
37+
<a id="nestedatt--target"></a>
38+
39+
### Nested Schema for `target`
40+
41+
Read-Only:
42+
43+
- `alias` (String) iSCSI target alias of the iSCSI service
44+
- `name` (String) iSCSI target name of the iSCSI service
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "netapp-ontap_iscsi_services Data Source - netapp-ontap"
4+
subcategory: "SAN"
5+
description: |-
6+
Protocols iSCSI Services data source
7+
---
8+
9+
# netapp-ontap_iscsi_services (Data Source)
10+
11+
Protocols iSCSI Services data source
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "netapp-ontap_iscsi_services" "protcols_iscsi_services" {
17+
# required to know which system to interface with
18+
cx_profile_name = "cluster2"
19+
filter = {
20+
svm_name = "svm*"
21+
}
22+
}
23+
```
24+
25+
<!-- schema generated by tfplugindocs -->
26+
27+
## Schema
28+
29+
### Required
30+
31+
- `cx_profile_name` (String) Connection profile name
32+
33+
### Optional
34+
35+
- `filter` (Attributes) Filter iSCSI services by their properties (see [below for nested schema](#nestedatt--filter))
36+
37+
### Read-Only
38+
39+
- `iscsi_services` (Attributes List) iSCSI services matching the filter (see [below for nested schema](#nestedatt--iscsi_services))
40+
41+
<a id="nestedatt--filter"></a>
42+
43+
### Nested Schema for `filter`
44+
45+
Optional:
46+
47+
- `svm_name` (String) iSCSI SVM name
48+
49+
<a id="nestedatt--iscsi_services"></a>
50+
51+
### Nested Schema for `iscsi_services`
52+
53+
Read-Only:
54+
55+
- `cx_profile_name` (String) Connection profile name
56+
- `enabled` (Boolean) iSCSI should be enabled or disabled
57+
- `svm_name` (String) iSCSI SVM name
58+
- `target` (Attributes) iSCSI target properties (see [below for nested schema](#nestedatt--iscsi_services--target))
59+
60+
<a id="nestedatt--iscsi_services--target"></a>
61+
62+
### Nested Schema for `iscsi_services.target`
63+
64+
Read-Only:
65+
66+
- `alias` (String) iSCSI target alias of the iSCSI service
67+
- `name` (String) iSCSI target name of the iSCSI service

docs/resources/iscsi_service.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "netapp-ontap_iscsi_service Resource - netapp-ontap"
4+
subcategory: "SAN"
5+
description: |-
6+
Protocols iSCSI Service resource
7+
---
8+
9+
# netapp-ontap_iscsi_service (Resource)
10+
11+
Protocols iSCSI Service resource
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "netapp-ontap_iscsi_service" "protocols_iscsi_service" {
17+
# required to know which system to interface with
18+
cx_profile_name = "cluster2"
19+
svm_name = "svm02"
20+
enabled = true
21+
target = {
22+
alias = "cl2vs2"
23+
}
24+
}
25+
```
26+
27+
<!-- schema generated by tfplugindocs -->
28+
29+
## Schema
30+
31+
### Required
32+
33+
- `cx_profile_name` (String) Connection profile name
34+
- `svm_name` (String) iSCSI SVM name
35+
36+
### Optional
37+
38+
- `enabled` (Boolean) iSCSI should be enabled or disabled
39+
- `target` (Attributes) iSCSI target properties (see [below for nested schema](#nestedatt--target))
40+
41+
### Read-Only
42+
43+
- `id` (String) iSCSI Service UUID
44+
45+
<a id="nestedatt--target"></a>
46+
47+
### Nested Schema for `target`
48+
49+
Optional:
50+
51+
- `alias` (String) iSCSI target alias of the iSCSI service
52+
53+
Read-Only:
54+
55+
- `name` (String) iSCSI target name of the iSCSI service
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
data "netapp-ontap_iscsi_service" "protcols_iscsi_service" {
2+
# required to know which system to interface with
3+
cx_profile_name = "cluster2"
4+
svm_name = "svm02"
5+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../provider/provider.tf
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../provider/terraform.tfvars
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../provider/variables.tf
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
data "netapp-ontap_iscsi_services" "protcols_iscsi_services" {
2+
# required to know which system to interface with
3+
cx_profile_name = "cluster2"
4+
filter = {
5+
svm_name = "svm*"
6+
}
7+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../provider/provider.tf

0 commit comments

Comments
 (0)