pulumi-ise 0.2.0a1736833585__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- pulumi_ise/__init__.py +458 -0
- pulumi_ise/_utilities.py +327 -0
- pulumi_ise/config/__init__.py +8 -0
- pulumi_ise/config/__init__.pyi +41 -0
- pulumi_ise/config/vars.py +57 -0
- pulumi_ise/deviceadmin/__init__.py +34 -0
- pulumi_ise/deviceadmin/_inputs.py +2517 -0
- pulumi_ise/deviceadmin/allowed_protocols_tacacs.py +381 -0
- pulumi_ise/deviceadmin/authentication_rule.py +1050 -0
- pulumi_ise/deviceadmin/authentication_rule_update_rank.py +271 -0
- pulumi_ise/deviceadmin/authorization_exception_rule.py +942 -0
- pulumi_ise/deviceadmin/authorization_exception_rule_update_rank.py +271 -0
- pulumi_ise/deviceadmin/authorization_global_exception_rule.py +843 -0
- pulumi_ise/deviceadmin/authorization_global_exception_rule_update_rank.py +221 -0
- pulumi_ise/deviceadmin/authorization_rule.py +942 -0
- pulumi_ise/deviceadmin/authorization_rule_update_rank.py +271 -0
- pulumi_ise/deviceadmin/condition.py +650 -0
- pulumi_ise/deviceadmin/get_allowed_protocols_tacacs.py +174 -0
- pulumi_ise/deviceadmin/get_authentication_rule.py +365 -0
- pulumi_ise/deviceadmin/get_authorization_exception_rule.py +337 -0
- pulumi_ise/deviceadmin/get_authorization_global_exception_rule.py +301 -0
- pulumi_ise/deviceadmin/get_authorization_rule.py +337 -0
- pulumi_ise/deviceadmin/get_condition.py +245 -0
- pulumi_ise/deviceadmin/get_policy_set.py +329 -0
- pulumi_ise/deviceadmin/get_tacacs_command_set.py +158 -0
- pulumi_ise/deviceadmin/get_tacacs_profile.py +144 -0
- pulumi_ise/deviceadmin/get_time_and_date_condition.py +286 -0
- pulumi_ise/deviceadmin/outputs.py +3178 -0
- pulumi_ise/deviceadmin/policy_set.py +947 -0
- pulumi_ise/deviceadmin/policy_set_update_rank.py +221 -0
- pulumi_ise/deviceadmin/tacacs_command_set.py +326 -0
- pulumi_ise/deviceadmin/tacacs_profile.py +277 -0
- pulumi_ise/deviceadmin/time_and_date_condition.py +770 -0
- pulumi_ise/identitymanagement/__init__.py +26 -0
- pulumi_ise/identitymanagement/_inputs.py +419 -0
- pulumi_ise/identitymanagement/active_directory_add_groups.py +483 -0
- pulumi_ise/identitymanagement/active_directory_join_domain_with_all_nodes.py +216 -0
- pulumi_ise/identitymanagement/active_directory_join_point.py +1676 -0
- pulumi_ise/identitymanagement/certificate_authentication_profile.py +525 -0
- pulumi_ise/identitymanagement/endpoint.py +1376 -0
- pulumi_ise/identitymanagement/endpoint_identity_group.py +327 -0
- pulumi_ise/identitymanagement/get_active_directory_groups_by_domain.py +215 -0
- pulumi_ise/identitymanagement/get_active_directory_join_point.py +558 -0
- pulumi_ise/identitymanagement/get_certificate_authentication_profile.py +202 -0
- pulumi_ise/identitymanagement/get_endpoint.py +468 -0
- pulumi_ise/identitymanagement/get_endpoint_identity_group.py +160 -0
- pulumi_ise/identitymanagement/get_identity_source_sequence.py +172 -0
- pulumi_ise/identitymanagement/get_internal_user.py +300 -0
- pulumi_ise/identitymanagement/get_user_identity_group.py +146 -0
- pulumi_ise/identitymanagement/identity_source_sequence.py +376 -0
- pulumi_ise/identitymanagement/internal_user.py +830 -0
- pulumi_ise/identitymanagement/outputs.py +491 -0
- pulumi_ise/identitymanagement/user_identity_group.py +280 -0
- pulumi_ise/network/__init__.py +13 -0
- pulumi_ise/network/_inputs.py +94 -0
- pulumi_ise/network/device.py +2194 -0
- pulumi_ise/network/device_group.py +281 -0
- pulumi_ise/network/get_device.py +693 -0
- pulumi_ise/network/get_device_group.py +146 -0
- pulumi_ise/network/outputs.py +120 -0
- pulumi_ise/networkaccess/__init__.py +36 -0
- pulumi_ise/networkaccess/_inputs.py +2506 -0
- pulumi_ise/networkaccess/allowed_protocols.py +3967 -0
- pulumi_ise/networkaccess/authentication_rule.py +1050 -0
- pulumi_ise/networkaccess/authentication_rule_update_rank.py +271 -0
- pulumi_ise/networkaccess/authorization_exception_rule.py +942 -0
- pulumi_ise/networkaccess/authorization_exception_rule_update_rank.py +271 -0
- pulumi_ise/networkaccess/authorization_global_exception_rule.py +843 -0
- pulumi_ise/networkaccess/authorization_global_exception_rule_update_rank.py +221 -0
- pulumi_ise/networkaccess/authorization_profile.py +1682 -0
- pulumi_ise/networkaccess/authorization_rule.py +942 -0
- pulumi_ise/networkaccess/authorization_rule_update_rank.py +271 -0
- pulumi_ise/networkaccess/condition.py +650 -0
- pulumi_ise/networkaccess/dictionary.py +331 -0
- pulumi_ise/networkaccess/downloadable_acl.py +330 -0
- pulumi_ise/networkaccess/get_allowed_protocols.py +1182 -0
- pulumi_ise/networkaccess/get_authentication_rule.py +365 -0
- pulumi_ise/networkaccess/get_authorization_exception_rule.py +337 -0
- pulumi_ise/networkaccess/get_authorization_global_exception_rule.py +301 -0
- pulumi_ise/networkaccess/get_authorization_profile.py +567 -0
- pulumi_ise/networkaccess/get_authorization_rule.py +337 -0
- pulumi_ise/networkaccess/get_condition.py +245 -0
- pulumi_ise/networkaccess/get_dictionary.py +160 -0
- pulumi_ise/networkaccess/get_downloadable_acl.py +160 -0
- pulumi_ise/networkaccess/get_policy_set.py +329 -0
- pulumi_ise/networkaccess/get_time_and_date_condition.py +286 -0
- pulumi_ise/networkaccess/outputs.py +3193 -0
- pulumi_ise/networkaccess/policy_set.py +947 -0
- pulumi_ise/networkaccess/policy_set_update_rank.py +221 -0
- pulumi_ise/networkaccess/time_and_date_condition.py +770 -0
- pulumi_ise/provider.py +209 -0
- pulumi_ise/pulumi-plugin.json +5 -0
- pulumi_ise/py.typed +0 -0
- pulumi_ise/system/__init__.py +13 -0
- pulumi_ise/system/_inputs.py +79 -0
- pulumi_ise/system/get_license_tier_state.py +113 -0
- pulumi_ise/system/get_repository.py +202 -0
- pulumi_ise/system/license_tier_state.py +189 -0
- pulumi_ise/system/outputs.py +83 -0
- pulumi_ise/system/repository.py +478 -0
- pulumi_ise/trustsec/__init__.py +21 -0
- pulumi_ise/trustsec/egress_matrix_cell.py +429 -0
- pulumi_ise/trustsec/egress_matrix_cell_default.py +327 -0
- pulumi_ise/trustsec/get_egress_matrix_cell.py +182 -0
- pulumi_ise/trustsec/get_egress_matrix_cell_default.py +154 -0
- pulumi_ise/trustsec/get_ip_to_sgt_mapping.py +216 -0
- pulumi_ise/trustsec/get_ip_to_sgt_mapping_group.py +174 -0
- pulumi_ise/trustsec/get_security_group.py +174 -0
- pulumi_ise/trustsec/get_security_group_acl.py +174 -0
- pulumi_ise/trustsec/get_sxp_domain_filter.py +188 -0
- pulumi_ise/trustsec/ip_to_sgt_mapping.py +517 -0
- pulumi_ise/trustsec/ip_to_sgt_mapping_group.py +376 -0
- pulumi_ise/trustsec/security_group.py +379 -0
- pulumi_ise/trustsec/security_group_acl.py +379 -0
- pulumi_ise/trustsec/sxp_domain_filter.py +422 -0
- pulumi_ise-0.2.0a1736833585.dist-info/METADATA +64 -0
- pulumi_ise-0.2.0a1736833585.dist-info/RECORD +119 -0
- pulumi_ise-0.2.0a1736833585.dist-info/WHEEL +5 -0
- pulumi_ise-0.2.0a1736833585.dist-info/top_level.txt +1 -0
@@ -0,0 +1,221 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
|
17
|
+
__all__ = ['PolicySetUpdateRankArgs', 'PolicySetUpdateRank']
|
18
|
+
|
19
|
+
@pulumi.input_type
|
20
|
+
class PolicySetUpdateRankArgs:
|
21
|
+
def __init__(__self__, *,
|
22
|
+
policy_set_id: pulumi.Input[str],
|
23
|
+
rank: pulumi.Input[int]):
|
24
|
+
"""
|
25
|
+
The set of arguments for constructing a PolicySetUpdateRank resource.
|
26
|
+
:param pulumi.Input[str] policy_set_id: Policy set ID
|
27
|
+
:param pulumi.Input[int] rank: The rank (priority) in relation to other rules. Lower rank is higher priority.
|
28
|
+
"""
|
29
|
+
pulumi.set(__self__, "policy_set_id", policy_set_id)
|
30
|
+
pulumi.set(__self__, "rank", rank)
|
31
|
+
|
32
|
+
@property
|
33
|
+
@pulumi.getter(name="policySetId")
|
34
|
+
def policy_set_id(self) -> pulumi.Input[str]:
|
35
|
+
"""
|
36
|
+
Policy set ID
|
37
|
+
"""
|
38
|
+
return pulumi.get(self, "policy_set_id")
|
39
|
+
|
40
|
+
@policy_set_id.setter
|
41
|
+
def policy_set_id(self, value: pulumi.Input[str]):
|
42
|
+
pulumi.set(self, "policy_set_id", value)
|
43
|
+
|
44
|
+
@property
|
45
|
+
@pulumi.getter
|
46
|
+
def rank(self) -> pulumi.Input[int]:
|
47
|
+
"""
|
48
|
+
The rank (priority) in relation to other rules. Lower rank is higher priority.
|
49
|
+
"""
|
50
|
+
return pulumi.get(self, "rank")
|
51
|
+
|
52
|
+
@rank.setter
|
53
|
+
def rank(self, value: pulumi.Input[int]):
|
54
|
+
pulumi.set(self, "rank", value)
|
55
|
+
|
56
|
+
|
57
|
+
@pulumi.input_type
|
58
|
+
class _PolicySetUpdateRankState:
|
59
|
+
def __init__(__self__, *,
|
60
|
+
policy_set_id: Optional[pulumi.Input[str]] = None,
|
61
|
+
rank: Optional[pulumi.Input[int]] = None):
|
62
|
+
"""
|
63
|
+
Input properties used for looking up and filtering PolicySetUpdateRank resources.
|
64
|
+
:param pulumi.Input[str] policy_set_id: Policy set ID
|
65
|
+
:param pulumi.Input[int] rank: The rank (priority) in relation to other rules. Lower rank is higher priority.
|
66
|
+
"""
|
67
|
+
if policy_set_id is not None:
|
68
|
+
pulumi.set(__self__, "policy_set_id", policy_set_id)
|
69
|
+
if rank is not None:
|
70
|
+
pulumi.set(__self__, "rank", rank)
|
71
|
+
|
72
|
+
@property
|
73
|
+
@pulumi.getter(name="policySetId")
|
74
|
+
def policy_set_id(self) -> Optional[pulumi.Input[str]]:
|
75
|
+
"""
|
76
|
+
Policy set ID
|
77
|
+
"""
|
78
|
+
return pulumi.get(self, "policy_set_id")
|
79
|
+
|
80
|
+
@policy_set_id.setter
|
81
|
+
def policy_set_id(self, value: Optional[pulumi.Input[str]]):
|
82
|
+
pulumi.set(self, "policy_set_id", value)
|
83
|
+
|
84
|
+
@property
|
85
|
+
@pulumi.getter
|
86
|
+
def rank(self) -> Optional[pulumi.Input[int]]:
|
87
|
+
"""
|
88
|
+
The rank (priority) in relation to other rules. Lower rank is higher priority.
|
89
|
+
"""
|
90
|
+
return pulumi.get(self, "rank")
|
91
|
+
|
92
|
+
@rank.setter
|
93
|
+
def rank(self, value: Optional[pulumi.Input[int]]):
|
94
|
+
pulumi.set(self, "rank", value)
|
95
|
+
|
96
|
+
|
97
|
+
class PolicySetUpdateRank(pulumi.CustomResource):
|
98
|
+
@overload
|
99
|
+
def __init__(__self__,
|
100
|
+
resource_name: str,
|
101
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
102
|
+
policy_set_id: Optional[pulumi.Input[str]] = None,
|
103
|
+
rank: Optional[pulumi.Input[int]] = None,
|
104
|
+
__props__=None):
|
105
|
+
"""
|
106
|
+
This resource is used to update rank field in device admin policy set. It serves as a workaround for the ISE API/Backend limitation which restricts rank assignments to a strictly incremental sequence. By utilizing this resource and device_admin_policy_set resource, you can bypass the APIs limitation. Creation of this resource is performing PUT operation (Update) and it only tracks rank field. When this resource is destroyed, no action is performed on ISE and resource is just removed from state.
|
107
|
+
|
108
|
+
## Example Usage
|
109
|
+
|
110
|
+
```python
|
111
|
+
import pulumi
|
112
|
+
import pulumi_ise as ise
|
113
|
+
|
114
|
+
example = ise.deviceadmin.PolicySetUpdateRank("example",
|
115
|
+
policy_set_id="d82952cb-b901-4b09-b363-5ebf39bdbaf9",
|
116
|
+
rank=0)
|
117
|
+
```
|
118
|
+
|
119
|
+
:param str resource_name: The name of the resource.
|
120
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
121
|
+
:param pulumi.Input[str] policy_set_id: Policy set ID
|
122
|
+
:param pulumi.Input[int] rank: The rank (priority) in relation to other rules. Lower rank is higher priority.
|
123
|
+
"""
|
124
|
+
...
|
125
|
+
@overload
|
126
|
+
def __init__(__self__,
|
127
|
+
resource_name: str,
|
128
|
+
args: PolicySetUpdateRankArgs,
|
129
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
130
|
+
"""
|
131
|
+
This resource is used to update rank field in device admin policy set. It serves as a workaround for the ISE API/Backend limitation which restricts rank assignments to a strictly incremental sequence. By utilizing this resource and device_admin_policy_set resource, you can bypass the APIs limitation. Creation of this resource is performing PUT operation (Update) and it only tracks rank field. When this resource is destroyed, no action is performed on ISE and resource is just removed from state.
|
132
|
+
|
133
|
+
## Example Usage
|
134
|
+
|
135
|
+
```python
|
136
|
+
import pulumi
|
137
|
+
import pulumi_ise as ise
|
138
|
+
|
139
|
+
example = ise.deviceadmin.PolicySetUpdateRank("example",
|
140
|
+
policy_set_id="d82952cb-b901-4b09-b363-5ebf39bdbaf9",
|
141
|
+
rank=0)
|
142
|
+
```
|
143
|
+
|
144
|
+
:param str resource_name: The name of the resource.
|
145
|
+
:param PolicySetUpdateRankArgs args: The arguments to use to populate this resource's properties.
|
146
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
147
|
+
"""
|
148
|
+
...
|
149
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
150
|
+
resource_args, opts = _utilities.get_resource_args_opts(PolicySetUpdateRankArgs, pulumi.ResourceOptions, *args, **kwargs)
|
151
|
+
if resource_args is not None:
|
152
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
153
|
+
else:
|
154
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
155
|
+
|
156
|
+
def _internal_init(__self__,
|
157
|
+
resource_name: str,
|
158
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
159
|
+
policy_set_id: Optional[pulumi.Input[str]] = None,
|
160
|
+
rank: Optional[pulumi.Input[int]] = None,
|
161
|
+
__props__=None):
|
162
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
163
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
164
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
165
|
+
if opts.id is None:
|
166
|
+
if __props__ is not None:
|
167
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
168
|
+
__props__ = PolicySetUpdateRankArgs.__new__(PolicySetUpdateRankArgs)
|
169
|
+
|
170
|
+
if policy_set_id is None and not opts.urn:
|
171
|
+
raise TypeError("Missing required property 'policy_set_id'")
|
172
|
+
__props__.__dict__["policy_set_id"] = policy_set_id
|
173
|
+
if rank is None and not opts.urn:
|
174
|
+
raise TypeError("Missing required property 'rank'")
|
175
|
+
__props__.__dict__["rank"] = rank
|
176
|
+
super(PolicySetUpdateRank, __self__).__init__(
|
177
|
+
'ise:deviceadmin/policySetUpdateRank:PolicySetUpdateRank',
|
178
|
+
resource_name,
|
179
|
+
__props__,
|
180
|
+
opts)
|
181
|
+
|
182
|
+
@staticmethod
|
183
|
+
def get(resource_name: str,
|
184
|
+
id: pulumi.Input[str],
|
185
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
186
|
+
policy_set_id: Optional[pulumi.Input[str]] = None,
|
187
|
+
rank: Optional[pulumi.Input[int]] = None) -> 'PolicySetUpdateRank':
|
188
|
+
"""
|
189
|
+
Get an existing PolicySetUpdateRank resource's state with the given name, id, and optional extra
|
190
|
+
properties used to qualify the lookup.
|
191
|
+
|
192
|
+
:param str resource_name: The unique name of the resulting resource.
|
193
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
194
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
195
|
+
:param pulumi.Input[str] policy_set_id: Policy set ID
|
196
|
+
:param pulumi.Input[int] rank: The rank (priority) in relation to other rules. Lower rank is higher priority.
|
197
|
+
"""
|
198
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
199
|
+
|
200
|
+
__props__ = _PolicySetUpdateRankState.__new__(_PolicySetUpdateRankState)
|
201
|
+
|
202
|
+
__props__.__dict__["policy_set_id"] = policy_set_id
|
203
|
+
__props__.__dict__["rank"] = rank
|
204
|
+
return PolicySetUpdateRank(resource_name, opts=opts, __props__=__props__)
|
205
|
+
|
206
|
+
@property
|
207
|
+
@pulumi.getter(name="policySetId")
|
208
|
+
def policy_set_id(self) -> pulumi.Output[str]:
|
209
|
+
"""
|
210
|
+
Policy set ID
|
211
|
+
"""
|
212
|
+
return pulumi.get(self, "policy_set_id")
|
213
|
+
|
214
|
+
@property
|
215
|
+
@pulumi.getter
|
216
|
+
def rank(self) -> pulumi.Output[int]:
|
217
|
+
"""
|
218
|
+
The rank (priority) in relation to other rules. Lower rank is higher priority.
|
219
|
+
"""
|
220
|
+
return pulumi.get(self, "rank")
|
221
|
+
|
@@ -0,0 +1,326 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
from . import outputs
|
17
|
+
from ._inputs import *
|
18
|
+
|
19
|
+
__all__ = ['TacacsCommandSetArgs', 'TacacsCommandSet']
|
20
|
+
|
21
|
+
@pulumi.input_type
|
22
|
+
class TacacsCommandSetArgs:
|
23
|
+
def __init__(__self__, *,
|
24
|
+
commands: Optional[pulumi.Input[Sequence[pulumi.Input['TacacsCommandSetCommandArgs']]]] = None,
|
25
|
+
description: Optional[pulumi.Input[str]] = None,
|
26
|
+
name: Optional[pulumi.Input[str]] = None,
|
27
|
+
permit_unmatched: Optional[pulumi.Input[bool]] = None):
|
28
|
+
"""
|
29
|
+
The set of arguments for constructing a TacacsCommandSet resource.
|
30
|
+
:param pulumi.Input[str] description: Description
|
31
|
+
:param pulumi.Input[str] name: The name of the TACACS command set
|
32
|
+
:param pulumi.Input[bool] permit_unmatched: Permit unmatched commands - Default value: `false`
|
33
|
+
"""
|
34
|
+
if commands is not None:
|
35
|
+
pulumi.set(__self__, "commands", commands)
|
36
|
+
if description is not None:
|
37
|
+
pulumi.set(__self__, "description", description)
|
38
|
+
if name is not None:
|
39
|
+
pulumi.set(__self__, "name", name)
|
40
|
+
if permit_unmatched is not None:
|
41
|
+
pulumi.set(__self__, "permit_unmatched", permit_unmatched)
|
42
|
+
|
43
|
+
@property
|
44
|
+
@pulumi.getter
|
45
|
+
def commands(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['TacacsCommandSetCommandArgs']]]]:
|
46
|
+
return pulumi.get(self, "commands")
|
47
|
+
|
48
|
+
@commands.setter
|
49
|
+
def commands(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['TacacsCommandSetCommandArgs']]]]):
|
50
|
+
pulumi.set(self, "commands", value)
|
51
|
+
|
52
|
+
@property
|
53
|
+
@pulumi.getter
|
54
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
55
|
+
"""
|
56
|
+
Description
|
57
|
+
"""
|
58
|
+
return pulumi.get(self, "description")
|
59
|
+
|
60
|
+
@description.setter
|
61
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
62
|
+
pulumi.set(self, "description", value)
|
63
|
+
|
64
|
+
@property
|
65
|
+
@pulumi.getter
|
66
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
67
|
+
"""
|
68
|
+
The name of the TACACS command set
|
69
|
+
"""
|
70
|
+
return pulumi.get(self, "name")
|
71
|
+
|
72
|
+
@name.setter
|
73
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
74
|
+
pulumi.set(self, "name", value)
|
75
|
+
|
76
|
+
@property
|
77
|
+
@pulumi.getter(name="permitUnmatched")
|
78
|
+
def permit_unmatched(self) -> Optional[pulumi.Input[bool]]:
|
79
|
+
"""
|
80
|
+
Permit unmatched commands - Default value: `false`
|
81
|
+
"""
|
82
|
+
return pulumi.get(self, "permit_unmatched")
|
83
|
+
|
84
|
+
@permit_unmatched.setter
|
85
|
+
def permit_unmatched(self, value: Optional[pulumi.Input[bool]]):
|
86
|
+
pulumi.set(self, "permit_unmatched", value)
|
87
|
+
|
88
|
+
|
89
|
+
@pulumi.input_type
|
90
|
+
class _TacacsCommandSetState:
|
91
|
+
def __init__(__self__, *,
|
92
|
+
commands: Optional[pulumi.Input[Sequence[pulumi.Input['TacacsCommandSetCommandArgs']]]] = None,
|
93
|
+
description: Optional[pulumi.Input[str]] = None,
|
94
|
+
name: Optional[pulumi.Input[str]] = None,
|
95
|
+
permit_unmatched: Optional[pulumi.Input[bool]] = None):
|
96
|
+
"""
|
97
|
+
Input properties used for looking up and filtering TacacsCommandSet resources.
|
98
|
+
:param pulumi.Input[str] description: Description
|
99
|
+
:param pulumi.Input[str] name: The name of the TACACS command set
|
100
|
+
:param pulumi.Input[bool] permit_unmatched: Permit unmatched commands - Default value: `false`
|
101
|
+
"""
|
102
|
+
if commands is not None:
|
103
|
+
pulumi.set(__self__, "commands", commands)
|
104
|
+
if description is not None:
|
105
|
+
pulumi.set(__self__, "description", description)
|
106
|
+
if name is not None:
|
107
|
+
pulumi.set(__self__, "name", name)
|
108
|
+
if permit_unmatched is not None:
|
109
|
+
pulumi.set(__self__, "permit_unmatched", permit_unmatched)
|
110
|
+
|
111
|
+
@property
|
112
|
+
@pulumi.getter
|
113
|
+
def commands(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['TacacsCommandSetCommandArgs']]]]:
|
114
|
+
return pulumi.get(self, "commands")
|
115
|
+
|
116
|
+
@commands.setter
|
117
|
+
def commands(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['TacacsCommandSetCommandArgs']]]]):
|
118
|
+
pulumi.set(self, "commands", value)
|
119
|
+
|
120
|
+
@property
|
121
|
+
@pulumi.getter
|
122
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
123
|
+
"""
|
124
|
+
Description
|
125
|
+
"""
|
126
|
+
return pulumi.get(self, "description")
|
127
|
+
|
128
|
+
@description.setter
|
129
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
130
|
+
pulumi.set(self, "description", value)
|
131
|
+
|
132
|
+
@property
|
133
|
+
@pulumi.getter
|
134
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
135
|
+
"""
|
136
|
+
The name of the TACACS command set
|
137
|
+
"""
|
138
|
+
return pulumi.get(self, "name")
|
139
|
+
|
140
|
+
@name.setter
|
141
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
142
|
+
pulumi.set(self, "name", value)
|
143
|
+
|
144
|
+
@property
|
145
|
+
@pulumi.getter(name="permitUnmatched")
|
146
|
+
def permit_unmatched(self) -> Optional[pulumi.Input[bool]]:
|
147
|
+
"""
|
148
|
+
Permit unmatched commands - Default value: `false`
|
149
|
+
"""
|
150
|
+
return pulumi.get(self, "permit_unmatched")
|
151
|
+
|
152
|
+
@permit_unmatched.setter
|
153
|
+
def permit_unmatched(self, value: Optional[pulumi.Input[bool]]):
|
154
|
+
pulumi.set(self, "permit_unmatched", value)
|
155
|
+
|
156
|
+
|
157
|
+
class TacacsCommandSet(pulumi.CustomResource):
|
158
|
+
@overload
|
159
|
+
def __init__(__self__,
|
160
|
+
resource_name: str,
|
161
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
162
|
+
commands: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TacacsCommandSetCommandArgs', 'TacacsCommandSetCommandArgsDict']]]]] = None,
|
163
|
+
description: Optional[pulumi.Input[str]] = None,
|
164
|
+
name: Optional[pulumi.Input[str]] = None,
|
165
|
+
permit_unmatched: Optional[pulumi.Input[bool]] = None,
|
166
|
+
__props__=None):
|
167
|
+
"""
|
168
|
+
This resource can manage a TACACS Command Set.
|
169
|
+
|
170
|
+
## Example Usage
|
171
|
+
|
172
|
+
```python
|
173
|
+
import pulumi
|
174
|
+
import pulumi_ise as ise
|
175
|
+
|
176
|
+
example = ise.deviceadmin.TacacsCommandSet("example",
|
177
|
+
name="CommandSet1",
|
178
|
+
description="My TACACS command set",
|
179
|
+
permit_unmatched=True,
|
180
|
+
commands=[{
|
181
|
+
"grant": "PERMIT",
|
182
|
+
"command": "show",
|
183
|
+
"arguments": "",
|
184
|
+
}])
|
185
|
+
```
|
186
|
+
|
187
|
+
## Import
|
188
|
+
|
189
|
+
```sh
|
190
|
+
$ pulumi import ise:deviceadmin/tacacsCommandSet:TacacsCommandSet example "76d24097-41c4-4558-a4d0-a8c07ac08470"
|
191
|
+
```
|
192
|
+
|
193
|
+
:param str resource_name: The name of the resource.
|
194
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
195
|
+
:param pulumi.Input[str] description: Description
|
196
|
+
:param pulumi.Input[str] name: The name of the TACACS command set
|
197
|
+
:param pulumi.Input[bool] permit_unmatched: Permit unmatched commands - Default value: `false`
|
198
|
+
"""
|
199
|
+
...
|
200
|
+
@overload
|
201
|
+
def __init__(__self__,
|
202
|
+
resource_name: str,
|
203
|
+
args: Optional[TacacsCommandSetArgs] = None,
|
204
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
205
|
+
"""
|
206
|
+
This resource can manage a TACACS Command Set.
|
207
|
+
|
208
|
+
## Example Usage
|
209
|
+
|
210
|
+
```python
|
211
|
+
import pulumi
|
212
|
+
import pulumi_ise as ise
|
213
|
+
|
214
|
+
example = ise.deviceadmin.TacacsCommandSet("example",
|
215
|
+
name="CommandSet1",
|
216
|
+
description="My TACACS command set",
|
217
|
+
permit_unmatched=True,
|
218
|
+
commands=[{
|
219
|
+
"grant": "PERMIT",
|
220
|
+
"command": "show",
|
221
|
+
"arguments": "",
|
222
|
+
}])
|
223
|
+
```
|
224
|
+
|
225
|
+
## Import
|
226
|
+
|
227
|
+
```sh
|
228
|
+
$ pulumi import ise:deviceadmin/tacacsCommandSet:TacacsCommandSet example "76d24097-41c4-4558-a4d0-a8c07ac08470"
|
229
|
+
```
|
230
|
+
|
231
|
+
:param str resource_name: The name of the resource.
|
232
|
+
:param TacacsCommandSetArgs args: The arguments to use to populate this resource's properties.
|
233
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
234
|
+
"""
|
235
|
+
...
|
236
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
237
|
+
resource_args, opts = _utilities.get_resource_args_opts(TacacsCommandSetArgs, pulumi.ResourceOptions, *args, **kwargs)
|
238
|
+
if resource_args is not None:
|
239
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
240
|
+
else:
|
241
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
242
|
+
|
243
|
+
def _internal_init(__self__,
|
244
|
+
resource_name: str,
|
245
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
246
|
+
commands: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TacacsCommandSetCommandArgs', 'TacacsCommandSetCommandArgsDict']]]]] = None,
|
247
|
+
description: Optional[pulumi.Input[str]] = None,
|
248
|
+
name: Optional[pulumi.Input[str]] = None,
|
249
|
+
permit_unmatched: Optional[pulumi.Input[bool]] = None,
|
250
|
+
__props__=None):
|
251
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
252
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
253
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
254
|
+
if opts.id is None:
|
255
|
+
if __props__ is not None:
|
256
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
257
|
+
__props__ = TacacsCommandSetArgs.__new__(TacacsCommandSetArgs)
|
258
|
+
|
259
|
+
__props__.__dict__["commands"] = commands
|
260
|
+
__props__.__dict__["description"] = description
|
261
|
+
__props__.__dict__["name"] = name
|
262
|
+
__props__.__dict__["permit_unmatched"] = permit_unmatched
|
263
|
+
super(TacacsCommandSet, __self__).__init__(
|
264
|
+
'ise:deviceadmin/tacacsCommandSet:TacacsCommandSet',
|
265
|
+
resource_name,
|
266
|
+
__props__,
|
267
|
+
opts)
|
268
|
+
|
269
|
+
@staticmethod
|
270
|
+
def get(resource_name: str,
|
271
|
+
id: pulumi.Input[str],
|
272
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
273
|
+
commands: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TacacsCommandSetCommandArgs', 'TacacsCommandSetCommandArgsDict']]]]] = None,
|
274
|
+
description: Optional[pulumi.Input[str]] = None,
|
275
|
+
name: Optional[pulumi.Input[str]] = None,
|
276
|
+
permit_unmatched: Optional[pulumi.Input[bool]] = None) -> 'TacacsCommandSet':
|
277
|
+
"""
|
278
|
+
Get an existing TacacsCommandSet resource's state with the given name, id, and optional extra
|
279
|
+
properties used to qualify the lookup.
|
280
|
+
|
281
|
+
:param str resource_name: The unique name of the resulting resource.
|
282
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
283
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
284
|
+
:param pulumi.Input[str] description: Description
|
285
|
+
:param pulumi.Input[str] name: The name of the TACACS command set
|
286
|
+
:param pulumi.Input[bool] permit_unmatched: Permit unmatched commands - Default value: `false`
|
287
|
+
"""
|
288
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
289
|
+
|
290
|
+
__props__ = _TacacsCommandSetState.__new__(_TacacsCommandSetState)
|
291
|
+
|
292
|
+
__props__.__dict__["commands"] = commands
|
293
|
+
__props__.__dict__["description"] = description
|
294
|
+
__props__.__dict__["name"] = name
|
295
|
+
__props__.__dict__["permit_unmatched"] = permit_unmatched
|
296
|
+
return TacacsCommandSet(resource_name, opts=opts, __props__=__props__)
|
297
|
+
|
298
|
+
@property
|
299
|
+
@pulumi.getter
|
300
|
+
def commands(self) -> pulumi.Output[Optional[Sequence['outputs.TacacsCommandSetCommand']]]:
|
301
|
+
return pulumi.get(self, "commands")
|
302
|
+
|
303
|
+
@property
|
304
|
+
@pulumi.getter
|
305
|
+
def description(self) -> pulumi.Output[Optional[str]]:
|
306
|
+
"""
|
307
|
+
Description
|
308
|
+
"""
|
309
|
+
return pulumi.get(self, "description")
|
310
|
+
|
311
|
+
@property
|
312
|
+
@pulumi.getter
|
313
|
+
def name(self) -> pulumi.Output[str]:
|
314
|
+
"""
|
315
|
+
The name of the TACACS command set
|
316
|
+
"""
|
317
|
+
return pulumi.get(self, "name")
|
318
|
+
|
319
|
+
@property
|
320
|
+
@pulumi.getter(name="permitUnmatched")
|
321
|
+
def permit_unmatched(self) -> pulumi.Output[bool]:
|
322
|
+
"""
|
323
|
+
Permit unmatched commands - Default value: `false`
|
324
|
+
"""
|
325
|
+
return pulumi.get(self, "permit_unmatched")
|
326
|
+
|