|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "netapp-ontap_network_ip_service_policies Data Source - terraform-provider-netapp-ontap" |
| 4 | +subcategory: "Networking" |
| 5 | +description: |- |
| 6 | + Service Policies data source |
| 7 | +--- |
| 8 | + |
| 9 | +# Data Source Service Policies |
| 10 | + |
| 11 | +Retrieves details of multiple Service Policies |
| 12 | + |
| 13 | +## Related ONTAP commands |
| 14 | + |
| 15 | +```commandline |
| 16 | +* network interface service-policy show |
| 17 | +``` |
| 18 | + |
| 19 | +## Example Usage |
| 20 | + |
| 21 | +```terraform |
| 22 | +# retrieving cluster-scoped service policies |
| 23 | +data "netapp-ontap_network_ip_service_policies" "example1" { |
| 24 | + # required to know which system to interface with |
| 25 | + cx_profile_name = "hw-cluster" |
| 26 | + filter = { |
| 27 | + scope = "cluster" |
| 28 | + } |
| 29 | +} |
| 30 | +
|
| 31 | +# retrieving svm-scoped service policies |
| 32 | +data "netapp-ontap_network_ip_service_policies" "example2" { |
| 33 | + # required to know which system to interface with |
| 34 | + cx_profile_name = "hw-cluster" |
| 35 | + filter = { |
| 36 | + svm_name = "svm1" |
| 37 | + } |
| 38 | +} |
| 39 | +
|
| 40 | +# retrieving service policies with matching name pattern |
| 41 | +data "netapp-ontap_network_ip_service_policies" "example3" { |
| 42 | + # required to know which system to interface with |
| 43 | + cx_profile_name = "hw-cluster" |
| 44 | + filter = { |
| 45 | + svm_name = "svm1" |
| 46 | + name = "test_service_policy*" |
| 47 | + } |
| 48 | +} |
| 49 | +``` |
| 50 | + |
| 51 | +<!-- schema generated by tfplugindocs --> |
| 52 | +## Schema |
| 53 | + |
| 54 | +### Required |
| 55 | + |
| 56 | +- `cx_profile_name` (String) Connection profile name |
| 57 | +- `filter` (Attributes) (see [below for nested schema](#nestedatt--filter)) |
| 58 | + |
| 59 | +### Read-Only |
| 60 | + |
| 61 | +- `ip_service_policies` (Attributes List) (see [below for nested schema](#nestedatt--ip_service_policies)) |
| 62 | + |
| 63 | +<a id="nestedatt--filter"></a> |
| 64 | +### Nested Schema for `filter` |
| 65 | + |
| 66 | +Optional: |
| 67 | + |
| 68 | +- `name` (String) The name of the service policy |
| 69 | +- `scope` (String) The name of the SVM |
| 70 | +- `svm_name` (String) The name of the SVM |
| 71 | + |
| 72 | + |
| 73 | +<a id="nestedatt--ip_service_policies"></a> |
| 74 | +### Nested Schema for `ip_service_policies` |
| 75 | + |
| 76 | +Required: |
| 77 | + |
| 78 | +- `cx_profile_name` (String) Connection profile name |
| 79 | +- `name` (String) The name of the service policy |
| 80 | + |
| 81 | +Read-Only: |
| 82 | + |
| 83 | +- `id` (String) Service policy UUID |
| 84 | +- `ipspace` (String) IP space name |
| 85 | +- `scope` (String) Set to "svm" for service policies owned by an SVM. Otherwise, set to "cluster". |
| 86 | +- `services` (Set of String) A list of services that should be included in this policy |
| 87 | +- `svm_name` (String) The name of the SVM on which the service policy exists |
0 commit comments