Skip to content

Commit c118f45

Browse files
committed
Add allowed protocols tacacs resource
1 parent ebf8259 commit c118f45

File tree

15 files changed

+904
-0
lines changed

15 files changed

+904
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 0.1.7 (unreleased)
22

33
- BREAKING CHANGE: Refactor `advanced_attributes` of `ise_authorization_profile` resource and data source
4+
- Add `ise_allowed_protocols_tacacs` resource and data source
45

56
## 0.1.6
67

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "ise_allowed_protocols_tacacs Data Source - terraform-provider-ise"
4+
subcategory: "Device Administration"
5+
description: |-
6+
This data source can read a TACACS allowed protocols policy element.
7+
---
8+
9+
# ise_allowed_protocols_tacacs (Data Source)
10+
11+
This data source can read a TACACS allowed protocols policy element.
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "ise_allowed_protocols_tacacs" "example" {
17+
id = "76d24097-41c4-4558-a4d0-a8c07ac08470"
18+
}
19+
```
20+
21+
<!-- schema generated by tfplugindocs -->
22+
## Schema
23+
24+
### Optional
25+
26+
- `id` (String) The id of the object
27+
- `name` (String) The name of the allowed protocols
28+
29+
### Read-Only
30+
31+
- `allow_chap` (Boolean) Allow CHAP
32+
- `allow_ms_chap_v1` (Boolean) Allow MS CHAP v1
33+
- `allow_pap_ascii` (Boolean) Allow PAP ASCII
34+
- `description` (String) Description

docs/guides/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ description: |-
1010
## 0.1.7 (unreleased)
1111

1212
- BREAKING CHANGE: Refactor `advanced_attributes` of `ise_authorization_profile` resource and data source
13+
- Add `ise_allowed_protocols_tacacs` resource and data source
1314

1415
## 0.1.6
1516

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "ise_allowed_protocols_tacacs Resource - terraform-provider-ise"
4+
subcategory: "Device Administration"
5+
description: |-
6+
This resource can manage a TACACS allowed protocols policy element.
7+
---
8+
9+
# ise_allowed_protocols_tacacs (Resource)
10+
11+
This resource can manage a TACACS allowed protocols policy element.
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "ise_allowed_protocols_tacacs" "example" {
17+
name = "Protocols1"
18+
description = "My allowed TACACS protocols"
19+
allow_pap_ascii = true
20+
allow_chap = true
21+
allow_ms_chap_v1 = true
22+
}
23+
```
24+
25+
<!-- schema generated by tfplugindocs -->
26+
## Schema
27+
28+
### Required
29+
30+
- `allow_chap` (Boolean) Allow CHAP
31+
- `allow_ms_chap_v1` (Boolean) Allow MS CHAP v1
32+
- `allow_pap_ascii` (Boolean) Allow PAP ASCII
33+
- `name` (String) The name of the allowed protocols
34+
35+
### Optional
36+
37+
- `description` (String) Description
38+
39+
### Read-Only
40+
41+
- `id` (String) The id of the object
42+
43+
## Import
44+
45+
Import is supported using the following syntax:
46+
47+
```shell
48+
terraform import ise_allowed_protocols_tacacs.example "76d24097-41c4-4558-a4d0-a8c07ac08470"
49+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data "ise_allowed_protocols_tacacs" "example" {
2+
id = "76d24097-41c4-4558-a4d0-a8c07ac08470"
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
terraform import ise_allowed_protocols_tacacs.example "76d24097-41c4-4558-a4d0-a8c07ac08470"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
resource "ise_allowed_protocols_tacacs" "example" {
2+
name = "Protocols1"
3+
description = "My allowed TACACS protocols"
4+
allow_pap_ascii = true
5+
allow_chap = true
6+
allow_ms_chap_v1 = true
7+
}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
name: Allowed Protocols TACACS
3+
rest_endpoint: /ers/config/allowedprotocols
4+
data_source_name_query: true
5+
res_description: This resource can manage a TACACS allowed protocols policy element.
6+
ds_description: This data source can read a TACACS allowed protocols policy element.
7+
skip_minimum_test: true # PUT fails with HTTP 500
8+
doc_category: Device Administration
9+
attributes:
10+
- model_name: name
11+
data_path: [AllowedProtocols]
12+
type: String
13+
mandatory: true
14+
description: The name of the allowed protocols
15+
example: Protocols1
16+
- model_name: description
17+
data_path: [AllowedProtocols]
18+
type: String
19+
description: Description
20+
example: My allowed TACACS protocols
21+
- model_name: processHostLookup
22+
data_path: [AllowedProtocols]
23+
type: Bool
24+
value: false
25+
- model_name: allowPapAscii
26+
data_path: [AllowedProtocols]
27+
type: Bool
28+
mandatory: true
29+
description: Allow PAP ASCII
30+
example: true
31+
- model_name: allowChap
32+
data_path: [AllowedProtocols]
33+
type: Bool
34+
mandatory: true
35+
description: Allow CHAP
36+
example: true
37+
- model_name: allowMsChapV1
38+
data_path: [AllowedProtocols]
39+
type: Bool
40+
mandatory: true
41+
description: Allow MS CHAP v1
42+
example: true
43+
- model_name: allowMsChapV2
44+
data_path: [AllowedProtocols]
45+
type: Bool
46+
value: false
47+
- model_name: allowEapMd5
48+
data_path: [AllowedProtocols]
49+
type: Bool
50+
value: false
51+
- model_name: allowLeap
52+
data_path: [AllowedProtocols]
53+
type: Bool
54+
value: false
55+
- model_name: allowEapTls
56+
data_path: [AllowedProtocols]
57+
type: Bool
58+
value: false
59+
- model_name: allowEapTtls
60+
data_path: [AllowedProtocols]
61+
type: Bool
62+
value: false
63+
- model_name: allowEapFast
64+
data_path: [AllowedProtocols]
65+
type: Bool
66+
value: false
67+
- model_name: allowPeap
68+
data_path: [AllowedProtocols]
69+
type: Bool
70+
value: false
71+
- model_name: allowTeap
72+
data_path: [AllowedProtocols]
73+
type: Bool
74+
value: false
75+
- model_name: allowPreferredEapProtocol
76+
data_path: [AllowedProtocols]
77+
type: Bool
78+
value: false
79+
- model_name: eapTlsLBit
80+
data_path: [AllowedProtocols]
81+
type: Bool
82+
value: false
83+
- model_name: allowWeakCiphersForEap
84+
data_path: [AllowedProtocols]
85+
type: Bool
86+
value: false
87+
- model_name: requireMessageAuth
88+
data_path: [AllowedProtocols]
89+
type: Bool
90+
value: false
91+
- model_name: fiveG
92+
data_path: [AllowedProtocols]
93+
type: Bool
94+
value: false

internal/provider/data_source_ise_allowed_protocols_tacacs.go

Lines changed: 167 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)