-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
941 additions
and
0 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
docs/data-sources/cluster_licensing_license_data_source.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
page_title: "netapp-ontap_cluster_licensing_license_data_source Data Source - terraform-provider-netapp-ontap" | ||
subcategory: "cluster" | ||
description: |- | ||
ClusterLicensingLicense data source | ||
--- | ||
|
||
# Netapp Ontap Cluster Licensing License Data Source | ||
|
||
ClusterLicensingLicense data source | ||
## Example Usage | ||
```terraform | ||
data "netapp-ontap_cluster_licensing_license_data_source" "cluster_licensing_license" { | ||
# required to know which system to interface with | ||
cx_profile_name = "cluster4" | ||
name = "snapmirror_sync" | ||
} | ||
``` | ||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `cx_profile_name` (String) Connection profile name | ||
- `name` (String) ClusterLicensingLicense name | ||
|
||
### Read-Only | ||
|
||
- `licenses` (Attributes List) Licenses of the license (see [below for nested schema](#nestedatt--licenses)) | ||
- `scope` (String) Scope of the license | ||
- `state` (String) State of the license | ||
|
||
<a id="nestedatt--licenses"></a> | ||
### Nested Schema for `licenses` | ||
|
||
Read-Only: | ||
|
||
- `active` (Boolean) active of the license | ||
- `compliance` (Attributes) compliance of the license (see [below for nested schema](#nestedatt--licenses--compliance)) | ||
- `evaluation` (Boolean) evaluation of the license | ||
- `installed_license` (String) installed_license of the license | ||
- `owner` (String) owner of the license | ||
- `serial_number` (String) Serial Number of the license | ||
|
||
<a id="nestedatt--licenses--compliance"></a> | ||
### Nested Schema for `licenses.compliance` | ||
|
||
Read-Only: | ||
|
||
- `state` (String) state of the license | ||
|
||
|
79 changes: 79 additions & 0 deletions
79
docs/data-sources/cluster_licensing_licenses_data_source.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
page_title: "netapp-ontap_cluster_licensing_licenses_data_source Data Source - terraform-provider-netapp-ontap" | ||
subcategory: "cluster" | ||
description: |- | ||
ClusterLicensingLicenses data source | ||
--- | ||
|
||
# Netapp Ontap Cluster Licensing Licenses Data Source | ||
|
||
ClusterLicensingLicenses data source | ||
## Example Usage | ||
```terraform | ||
data "netapp-ontap_cluster_licensing_licenses_data_source" "cluster_licensing_licenses" { | ||
# required to know which system to interface with | ||
cx_profile_name = "cluster4" | ||
filter = { | ||
name = "snapmirror_sy*" | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `cx_profile_name` (String) Connection profile name | ||
|
||
### Optional | ||
|
||
- `filter` (Attributes) (see [below for nested schema](#nestedatt--filter)) | ||
|
||
### Read-Only | ||
|
||
- `cluster_licensing_licenses` (Attributes List) (see [below for nested schema](#nestedatt--cluster_licensing_licenses)) | ||
|
||
<a id="nestedatt--filter"></a> | ||
### Nested Schema for `filter` | ||
|
||
Optional: | ||
|
||
- `name` (String) ClusterLicensingLicense name | ||
|
||
|
||
<a id="nestedatt--cluster_licensing_licenses"></a> | ||
### Nested Schema for `cluster_licensing_licenses` | ||
|
||
Required: | ||
|
||
- `cx_profile_name` (String) Connection profile name | ||
- `name` (String) ClusterLicensingLicense name | ||
|
||
Read-Only: | ||
|
||
- `licenses` (Attributes List) Licenses of the license (see [below for nested schema](#nestedatt--cluster_licensing_licenses--licenses)) | ||
- `scope` (String) Scope of the license | ||
- `state` (String) State of the license | ||
|
||
<a id="nestedatt--cluster_licensing_licenses--licenses"></a> | ||
### Nested Schema for `cluster_licensing_licenses.licenses` | ||
|
||
Read-Only: | ||
|
||
- `active` (Boolean) active of the license | ||
- `compliance` (Attributes) compliance of the license (see [below for nested schema](#nestedatt--cluster_licensing_licenses--licenses--compliance)) | ||
- `evaluation` (Boolean) evaluation of the license | ||
- `installed_license` (String) installed_license of the license | ||
- `owner` (String) owner of the license | ||
- `serial_number` (String) Serial Number of the license | ||
|
||
<a id="nestedatt--cluster_licensing_licenses--licenses--compliance"></a> | ||
### Nested Schema for `cluster_licensing_licenses.licenses.compliance` | ||
|
||
Read-Only: | ||
|
||
- `state` (String) state of the license | ||
|
||
|
5 changes: 5 additions & 0 deletions
5
examples/data-sources/netapp-ontap_cluster_licensing_license/data-source.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
data "netapp-ontap_cluster_licensing_license_data_source" "cluster_licensing_license" { | ||
# required to know which system to interface with | ||
cx_profile_name = "cluster4" | ||
name = "snapmirror_sync" | ||
} |
44 changes: 44 additions & 0 deletions
44
examples/data-sources/netapp-ontap_cluster_licensing_license/provider.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
terraform { | ||
required_providers { | ||
netapp-ontap = { | ||
source = "NetApp/netapp-ontap" | ||
version = "0.0.1" | ||
} | ||
} | ||
} | ||
|
||
|
||
provider "netapp-ontap" { | ||
# A connection profile defines how to interface with an ONTAP cluster or vserver. | ||
# At least one is required. | ||
connection_profiles = [ | ||
{ | ||
name = "cluster1" | ||
hostname = "********219" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
}, | ||
{ | ||
name = "cluster2" | ||
hostname = "********222" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
}, | ||
{ | ||
name = "cluster3" | ||
hostname = "10.193.176.159" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
}, | ||
{ | ||
name = "cluster4" | ||
hostname = "10.193.180.108" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
examples/data-sources/netapp-ontap_cluster_licensing_license/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Terraform will prompt for values, unless a tfvars file is present. | ||
variable "username" { | ||
type = string | ||
} | ||
variable "password" { | ||
type = string | ||
sensitive = true | ||
} | ||
variable "validate_certs" { | ||
type = bool | ||
} |
7 changes: 7 additions & 0 deletions
7
examples/data-sources/netapp-ontap_cluster_licensing_licenses/data-source.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
data "netapp-ontap_cluster_licensing_licenses_data_source" "cluster_licensing_licenses" { | ||
# required to know which system to interface with | ||
cx_profile_name = "cluster4" | ||
#filter = { | ||
# name = "snapmirror_sy*" | ||
#} | ||
} |
44 changes: 44 additions & 0 deletions
44
examples/data-sources/netapp-ontap_cluster_licensing_licenses/provider.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
terraform { | ||
required_providers { | ||
netapp-ontap = { | ||
source = "NetApp/netapp-ontap" | ||
version = "0.0.1" | ||
} | ||
} | ||
} | ||
|
||
|
||
provider "netapp-ontap" { | ||
# A connection profile defines how to interface with an ONTAP cluster or vserver. | ||
# At least one is required. | ||
connection_profiles = [ | ||
{ | ||
name = "cluster1" | ||
hostname = "********219" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
}, | ||
{ | ||
name = "cluster2" | ||
hostname = "********222" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
}, | ||
{ | ||
name = "cluster3" | ||
hostname = "10.193.176.159" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
}, | ||
{ | ||
name = "cluster4" | ||
hostname = "10.193.180.108" | ||
username = var.username | ||
password = var.password | ||
validate_certs = var.validate_certs | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
examples/data-sources/netapp-ontap_cluster_licensing_licenses/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Terraform will prompt for values, unless a tfvars file is present. | ||
variable "username" { | ||
type = string | ||
} | ||
variable "password" { | ||
type = string | ||
sensitive = true | ||
} | ||
variable "validate_certs" { | ||
type = bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.