3232description:
3333 - Manages package objects on Check Point devices including creating, updating and removing objects.
3434 - All operations are performed over Web Services API.
35- version_added: "2.9 "
35+ version_added: "1.0.0 "
3636author: "Or Soffer (@chkp-orso)"
3737options:
3838 name:
5252 description:
5353 - Which Gateways identified by the name or UID to install the policy on.
5454 type: list
55+ elements: str
5556 qos:
5657 description:
5758 - True - enables, False - disables QoS policy, empty - nothing is changed.
6566 description:
6667 - Collection of tag identifiers.
6768 type: list
69+ elements: str
6870 threat_prevention:
6971 description:
7072 - True - enables, False - disables Threat policy, empty - nothing is changed.
107109 description:
108110 - Collection of Access layer objects to be added identified by the name or UID.
109111 type: list
112+ elements: dict
110113 suboptions:
111114 name:
112115 description:
120123 description:
121124 - Collection of Access layer objects to be removed identified by the name or UID.
122125 type: list
126+ elements: str
123127 value:
124128 description:
125129 - Collection of Access layer objects to be set identified by the name or UID. Replaces existing Access layers.
126130 type: list
131+ elements: str
127132 threat_layers:
128133 description:
129134 - Threat policy layers.
133138 description:
134139 - Collection of Threat layer objects to be added identified by the name or UID.
135140 type: list
141+ elements: dict
136142 suboptions:
137143 name:
138144 description:
146152 description:
147153 - Collection of Threat layer objects to be removed identified by the name or UID.
148154 type: list
155+ elements: str
149156 value:
150157 description:
151158 - Collection of Threat layer objects to be set identified by the name or UID. Replaces existing Threat layers.
152159 type: list
160+ elements: str
153161extends_documentation_fragment: check_point.mgmt.checkpoint_objects
154162"""
155163
@@ -198,10 +206,10 @@ def main():
198206 name = dict (type = 'str' , required = True ),
199207 access = dict (type = 'bool' ),
200208 desktop_security = dict (type = 'bool' ),
201- installation_targets = dict (type = 'list' ),
209+ installation_targets = dict (type = 'list' , elements = 'str' ),
202210 qos = dict (type = 'bool' ),
203211 qos_policy_type = dict (type = 'str' , choices = ['recommended' , 'express' ]),
204- tags = dict (type = 'list' ),
212+ tags = dict (type = 'list' , elements = 'str' ),
205213 threat_prevention = dict (type = 'bool' ),
206214 vpn_traditional_mode = dict (type = 'bool' ),
207215 color = dict (type = 'str' , choices = ['aquamarine' , 'black' , 'blue' , 'crete blue' , 'burlywood' , 'cyan' , 'dark green' ,
@@ -214,20 +222,20 @@ def main():
214222 ignore_warnings = dict (type = 'bool' ),
215223 ignore_errors = dict (type = 'bool' ),
216224 access_layers = dict (type = 'dict' , options = dict (
217- add = dict (type = 'list' , options = dict (
225+ add = dict (type = 'list' , elements = 'dict' , options = dict (
218226 name = dict (type = 'str' ),
219227 position = dict (type = 'int' )
220228 )),
221- remove = dict (type = 'list' ),
222- value = dict (type = 'list' )
229+ remove = dict (type = 'list' , elements = 'str' ),
230+ value = dict (type = 'list' , elements = 'str' )
223231 )),
224232 threat_layers = dict (type = 'dict' , options = dict (
225- add = dict (type = 'list' , options = dict (
233+ add = dict (type = 'list' , elements = 'dict' , options = dict (
226234 name = dict (type = 'str' ),
227235 position = dict (type = 'int' )
228236 )),
229- remove = dict (type = 'list' ),
230- value = dict (type = 'list' )
237+ remove = dict (type = 'list' , elements = 'str' ),
238+ value = dict (type = 'list' , elements = 'str' )
231239 ))
232240 )
233241 argument_spec .update (checkpoint_argument_spec_for_objects )
0 commit comments