Debian Codegraph @

infoblox_client/objects.py

raw symbols SCIP
1 # Copyright 2015 Infoblox Inc.
2 # All Rights Reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License"); you may
5 # not use this file except in compliance with the License. You may obtain
6 # a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 # License for the specific language governing permissions and limitations
14 # under the License.
15 import six
16
17 try:
18 from oslo_log import log as logging
19 except ImportError: # pragma: no cover
20 import logging
21
22 from infoblox_client import exceptions as ib_ex
23 from infoblox_client import utils as ib_utils
24
25 LOG = logging.getLogger(__name__)
26
27
28 class BaseObject(object):
29 """Base class that provides minimal new object model interface
30
31 This class add next features to objects:
32 - initialize public instance variables with None for fields
33 defined in '_fields' and '_shadow_fields'
34 - accept fields from '_fields' and '_shadow_fields' as a parameter on
35 init
36 - dynamically remap one fields into another using _remap dict,
37 mapping is in effect on all stages (on init, getter and setter)
38 - provides nice object representation that contains class
39 and not None object fields (useful in python interpretter)
40 """
41 _fields = []
42 _shadow_fields = []
43 _remap = {}
44 _infoblox_type = None
45
46 def __init__(self, **kwargs):
47 mapped_args = self._remap_fields(kwargs)
48 for field in self._fields + self._shadow_fields:
49 if field in mapped_args:
50 setattr(self, field, mapped_args[field])
51 else:
52 # Init all not initialized fields with None
53 if not hasattr(self, field):
54 setattr(self, field, None)
55
56 def __getattr__(self, name):
57 # Map aliases into real fields
58 if name in self._remap:
59 return getattr(self, self._remap[name])
60 else:
61 # Default behaviour
62 raise AttributeError
63
64 def __setattr__(self, name, value):
65 if name in self._remap:
66 return setattr(self, self._remap[name], value)
67 else:
68 super(BaseObject, self).__setattr__(name, value)
69
70 def __eq__(self, other):
71 if isinstance(other, self.__class__):
72 for field in self._fields:
73 if getattr(self, field) != getattr(other, field):
74 return False
75 return True
76 return False
77
78 def __repr__(self):
79 data = {field: getattr(self, field)
80 for field in self._fields + self._shadow_fields
81 if hasattr(self, field) and getattr(self, field) is not None}
82 data_str = ', '.join(
83 "{0}=\"{1}\"".format(key, data[key]) for key in data)
84 return "{0}: {1}".format(self.__class__.__name__, data_str)
85
86 @classmethod
87 def _remap_fields(cls, kwargs):
88 """Map fields from kwargs into dict acceptable by NIOS"""
89 mapped = {}
90 for key in kwargs:
91 if key in cls._remap:
92 mapped[cls._remap[key]] = kwargs[key]
93 else:
94 mapped[key] = kwargs[key]
95 return mapped
96
97 @classmethod
98 def from_dict(cls, ip_dict):
99 return cls(**ip_dict)
100
101 def to_dict(self):
102 return {field: getattr(self, field) for field in self._fields
103 if getattr(self, field, None) is not None}
104
105 @property
106 def ref(self):
107 if hasattr(self, '_ref'):
108 return self._ref
109
110
111 class EA(object):
112 """Extensible Attributes
113
114 This class represents extensible attributes (EA).
115 Converts EAs into format suitable for NIOS (to_dict)
116 and builds EA class from NIOS reply (from_dict).
117 """
118
119 def __init__(self, ea_dict=None):
120 """Optionally accept EAs as a dict on init.
121
122 Expected EA format is {ea_name: ea_value}
123 """
124 if ea_dict is None:
125 ea_dict = {}
126 self._ea_dict = ea_dict
127
128 def __repr__(self):
129 eas = ()
130 if self._ea_dict:
131 eas = ("{0}={1}".format(name, self._ea_dict[name])
132 for name in self._ea_dict)
133 return "EAs:{0}".format(','.join(eas))
134
135 @property
136 def ea_dict(self):
137 """Returns dict with EAs in ``{ea_name: ea_value}`` format."""
138 return self._ea_dict.copy()
139
140 @classmethod
141 def from_dict(cls, eas_from_nios):
142 """Converts extensible attributes from the NIOS reply."""
143 if not eas_from_nios:
144 return
145 return cls({name: cls._process_value(ib_utils.try_value_to_bool,
146 eas_from_nios[name]['value'])
147 for name in eas_from_nios})
148
149 def to_dict(self):
150 """Converts extensible attributes into the format suitable for NIOS."""
151 return {name: {'value': self._process_value(str, value)}
152 for name, value in self._ea_dict.items()
153 if not (value is None or value == "" or value == [])}
154
155 @staticmethod
156 def _process_value(func, value):
157 """Applies processing method for value or each element in it.
158
159 :param func: method to be called with value
160 :param value: value to process
161 :return: if 'value' is list/tupe, returns iterable with func results,
162 else func result is returned
163 """
164 if isinstance(value, (list, tuple)):
165 return [func(item) for item in value]
166 return func(value)
167
168 def get(self, name, default=None):
169 """Return value of requested EA."""
170 return self._ea_dict.get(name, default)
171
172 def set(self, name, value):
173 """Set value of requested EA."""
174 self._ea_dict[name] = value
175
176
177 class InfobloxObject(BaseObject):
178 """Base class for all Infoblox related objects
179
180 Attributes:
181 _fields: fields that represents NIOS object (WAPI fields) and are sent
182 to NIOS on object creation
183 _search_for_update_fields: field/fields used to find an object during
184 an update operation. this should be the smallest number of fields
185 that uniquely identify an object
186 _all_searchable_fields: all fields that can be used to find object on
187 NIOS side
188 _updateable_search_fields: fields that can be used to find object on
189 NIOS side, but also can be changed, so has to be sent on update.
190 _shadow_fields: fields that object usually has but they should not
191 be sent to NIOS. These fields can be received from
192 NIOS. Examples: [_ref, is_default]
193 _return_fields: fields requested to be returned from NIOS side
194 if object is found/created
195 _infoblox_type: string representing wapi type of described object
196 _remap: dict that maps user faced names into internal representation
197 (_fields)
198 _custom_field_processing: dict that define rules (lambda) for building
199 objects from data returned by NIOS side. Expected to be redefined
200 in child class as needed, _custom_field_processing has priority
201 over _global_field_processing, so can redefine for child class
202 global rules defined in _global_field_processing.
203 _global_field_processing: almost the same as _custom_field_processing,
204 but defines rules for building field on global level. Fields
205 defined in this dict will be processed in the same way in all
206 child classes. Is not expected to be redefined in child classes.
207 _ip_version: ip version of the object, used to mark version specific
208 classes. Value other than None indicates that no versioned class
209 lookup needed.
210 """
211 _fields = []
212 _search_for_update_fields = []
213 _all_searchable_fields = []
214 _updateable_search_fields = []
215 _shadow_fields = []
216 _infoblox_type = None
217 _remap = {}
218
219 _return_fields = []
220 _custom_field_processing = {}
221 _global_field_processing = {'extattrs': EA.from_dict}
222 _ip_version = None
223
224 def __new__(cls, connector, **kwargs):
225 return super(InfobloxObject,
226 cls).__new__(cls.get_class_from_args(kwargs))
227
228 def __init__(self, connector, **kwargs):
229 self.connector = connector
230 super(InfobloxObject, self).__init__(**kwargs)
231
232 def update_from_dict(self, ip_dict, only_ref=False):
233 if only_ref:
234 self._ref = ip_dict['_ref']
235 return
236
237 mapped_args = self._remap_fields(ip_dict)
238 for field in self._fields + self._shadow_fields:
239 if field in ip_dict:
240 setattr(self, field, mapped_args[field])
241
242 @classmethod
243 def from_dict(cls, connector, ip_dict):
244 """Build dict fields as SubObjects if needed.
245
246 Checks if lambda for building object from dict exists.
247 _global_field_processing and _custom_field_processing rules
248 are checked.
249 """
250 ipv_class = cls.get_class_from_args(ip_dict)
251 mapping = ipv_class._global_field_processing.copy()
252 mapping.update(ipv_class._custom_field_processing)
253 # Process fields that require building themselves as objects
254 for field in mapping:
255 if field in ip_dict:
256 ip_dict[field] = mapping[field](ip_dict[field])
257 return ipv_class(connector, **ip_dict)
258
259 @staticmethod
260 def value_to_dict(value):
261 return value.to_dict() if hasattr(value, 'to_dict') else value
262
263 def field_to_dict(self, field):
264 """Read field value and converts to dict if possible"""
265 value = getattr(self, field)
266 if isinstance(value, (list, tuple)):
267 return [self.value_to_dict(val) for val in value]
268 return self.value_to_dict(value)
269
270 def to_dict(self, search_fields=None, update_fields=None):
271 """Builds dict without None object fields"""
272 fields = self._fields
273 if search_fields == 'update':
274 fields = self._search_for_update_fields
275 elif search_fields == 'all':
276 fields = self._all_searchable_fields
277 elif search_fields == 'search':
278 fields = self._fields
279 elif search_fields == 'exclude':
280 # exclude search fields for update actions,
281 # but include updateable_search_fields
282 fields = [field for field in self._fields
283 if field in self._updateable_search_fields or
284 field not in self._search_for_update_fields]
285
286 elif search_fields == 'extra':
287 fields = [field for field in self._fields
288 if field not in update_fields]
289
290 return {field: self.field_to_dict(field) for field in fields
291 if getattr(self, field, None) is not None}
292
293 @staticmethod
294 def _object_from_reply(parse_class, connector, reply):
295 if not reply:
296 return None
297 if isinstance(reply, dict):
298 return parse_class.from_dict(connector, reply)
299
300 # If no return fields were requested reply contains only string
301 # with reference to object
302 return_dict = {'_ref': reply}
303 return parse_class.from_dict(connector, return_dict)
304
305 @classmethod
306 def create_check_exists(cls, connector, check_if_exists=True,
307 update_if_exists=False, **kwargs):
308 # obj_created is used to check if object is being created or
309 # pre-exists. obj_created is True if object is not pre-exists
310 # and getting created with this function call
311 obj_created = False
312 local_obj = cls(connector, **kwargs)
313 response = None
314
315 if check_if_exists:
316 if local_obj.fetch(only_ref=True):
317 LOG.info(("Infoblox %(obj_type)s already exists: "
318 "%(ib_obj)s"),
319 {'obj_type': local_obj.infoblox_type,
320 'ib_obj': local_obj})
321 local_obj.response = "Infoblox Object already Exists"
322 if not update_if_exists:
323 return local_obj, obj_created
324 reply = None
325 if not local_obj.ref:
326 reply = connector.create_object(local_obj.infoblox_type,
327 local_obj.to_dict(),
328 local_obj.return_fields)
329 obj_created = True
330 LOG.info("Infoblox %(obj_type)s was created: %(ib_obj)s",
331 {'obj_type': local_obj.infoblox_type,
332 'ib_obj': local_obj})
333 response = "Infoblox Object was Created"
334 elif update_if_exists:
335 update_fields = local_obj.to_dict(search_fields='exclude')
336 reply = connector.update_object(local_obj.ref,
337 update_fields,
338 local_obj.return_fields)
339 LOG.info('Infoblox object was updated: %s', local_obj.ref)
340 response = "Infoblox Object was Updated"
341
342 obj_result = cls._object_from_reply(local_obj, connector, reply)
343
344 # Add response string if object is not None
345 # and properly deserialized
346 if issubclass(type(obj_result), BaseObject):
347 obj_result.response = response
348
349 return obj_result, obj_created
350
351 @classmethod
352 def create(cls, connector, check_if_exists=True,
353 update_if_exists=False, **kwargs):
354 """Create the object in NIOS.
355
356 Args:
357 check_if_exists: If True, create method will attempt
358 to fetch the object to check if it exists.
359 update_if_exists: If True, create method will attempt
360 to update the object if one exists.
361
362 Raises:
363 InfobloxFetchGotMultipleObjects: Raised only when check_if_exists
364 is True. The fetch method can raise this error when API return
365 multiple objects.
366
367 Returns: Created Infoblox object.
368 """
369 ib_object, _ = (
370 cls.create_check_exists(connector,
371 check_if_exists=check_if_exists,
372 update_if_exists=update_if_exists,
373 **kwargs))
374 return ib_object
375
376 @classmethod
377 def _search(cls, connector, return_fields=None,
378 search_extattrs=None, force_proxy=False,
379 max_results=None, paging=False, **kwargs):
380 ib_obj_for_search = cls(connector, **kwargs)
381 search_dict = ib_obj_for_search.to_dict(search_fields='all')
382 if return_fields is None and ib_obj_for_search.return_fields:
383 return_fields = ib_obj_for_search.return_fields
384 # allow search_extattrs to be instance of EA class
385 # or dict in NIOS format
386 extattrs = search_extattrs
387 if hasattr(search_extattrs, 'to_dict'):
388 extattrs = search_extattrs.to_dict()
389 search_fields = ib_obj_for_search.to_dict(search_fields='search')
390 for key in search_fields:
391 if key not in search_dict:
392 raise ib_ex.InfobloxFieldNotSearchable(
393 field=key)
394 reply = connector.get_object(ib_obj_for_search.infoblox_type,
395 search_dict,
396 return_fields=return_fields,
397 extattrs=extattrs,
398 force_proxy=force_proxy,
399 paging=paging, max_results=max_results)
400 return reply, ib_obj_for_search
401
402 @classmethod
403 def search(cls, connector, **kwargs):
404 ib_obj, parse_class = cls._search(
405 connector, **kwargs)
406 if ib_obj:
407 return parse_class.from_dict(connector, ib_obj[0])
408
409 @classmethod
410 def search_all(cls, connector, **kwargs):
411 ib_objects, parsing_class = cls._search(
412 connector, **kwargs)
413 if ib_objects:
414 return [parsing_class.from_dict(connector, obj)
415 for obj in ib_objects]
416 return []
417
418 def fetch(self, only_ref=False):
419 """Fetch object from NIOS by _ref or searchfields
420
421 Update existent object with fields returned from NIOS
422
423 Returns:
424 True if object successfully fetched. False otherwise.
425 Raises:
426 InfobloxFetchGotMultipleObjects:
427 If fetch got multiple objects from the API and unable to
428 deserialize API response to a single InfobloxObject.
429 """
430 if self.ref:
431 reply = self.connector.get_object(
432 self.ref, return_fields=self.return_fields, paging=False)
433 if reply:
434 self.update_from_dict(reply)
435 return True
436
437 search_dict = self.to_dict(search_fields='update')
438 return_fields = [] if only_ref else self.return_fields
439 reply = self.connector.get_object(self.infoblox_type,
440 search_dict,
441 return_fields=return_fields)
442 if reply:
443 if len(reply) > 1:
444 LOG.debug("Fetch got multiple objects from the API. Reply: %s",
445 reply)
446 raise ib_ex.InfobloxFetchGotMultipleObjects()
447 self.update_from_dict(reply[0], only_ref=only_ref)
448 return True
449 return False
450
451 def update(self):
452 update_fields = self.to_dict(search_fields='exclude')
453 fields = self.to_dict(search_fields='extra',
454 update_fields=update_fields)
455 for key in fields:
456 LOG.info(
457 "Field is not allowed for update: %s - ignoring",
458 key,
459 )
460 ib_obj = self.connector.update_object(self.ref,
461 update_fields,
462 self.return_fields)
463 LOG.info('Infoblox object was updated: %s', self.ref)
464 return self._object_from_reply(self, self.connector, ib_obj)
465
466 def delete(self):
467 try:
468 self.connector.delete_object(self.ref)
469 except ib_ex.InfobloxCannotDeleteObject as e:
470 LOG.info("Failed to delete an object: %s", e)
471
472 @property
473 def infoblox_type(self):
474 return self._infoblox_type
475
476 @property
477 def return_fields(self):
478 return self._return_fields
479
480 @property
481 def ip_version(self):
482 return self._ip_version
483
484 @classmethod
485 def get_class_from_args(cls, kwargs):
486 # skip processing if cls already versioned class
487 if cls._ip_version:
488 return cls
489
490 for field in ['ip', 'cidr', 'start_ip', 'ip_address', 'network',
491 'start_addr', 'end_addr']:
492 if field in kwargs:
493 if ib_utils.determine_ip_version(kwargs[field]) == 6:
494 return cls.get_v6_class()
495 else:
496 return cls.get_v4_class()
497 # fallback to IPv4 object if find nothing
498 return cls.get_v4_class()
499
500 def _call_func(self, function, *args, **kwargs):
501 ref = self._ref
502 if ref is None:
503 ref = self.infoblox_type
504
505 return self.connector.call_func(function, ref, *args, **kwargs)
506
507 @classmethod
508 def get_v4_class(cls):
509 return cls
510
511 @classmethod
512 def get_v6_class(cls):
513 return cls
514
515
516 class SubObjects(BaseObject):
517 """Base class for objects that do not require all InfobloxObject power"""
518
519 @classmethod
520 def from_dict(cls, ip_dict):
521 if isinstance(ip_dict, list):
522 return [cls(**item) for item in ip_dict]
523 else:
524 return cls(**ip_dict)
525
526 def to_dict(self):
527 return {field: getattr(self, field) for field in self._fields
528 if getattr(self, field, None) is not None}
529
530
531 class IP(SubObjects):
532 _fields = []
533 _shadow_fields = ['_ref', 'ip', 'host']
534 _remap = {}
535 ip_version = None
536
537 # better way for mac processing?
538 @classmethod
539 def create(cls, ip=None, mac=None, **kwargs):
540 if ip is None:
541 raise ValueError
542 if ib_utils.determine_ip_version(ip) == 6:
543 return IPv6(ip=ip, duid=ib_utils.generate_duid(mac),
544 **kwargs)
545 else:
546 return IPv4(ip=ip, mac=mac, **kwargs)
547
548 def __eq__(self, other):
549 if isinstance(other, six.string_types):
550 return self.ip == other
551 elif isinstance(other, self.__class__):
552 return self.ip == other.ip
553 return False
554
555 @property
556 def zone_auth(self):
557 if self.host is not None:
558 return self.host.partition('.')[2]
559
560 @property
561 def hostname(self):
562 if self.host is not None:
563 return self.host.partition('.')[0]
564
565 @property
566 def ip(self):
567 # Convert IPAllocation objects to string
568 if hasattr(self, '_ip'):
569 return str(self._ip)
570
571 @ip.setter
572 def ip(self, ip):
573 self._ip = ip
574
575
576 class IPv4(IP):
577 _fields = ['ipv4addr', 'configure_for_dhcp',
578 'use_for_ea_inheritance', 'mac']
579 _remap = {'ipv4addr': 'ip'}
580 ip_version = 4
581
582
583 class IPv6(IP):
584 _fields = ['ipv6addr', 'configure_for_dhcp',
585 'use_for_ea_inheritance', 'duid']
586 _remap = {'ipv6addr': 'ip'}
587 ip_version = 6
588
589
590 class AnyMember(SubObjects):
591 _fields = ['_struct', 'name', 'ipv4addr', 'ipv6addr']
592 _shadow_fields = ['ip']
593
594 @property
595 def ip(self):
596 if hasattr(self, '_ip'):
597 return str(self._ip)
598
599 @ip.setter
600 def ip(self, ip):
601 # AnyMember represents both ipv4 and ipv6 objects, so don't need
602 # versioned object for that. Just set v4 or v6 field additionally
603 # to setting shadow 'ip' field itself.
604 # So once dict is generated by to_dict only versioned ip field
605 # to be shown.
606 self._ip = ip
607 if ib_utils.determine_ip_version(ip) == 6:
608 self.ipv6addr = ip
609 else:
610 self.ipv4addr = ip
611
612
613 class IPAllocation(object):
614
615 def __init__(self, address, next_available_ip):
616 self.ip_version = ib_utils.determine_ip_version(address)
617 self.next_available_ip = next_available_ip
618
619 def __repr__(self):
620 return "IPAllocation: {0}".format(self.next_available_ip)
621
622 def __str__(self):
623 return str(self.next_available_ip)
624
625 @classmethod
626 def next_available_ip_from_cidr(cls, net_view_name, cidr):
627 return cls(cidr, 'func:nextavailableip:'
628 '{cidr:s},{net_view_name:s}'.format(**locals()))
629
630 @classmethod
631 def next_available_ip_from_range(cls, net_view_name, first_ip, last_ip):
632 return cls(first_ip, 'func:nextavailableip:{first_ip}-{last_ip},'
633 '{net_view_name}'.format(**locals()))
634
635
636 WAPI_VERSION = "2.12.1"
637
638
639 # AUTOGENERATED CODE BELOW #
640
641
642 class AdAuthServer(SubObjects):
643 _fields = ['auth_port', 'comment', 'disabled', 'encryption', 'fqdn_or_ip',
644 'mgmt_port', 'use_mgmt_port']
645
646
647 class Addressac(SubObjects):
648 _fields = ['address', 'permission', 'tsig_key', 'tsig_key_alg',
649 'tsig_key_name', 'use_tsig_key_name']
650
651
652 class Awsrte53Task(SubObjects):
653 _fields = ['aws_user', 'credentials_type', 'disabled', 'filter',
654 'last_run', 'name', 'schedule_interval', 'schedule_units',
655 'state', 'state_msg', 'status_timestamp', 'sync_private_zones',
656 'sync_public_zones', 'zone_count']
657
658
659 class Bgpas(SubObjects):
660 _fields = ['as', 'holddown', 'keepalive', 'link_detect', 'neighbors']
661
662
663 class CapacityreportObjectcount(SubObjects):
664 _fields = ['count', 'type_name']
665
666
667 class CaptiveportalFile(SubObjects):
668 _fields = ['name', 'type']
669
670
671 class Changedobject(SubObjects):
672 _fields = ['action', 'name', 'object_type', 'properties', 'type']
673
674
675 class Clientsubnetdomain(SubObjects):
676 _fields = ['domain', 'permission']
677
678
679 class Dhcpddns(SubObjects):
680 _fields = ['dns_ext_primary', 'dns_ext_zone', 'dns_grid_primary',
681 'dns_grid_zone', 'zone_match']
682
683
684 class Dhcpmember(SubObjects):
685 _fields = ['ipv4addr', 'ipv6addr', 'name', '_struct']
686
687
688 class DhcpOption(SubObjects):
689 _fields = ['name', 'num', 'use_option', 'value', 'vendor_class']
690
691
692 class DiscoveryAutoconversionsetting(SubObjects):
693 _fields = ['comment', 'condition', 'format', 'network_view', 'type']
694
695
696 class DiscoveryClicredential(SubObjects):
697 _fields = ['comment', 'credential_group', 'credential_type', 'id',
698 'password', 'user']
699
700
701 class DiscoveryIfaddrinfo(SubObjects):
702 _fields = ['address', 'address_object', 'network']
703
704
705 class DiscoveryNetworkinfo(SubObjects):
706 _fields = ['network', 'network_str']
707
708
709 class DiscoveryPort(SubObjects):
710 _fields = ['comment', 'port', 'type']
711
712
713 class DiscoveryScaninterface(SubObjects):
714 _fields = ['network_view', 'scan_virtual_ip', 'type']
715
716
717 class DiscoverySdnconfig(SubObjects):
718 _fields = ['addresses', 'api_key', 'comment', 'handle',
719 'network_interface_type', 'network_interface_virtual_ip',
720 'network_view', 'on_prem', 'password', 'protocol', 'sdn_type',
721 'use_global_proxy', 'username', 'uuid']
722
723
724 class DiscoverySeedrouter(SubObjects):
725 _fields = ['address', 'comment', 'network_view']
726
727
728 class DiscoverySnmp3Credential(SubObjects):
729 _fields = ['authentication_password', 'authentication_protocol', 'comment',
730 'credential_group', 'privacy_password', 'privacy_protocol',
731 'user']
732
733
734 class DiscoverySnmpcredential(SubObjects):
735 _fields = ['comment', 'community_string', 'credential_group']
736
737
738 class DiscoveryVlaninfo(SubObjects):
739 _fields = ['id', 'name']
740
741
742 class DiscoveryVrfmappingrule(SubObjects):
743 _fields = ['comment', 'criteria', 'network_view']
744
745
746 class Discoverytaskport(SubObjects):
747 _fields = ['comment', 'number']
748
749
750 class Discoverytaskvserver(SubObjects):
751 _fields = ['connection_protocol', 'disable', 'fqdn_or_ip', 'password',
752 'port', 'username']
753
754
755 class Dnsseckey(SubObjects):
756 _fields = ['algorithm', 'next_event_date', 'public_key', 'status', 'tag',
757 'type']
758
759
760 class Dnssectrustedkey(SubObjects):
761 _fields = ['algorithm', 'dnssec_must_be_secure', 'fqdn', 'key',
762 'secure_entry_point']
763
764
765 class DtcMonitorSnmpOid(SubObjects):
766 _fields = ['comment', 'condition', 'first', 'last', 'oid', 'type']
767
768
769 class DtcPoolConsolidatedMonitorHealth(SubObjects):
770 _fields = ['availability', 'full_health_communication', 'members',
771 'monitor']
772
773
774 class DtcPoolLink(SubObjects):
775 _fields = ['pool', 'ratio']
776
777
778 class DtcServerLink(SubObjects):
779 _fields = ['ratio', 'server']
780
781
782 class DtcServerMonitor(SubObjects):
783 _fields = ['host', 'monitor']
784
785
786 class DtcTopologyRuleSource(SubObjects):
787 _fields = ['source_op', 'source_type', 'source_value']
788
789
790 class DxlEndpointBroker(SubObjects):
791 _fields = ['address', 'host_name', 'port', 'unique_id']
792
793
794 class Exclusionrange(SubObjects):
795 _fields = ['comment', 'end_address', 'start_address']
796
797
798 class Exclusionrangetemplate(SubObjects):
799 _fields = ['comment', 'number_of_addresses', 'offset']
800
801
802 class ExtensibleattributedefListvalues(SubObjects):
803 _fields = ['value']
804
805
806 class Extserver(SubObjects):
807 _fields = ['address', 'name', 'shared_with_ms_parent_delegation',
808 'stealth', 'tsig_key', 'tsig_key_alg', 'tsig_key_name',
809 'use_tsig_key_name']
810
811
812 class Extsyslogbackupserver(SubObjects):
813 _fields = ['address', 'directory_path', 'enable', 'password', 'port',
814 'protocol', 'username']
815
816
817 class Filterrule(SubObjects):
818 _fields = ['filter', 'permission']
819
820
821 class Forwardingmemberserver(SubObjects):
822 _fields = ['forward_to', 'forwarders_only', 'name',
823 'use_override_forwarders']
824
825
826 class GridCloudapiUser(SubObjects):
827 _fields = ['is_remote', 'local_admin', 'remote_admin']
828
829
830 class GridDnsFixedrrsetorderfqdn(SubObjects):
831 _fields = ['fqdn', 'record_type']
832
833
834 class GridLicensesubpool(SubObjects):
835 _fields = ['expiry_date', 'installed', 'key']
836
837
838 class GridmemberSoamname(SubObjects):
839 _fields = ['dns_mname', 'grid_primary', 'mname', 'ms_server_primary']
840
841
842 class GridmemberSoaserial(SubObjects):
843 _fields = ['grid_primary', 'ms_server_primary', 'serial']
844
845
846 class Hotfix(SubObjects):
847 _fields = ['status_text', 'unique_id']
848
849
850 class HsmSafenet(SubObjects):
851 _fields = ['disable', 'is_fips_compliant', 'name', 'partition_capacity',
852 'partition_id', 'partition_serial_number', 'server_cert',
853 'status']
854
855
856 class HsmThales(SubObjects):
857 _fields = ['disable', 'keyhash', 'remote_esn', 'remote_ip', 'remote_port',
858 'status']
859
860
861 class Interface(SubObjects):
862 _fields = ['anycast', 'comment', 'enable_bgp', 'enable_ospf', 'interface',
863 'ipv4_network_setting', 'ipv6_network_setting']
864
865
866 class Ipv6Networksetting(SubObjects):
867 _fields = ['address', 'cidr', 'gateway']
868
869
870 class LdapEamapping(SubObjects):
871 _fields = ['mapped_ea', 'name']
872
873
874 class LdapServer(SubObjects):
875 _fields = ['address', 'authentication_type', 'base_dn', 'bind_password',
876 'bind_user_dn', 'comment', 'disable', 'encryption', 'port',
877 'use_mgmt_port', 'version']
878
879
880 class Logicfilterrule(SubObjects):
881 _fields = ['filter', 'type']
882
883
884 class Lomnetworkconfig(SubObjects):
885 _fields = ['address', 'gateway', 'is_lom_capable', 'subnet_mask']
886
887
888 class Lomuser(SubObjects):
889 _fields = ['comment', 'disable', 'name', 'password', 'role']
890
891
892 class MemberDnsgluerecordaddr(SubObjects):
893 _fields = ['attach_empty_recursive_view', 'glue_address_choice',
894 'glue_record_address', 'view']
895
896
897 class MemberDnsip(SubObjects):
898 _fields = ['ip_address']
899
900
901 class Memberserver(SubObjects):
902 _fields = ['enable_preferred_primaries', 'grid_replicate', 'lead', 'name',
903 'preferred_primaries', 'stealth']
904
905
906 class Memberservicecommunication(SubObjects):
907 _fields = ['option', 'service', 'type']
908
909
910 class Memberservicestatus(SubObjects):
911 _fields = ['description', 'service', 'status']
912
913
914 class Msdhcpoption(SubObjects):
915 _fields = ['name', 'num', 'type', 'user_class', 'value', 'vendor_class']
916
917
918 class Msdhcpserver(SubObjects):
919 _fields = ['ipv4addr', 'ipv4addr', 'ipv6addr', 'name']
920
921
922 class Msdnsserver(SubObjects):
923 _fields = ['address', 'is_master', 'ns_ip', 'ns_name',
924 'shared_with_ms_parent_delegation', 'stealth']
925
926
927 class MsserverDcnsrecordcreation(SubObjects):
928 _fields = ['address', 'comment']
929
930
931 class NetworkviewAssocmember(SubObjects):
932 _fields = ['failovers', 'member']
933
934
935 class Nodeinfo(SubObjects):
936 _fields = ['ha_status', 'hwid', 'hwmodel', 'hwplatform', 'hwtype',
937 'lan2_physical_setting', 'lan_ha_port_setting',
938 'mgmt_network_setting', 'mgmt_physical_setting',
939 'nat_external_ip', 'paid_nios', 'physical_oid',
940 'service_status', 'v6_mgmt_network_setting']
941
942
943 class NotificationRestTemplateparameter(SubObjects):
944 _fields = ['default_value', 'name', 'syntax', 'value']
945
946
947 class NotificationRuleexpressionop(SubObjects):
948 _fields = ['op', 'op1', 'op1_type', 'op2', 'op2_type']
949
950
951 class Nxdomainrule(SubObjects):
952 _fields = ['action', 'pattern']
953
954
955 class OcspResponder(SubObjects):
956 _fields = ['certificate', 'certificate_token', 'comment', 'disabled',
957 'fqdn_or_ip', 'port']
958
959
960 class Option60Matchrule(SubObjects):
961 _fields = ['is_substring', 'match_value', 'option_space',
962 'substring_length', 'substring_offset']
963
964
965 class Ospf(SubObjects):
966 _fields = ['advertise_interface_vlan', 'area_id', 'area_type',
967 'authentication_key', 'authentication_type',
968 'auto_calc_cost_enabled', 'bfd_template', 'comment', 'cost',
969 'dead_interval', 'enable_bfd', 'hello_interval', 'interface',
970 'is_ipv4', 'key_id', 'retransmit_interval', 'transmit_delay']
971
972
973 class OutboundCloudclientEvent(SubObjects):
974 _fields = ['enabled', 'event_type']
975
976
977 class ParentalcontrolAbs(SubObjects):
978 _fields = ['blocking_policy', 'ip_address']
979
980
981 class ParentalcontrolMsp(SubObjects):
982 _fields = ['ip_address']
983
984
985 class ParentalcontrolNasgateway(SubObjects):
986 _fields = ['comment', 'ip_address', 'message_rate', 'name', 'send_ack',
987 'shared_secret']
988
989
990 class ParentalcontrolSitemember(SubObjects):
991 _fields = ['name', 'type']
992
993
994 class ParentalcontrolSpm(SubObjects):
995 _fields = ['ip_address']
996
997
998 class RadiusServer(SubObjects):
999 _fields = ['acct_port', 'address', 'auth_port', 'auth_type', 'comment',
1000 'disable', 'shared_secret', 'use_accounting', 'use_mgmt_port']
1001
1002
1003 class Rdatasubfield(SubObjects):
1004 _fields = ['field_type', 'field_value', 'include_length']
1005
1006
1007 class Remoteddnszone(SubObjects):
1008 _fields = ['fqdn', 'gss_tsig_dns_principal', 'gss_tsig_domain', 'key_type',
1009 'server_address', 'tsig_key', 'tsig_key_alg', 'tsig_key_name']
1010
1011
1012 class SettingNetwork(SubObjects):
1013 _fields = ['address', 'dscp', 'gateway', 'primary', 'subnet_mask',
1014 'use_dscp', 'vlan_id']
1015
1016
1017 class SettingViewaddress(SubObjects):
1018 _fields = ['dns_notify_transfer_source',
1019 'dns_notify_transfer_source_address',
1020 'dns_query_source_address', 'dns_query_source_interface',
1021 'enable_notify_source_port', 'enable_query_source_port',
1022 'notify_delay', 'notify_source_port', 'query_source_port',
1023 'use_notify_delay', 'use_source_ports', 'view_name']
1024
1025
1026 class SmartfolderGroupby(SubObjects):
1027 _fields = ['enable_grouping', 'value', 'value_type']
1028
1029
1030 class SmartfolderQueryitem(SubObjects):
1031 _fields = ['field_type', 'name', 'op_match', 'operator', 'value',
1032 'value_type']
1033
1034
1035 class Sortlist(SubObjects):
1036 _fields = ['address', 'match_list']
1037
1038
1039 class SshKey(SubObjects):
1040 _fields = ['key_name', 'key_type', 'key_value']
1041
1042
1043 class SyslogEndpointServers(SubObjects):
1044 _fields = ['address', 'certificate', 'certificate_token',
1045 'connection_type', 'facility', 'format', 'hostname', 'port',
1046 'severity']
1047
1048
1049 class Syslogserver(SubObjects):
1050 _fields = ['address', 'category_list', 'certificate', 'certificate_token',
1051 'connection_type', 'local_interface', 'message_node_id',
1052 'message_source', 'only_category_list', 'port', 'severity']
1053
1054
1055 class TacacsplusServer(SubObjects):
1056 _fields = ['address', 'auth_type', 'comment', 'disable', 'port',
1057 'shared_secret', 'use_accounting', 'use_mgmt_port']
1058
1059
1060 class TaxiiRpzconfig(SubObjects):
1061 _fields = ['collection_name', 'zone']
1062
1063
1064 class ThreatprotectionNatrule(SubObjects):
1065 _fields = ['address', 'cidr', 'end_address', 'nat_ports', 'network',
1066 'rule_type', 'start_address']
1067
1068
1069 class ThreatprotectionStatinfo(SubObjects):
1070 _fields = ['critical', 'informational', 'major', 'timestamp', 'total',
1071 'warning']
1072
1073
1074 class Thresholdtrap(SubObjects):
1075 _fields = ['trap_reset', 'trap_trigger', 'trap_type']
1076
1077
1078 class Trapnotification(SubObjects):
1079 _fields = ['enable_email', 'enable_trap', 'trap_type']
1080
1081
1082 class Updatesdownloadmemberconfig(SubObjects):
1083 _fields = ['interface', 'is_online', 'member']
1084
1085
1086 class UpgradegroupMember(SubObjects):
1087 _fields = ['member', 'time_zone']
1088
1089
1090 class UpgradegroupSchedule(SubObjects):
1091 _fields = ['distribution_dependent_group', 'distribution_time', 'name',
1092 'time_zone', 'upgrade_dependent_group', 'upgrade_time']
1093
1094
1095 class Upgradestep(SubObjects):
1096 _fields = ['status_text', 'status_value']
1097
1098
1099 class Vlanlink(SubObjects):
1100 _fields = ['id', 'name', 'vlan']
1101
1102
1103 class Vtftpdirmember(SubObjects):
1104 _fields = ['address', 'cidr', 'end_address', 'ip_type', 'member',
1105 'network', 'start_address']
1106
1107
1108 class Zoneassociation(SubObjects):
1109 _fields = ['fqdn', 'is_default', 'view']
1110
1111
1112 class Zonenameserver(SubObjects):
1113 _fields = ['address', 'auto_create_ptr']
1114
1115
1116 class AdAuthService(InfobloxObject):
1117 """ AdAuthService: Active Directory Authentication Service object.
1118 Corresponds to WAPI object 'ad_auth_service'
1119
1120 This object allows you to specify an Active Directory (AD)
1121 authentication method and the AD authentication servers that
1122 Infoblox uses to authenticate administrators.
1123
1124 Attributes:
1125 ad_domain: The Active Directory domain to which this server
1126 belongs.
1127 additional_search_paths: The unordered list of additional search
1128 paths for nested group querying.
1129 comment: The descriptive comment for the AD authentication
1130 service.
1131 disable_default_search_path: Determines whether the default
1132 search path for nested group querying is used.
1133 disabled: Determines if Active Directory Authentication Service
1134 is disabled.
1135 domain_controllers: The AD authentication server list.
1136 name: The AD authentication service name.
1137 nested_group_querying: Determines whether the nested group
1138 querying is enabled.
1139 timeout: The number of seconds that the appliance waits for a
1140 response from the AD server.
1141 """
1142 _infoblox_type = 'ad_auth_service'
1143 _fields = ['ad_domain', 'additional_search_paths', 'comment',
1144 'disable_default_search_path', 'disabled', 'domain_controllers',
1145 'name', 'nested_group_querying', 'timeout']
1146 _search_for_update_fields = ['name']
1147 _updateable_search_fields = ['ad_domain', 'comment', 'name']
1148 _all_searchable_fields = ['ad_domain', 'comment', 'name']
1149 _return_fields = ['name']
1150 _remap = {}
1151 _shadow_fields = ['_ref']
1152
1153 _custom_field_processing = {
1154 'domain_controllers': AdAuthServer.from_dict,
1155 }
1156
1157
1158 class Admingroup(InfobloxObject):
1159 """ Admingroup: Admin Group object.
1160 Corresponds to WAPI object 'admingroup'
1161
1162 An Admin Group object creates and manages a local admin group on the
1163 Infoblox appliance. The privileges and properties that are set for
1164 the group apply to all the admin accounts that are assigned to the
1165 group.
1166
1167 Attributes:
1168 access_method: Access methods specify whether an admin group can
1169 use the GUI and the API to access the appliance or to send
1170 Taxii messages to the appliance. Note that API includes both
1171 the Perl API and RESTful API.
1172 admin_set_commands: Admin set commands for the admin command
1173 group.
1174 admin_show_commands: Admin show commands for the admin command
1175 group.
1176 admin_toplevel_commands: Admin_toplevel commands for the admin
1177 command group
1178 cloud_set_commands: Cloud set commands for the cloud command
1179 group.
1180 cloud_show_commands: Cloud show commands for admin group
1181 comment: Comment for the Admin Group; maximum 256 characters.
1182 database_set_commands: Database show commands for admin group.
1183 database_show_commands: Database show commands for the database
1184 command
1185 dhcp_set_commands: Dhcp set commands for the dhcp command group.
1186 dhcp_show_commands: Dhcp show commands for the dhcp command
1187 group.
1188 disable: Determines whether the Admin Group is disabled or not.
1189 When this is set to False, the Admin Group is enabled.
1190 disable_concurrent_login: Disable concurrent login feature
1191 dns_set_commands: Dns set commands for the dns command group.
1192 dns_show_commands: Dns show commands for the dns command group.
1193 dns_toplevel_commands: Dns toplevel commands for the dns command
1194 group.
1195 docker_set_commands: Docker set commands for the dcoker command
1196 group.
1197 docker_show_commands: Docker show commands for the dcoker
1198 command group.
1199 email_addresses: The e-mail addresses for the Admin Group.
1200 enable_restricted_user_access: Determines whether the
1201 restrictions will be applied to the admin connector level
1202 for users of this Admin Group.
1203 extattrs: Extensible attributes associated with the object.For
1204 valid values for extensible attributes, see the following
1205 information.
1206 grid_set_commands: Grid set commands for the grid command group.
1207 grid_show_commands: Show commands for the grid command group.
1208 inactivity_lockout_setting: The Admin group inactivity lockout
1209 settings.
1210 licensing_set_commands: Set commands for the licensing command
1211 group.
1212 licensing_show_commands: Show commands for the licensing command
1213 group.
1214 lockout_setting: This struct specifies security policy settings
1215 in admin group.
1216 machine_control_toplevel_commands: Machine control toplevel
1217 commands for the machine control command group.
1218 name: The name of the Admin Group.
1219 networking_set_commands: Set commands for the networking command
1220 group.
1221 networking_show_commands: Show commands for the networking
1222 command group.
1223 password_setting: The Admin Group password settings.
1224 roles: The names of roles this Admin Group applies to.
1225 saml_setting: The Admin Group SAML settings.
1226 security_set_commands: Set commands for the security command
1227 group.
1228 security_show_commands: Show commands for the security command
1229 group.
1230 superuser: Determines whether this Admin Group is a superuser
1231 group. A superuser group can perform all operations on the
1232 appliance, and can view and configure all types of data.
1233 trouble_shooting_toplevel_commands: Toplevel commands for the
1234 troubleshooting command group.
1235 use_account_inactivity_lockout_enable: This is the use flag for
1236 account inactivity lockout settings.
1237 use_disable_concurrent_login: Whether to override grid
1238 concurrent login
1239 use_lockout_setting: Whether to override grid sequential lockout
1240 setting
1241 use_password_setting: Whether grid password expiry setting
1242 should be override.
1243 user_access: The access control items for this Admin Group.
1244 """
1245 _infoblox_type = 'admingroup'
1246 _fields = ['access_method', 'admin_set_commands', 'admin_show_commands',
1247 'admin_toplevel_commands', 'cloud_set_commands',
1248 'cloud_show_commands', 'comment', 'database_set_commands',
1249 'database_show_commands', 'dhcp_set_commands',
1250 'dhcp_show_commands', 'disable', 'disable_concurrent_login',
1251 'dns_set_commands', 'dns_show_commands',
1252 'dns_toplevel_commands', 'docker_set_commands',
1253 'docker_show_commands', 'email_addresses',
1254 'enable_restricted_user_access', 'extattrs',
1255 'grid_set_commands', 'grid_show_commands',
1256 'inactivity_lockout_setting', 'licensing_set_commands',
1257 'licensing_show_commands', 'lockout_setting',
1258 'machine_control_toplevel_commands', 'name',
1259 'networking_set_commands', 'networking_show_commands',
1260 'password_setting', 'roles', 'saml_setting',
1261 'security_set_commands', 'security_show_commands', 'superuser',
1262 'trouble_shooting_toplevel_commands',
1263 'use_account_inactivity_lockout_enable',
1264 'use_disable_concurrent_login', 'use_lockout_setting',
1265 'use_password_setting', 'user_access']
1266 _search_for_update_fields = ['name']
1267 _updateable_search_fields = ['comment', 'name', 'roles', 'superuser']
1268 _all_searchable_fields = ['comment', 'name', 'roles', 'superuser']
1269 _return_fields = ['comment', 'extattrs', 'name']
1270 _remap = {}
1271 _shadow_fields = ['_ref']
1272
1273 _custom_field_processing = {
1274 'user_access': Addressac.from_dict,
1275 }
1276
1277
1278 class Adminrole(InfobloxObject):
1279 """ Adminrole: Admin Role object.
1280 Corresponds to WAPI object 'adminrole'
1281
1282 An Admin Role object creates and manages a local admin role on the
1283 Infoblox appliance. A Role object is used to aggregate a set of
1284 permissions (represented by Permission objects).
1285
1286 The name part of the admin role object reference has the following
1287 components:
1288
1289 Name of the Admin Role object
1290
1291 Example: adminrole/ZG5zLm5ldHdvcmtfdmlldyQxMTk:default
1292
1293 Attributes:
1294 comment: The descriptive comment of the Admin Role object.
1295 disable: The disable flag.
1296 extattrs: Extensible attributes associated with the object.For
1297 valid values for extensible attributes, see the following
1298 information.
1299 name: The name of an admin role.
1300 """
1301 _infoblox_type = 'adminrole'
1302 _fields = ['comment', 'disable', 'extattrs', 'name']
1303 _search_for_update_fields = ['name']
1304 _updateable_search_fields = ['comment', 'name']
1305 _all_searchable_fields = ['comment', 'name']
1306 _return_fields = ['comment', 'extattrs', 'name']
1307 _remap = {}
1308 _shadow_fields = ['_ref']
1309
1310
1311 class Adminuser(InfobloxObject):
1312 """ Adminuser: Admin User object.
1313 Corresponds to WAPI object 'adminuser'
1314
1315 An admin account provides access to the Infoblox appliance. An admin
1316 account inherits the privileges and properties of the group to which
1317 it belongs.
1318
1319 Attributes:
1320 admin_groups: The names of the Admin Groups to which this Admin
1321 User belongs. Currently, this is limited to only one Admin
1322 Group.
1323 auth_method: Determines the way of authentication
1324 auth_type: The authentication type for the admin user.
1325 ca_certificate_issuer: The CA certificate that is used for user
1326 lookup during authentication.
1327 client_certificate_serial_number: The serial number of the
1328 client certificate.
1329 comment: Comment for the admin user; maximum 256 characters.
1330 disable: Determines whether the admin user is disabled or not.
1331 When this is set to False, the admin user is enabled.
1332 email: The e-mail address for the admin user.
1333 enable_certificate_authentication: Determines whether the user
1334 is allowed to log in only with the certificate. Regular
1335 username/password authentication will be disabled for this
1336 user.
1337 extattrs: Extensible attributes associated with the object.For
1338 valid values for extensible attributes, see the following
1339 information.
1340 name: The name of the admin user.
1341 password: The password for the administrator to use when logging
1342 in.
1343 ssh_keys: List of ssh keys for a particular user.
1344 status: Status of the user account.
1345 time_zone: The time zone for this admin user.
1346 use_ssh_keys:
1347 use_time_zone: Use flag for: time_zone
1348 """
1349 _infoblox_type = 'adminuser'
1350 _fields = ['admin_groups', 'auth_method', 'auth_type',
1351 'ca_certificate_issuer', 'client_certificate_serial_number',
1352 'comment', 'disable', 'email',
1353 'enable_certificate_authentication', 'extattrs', 'name',
1354 'password', 'ssh_keys', 'status', 'time_zone', 'use_ssh_keys',
1355 'use_time_zone']
1356 _search_for_update_fields = ['admin_groups', 'name']
1357 _updateable_search_fields = ['admin_groups', 'ca_certificate_issuer',
1358 'client_certificate_serial_number', 'comment',
1359 'name']
1360 _all_searchable_fields = ['admin_groups', 'ca_certificate_issuer',
1361 'client_certificate_serial_number', 'comment',
1362 'name', 'status']
1363 _return_fields = ['admin_groups', 'comment', 'extattrs', 'name']
1364 _remap = {}
1365 _shadow_fields = ['_ref']
1366
1367 _custom_field_processing = {
1368 'ssh_keys': SshKey.from_dict,
1369 }
1370
1371
1372 class Allendpoints(InfobloxObject):
1373 """ Allendpoints: All Endpoints object.
1374 Corresponds to WAPI object 'allendpoints'
1375
1376 The object provides information about all thrid-party servers
1377 configured on the Grid.
1378
1379 Attributes:
1380 address: The Grid endpoint IPv4 Address or IPv6 Address or
1381 Fully-Qualified Domain Name (FQDN).
1382 comment: The Grid endpoint descriptive comment.
1383 disable: Determines whether a Grid endpoint is disabled or not.
1384 When this is set to False, the Grid endpoint is enabled.
1385 subscribing_member: The name of the Grid Member object that is
1386 serving Grid endpoint.
1387 type: The Grid endpoint type.
1388 version: The Grid endpoint version.
1389 """
1390 _infoblox_type = 'allendpoints'
1391 _fields = ['address', 'comment', 'disable', 'subscribing_member', 'type',
1392 'version']
1393 _search_for_update_fields = []
1394 _updateable_search_fields = []
1395 _all_searchable_fields = ['address', 'comment', 'subscribing_member',
1396 'type', 'version']
1397 _return_fields = []
1398 _remap = {}
1399 _shadow_fields = ['_ref']
1400
1401
1402 class Allnsgroup(InfobloxObject):
1403 """ Allnsgroup: All NS Group object.
1404 Corresponds to WAPI object 'allnsgroup'
1405
1406 The All NS Groups object is a generic name server group object that
1407 provides information about all name server groups.
1408
1409 Attributes:
1410 comment: The comment for the name server group.
1411 name: The name of the name server group.
1412 type: The type of the name server group.
1413 """
1414 _infoblox_type = 'allnsgroup'
1415 _fields = ['comment', 'name', 'type']
1416 _search_for_update_fields = ['name', 'type']
1417 _updateable_search_fields = []
1418 _all_searchable_fields = ['comment', 'name', 'type']
1419 _return_fields = ['name', 'type']
1420 _remap = {}
1421 _shadow_fields = ['_ref']
1422
1423
1424 class Allrecords(InfobloxObject):
1425 """ Allrecords: AllRecords object.
1426 Corresponds to WAPI object 'allrecords'
1427
1428 The allrecords object is a read-only synthetic object used to
1429 retrieve records that belong to a particular zone.
1430
1431 Since this is a synthetic object, it supports reading only by
1432 specifying search parameters, not by reference.
1433
1434 Attributes:
1435 address: The record address.
1436 comment: The record comment.
1437 creator: The record creator.
1438 ddns_principal: The GSS-TSIG principal that owns this record.
1439 ddns_protected: Determines if the DDNS updates for this record
1440 are allowed or not.
1441 disable: The disable value determines if the record is disabled
1442 or not. "False" means the record is enabled.
1443 dtc_obscured: The specific LBDN record.
1444 name: The name of the record.
1445 reclaimable: Determines if the record is reclaimable or not.
1446 record: The record object, if supported by the WAPI. Otherwise,
1447 the value is "None".
1448 ttl: The Time To Live (TTL) value for which the record is valid
1449 or being cached. The 32-bit unsigned integer represents the
1450 duration in seconds. Zero indicates that the record should
1451 not be cached.
1452 type: The record type. When searching for an unspecified record
1453 type, the search is performed for all records. On retrieval,
1454 the appliance returns "UNSUPPORTED" for unsupported records.
1455 view: Name of the DNS View in which the record resides.
1456 zone: Name of the zone in which the record resides.
1457 """
1458 _infoblox_type = 'allrecords'
1459 _fields = ['address', 'comment', 'creator', 'ddns_principal',
1460 'ddns_protected', 'disable', 'dtc_obscured', 'name',
1461 'reclaimable', 'record', 'ttl', 'type', 'view', 'zone']
1462 _search_for_update_fields = ['name', 'type', 'view', 'zone']
1463 _updateable_search_fields = []
1464 _all_searchable_fields = ['comment', 'creator', 'ddns_principal', 'name',
1465 'reclaimable', 'type', 'view', 'zone']
1466 _return_fields = ['comment', 'name', 'type', 'view', 'zone']
1467 _remap = {}
1468 _shadow_fields = ['_ref']
1469
1470
1471 class Allrpzrecords(InfobloxObject):
1472 """ Allrpzrecords: DNS All RPZ Records object.
1473 Corresponds to WAPI object 'allrpzrecords'
1474
1475 A synthetic object used to return record object types that belong to
1476 a Response Policy Zone.
1477
1478 Attributes:
1479 alert_type: The alert type of the record associated with the
1480 allrpzrecords object.
1481 comment: The descriptive comment of the record associated with
1482 the allrpzrecords object.
1483 disable: The disable flag of the record associated with the
1484 allrpzrecords object (if present).
1485 expiration_time: The expiration time of the record associated
1486 with the allrpzrecords object.
1487 last_updated: The time when the record associated with the
1488 allrpzrecords object was last updated.
1489 name: The name of the record associated with the allrpzrecords
1490 object. Note that this value might be different than the
1491 value of the name field for the associated record.
1492 record: The record object associated with the allrpzrecords
1493 object.
1494 rpz_rule: The RPZ rule type of the record associated with the
1495 allrpzrecrods object.
1496 ttl: The TTL value of the record associated with the
1497 allrpzrecords object (if present).
1498 type: The type of record associated with the allrpzrecords
1499 object. This is a descriptive string that identifies the
1500 record to which this allrpzrecords object refers. (Examples:
1501 'record:rpz:a', 'record:rpz:mx', etc.)
1502 view: The DNS view name of the record associated with the
1503 allrpzrecords object.
1504 zone: The Response Policy Zone name of the record associated
1505 with the allrpzrecords object.
1506 """
1507 _infoblox_type = 'allrpzrecords'
1508 _fields = ['alert_type', 'comment', 'disable', 'expiration_time',
1509 'last_updated', 'name', 'record', 'rpz_rule', 'ttl', 'type',
1510 'view', 'zone']
1511 _search_for_update_fields = ['name', 'type', 'view', 'zone']
1512 _updateable_search_fields = []
1513 _all_searchable_fields = ['name', 'rpz_rule', 'type', 'view', 'zone']
1514 _return_fields = ['comment', 'name', 'type', 'view', 'zone']
1515 _remap = {}
1516 _shadow_fields = ['_ref']
1517
1518
1519 class Approvalworkflow(InfobloxObject):
1520 """ Approvalworkflow: The approval workflow object.
1521 Corresponds to WAPI object 'approvalworkflow'
1522
1523 The approval workflow object supports routing certain core network
1524 service tasks submitted by an admin group to another approval. You
1525 can add an admin group to an approval workflow and define the group
1526 as a submitter or an approver group. You can also define when and to
1527 whom e-mail notifications must be sent, and configure options such
1528 as whether the submitters or approvers must enter a comment or a
1529 ticket number when they submit tasks for approval. Approval
1530 workflows are useful when you want to control tasks that require
1531 reviews.
1532
1533 Attributes:
1534 approval_group: The approval administration group.
1535 approval_notify_to: The destination for approval task
1536 notifications.
1537 approved_notify_to: The destination for approved task
1538 notifications.
1539 approver_comment: The requirement for the comment when an
1540 approver approves a submitted task.
1541 enable_approval_notify: Determines whether approval task
1542 notifications are enabled.
1543 enable_approved_notify: Determines whether approved task
1544 notifications are enabled.
1545 enable_failed_notify: Determines whether failed task
1546 notifications are enabled.
1547 enable_notify_group: Determines whether e-mail notifications to
1548 admin group's e-mail address are enabled.
1549 enable_notify_user: Determines whether e-mail notifications to
1550 an admin member's e-mail address are enabled.
1551 enable_rejected_notify: Determines whether rejected task
1552 notifications are enabled.
1553 enable_rescheduled_notify: Determines whether rescheduled task
1554 notifications are enabled.
1555 enable_succeeded_notify: Determines whether succeeded task
1556 notifications are enabled.
1557 extattrs: Extensible attributes associated with the object.For
1558 valid values for extensible attributes, see the following
1559 information.
1560 failed_notify_to: The destination for failed task notifications.
1561 rejected_notify_to: The destination for rejected task
1562 notifications.
1563 rescheduled_notify_to: The destination for rescheduled task
1564 notifications.
1565 submitter_comment: The requirement for the comment when a
1566 submitter submits a task for approval.
1567 submitter_group: The submitter admininstration group.
1568 succeeded_notify_to: The destination for succeeded task
1569 notifications.
1570 ticket_number: The requirement for the ticket number when a
1571 submitter submits a task for approval.
1572 """
1573 _infoblox_type = 'approvalworkflow'
1574 _fields = ['approval_group', 'approval_notify_to', 'approved_notify_to',
1575 'approver_comment', 'enable_approval_notify',
1576 'enable_approved_notify', 'enable_failed_notify',
1577 'enable_notify_group', 'enable_notify_user',
1578 'enable_rejected_notify', 'enable_rescheduled_notify',
1579 'enable_succeeded_notify', 'extattrs', 'failed_notify_to',
1580 'rejected_notify_to', 'rescheduled_notify_to',
1581 'submitter_comment', 'submitter_group', 'succeeded_notify_to',
1582 'ticket_number']
1583 _search_for_update_fields = ['approval_group', 'submitter_group']
1584 _updateable_search_fields = ['approval_group']
1585 _all_searchable_fields = ['approval_group', 'submitter_group']
1586 _return_fields = ['approval_group', 'extattrs', 'submitter_group']
1587 _remap = {}
1588 _shadow_fields = ['_ref']
1589
1590
1591 class Authpolicy(InfobloxObject):
1592 """ Authpolicy: The authentication policy object.
1593 Corresponds to WAPI object 'authpolicy'
1594
1595 The authentication policy defines which authentication server groups
1596 the appliance uses to authenticate admins and lists the local admin
1597 groups that map to the remote admin groups.
1598
1599 Attributes:
1600 admin_groups: List of names of local administration groups that
1601 are mapped to remote administration groups.
1602 auth_services: The array that contains an ordered list of refs
1603 to localuser:authservice object, ldap_auth_service object,
1604 radius:authservice object, tacacsplus:authservice object,
1605 ad_auth_service object, certificate:authservice object.
1606 saml:authservice object,
1607 default_group: The default admin group that provides
1608 authentication in case no valid group is found.
1609 usage_type: Remote policies usage.
1610 """
1611 _infoblox_type = 'authpolicy'
1612 _fields = ['admin_groups', 'auth_services', 'default_group', 'usage_type']
1613 _search_for_update_fields = ['default_group', 'usage_type']
1614 _updateable_search_fields = ['default_group', 'usage_type']
1615 _all_searchable_fields = ['default_group', 'usage_type']
1616 _return_fields = ['default_group', 'usage_type']
1617 _remap = {}
1618 _shadow_fields = ['_ref']
1619
1620
1621 class Awsrte53Taskgroup(InfobloxObject):
1622 """ Awsrte53Taskgroup: AWS Route53 task group object.
1623 Corresponds to WAPI object 'awsrte53taskgroup'
1624
1625 An AWS Route53 task group is a collection of one or more tasks
1626 allowing you to specify various zone filters to retrieve DNS zone
1627 data from AWS Route53 service using specified AWS user credentials.
1628 Grouping these tasks together helps organize related groups of sync
1629 data, enable/disable these and manage the grid member these run on.
1630
1631 Attributes:
1632 account_id: The AWS Account ID associated with this task group.
1633 comment: Comment for the task group; maximum 256 characters.
1634 consolidate_zones: Indicates if all zones need to be saved into
1635 a single view.
1636 consolidated_view: The name of the DNS view for consolidating
1637 zones.
1638 disabled: Indicates if the task group is enabled or disabled.
1639 grid_member: Member on which the tasks in this task group will
1640 be run.
1641 name: The name of this AWS Route53 sync task group.
1642 network_view: The name of the tenant's network view.
1643 network_view_mapping_policy: The network view mapping policy.
1644 sync_status: Indicate the overall sync status of this task
1645 group.
1646 task_list: List of AWS Route53 tasks in this group.
1647 """
1648 _infoblox_type = 'awsrte53taskgroup'
1649 _fields = ['account_id', 'comment', 'consolidate_zones',
1650 'consolidated_view', 'disabled', 'grid_member', 'name',
1651 'network_view', 'network_view_mapping_policy', 'sync_status',
1652 'task_list']
1653 _search_for_update_fields = ['account_id', 'disabled', 'name',
1654 'sync_status']
1655 _updateable_search_fields = ['comment', 'disabled', 'grid_member', 'name']
1656 _all_searchable_fields = ['account_id', 'comment', 'consolidate_zones',
1657 'consolidated_view', 'disabled', 'grid_member',
1658 'name', 'network_view',
1659 'network_view_mapping_policy', 'sync_status']
1660 _return_fields = ['account_id', 'comment', 'disabled', 'name',
1661 'sync_status']
1662 _remap = {}
1663 _shadow_fields = ['_ref']
1664
1665 _custom_field_processing = {
1666 'task_list': Awsrte53Task.from_dict,
1667 }
1668
1669 def task_control(self, *args, **kwargs):
1670 return self._call_func("task_control", *args, **kwargs)
1671
1672
1673 class Awsuser(InfobloxObject):
1674 """ Awsuser: AWS User object.
1675 Corresponds to WAPI object 'awsuser'
1676
1677 An AWS user object represents a specific access key and secret key
1678 pair credentials of an AWS user.
1679
1680 Attributes:
1681 access_key_id: The unique Access Key ID of this AWS user.
1682 Maximum 255 characters.
1683 account_id: The AWS Account ID of this AWS user. Maximum 64
1684 characters.
1685 last_used: The timestamp when this AWS user credentials was last
1686 used.
1687 name: The AWS user name. Maximum 64 characters.
1688 nios_user_name: The NIOS user name mapped to this AWS user.
1689 Maximum 64 characters.
1690 secret_access_key: The Secret Access Key for the Access Key ID
1691 of this user. Maximum 255 characters.
1692 status: Indicate the validity status of this AWS user.
1693 """
1694 _infoblox_type = 'awsuser'
1695 _fields = ['access_key_id', 'account_id', 'last_used', 'name',
1696 'nios_user_name', 'secret_access_key', 'status']
1697 _search_for_update_fields = ['access_key_id', 'account_id', 'name']
1698 _updateable_search_fields = ['access_key_id', 'account_id', 'name',
1699 'nios_user_name']
1700 _all_searchable_fields = ['access_key_id', 'account_id', 'name',
1701 'nios_user_name', 'status']
1702 _return_fields = ['access_key_id', 'account_id', 'name']
1703 _remap = {}
1704 _shadow_fields = ['_ref']
1705
1706
1707 class Bfdtemplate(InfobloxObject):
1708 """ Bfdtemplate: BFD template object.
1709 Corresponds to WAPI object 'bfdtemplate'
1710
1711 The Bidirectional Forwarding Detection (BFD) template contains a
1712 configuration of advanced BFD settings such as authentication and
1713 timer intervals.
1714
1715 Attributes:
1716 authentication_key: The authentication key for BFD protocol
1717 message-digest authentication.
1718 authentication_key_id: The authentication key identifier for BFD
1719 protocol authentication. Valid values are between 1 and 255.
1720 authentication_type: The authentication type for BFD protocol.
1721 detection_multiplier: The detection time multiplier value for
1722 BFD protocol. The negotiated transmit interval, multiplied
1723 by this value, provides the detection time for the receiving
1724 system in asynchronous BFD mode. Valid values are between 3
1725 and 50.
1726 min_rx_interval: The minimum receive time (in seconds) for BFD
1727 protocol. Valid values are between 50 and 9999.
1728 min_tx_interval: The minimum transmission time (in seconds) for
1729 BFD protocol. Valid values are between 50 and 9999.
1730 name: The name of the BFD template object.
1731 """
1732 _infoblox_type = 'bfdtemplate'
1733 _fields = ['authentication_key', 'authentication_key_id',
1734 'authentication_type', 'detection_multiplier',
1735 'min_rx_interval', 'min_tx_interval', 'name']
1736 _search_for_update_fields = ['name']
1737 _updateable_search_fields = ['name']
1738 _all_searchable_fields = ['name']
1739 _return_fields = ['name']
1740 _remap = {}
1741 _shadow_fields = ['_ref']
1742
1743
1744 class Bulkhost(InfobloxObject):
1745 """ Bulkhost: Bulkhost object.
1746 Corresponds to WAPI object 'bulkhost'
1747
1748 If you need to add a large number of hosts, you can have the
1749 Infoblox appliance add them as a group and automatically assign host
1750 names based on a range of IP addresses and name format applied to
1751 it. This group of hosts is referred to as a BulkHost. The Infoblox
1752 appliance uses the name space bulk-xx-xx-xx-xx for bulk host, so
1753 this name should not be used for CNAMEs and host aliases because
1754 doing so causes conflicts. Before adding a bulk host, make sure that
1755 no CNAMEs or host aliases uses this name.
1756
1757 Attributes:
1758 cloud_info: The cloud API related information.
1759 comment: The descriptive comment.
1760 disable: The disable flag of a DNS BulkHost record.
1761 dns_prefix: The prefix, in punycode format, for the bulk host.
1762 end_addr: The last IP address in the address range for the bulk
1763 host.
1764 extattrs: Extensible attributes associated with the object.For
1765 valid values for extensible attributes, see the following
1766 information.
1767 last_queried: The time of the last DNS query in Epoch seconds
1768 format.
1769 name_template: The bulk host name template.
1770 network_view: The network view associated with the bulk host
1771 view.
1772 policy: The hostname policy for records under the bulk host
1773 parent zone.
1774 prefix: The prefix for the bulk host. The prefix is the name (or
1775 a series of characters) inserted at the beginning of each
1776 host name.
1777 reverse: The reverse flag of the BulkHost record.
1778 start_addr: The first IP address in the address range for the
1779 bulk host.
1780 template_format: The bulk host name template format.
1781 ttl: The Time to Live (TTL) value.
1782 use_name_template: Use flag for: name_template
1783 use_ttl: Use flag for: ttl
1784 view: The view for the bulk host.
1785 zone: The zone name.
1786 """
1787 _infoblox_type = 'bulkhost'
1788 _fields = ['cloud_info', 'comment', 'disable', 'dns_prefix', 'end_addr',
1789 'extattrs', 'last_queried', 'name_template', 'network_view',
1790 'policy', 'prefix', 'reverse', 'start_addr', 'template_format',
1791 'ttl', 'use_name_template', 'use_ttl', 'view', 'zone']
1792 _search_for_update_fields = ['prefix']
1793 _updateable_search_fields = ['comment', 'disable', 'end_addr',
1794 'name_template', 'prefix', 'reverse',
1795 'start_addr', 'ttl', 'use_name_template',
1796 'view', 'zone']
1797 _all_searchable_fields = ['comment', 'disable', 'end_addr',
1798 'name_template', 'prefix', 'reverse',
1799 'start_addr', 'ttl', 'use_name_template', 'view',
1800 'zone']
1801 _return_fields = ['comment', 'extattrs', 'prefix']
1802 _remap = {}
1803 _shadow_fields = ['_ref']
1804
1805
1806 class Bulkhostnametemplate(InfobloxObject):
1807 """ Bulkhostnametemplate: The bulk host name template object.
1808 Corresponds to WAPI object 'bulkhostnametemplate'
1809
1810 The object manages the DNS bulk host name formats defined at the
1811 Grid level.
1812
1813 Attributes:
1814 is_grid_default: True if this template is Grid default.
1815 pre_defined: True if this is a pre-defined template, False
1816 otherwise.
1817 template_format: The format of bulk host name template. It
1818 should follow certain rules (please use Administration Guide
1819 as reference).
1820 template_name: The name of bulk host name template.
1821 """
1822 _infoblox_type = 'bulkhostnametemplate'
1823 _fields = ['is_grid_default', 'pre_defined', 'template_format',
1824 'template_name']
1825 _search_for_update_fields = ['template_format', 'template_name']
1826 _updateable_search_fields = ['template_format', 'template_name']
1827 _all_searchable_fields = ['template_format', 'template_name']
1828 _return_fields = ['is_grid_default', 'template_format', 'template_name']
1829 _remap = {}
1830 _shadow_fields = ['_ref']
1831
1832
1833 class Cacertificate(InfobloxObject):
1834 """ Cacertificate: CA Certificate object.
1835 Corresponds to WAPI object 'cacertificate'
1836
1837 An CA Certificate object represents a CA certificate description.
1838
1839 Attributes:
1840 distinguished_name: The certificate subject name.
1841 issuer: The certificate issuer subject name.
1842 serial: The certificate serial number in hex format.
1843 used_by: Information about the CA certificate usage.
1844 valid_not_after: The date after which the certificate becomes
1845 invalid.
1846 valid_not_before: The date before which the certificate is not
1847 valid.
1848 """
1849 _infoblox_type = 'cacertificate'
1850 _fields = ['distinguished_name', 'issuer', 'serial', 'used_by',
1851 'valid_not_after', 'valid_not_before']
1852 _search_for_update_fields = ['distinguished_name', 'issuer', 'serial']
1853 _updateable_search_fields = []
1854 _all_searchable_fields = ['distinguished_name', 'issuer', 'serial']
1855 _return_fields = ['distinguished_name', 'issuer', 'serial', 'used_by',
1856 'valid_not_after', 'valid_not_before']
1857 _remap = {}
1858 _shadow_fields = ['_ref']
1859
1860
1861 class Capacityreport(InfobloxObject):
1862 """ Capacityreport: Grid member capacity report object.
1863 Corresponds to WAPI object 'capacityreport'
1864
1865 The capacity report object provides information about the object
1866 count, interface count, and other memory usage statistics for a Grid
1867 member.
1868
1869 Attributes:
1870 hardware_type: Hardware type of a Grid member.
1871 max_capacity: The maximum amount of capacity available for the
1872 Grid member.
1873 name: The Grid member name.
1874 object_counts: A list of instance counts for object types
1875 created on the Grid member.
1876 percent_used: The percentage of the capacity in use by the Grid
1877 member.
1878 role: The Grid member role.
1879 total_objects: The total number of objects created by the Grid
1880 member.
1881 """
1882 _infoblox_type = 'capacityreport'
1883 _fields = ['hardware_type', 'max_capacity', 'name', 'object_counts',
1884 'percent_used', 'role', 'total_objects']
1885 _search_for_update_fields = ['name']
1886 _updateable_search_fields = []
1887 _all_searchable_fields = ['name']
1888 _return_fields = ['name', 'percent_used', 'role']
1889 _remap = {}
1890 _shadow_fields = ['_ref']
1891
1892 _custom_field_processing = {
1893 'object_counts': CapacityreportObjectcount.from_dict,
1894 }
1895
1896
1897 class Captiveportal(InfobloxObject):
1898 """ Captiveportal: Captive portal object.
1899 Corresponds to WAPI object 'captiveportal'
1900
1901 This object represents the captive portal configuration.
1902
1903 Attributes:
1904 authn_server_group: The authentication server group assigned to
1905 this captive portal.
1906 company_name: The company name that appears in the guest
1907 registration page.
1908 enable_syslog_auth_failure: Determines if authentication
1909 failures are logged to syslog or not.
1910 enable_syslog_auth_success: Determines if successful
1911 authentications are logged to syslog or not.
1912 enable_user_type: The type of user to be enabled for the captive
1913 portal.
1914 encryption: The encryption the captive portal uses.
1915 files: The list of files associated with the captive portal.
1916 guest_custom_field1_name: The name of the custom field that you
1917 are adding to the guest registration page.
1918 guest_custom_field1_required: Determines if the custom field is
1919 required or not.
1920 guest_custom_field2_name: The name of the custom field that you
1921 are adding to the guest registration page.
1922 guest_custom_field2_required: Determines if the custom field is
1923 required or not.
1924 guest_custom_field3_name: The name of the custom field that you
1925 are adding to the guest registration page.
1926 guest_custom_field3_required: Determines if the custom field is
1927 required or not.
1928 guest_custom_field4_name: The name of the custom field that you
1929 are adding to the guest registration page.
1930 guest_custom_field4_required: Determines if the custom field is
1931 required or not.
1932 guest_email_required: Determines if the email address of the
1933 guest is required or not.
1934 guest_first_name_required: Determines if the first name of the
1935 guest is required or not.
1936 guest_last_name_required: Determines if the last name of the
1937 guest is required or not.
1938 guest_middle_name_required: Determines if the middle name of the
1939 guest is required or not.
1940 guest_phone_required: Determines if the phone number of the
1941 guest is required or not.
1942 helpdesk_message: The helpdesk message that appears in the guest
1943 registration page.
1944 listen_address_ip: Determines the IP address on which the
1945 captive portal listens. Valid if listen address type is
1946 'IP'.
1947 listen_address_type: Determines the type of the IP address on
1948 which the captive portal listens.
1949 name: The hostname of the Grid member that hosts the captive
1950 portal.
1951 network_view: The network view of the captive portal.
1952 port: The TCP port used by the Captive Portal service. The port
1953 is required when the Captive Portal service is enabled.
1954 Valid values are between 1 and 63999. Please note that
1955 setting the port number to 80 or 443 might impact
1956 performance.
1957 service_enabled: Determines if the captive portal service is
1958 enabled or not.
1959 syslog_auth_failure_level: The syslog level at which
1960 authentication failures are logged.
1961 syslog_auth_success_level: The syslog level at which successful
1962 authentications are logged.
1963 welcome_message: The welcome message that appears in the guest
1964 registration page.
1965 """
1966 _infoblox_type = 'captiveportal'
1967 _fields = ['authn_server_group', 'company_name',
1968 'enable_syslog_auth_failure', 'enable_syslog_auth_success',
1969 'enable_user_type', 'encryption', 'files',
1970 'guest_custom_field1_name', 'guest_custom_field1_required',
1971 'guest_custom_field2_name', 'guest_custom_field2_required',
1972 'guest_custom_field3_name', 'guest_custom_field3_required',
1973 'guest_custom_field4_name', 'guest_custom_field4_required',
1974 'guest_email_required', 'guest_first_name_required',
1975 'guest_last_name_required', 'guest_middle_name_required',
1976 'guest_phone_required', 'helpdesk_message', 'listen_address_ip',
1977 'listen_address_type', 'name', 'network_view', 'port',
1978 'service_enabled', 'syslog_auth_failure_level',
1979 'syslog_auth_success_level', 'welcome_message']
1980 _search_for_update_fields = ['name']
1981 _updateable_search_fields = []
1982 _all_searchable_fields = ['name']
1983 _return_fields = ['name']
1984 _remap = {}
1985 _shadow_fields = ['_ref']
1986
1987 _custom_field_processing = {
1988 'files': CaptiveportalFile.from_dict,
1989 }
1990
1991
1992 class CertificateAuthservice(InfobloxObject):
1993 """ CertificateAuthservice: Certificate authentication service
1994 object.
1995 Corresponds to WAPI object 'certificate:authservice'
1996
1997 This object represents an certificate authentication service.
1998
1999 Attributes:
2000 auto_populate_login: Specifies the value of the client
2001 certificate for automatically populating the NIOS login
2002 name.
2003 ca_certificates: The list of CA certificates.
2004 comment: The descriptive comment for the certificate
2005 authentication service.
2006 disabled: Determines if this certificate authentication service
2007 is enabled or disabled.
2008 enable_password_request: Determines if username/password
2009 authentication together with client certificate
2010 authentication is enabled or disabled.
2011 enable_remote_lookup: Determines if the lookup for user group
2012 membership information on remote services is enabled or
2013 disabled.
2014 max_retries: The number of validation attempts before the
2015 appliance contacts the next responder.
2016 name: The name of the certificate authentication service.
2017 ocsp_check: Specifies the source of OCSP settings.
2018 ocsp_responders: An ordered list of OCSP responders that are
2019 part of the certificate authentication service.
2020 recovery_interval: The period of time the appliance waits before
2021 it attempts to contact a responder that is out of service
2022 again. The value must be between 1 and 600 seconds.
2023 remote_lookup_password: The password for the service account.
2024 remote_lookup_service: The service that will be used for remote
2025 lookup.
2026 remote_lookup_username: The username for the service account.
2027 response_timeout: The validation timeout period in milliseconds.
2028 trust_model: The OCSP trust model.
2029 user_match_type: Specifies how to search for a user.
2030 """
2031 _infoblox_type = 'certificate:authservice'
2032 _fields = ['auto_populate_login', 'ca_certificates', 'comment', 'disabled',
2033 'enable_password_request', 'enable_remote_lookup',
2034 'max_retries', 'name', 'ocsp_check', 'ocsp_responders',
2035 'recovery_interval', 'remote_lookup_password',
2036 'remote_lookup_service', 'remote_lookup_username',
2037 'response_timeout', 'trust_model', 'user_match_type']
2038 _search_for_update_fields = ['name']
2039 _updateable_search_fields = ['comment', 'name']
2040 _all_searchable_fields = ['comment', 'name']
2041 _return_fields = ['name']
2042 _remap = {}
2043 _shadow_fields = ['_ref']
2044
2045 _custom_field_processing = {
2046 'ocsp_responders': OcspResponder.from_dict,
2047 }
2048
2049 def test_ocsp_responder_settings(self, *args, **kwargs):
2050 return self._call_func("test_ocsp_responder_settings", *args, **kwargs)
2051
2052
2053 class CiscoiseEndpoint(InfobloxObject):
2054 """ CiscoiseEndpoint: Cisco ISE Endpoint object.
2055 Corresponds to WAPI object 'ciscoise:endpoint'
2056
2057 The object contains information and configuration for third-party
2058 Cisco ISE servers integration, configuration for Cisco ISE
2059 publishing and subscription.
2060
2061 Attributes:
2062 address: The Cisco ISE endpoint IPv4 Address or IPv6 Address or
2063 Fully-Qualified Domain Name (FQDN)
2064 bulk_download_certificate_subject: The Cisco ISE bulk download
2065 certificate subject.
2066 bulk_download_certificate_token: The token returned by the
2067 uploadinit function call in object fileop for Cisco ISE bulk
2068 download certificate.
2069 bulk_download_certificate_valid_from: The Cisco ISE bulk
2070 download certificate valid from.
2071 bulk_download_certificate_valid_to: The Cisco ISE bulk download
2072 certificate valid to.
2073 client_certificate_subject: The Cisco ISE client certificate
2074 subject.
2075 client_certificate_token: The token returned by the uploadinit
2076 function call in object fileop for Cisco ISE client
2077 certificate.
2078 client_certificate_valid_from: The Cisco ISE client certificate
2079 valid from.
2080 client_certificate_valid_to: The Cisco ISE client certificate
2081 valid to.
2082 comment: The Cisco ISE endpoint descriptive comment.
2083 connection_status: The Cisco ISE connection status.
2084 connection_timeout: The Cisco ISE connection timeout.
2085 disable: Determines whether a Cisco ISE endpoint is disabled or
2086 not. When this is set to False, the Cisco ISE endpoint is
2087 enabled.
2088 extattrs: Extensible attributes associated with the object.For
2089 valid values for extensible attributes, see the following
2090 information.
2091 network_view: The Cisco ISE network view name.
2092 publish_settings: The Cisco ISE publish settings.
2093 resolved_address: The resolved IPv4 Address or IPv6 Address of
2094 the Cisco ISE endpoint.
2095 resolved_secondary_address: The resolved IPv4 Address or IPv6
2096 Address of the Cisco ISE endpoint.
2097 secondary_address: The Cisco ISE endpoint secondary IPv4 Address
2098 or IPv6 Address or Fully-Qualified Domain Name (FQDN)
2099 subscribe_settings: The Cisco ISE subscribe settings.
2100 subscribing_member: The name of the Grid Member object that is
2101 serving Cisco ISE endpoint.
2102 type: The Cisco ISE endpoint type.
2103 version: The Cisco ISE endpoint version.
2104 """
2105 _infoblox_type = 'ciscoise:endpoint'
2106 _fields = ['address', 'bulk_download_certificate_subject',
2107 'bulk_download_certificate_token',
2108 'bulk_download_certificate_valid_from',
2109 'bulk_download_certificate_valid_to',
2110 'client_certificate_subject', 'client_certificate_token',
2111 'client_certificate_valid_from', 'client_certificate_valid_to',
2112 'comment', 'connection_status', 'connection_timeout', 'disable',
2113 'extattrs', 'network_view', 'publish_settings',
2114 'resolved_address', 'resolved_secondary_address',
2115 'secondary_address', 'subscribe_settings', 'subscribing_member',
2116 'type', 'version']
2117 _search_for_update_fields = ['address', 'resolved_address', 'type',
2118 'version']
2119 _updateable_search_fields = ['address', 'comment', 'network_view',
2120 'secondary_address', 'subscribing_member',
2121 'type', 'version']
2122 _all_searchable_fields = ['address', 'comment', 'network_view',
2123 'resolved_address', 'resolved_secondary_address',
2124 'secondary_address', 'subscribing_member',
2125 'type', 'version']
2126 _return_fields = ['address', 'disable', 'extattrs', 'resolved_address',
2127 'type', 'version']
2128 _remap = {}
2129 _shadow_fields = ['_ref']
2130
2131 def test_connection(self, *args, **kwargs):
2132 return self._call_func("test_connection", *args, **kwargs)
2133
2134
2135 class Csvimporttask(InfobloxObject):
2136 """ Csvimporttask: CSV Import task object.
2137 Corresponds to WAPI object 'csvimporttask'
2138
2139 This object represents a CSV import task, if the task was created
2140 but not started by an import operation, it can be started by
2141 modifying it and assigning the value 'START' to the 'action' field.
2142
2143 Attributes:
2144 action: The action to execute.
2145 admin_name: The login name of the administrator.
2146 end_time: The end time of this import operation.
2147 file_name: The name of the file used for the import operation.
2148 file_size: The size of the file used for the import operation.
2149 import_id: The ID of the current import task.
2150 lines_failed: The number of lines that encountered an error.
2151 lines_processed: The number of lines that have been processed.
2152 lines_warning: The number of lines that encountered a warning.
2153 on_error: The action to take when an error is encountered.
2154 operation: The operation to execute.
2155 separator: The separator to be used for the data in the CSV
2156 file.
2157 start_time: The start time of the import operation.
2158 status: The status of the import operation
2159 update_method: The update method to be used for the operation.
2160 """
2161 _infoblox_type = 'csvimporttask'
2162 _fields = ['action', 'admin_name', 'end_time', 'file_name', 'file_size',
2163 'import_id', 'lines_failed', 'lines_processed', 'lines_warning',
2164 'on_error', 'operation', 'separator', 'start_time', 'status',
2165 'update_method']
2166 _search_for_update_fields = ['import_id']
2167 _updateable_search_fields = []
2168 _all_searchable_fields = ['import_id']
2169 _return_fields = ['action', 'admin_name', 'end_time', 'file_name',
2170 'file_size', 'import_id', 'lines_failed',
2171 'lines_processed', 'lines_warning', 'on_error',
2172 'operation', 'separator', 'start_time', 'status',
2173 'update_method']
2174 _remap = {}
2175 _shadow_fields = ['_ref']
2176
2177 def stop(self, *args, **kwargs):
2178 return self._call_func("stop", *args, **kwargs)
2179
2180
2181 class DbObjects(InfobloxObject):
2182 """ DbObjects: The DB Objects object.
2183 Corresponds to WAPI object 'db_objects'
2184
2185 The DB Objects object is used to search for changes in objects of
2186 the Infoblox Grid.
2187
2188 Attributes:
2189 last_sequence_id: The last returned sequence ID.
2190 object: The record object when supported by WAPI. Otherwise, the
2191 value is "None".
2192 object_type: The object type. This is undefined if the object is
2193 not supported.
2194 unique_id: The unique ID of the requested object.
2195 """
2196 _infoblox_type = 'db_objects'
2197 _fields = ['last_sequence_id', 'object', 'object_type', 'unique_id']
2198 _search_for_update_fields = []
2199 _updateable_search_fields = []
2200 _all_searchable_fields = []
2201 _return_fields = ['last_sequence_id', 'object', 'object_type', 'unique_id']
2202 _remap = {}
2203 _shadow_fields = ['_ref']
2204
2205
2206 class Dbsnapshot(InfobloxObject):
2207 """ Dbsnapshot: The DBSnapshot WAPI object.
2208 Corresponds to WAPI object 'dbsnapshot'
2209
2210 The object provides information about the OneDB snapshot, the last
2211 time it was taken and the descriptive comment.
2212
2213 Attributes:
2214 comment: The descriptive comment.
2215 timestamp: The time when the latest OneDB snapshot was taken in
2216 Epoch seconds format.
2217 """
2218 _infoblox_type = 'dbsnapshot'
2219 _fields = ['comment', 'timestamp']
2220 _search_for_update_fields = []
2221 _updateable_search_fields = []
2222 _all_searchable_fields = []
2223 _return_fields = ['comment', 'timestamp']
2224 _remap = {}
2225 _shadow_fields = ['_ref']
2226
2227 def rollback_db_snapshot(self, *args, **kwargs):
2228 return self._call_func("rollback_db_snapshot", *args, **kwargs)
2229
2230 def save_db_snapshot(self, *args, **kwargs):
2231 return self._call_func("save_db_snapshot", *args, **kwargs)
2232
2233
2234 class DdnsPrincipalcluster(InfobloxObject):
2235 """ DdnsPrincipalcluster: DDNS Principal Cluster object.
2236 Corresponds to WAPI object 'ddns:principalcluster'
2237
2238 The DDNS Principal Cluster object represents a set of principals
2239 such that any principal in a DDNS Principal Cluster can update
2240 records created by any other principal in the same cluster.
2241
2242 Attributes:
2243 comment: Comment for the DDNS Principal Cluster.
2244 group: The DDNS Principal cluster group name.
2245 name: The name of this DDNS Principal Cluster.
2246 principals: The list of equivalent principals.
2247 """
2248 _infoblox_type = 'ddns:principalcluster'
2249 _fields = ['comment', 'group', 'name', 'principals']
2250 _search_for_update_fields = ['group', 'name']
2251 _updateable_search_fields = ['comment', 'group', 'name']
2252 _all_searchable_fields = ['comment', 'group', 'name']
2253 _return_fields = ['comment', 'group', 'name', 'principals']
2254 _remap = {}
2255 _shadow_fields = ['_ref']
2256
2257
2258 class DdnsPrincipalclusterGroup(InfobloxObject):
2259 """ DdnsPrincipalclusterGroup: DDNS Principal Cluster Group object.
2260 Corresponds to WAPI object 'ddns:principalcluster:group'
2261
2262 The DDNS Principal Cluster Group object represents a set of DDNS
2263 Principal Clusters. A single group can be active at any time.
2264
2265 Attributes:
2266 clusters: The list of equivalent DDNS principal clusters.
2267 comment: Comment for the DDNS Principal Cluster Group.
2268 name: The name of this DDNS Principal Cluster Group.
2269 """
2270 _infoblox_type = 'ddns:principalcluster:group'
2271 _fields = ['clusters', 'comment', 'name']
2272 _search_for_update_fields = ['name']
2273 _updateable_search_fields = ['comment', 'name']
2274 _all_searchable_fields = ['comment', 'name']
2275 _return_fields = ['comment', 'name']
2276 _remap = {}
2277 _shadow_fields = ['_ref']
2278
2279
2280 class DeletedObjects(InfobloxObject):
2281 """ DeletedObjects: The Deleted Objects object.
2282 Corresponds to WAPI object 'deleted_objects'
2283
2284 The Deleted Objects object is used to display information about
2285 deleted objects. You can retrieve it from the appliance only as a
2286 part of DB Objects response.
2287
2288 Attributes:
2289 object_type: The object type of the deleted object. This is
2290 undefined if the object is not supported.
2291 """
2292 _infoblox_type = 'deleted_objects'
2293 _fields = ['object_type']
2294 _search_for_update_fields = []
2295 _updateable_search_fields = []
2296 _all_searchable_fields = []
2297 _return_fields = ['object_type']
2298 _remap = {}
2299 _shadow_fields = ['_ref']
2300
2301
2302 class DhcpStatistics(InfobloxObject):
2303 """ DhcpStatistics: DHCP Statistics object.
2304 Corresponds to WAPI object 'dhcp:statistics'
2305
2306 DHCP Statistics object is used to display information about DHCP
2307 utilization status, number of static and dynamic hosts, overall DHCP
2308 utilization in percentage. DHCP Statistics object supports
2309 references on following objects: network, range, sharednetwork,
2310 msserver:dhcp, member:dhcpproperties.
2311
2312 Note that get by reference is not allowed for this object. Search
2313 result returns the dhcp:statistics object itself (not a list).
2314
2315 Note that read by reference is not supported.
2316
2317 Attributes:
2318 dhcp_utilization: The percentage of the total DHCP utilization
2319 of DHCP objects multiplied by 1000. This is the percentage
2320 of the total number of available IP addresses belonging to
2321 the object versus the total number of all IP addresses in
2322 object.
2323 dhcp_utilization_status: A string describing the utilization
2324 level of the DHCP object.
2325 dynamic_hosts: The total number of DHCP leases issued for the
2326 DHCP object.
2327 static_hosts: The number of static DHCP addresses configured in
2328 the DHCP object.
2329 total_hosts: The total number of DHCP addresses configured in
2330 the DHCP object.
2331 """
2332 _infoblox_type = 'dhcp:statistics'
2333 _fields = ['dhcp_utilization', 'dhcp_utilization_status', 'dynamic_hosts',
2334 'static_hosts', 'total_hosts']
2335 _search_for_update_fields = []
2336 _updateable_search_fields = []
2337 _all_searchable_fields = []
2338 _return_fields = ['dhcp_utilization', 'dhcp_utilization_status',
2339 'dynamic_hosts', 'static_hosts', 'total_hosts']
2340 _remap = {}
2341 _shadow_fields = ['_ref']
2342
2343
2344 class Dhcpfailover(InfobloxObject):
2345 """ Dhcpfailover: DHCP Failover Association object.
2346 Corresponds to WAPI object 'dhcpfailover'
2347
2348 DHCP failover is a protocol designed to allow a backup DHCP server
2349 to take over for a main server if the main server is taken off the
2350 network for any reason. DHCP failover can be used to configure two
2351 DHCP servers to operate as a redundant pair.
2352
2353 Attributes:
2354 association_type: The value indicating whether the failover
2355 assoctaion is Microsoft or Grid based. This is a read-only
2356 attribute.
2357 comment: A descriptive comment about a DHCP failover object.
2358 extattrs: Extensible attributes associated with the object.For
2359 valid values for extensible attributes, see the following
2360 information.
2361 failover_port: Determines the TCP port on which the server
2362 should listen for connections from its failover peer. Valid
2363 values are between 1 and 63999.
2364 load_balance_split: A load balancing split value of a DHCP
2365 failover object. Specify the value of the maximum load
2366 balancing delay in a 8-bit integer format (range from 0 to
2367 256).
2368 max_client_lead_time: The maximum client lead time value of a
2369 DHCP failover object. Specify the value of the maximum
2370 client lead time in a 32-bit integer format (range from 0 to
2371 4294967295) that represents the duration in seconds. Valid
2372 values are between 1 and 4294967295.
2373 max_load_balance_delay: The maximum load balancing delay value
2374 of a DHCP failover object. Specify the value of the maximum
2375 load balancing delay in a 32-bit integer format (range from
2376 0 to 4294967295) that represents the duration in seconds.
2377 Valid values are between 1 and 4294967295.
2378 max_response_delay: The maximum response delay value of a DHCP
2379 failover object. Specify the value of the maximum response
2380 delay in a 32-bit integer format (range from 0 to
2381 4294967295) that represents the duration in seconds. Valid
2382 values are between 1 and 4294967295.
2383 max_unacked_updates: The maximum number of unacked updates value
2384 of a DHCP failover object. Specify the value of the maximum
2385 number of unacked updates in a 32-bit integer format (range
2386 from 0 to 4294967295) that represents the number of
2387 messages. Valid values are between 1 and 4294967295.
2388 ms_association_mode: The value that indicates whether the
2389 failover association is read-write or read-only. This is a
2390 read-only attribute.
2391 ms_enable_authentication: Determines if the authentication for
2392 the failover association is enabled or not.
2393 ms_enable_switchover_interval: Determines if the switchover
2394 interval is enabled or not.
2395 ms_failover_mode: The mode for the failover association.
2396 ms_failover_partner: Failover partner defined in the association
2397 with the Microsoft Server.
2398 ms_hotstandby_partner_role: The partner role in the case of
2399 HotStandby.
2400 ms_is_conflict: Determines if the matching Microsfot failover
2401 association (if any) is in synchronization (False) or not
2402 (True). If there is no matching failover association the
2403 returned values is False. This is a read-only attribute.
2404 ms_previous_state: The previous failover association state. This
2405 is a read-only attribute.
2406 ms_server: The primary Microsoft Server.
2407 ms_shared_secret: The failover association authentication. This
2408 is a write-only attribute.
2409 ms_state: The failover association state. This is a read-only
2410 attribute.
2411 ms_switchover_interval: The time (in seconds) that DHCPv4 server
2412 will wait before transitioning the server from the
2413 COMMUNICATION-INT state to PARTNER-DOWN state.
2414 name: The name of a DHCP failover object.
2415 primary: The primary server of a DHCP failover object.
2416 primary_server_type: The type of the primary server of DHCP
2417 Failover association object.
2418 primary_state: The primary server status of a DHCP failover
2419 object.
2420 recycle_leases: Determines if the leases are kept in recycle bin
2421 until one week after expiration or not.
2422 secondary: The secondary server of a DHCP failover object.
2423 secondary_server_type: The type of the secondary server of DHCP
2424 Failover association object.
2425 secondary_state: The secondary server status of a DHCP failover
2426 object.
2427 use_failover_port: Use flag for: failover_port
2428 use_ms_switchover_interval: Use flag for: ms_switchover_interval
2429 use_recycle_leases: Use flag for: recycle_leases
2430 """
2431 _infoblox_type = 'dhcpfailover'
2432 _fields = ['association_type', 'comment', 'extattrs', 'failover_port',
2433 'load_balance_split', 'max_client_lead_time',
2434 'max_load_balance_delay', 'max_response_delay',
2435 'max_unacked_updates', 'ms_association_mode',
2436 'ms_enable_authentication', 'ms_enable_switchover_interval',
2437 'ms_failover_mode', 'ms_failover_partner',
2438 'ms_hotstandby_partner_role', 'ms_is_conflict',
2439 'ms_previous_state', 'ms_server', 'ms_shared_secret',
2440 'ms_state', 'ms_switchover_interval', 'name', 'primary',
2441 'primary_server_type', 'primary_state', 'recycle_leases',
2442 'secondary', 'secondary_server_type', 'secondary_state',
2443 'use_failover_port', 'use_ms_switchover_interval',
2444 'use_recycle_leases']
2445 _search_for_update_fields = ['name']
2446 _updateable_search_fields = ['comment', 'name']
2447 _all_searchable_fields = ['comment', 'name']
2448 _return_fields = ['extattrs', 'name']
2449 _remap = {}
2450 _shadow_fields = ['_ref']
2451
2452 def set_dhcp_failover_partner_down(self, *args, **kwargs):
2453 return self._call_func("set_dhcp_failover_partner_down", *args,
2454 **kwargs)
2455
2456 def set_dhcp_failover_secondary_recovery(self, *args, **kwargs):
2457 return self._call_func("set_dhcp_failover_secondary_recovery", *args,
2458 **kwargs)
2459
2460
2461 class DhcpOptionDefinition(InfobloxObject):
2462 @classmethod
2463 def get_v4_class(cls):
2464 return DhcpOptionDefinitionV4
2465
2466 @classmethod
2467 def get_v6_class(cls):
2468 return DhcpOptionDefinitionV6
2469
2470
2471 class DhcpOptionDefinitionV4(DhcpOptionDefinition):
2472 """ DhcpOptionDefinitionV4: DHCP option definition object.
2473 Corresponds to WAPI object 'dhcpoptiondefinition'
2474
2475 An option definition defines a DHCP option within a specific option
2476 space. A custom option can be defined in the predefined DHCP option
2477 space or in the user-defined vendor option space. To define an
2478 option, add the option definition to the required option space.
2479
2480 Attributes:
2481 code: The code of a DHCP option definition object. An option
2482 code number is used to identify the DHCP option.
2483 name: The name of a DHCP option definition object.
2484 space: The space of a DHCP option definition object.
2485 type: The data type of the Grid DHCP option.
2486 """
2487 _infoblox_type = 'dhcpoptiondefinition'
2488 _fields = ['code', 'name', 'space', 'type']
2489 _search_for_update_fields = ['code', 'name', 'type']
2490 _updateable_search_fields = ['code', 'name', 'space', 'type']
2491 _all_searchable_fields = ['code', 'name', 'space', 'type']
2492 _return_fields = ['code', 'name', 'type']
2493 _remap = {}
2494 _shadow_fields = ['_ref']
2495 _ip_version = 4
2496
2497
2498 class DhcpOptionDefinitionV6(DhcpOptionDefinition):
2499 """ DhcpOptionDefinitionV6: DHCP IPv6 option definition object.
2500 Corresponds to WAPI object 'ipv6dhcpoptiondefinition'
2501
2502 An IPv6 option definition defines a DHCP IPv6 option within a
2503 specific IPv6 option space. A custom IPv6 option can be defined in
2504 the predefined DHCP IPv6 option space or in the user-defined vendor
2505 IPv6 option space. To define an IPv6 option, add the IPv6 option
2506 definition to the required IPv6 option space.
2507
2508 Attributes:
2509 code: The code of a DHCP IPv6 option definition object. An
2510 option code number is used to identify the DHCP option.
2511 name: The name of a DHCP IPv6 option definition object.
2512 space: The space of a DHCP option definition object.
2513 type: The data type of the Grid DHCP IPv6 option.
2514 """
2515 _infoblox_type = 'ipv6dhcpoptiondefinition'
2516 _fields = ['code', 'name', 'space', 'type']
2517 _search_for_update_fields = ['code', 'name', 'type']
2518 _updateable_search_fields = ['code', 'name', 'space', 'type']
2519 _all_searchable_fields = ['code', 'name', 'space', 'type']
2520 _return_fields = ['code', 'name', 'type']
2521 _remap = {}
2522 _shadow_fields = ['_ref']
2523 _ip_version = 6
2524
2525
2526 class DhcpOptionSpace(InfobloxObject):
2527 @classmethod
2528 def get_v4_class(cls):
2529 return DhcpOptionSpaceV4
2530
2531 @classmethod
2532 def get_v6_class(cls):
2533 return DhcpOptionSpaceV6
2534
2535
2536 class DhcpOptionSpaceV4(DhcpOptionSpace):
2537 """ DhcpOptionSpaceV4: DHCP option space object.
2538 Corresponds to WAPI object 'dhcpoptionspace'
2539
2540 An Option Space defines a namespace in which vendor options can be
2541 defined. To define a specific vendor option space, add an option
2542 space to DHCP.
2543
2544 Attributes:
2545 comment: A descriptive comment of a DHCP option space object.
2546 name: The name of a DHCP option space object.
2547 option_definitions: The list of DHCP option definition objects.
2548 space_type: The type of a DHCP option space object.
2549 """
2550 _infoblox_type = 'dhcpoptionspace'
2551 _fields = ['comment', 'name', 'option_definitions', 'space_type']
2552 _search_for_update_fields = ['name']
2553 _updateable_search_fields = ['comment', 'name']
2554 _all_searchable_fields = ['comment', 'name']
2555 _return_fields = ['comment', 'name']
2556 _remap = {}
2557 _shadow_fields = ['_ref']
2558 _ip_version = 4
2559
2560
2561 class DhcpOptionSpaceV6(DhcpOptionSpace):
2562 """ DhcpOptionSpaceV6: DHCP IPv6 option space object.
2563 Corresponds to WAPI object 'ipv6dhcpoptionspace'
2564
2565 An IPv6 option space defines a namespace in which vendor IPv6
2566 options can be defined. To define a specific vendor IPv6 option
2567 space, add an IPv6 option space to DHCP.
2568
2569 Attributes:
2570 comment: A descriptive comment of a DHCP IPv6 option space
2571 object.
2572 enterprise_number: The enterprise number of a DHCP IPv6 option
2573 space object.
2574 name: The name of a DHCP IPv6 option space object.
2575 option_definitions: The list of DHCP IPv6 option definition
2576 objects.
2577 """
2578 _infoblox_type = 'ipv6dhcpoptionspace'
2579 _fields = ['comment', 'enterprise_number', 'name', 'option_definitions']
2580 _search_for_update_fields = ['enterprise_number', 'name']
2581 _updateable_search_fields = ['comment', 'enterprise_number', 'name']
2582 _all_searchable_fields = ['comment', 'enterprise_number', 'name']
2583 _return_fields = ['comment', 'enterprise_number', 'name']
2584 _remap = {}
2585 _shadow_fields = ['_ref']
2586 _ip_version = 6
2587
2588
2589 class Discovery(InfobloxObject):
2590 """ Discovery: Discovery object.
2591 Corresponds to WAPI object 'discovery'
2592
2593 This object can be used to control the Network Insight functionality
2594 of the appliance.
2595
2596 Attributes:
2597 """
2598 _infoblox_type = 'discovery'
2599 _fields = []
2600 _search_for_update_fields = []
2601 _updateable_search_fields = []
2602 _all_searchable_fields = []
2603 _return_fields = []
2604 _remap = {}
2605 _shadow_fields = ['_ref']
2606
2607 def clear_network_port_assignment(self, *args, **kwargs):
2608 return self._call_func("clear_network_port_assignment", *args,
2609 **kwargs)
2610
2611 def control_switch_port(self, *args, **kwargs):
2612 return self._call_func("control_switch_port", *args, **kwargs)
2613
2614 def discovery_data_conversion(self, *args, **kwargs):
2615 return self._call_func("discovery_data_conversion", *args, **kwargs)
2616
2617 def get_device_support_info(self, *args, **kwargs):
2618 return self._call_func("get_device_support_info", *args, **kwargs)
2619
2620 def get_job_devices(self, *args, **kwargs):
2621 return self._call_func("get_job_devices", *args, **kwargs)
2622
2623 def get_job_process_details(self, *args, **kwargs):
2624 return self._call_func("get_job_process_details", *args, **kwargs)
2625
2626 def import_device_support_bundle(self, *args, **kwargs):
2627 return self._call_func("import_device_support_bundle", *args, **kwargs)
2628
2629 def modify_sdn_assignment(self, *args, **kwargs):
2630 return self._call_func("modify_sdn_assignment", *args, **kwargs)
2631
2632 def modify_vrf_assignment(self, *args, **kwargs):
2633 return self._call_func("modify_vrf_assignment", *args, **kwargs)
2634
2635 def provision_network_dhcp_relay(self, *args, **kwargs):
2636 return self._call_func("provision_network_dhcp_relay", *args, **kwargs)
2637
2638 def provision_network_port(self, *args, **kwargs):
2639 return self._call_func("provision_network_port", *args, **kwargs)
2640
2641
2642 class DiscoveryCredentialgroup(InfobloxObject):
2643 """ DiscoveryCredentialgroup: The Credential group object.
2644 Corresponds to WAPI object 'discovery:credentialgroup'
2645
2646 This object provides information about the Credential group.
2647
2648 Attributes:
2649 name: The name of the Credential group.
2650 """
2651 _infoblox_type = 'discovery:credentialgroup'
2652 _fields = ['name']
2653 _search_for_update_fields = []
2654 _updateable_search_fields = []
2655 _all_searchable_fields = []
2656 _return_fields = ['name']
2657 _remap = {}
2658 _shadow_fields = ['_ref']
2659
2660
2661 class DiscoveryDevice(InfobloxObject):
2662 """ DiscoveryDevice: Discovery Device object.
2663 Corresponds to WAPI object 'discovery:device'
2664
2665 The devices discovered by Network Automation
2666
2667 Attributes:
2668 address: The IPv4 Address or IPv6 Address of the device.
2669 address_ref: The ref to management IP address of the device.
2670 available_mgmt_ips: The list of available management IPs for the
2671 device.
2672 cap_admin_status_ind: Determines whether to modify the admin
2673 status of an interface of the device.
2674 cap_admin_status_na_reason: The reason that the edit admin
2675 status action is not available.
2676 cap_description_ind: Determines whether to modify the
2677 description of an interface on the device.
2678 cap_description_na_reason: The reason that the edit description
2679 action is not available.
2680 cap_net_deprovisioning_ind: Determines whether to deprovision a
2681 network from interfaces of the device.
2682 cap_net_deprovisioning_na_reason: The reason that the
2683 deprovision a network from interfaces of this device is not
2684 available.
2685 cap_net_provisioning_ind: Determines whether to modify the
2686 network associated to an interface of the device.
2687 cap_net_provisioning_na_reason: The reason that network
2688 provisioning is not available.
2689 cap_net_vlan_provisioning_ind: Determines whether to create a
2690 VLAN and then provision a network to the interface of the
2691 device.
2692 cap_net_vlan_provisioning_na_reason: The reason that network
2693 provisioning on VLAN is not available.
2694 cap_vlan_assignment_ind: Determines whether to modify the VLAN
2695 assignement of an interface of the device.
2696 cap_vlan_assignment_na_reason: The reason that VLAN assignment
2697 action is not available.
2698 cap_voice_vlan_ind: Determines whether to modify the voice VLAN
2699 assignment of an interface of the device.
2700 cap_voice_vlan_na_reason: The reason that voice VLAN assignment
2701 action is not available.
2702 chassis_serial_number: The device chassis serial number.
2703 description: The description of the device.
2704 extattrs: Extensible attributes associated with the object.For
2705 valid values for extensible attributes, see the following
2706 information.
2707 interfaces: List of the device interfaces.
2708 location: The location of the device.
2709 model: The model name of the device.
2710 ms_ad_user_data: The Microsoft Active Directory user related
2711 information.
2712 name: The name of the device.
2713 neighbors: List of the device neighbors.
2714 network: The ref to the network to which belongs the management
2715 IP address belongs.
2716 network_infos: The list of networks to which the device
2717 interfaces belong.
2718 network_view: The name of the network view in which this device
2719 resides.
2720 networks: The list of networks to which the device interfaces
2721 belong.
2722 os_version: The Operating System version running on the device.
2723 port_stats: The port statistics of the device.
2724 privileged_polling: A flag indicated that NI should send enable
2725 command when interacting with device.
2726 type: The type of the device.
2727 user_defined_mgmt_ip: User-defined management IP address of the
2728 device.
2729 vendor: The vendor name of the device.
2730 vlan_infos: The list of VLAN information associated with the
2731 device.
2732 """
2733 _infoblox_type = 'discovery:device'
2734 _fields = ['address', 'address_ref', 'available_mgmt_ips',
2735 'cap_admin_status_ind', 'cap_admin_status_na_reason',
2736 'cap_description_ind', 'cap_description_na_reason',
2737 'cap_net_deprovisioning_ind',
2738 'cap_net_deprovisioning_na_reason', 'cap_net_provisioning_ind',
2739 'cap_net_provisioning_na_reason',
2740 'cap_net_vlan_provisioning_ind',
2741 'cap_net_vlan_provisioning_na_reason',
2742 'cap_vlan_assignment_ind', 'cap_vlan_assignment_na_reason',
2743 'cap_voice_vlan_ind', 'cap_voice_vlan_na_reason',
2744 'chassis_serial_number', 'description', 'extattrs',
2745 'interfaces', 'location', 'model', 'ms_ad_user_data', 'name',
2746 'neighbors', 'network', 'network_infos', 'network_view',
2747 'networks', 'os_version', 'port_stats', 'privileged_polling',
2748 'type', 'user_defined_mgmt_ip', 'vendor', 'vlan_infos']
2749 _search_for_update_fields = ['address', 'name', 'network_view']
2750 _updateable_search_fields = []
2751 _all_searchable_fields = ['address', 'chassis_serial_number', 'location',
2752 'model', 'name', 'network_view', 'os_version',
2753 'type', 'vendor']
2754 _return_fields = ['address', 'extattrs', 'name', 'network_view']
2755 _remap = {}
2756 _shadow_fields = ['_ref']
2757
2758 _custom_field_processing = {
2759 'network_infos': DiscoveryNetworkinfo.from_dict,
2760 'vlan_infos': DiscoveryVlaninfo.from_dict,
2761 }
2762
2763
2764 class DiscoveryDevicecomponent(InfobloxObject):
2765 """ DiscoveryDevicecomponent: Device Component object.
2766 Corresponds to WAPI object 'discovery:devicecomponent'
2767
2768 The device components discovered by Network Automation.
2769
2770 Attributes:
2771 component_name: The component name.
2772 description: The description of the device component.
2773 device: A reference to a device, to which this component belongs
2774 to.
2775 model: The model of the device component.
2776 serial: The serial number of the device component.
2777 type: The type of device component.
2778 """
2779 _infoblox_type = 'discovery:devicecomponent'
2780 _fields = ['component_name', 'description', 'device', 'model', 'serial',
2781 'type']
2782 _search_for_update_fields = []
2783 _updateable_search_fields = []
2784 _all_searchable_fields = ['device']
2785 _return_fields = ['component_name', 'description', 'model', 'serial',
2786 'type']
2787 _remap = {}
2788 _shadow_fields = ['_ref']
2789
2790
2791 class DiscoveryDeviceinterface(InfobloxObject):
2792 """ DiscoveryDeviceinterface: Device Interface object.
2793 Corresponds to WAPI object 'discovery:deviceinterface'
2794
2795 Interfaces on devices discovered by Network Automation
2796
2797 Attributes:
2798 admin_status: Administrative state of the interface.
2799 admin_status_task_info: The configured admin status task info of
2800 the interface.
2801 aggr_interface_name: Name of the port channel current interface
2802 belongs to.
2803 cap_if_admin_status_ind: Determines whether to modify the admin
2804 status of the interface.
2805 cap_if_admin_status_na_reason: The reason that the edit admin
2806 status action is not available.
2807 cap_if_description_ind: Determines whether to modify the
2808 description of the interface.
2809 cap_if_description_na_reason: The reason that the edit
2810 description action is not available.
2811 cap_if_net_deprovisioning_ipv4_ind: Determines whether to
2812 deprovision a IPv4 network from the interfaces.
2813 cap_if_net_deprovisioning_ipv4_na_reason: The reason that the
2814 deprovision a IPv4 network from the interface.
2815 cap_if_net_deprovisioning_ipv6_ind: Determines whether to
2816 deprovision a IPv6 network from the interfaces.
2817 cap_if_net_deprovisioning_ipv6_na_reason: The reason that the
2818 deprovision a IPv6 network from the interface.
2819 cap_if_net_provisioning_ipv4_ind: Determines whether to modify
2820 the IPv4 network associated to the interface.
2821 cap_if_net_provisioning_ipv4_na_reason: The reason that IPv4
2822 network provisioning is not available.
2823 cap_if_net_provisioning_ipv6_ind: Determines whether to modify
2824 the IPv6 network associated to the interface.
2825 cap_if_net_provisioning_ipv6_na_reason: The reason that IPv6
2826 network provisioning is not available.
2827 cap_if_vlan_assignment_ind: Determines whether to modify the
2828 VLAN assignement of the interface.
2829 cap_if_vlan_assignment_na_reason: The reason that VLAN
2830 assignment action is not available.
2831 cap_if_voice_vlan_ind: Determines whether to modify the voice
2832 VLAN assignement of the interface.
2833 cap_if_voice_vlan_na_reason: The reason that voice VLAN
2834 assignment action is not available.
2835 description: The description of the interface.
2836 description_task_info: The configured description task info of
2837 the interface.
2838 device: The ref to the device to which the interface belongs.
2839 duplex: The duplex state of the interface.
2840 extattrs: Extensible attributes associated with the object.For
2841 valid values for extensible attributes, see the following
2842 information.
2843 ifaddr_infos: List of IFaddr information associated with the
2844 interface.
2845 index: The interface index number, as reported by SNMP.
2846 last_change: Timestamp of the last interface property change
2847 detected.
2848 link_aggregation: This field indicates if this is a link
2849 aggregation interface.
2850 mac: The MAC address of the interface.
2851 ms_ad_user_data: The Microsoft Active Directory user related
2852 information.
2853 name: The interface system name.
2854 network_view: Th name of the network view.
2855 oper_status: Operating state of the interface.
2856 port_fast: The Port Fast status of the interface.
2857 reserved_object: The reference to
2858 object(Host/FixedAddress/GridMember) to which this port is
2859 reserved.
2860 speed: The interface speed in bps.
2861 trunk_status: Indicates if the interface is tagged as a VLAN
2862 trunk or not.
2863 type: The type of interface.
2864 vlan_info_task_info: The configured VLAN status task info of the
2865 interface.
2866 vlan_infos: The list of VLAN information associated with the
2867 interface.
2868 vpc_peer: Aggregated interface name of vPC peer device current
2869 port is connected to.
2870 vpc_peer_device: The reference to vPC peer device.
2871 vrf_description: The description of the Virtual Routing and
2872 Forwarding (VRF) associated with the interface.
2873 vrf_name: The name of the Virtual Routing and Forwarding (VRF)
2874 associated with the interface.
2875 vrf_rd: The route distinguisher of the Virtual Routing and
2876 Forwarding (VRF) associated with the interface.
2877 """
2878 _infoblox_type = 'discovery:deviceinterface'
2879 _fields = ['admin_status', 'admin_status_task_info', 'aggr_interface_name',
2880 'cap_if_admin_status_ind', 'cap_if_admin_status_na_reason',
2881 'cap_if_description_ind', 'cap_if_description_na_reason',
2882 'cap_if_net_deprovisioning_ipv4_ind',
2883 'cap_if_net_deprovisioning_ipv4_na_reason',
2884 'cap_if_net_deprovisioning_ipv6_ind',
2885 'cap_if_net_deprovisioning_ipv6_na_reason',
2886 'cap_if_net_provisioning_ipv4_ind',
2887 'cap_if_net_provisioning_ipv4_na_reason',
2888 'cap_if_net_provisioning_ipv6_ind',
2889 'cap_if_net_provisioning_ipv6_na_reason',
2890 'cap_if_vlan_assignment_ind',
2891 'cap_if_vlan_assignment_na_reason', 'cap_if_voice_vlan_ind',
2892 'cap_if_voice_vlan_na_reason', 'description',
2893 'description_task_info', 'device', 'duplex', 'extattrs',
2894 'ifaddr_infos', 'index', 'last_change', 'link_aggregation',
2895 'mac', 'ms_ad_user_data', 'name', 'network_view', 'oper_status',
2896 'port_fast', 'reserved_object', 'speed', 'trunk_status', 'type',
2897 'vlan_info_task_info', 'vlan_infos', 'vpc_peer',
2898 'vpc_peer_device', 'vrf_description', 'vrf_name', 'vrf_rd']
2899 _search_for_update_fields = ['name', 'type']
2900 _updateable_search_fields = []
2901 _all_searchable_fields = ['aggr_interface_name', 'description', 'mac',
2902 'name', 'network_view', 'oper_status', 'speed',
2903 'type', 'vpc_peer', 'vrf_description',
2904 'vrf_name', 'vrf_rd']
2905 _return_fields = ['extattrs', 'name', 'type']
2906 _remap = {}
2907 _shadow_fields = ['_ref']
2908
2909 _custom_field_processing = {
2910 'ifaddr_infos': DiscoveryIfaddrinfo.from_dict,
2911 'vlan_infos': DiscoveryVlaninfo.from_dict,
2912 }
2913
2914
2915 class DiscoveryDeviceneighbor(InfobloxObject):
2916 """ DiscoveryDeviceneighbor: Device Neighbor object.
2917 Corresponds to WAPI object 'discovery:deviceneighbor'
2918
2919 The neighbor associated with the device discovered by Network
2920 Automation.
2921
2922 Attributes:
2923 address: The IPv4 Address or IPv6 Address of the device
2924 neighbor.
2925 address_ref: The ref to the management IP address of the device
2926 neighbor.
2927 device: The ref to the device to which the device neighbor
2928 belongs.
2929 interface: The ref to the interface to which the device neighbor
2930 belongs.
2931 mac: The MAC address of the device neighbor.
2932 name: The name of the device neighbor.
2933 vlan_infos: The list of VLAN information associated with the
2934 device neighbor.
2935 """
2936 _infoblox_type = 'discovery:deviceneighbor'
2937 _fields = ['address', 'address_ref', 'device', 'interface', 'mac', 'name',
2938 'vlan_infos']
2939 _search_for_update_fields = []
2940 _updateable_search_fields = []
2941 _all_searchable_fields = ['device']
2942 _return_fields = ['address', 'address_ref', 'mac', 'name']
2943 _remap = {}
2944 _shadow_fields = ['_ref']
2945
2946 _custom_field_processing = {
2947 'vlan_infos': DiscoveryVlaninfo.from_dict,
2948 }
2949
2950
2951 class DiscoveryDevicesupportbundle(InfobloxObject):
2952 """ DiscoveryDevicesupportbundle: Device support bundle object.
2953 Corresponds to WAPI object 'discovery:devicesupportbundle'
2954
2955 Infoblox frequently provides support files for additional network
2956 devices that may not have previously been supported by discovery,
2957 and updates to support new operating system versions of existing
2958 devices.
2959
2960 The device support bundle represents the entity for displaying and
2961 managing device support files.
2962
2963 Attributes:
2964 author: The developer of the device support bundle.
2965 integrated_ind: Determines whether the device support bundle is
2966 integrated or imported. Note that integrated support bundles
2967 cannot be removed.
2968 name: The descriptive device name for the device support bundle.
2969 version: The version of the currently active device support
2970 bundle.
2971 """
2972 _infoblox_type = 'discovery:devicesupportbundle'
2973 _fields = ['author', 'integrated_ind', 'name', 'version']
2974 _search_for_update_fields = ['name']
2975 _updateable_search_fields = []
2976 _all_searchable_fields = ['name']
2977 _return_fields = ['author', 'integrated_ind', 'name', 'version']
2978 _remap = {}
2979 _shadow_fields = ['_ref']
2980
2981
2982 class DiscoveryDiagnostictask(InfobloxObject):
2983 """ DiscoveryDiagnostictask: The discovery diagnostic task object.
2984 Corresponds to WAPI object 'discovery:diagnostictask'
2985
2986 The object provides information about the discovery diagnostic task.
2987
2988 Attributes:
2989 community_string: The SNMP community string of the discovery
2990 diagnostic task.
2991 debug_snmp: The SNMP debug flag of the discovery diagnostic
2992 task.
2993 force_test: The force test flag of the discovery diagnostic
2994 task.
2995 ip_address: The IP address of the discovery diagnostic task.
2996 network_view: The network view name of the discovery diagnostic
2997 task.
2998 start_time: The time when the discovery diagnostic task was
2999 started.
3000 task_id: The ID of the discovery diagnostic task.
3001 """
3002 _infoblox_type = 'discovery:diagnostictask'
3003 _fields = ['community_string', 'debug_snmp', 'force_test', 'ip_address',
3004 'network_view', 'start_time', 'task_id']
3005 _search_for_update_fields = ['ip_address', 'network_view', 'task_id']
3006 _updateable_search_fields = ['ip_address', 'network_view', 'task_id']
3007 _all_searchable_fields = ['ip_address', 'network_view', 'task_id']
3008 _return_fields = ['ip_address', 'network_view', 'task_id']
3009 _remap = {}
3010 _shadow_fields = ['_ref']
3011
3012
3013 class DiscoveryGridproperties(InfobloxObject):
3014 """ DiscoveryGridproperties: The Grid discovery properties object.
3015 Corresponds to WAPI object 'discovery:gridproperties'
3016
3017 The object provides information about the Grid discovery properties.
3018
3019 Attributes:
3020 advanced_polling_settings: Discovery advanced polling settings.
3021 advanced_sdn_polling_settings: Discovery advanced polling
3022 settings.
3023 advisor_settings: Advisor settings.
3024 auto_conversion_settings: Automatic conversion settings.
3025 basic_polling_settings: Discovery basic polling settings.
3026 basic_sdn_polling_settings: Discovery basic polling settings.
3027 cli_credentials: Discovery CLI credentials.
3028 discovery_blackout_setting: Discovery blackout setting.
3029 dns_lookup_option: The type of the devices the DNS processor
3030 operates on.
3031 dns_lookup_throttle: The percentage of available capacity the
3032 DNS processor operates at.Valid values are unsigned integer
3033 between 1 and 100, inclusive.
3034 enable_advisor: Advisor application enabled/disabled.
3035 enable_auto_conversion: The flag that enables automatic
3036 conversion of discovered data.
3037 enable_auto_updates: The flag that enables updating discovered
3038 data for managed objects.
3039 grid_name: The Grid name.
3040 ignore_conflict_duration: Determines the timeout to ignore the
3041 discovery conflict duration (in seconds).
3042 port_control_blackout_setting: Port control blackout setting.
3043 ports: Ports to scan.
3044 same_port_control_discovery_blackout: Determines if the same
3045 port control is used for discovery blackout.
3046 snmpv1v2_credentials: Discovery SNMP v1 and v2 credentials.
3047 snmpv3_credentials: Discovery SNMP v3 credentials.
3048 unmanaged_ips_limit: Limit of discovered unmanaged IP address
3049 which determines how frequently the user is notified about
3050 the new unmanaged IP address in a particular network.
3051 unmanaged_ips_timeout: Determines the timeout between two
3052 notifications (in seconds) about the new unmanaged IP
3053 address in a particular network. The value must be between
3054 60 seconds and the number of seconds remaining to Jan 2038.
3055 vrf_mapping_policy: The policy type used to define the behavior
3056 of the VRF mapping.
3057 vrf_mapping_rules: VRF mapping rules.
3058 """
3059 _infoblox_type = 'discovery:gridproperties'
3060 _fields = ['advanced_polling_settings', 'advanced_sdn_polling_settings',
3061 'advisor_settings', 'auto_conversion_settings',
3062 'basic_polling_settings', 'basic_sdn_polling_settings',
3063 'cli_credentials', 'discovery_blackout_setting',
3064 'dns_lookup_option', 'dns_lookup_throttle', 'enable_advisor',
3065 'enable_auto_conversion', 'enable_auto_updates', 'grid_name',
3066 'ignore_conflict_duration', 'port_control_blackout_setting',
3067 'ports', 'same_port_control_discovery_blackout',
3068 'snmpv1v2_credentials', 'snmpv3_credentials',
3069 'unmanaged_ips_limit', 'unmanaged_ips_timeout',
3070 'vrf_mapping_policy', 'vrf_mapping_rules']
3071 _search_for_update_fields = []
3072 _updateable_search_fields = []
3073 _all_searchable_fields = []
3074 _return_fields = ['grid_name']
3075 _remap = {}
3076 _shadow_fields = ['_ref']
3077
3078 _custom_field_processing = {
3079 'auto_conversion_settings': DiscoveryAutoconversionsetting.from_dict,
3080 'cli_credentials': DiscoveryClicredential.from_dict,
3081 'ports': DiscoveryPort.from_dict,
3082 'snmpv1v2_credentials': DiscoverySnmpcredential.from_dict,
3083 'snmpv3_credentials': DiscoverySnmp3Credential.from_dict,
3084 'vrf_mapping_rules': DiscoveryVrfmappingrule.from_dict,
3085 }
3086
3087 def advisor_run_now(self, *args, **kwargs):
3088 return self._call_func("advisor_run_now", *args, **kwargs)
3089
3090 def advisor_test_connection(self, *args, **kwargs):
3091 return self._call_func("advisor_test_connection", *args, **kwargs)
3092
3093 def diagnostic(self, *args, **kwargs):
3094 return self._call_func("diagnostic", *args, **kwargs)
3095
3096 def diagnostic_status(self, *args, **kwargs):
3097 return self._call_func("diagnostic_status", *args, **kwargs)
3098
3099
3100 class DiscoveryMemberproperties(InfobloxObject):
3101 """ DiscoveryMemberproperties: The Grid discovery member properties
3102 object.
3103 Corresponds to WAPI object 'discovery:memberproperties'
3104
3105 The object provides information about the Grid member discovery
3106 properties.
3107
3108 Attributes:
3109 address: The Grid member address IP address.
3110 cli_credentials: Discovery CLI credentials.
3111 default_seed_routers: Default seed routers.
3112 discovery_member: The name of the network discovery Grid member.
3113 enable_service: Determines if the discovery service is enabled.
3114 gateway_seed_routers: Gateway seed routers.
3115 is_sa: Determines if the standalone mode for discovery network
3116 monitor is enabled or not.
3117 role: Discovery member role.
3118 scan_interfaces: Discovery networks to which the member is
3119 assigned.
3120 sdn_configs: List of SDN/SDWAN controller configurations.
3121 seed_routers: Seed routers.
3122 snmpv1v2_credentials: Discovery SNMP v1 and v2 credentials.
3123 snmpv3_credentials: Discovery SNMP v3 credentials.
3124 use_cli_credentials: Use flag for: cli_credentials
3125 use_snmpv1v2_credentials: Use flag for: snmpv1v2_credentials
3126 use_snmpv3_credentials: Use flag for: snmpv3_credentials
3127 """
3128 _infoblox_type = 'discovery:memberproperties'
3129 _fields = ['address', 'cli_credentials', 'default_seed_routers',
3130 'discovery_member', 'enable_service', 'gateway_seed_routers',
3131 'is_sa', 'role', 'scan_interfaces', 'sdn_configs',
3132 'seed_routers', 'snmpv1v2_credentials', 'snmpv3_credentials',
3133 'use_cli_credentials', 'use_snmpv1v2_credentials',
3134 'use_snmpv3_credentials']
3135 _search_for_update_fields = ['discovery_member']
3136 _updateable_search_fields = ['enable_service', 'is_sa', 'role']
3137 _all_searchable_fields = ['discovery_member', 'enable_service', 'is_sa',
3138 'role']
3139 _return_fields = ['discovery_member']
3140 _remap = {}
3141 _shadow_fields = ['_ref']
3142
3143 _custom_field_processing = {
3144 'cli_credentials': DiscoveryClicredential.from_dict,
3145 'default_seed_routers': DiscoverySeedrouter.from_dict,
3146 'gateway_seed_routers': DiscoverySeedrouter.from_dict,
3147 'scan_interfaces': DiscoveryScaninterface.from_dict,
3148 'sdn_configs': DiscoverySdnconfig.from_dict,
3149 'seed_routers': DiscoverySeedrouter.from_dict,
3150 'snmpv1v2_credentials': DiscoverySnmpcredential.from_dict,
3151 'snmpv3_credentials': DiscoverySnmp3Credential.from_dict,
3152 }
3153
3154
3155 class DiscoverySdnnetwork(InfobloxObject):
3156 """ DiscoverySdnnetwork: The SDN network object.
3157 Corresponds to WAPI object 'discovery:sdnnetwork'
3158
3159 This object provides information about the SDN networks. They are
3160 the elements of address space hierarchy discovered on SDN/SDWAN
3161 controllers
3162
3163 Attributes:
3164 first_seen: Timestamp when this SDN network was first
3165 discovered.
3166 name: The name of the SDN network.
3167 network_view: The name of the network view assigned to this SDN
3168 network.
3169 source_sdn_config: Name of SDN configuration this network
3170 belongs to.
3171 """
3172 _infoblox_type = 'discovery:sdnnetwork'
3173 _fields = ['first_seen', 'name', 'network_view', 'source_sdn_config']
3174 _search_for_update_fields = ['name', 'network_view', 'source_sdn_config']
3175 _updateable_search_fields = []
3176 _all_searchable_fields = ['name', 'network_view', 'source_sdn_config']
3177 _return_fields = ['name', 'network_view', 'source_sdn_config']
3178 _remap = {}
3179 _shadow_fields = ['_ref']
3180
3181
3182 class DiscoveryStatus(InfobloxObject):
3183 """ DiscoveryStatus: Discovery Status object.
3184 Corresponds to WAPI object 'discovery:status'
3185
3186 The discovery status of discovered data
3187
3188 Attributes:
3189 address: The IPv4 Address or IPv6 Address of the device.
3190 cli_collection_enabled: Indicates if CLI collection is enabled.
3191 cli_credential_info: The CLI credential status information of
3192 the device.
3193 existence_info: The existence status information of the device.
3194 fingerprint_enabled: Indicates if DHCP finterprinting is
3195 enabled.
3196 fingerprint_info: This DHCP finterprinting status information of
3197 the device.
3198 first_seen: The timestamp when the device was first discovered.
3199 last_action: The timestamp of the last detected interface
3200 property change.
3201 last_seen: The timestamp when the device was last discovered.
3202 last_timestamp: The timestamp of the last executed action for
3203 the device.
3204 name: The name of the device.
3205 network_view: The name of the network view in which this device
3206 resides.
3207 reachable_info: The reachable status information of the device.
3208 sdn_collection_enabled: Indicate whether SDN collection enabled
3209 for the device.
3210 sdn_collection_info: Device SDN collection status information.
3211 snmp_collection_enabled: Indicates if SNMP collection is
3212 enabled.
3213 snmp_collection_info: The SNMP collection status information of
3214 the device.
3215 snmp_credential_info: The SNMP credential status information of
3216 the device.
3217 status: The overall status of the device.
3218 type: The type of device.
3219 """
3220 _infoblox_type = 'discovery:status'
3221 _fields = ['address', 'cli_collection_enabled', 'cli_credential_info',
3222 'existence_info', 'fingerprint_enabled', 'fingerprint_info',
3223 'first_seen', 'last_action', 'last_seen', 'last_timestamp',
3224 'name', 'network_view', 'reachable_info',
3225 'sdn_collection_enabled', 'sdn_collection_info',
3226 'snmp_collection_enabled', 'snmp_collection_info',
3227 'snmp_credential_info', 'status', 'type']
3228 _search_for_update_fields = ['address', 'name', 'network_view']
3229 _updateable_search_fields = []
3230 _all_searchable_fields = ['address', 'name', 'network_view']
3231 _return_fields = ['address', 'name', 'network_view', 'status']
3232 _remap = {}
3233 _shadow_fields = ['_ref']
3234
3235
3236 class DiscoveryVrf(InfobloxObject):
3237 """ DiscoveryVrf: The VRF object.
3238 Corresponds to WAPI object 'discovery:vrf'
3239
3240 This object provides information about the virtual network
3241 membership (VRF).
3242
3243 Attributes:
3244 description: Additional information about the VRF.
3245 device: The device to which the VRF belongs.
3246 name: The name of the VRF.
3247 network_view: The name of the network view in which this VRF
3248 resides.
3249 route_distinguisher: The route distinguisher associated with the
3250 VRF.
3251 """
3252 _infoblox_type = 'discovery:vrf'
3253 _fields = ['description', 'device', 'name', 'network_view',
3254 'route_distinguisher']
3255 _search_for_update_fields = ['name', 'network_view']
3256 _updateable_search_fields = []
3257 _all_searchable_fields = ['name', 'network_view']
3258 _return_fields = ['device', 'name', 'network_view', 'route_distinguisher']
3259 _remap = {}
3260 _shadow_fields = ['_ref']
3261
3262
3263 class Discoverytask(InfobloxObject):
3264 """ Discoverytask: The discovery task object.
3265 Corresponds to WAPI object 'discoverytask'
3266
3267 Represents the configuration of network discovery jobs.
3268 Configuration parameters have control over the behavior of network
3269 discovery jobs.
3270
3271 Attributes:
3272 csv_file_name: The network discovery CSV file name.
3273 disable_ip_scanning: Determines whether IP scanning is disabled.
3274 disable_vmware_scanning: Determines whether VMWare scanning is
3275 disabled.
3276 discovery_task_oid: The discovery task identifier.
3277 member_name: The Grid member that runs the discovery.
3278 merge_data: Determines whether to replace or merge new data with
3279 existing data.
3280 mode: Network discovery scanning mode.
3281 network_view: Name of the network view in which target networks
3282 for network discovery reside.
3283 networks: The list of the networks on which the network
3284 discovery will be invoked.
3285 ping_retries: The number of times to perfrom ping for ICMP and
3286 FULL modes.
3287 ping_timeout: The ping timeout for ICMP and FULL modes.
3288 scheduled_run: The schedule setting for network discovery task.
3289 state: The network discovery process state.
3290 state_time: Time when the network discovery process state was
3291 last updated.
3292 status: The network discovery process descriptive status.
3293 status_time: The time when the network discovery process status
3294 was last updated.
3295 tcp_ports: The ports to scan for FULL and TCP modes.
3296 tcp_scan_technique: The TCP scan techinque for FULL and TCP
3297 modes.
3298 v_network_view: Name of the network view in which target
3299 networks for VMWare scanning reside.
3300 vservers: The list of VMware vSphere servers for VM discovery.
3301 warning: The network discovery process warning.
3302 """
3303 _infoblox_type = 'discoverytask'
3304 _fields = ['csv_file_name', 'disable_ip_scanning',
3305 'disable_vmware_scanning', 'discovery_task_oid', 'member_name',
3306 'merge_data', 'mode', 'network_view', 'networks',
3307 'ping_retries', 'ping_timeout', 'scheduled_run', 'state',
3308 'state_time', 'status', 'status_time', 'tcp_ports',
3309 'tcp_scan_technique', 'v_network_view', 'vservers', 'warning']
3310 _search_for_update_fields = ['discovery_task_oid']
3311 _updateable_search_fields = []
3312 _all_searchable_fields = ['discovery_task_oid']
3313 _return_fields = ['discovery_task_oid', 'member_name']
3314 _remap = {}
3315 _shadow_fields = ['_ref']
3316
3317 _custom_field_processing = {
3318 'tcp_ports': Discoverytaskport.from_dict,
3319 'vservers': Discoverytaskvserver.from_dict,
3320 }
3321
3322 def network_discovery_control(self, *args, **kwargs):
3323 return self._call_func("network_discovery_control", *args, **kwargs)
3324
3325
3326 class Distributionschedule(InfobloxObject):
3327 """ Distributionschedule: Distribution schedule object.
3328 Corresponds to WAPI object 'distributionschedule'
3329
3330 Distributing the software upgrade files involves unpacking the
3331 software files and loading the new software. When you distribute the
3332 files, the NIOS appliance loads the new software code into an
3333 alternative disk partition that overwrites any previously saved
3334 version of existing code. Therefore, starting the distribution
3335 disables the appliance from reverting to a release prior to the
3336 current version. The Grid Master distributes the software upgrade to
3337 each member in the Grid including itself.
3338
3339 When you schedule a distribution, you schedule the distribution of
3340 the Grid Master as well as the upgrade groups, including the Default
3341 group. The Grid Master distribution must always occur before the
3342 distribution of the upgrade groups.
3343
3344 The distribution schedule object provides configuration for
3345 scheduled distribution of the software, activation of the schedule,
3346 as well as date and time settings.
3347
3348 Attributes:
3349 active: Determines whether the distribution schedule is active.
3350 start_time: The start time of the distribution.
3351 time_zone: Time zone of the distribution start time.
3352 upgrade_groups: The upgrade groups scheduling settings.
3353 """
3354 _infoblox_type = 'distributionschedule'
3355 _fields = ['active', 'start_time', 'time_zone', 'upgrade_groups']
3356 _search_for_update_fields = []
3357 _updateable_search_fields = []
3358 _all_searchable_fields = []
3359 _return_fields = ['active', 'start_time', 'time_zone']
3360 _remap = {}
3361 _shadow_fields = ['_ref']
3362
3363 _custom_field_processing = {
3364 'upgrade_groups': UpgradegroupSchedule.from_dict,
3365 }
3366
3367
3368 class Dns64Group(InfobloxObject):
3369 """ Dns64Group: DNS64 synthesis group object.
3370 Corresponds to WAPI object 'dns64group'
3371
3372 To support the increasing number of IPv6 and dual-stack networks,
3373 Infoblox DNS servers now support DNS64, a mechanism that synthesizes
3374 AAAA records from A records when no AAAA records exist.
3375
3376 The DNS64 synthesis group specifies the IPv6 prefix for the
3377 synthesized AAAA records. The Infoblox DNS server provides a default
3378 DNS64 synthesis group with the well-known prefix 64:ff9b::/96 which
3379 is reserved for representing IPv4 addresses in the IPv6 address
3380 space.
3381
3382 Attributes:
3383 clients: Access Control settings that contain IPv4 and IPv6 DNS
3384 clients and networks to which the DNS server is allowed to
3385 send synthesized AAAA records with the specified IPv6
3386 prefix.
3387 comment: The descriptive comment for the DNS64 synthesis group
3388 object.
3389 disable: Determines whether the DNS64 synthesis group is
3390 disabled.
3391 enable_dnssec_dns64: Determines whether the DNS64 synthesis of
3392 AAAA records is enabled for DNS64 synthesis groups that
3393 request DNSSEC data.
3394 exclude: Access Control settings that contain IPv6 addresses or
3395 prefix ranges that cannot be used by IPv6-only hosts, such
3396 as IP addresses in the ::ffff:0:0/96 network. When DNS
3397 server retrieves an AAAA record that contains an IPv6
3398 address that matches an excluded address, it does not return
3399 the AAAA record. Instead it synthesizes an AAAA record from
3400 the A record.
3401 extattrs: Extensible attributes associated with the object.For
3402 valid values for extensible attributes, see the following
3403 information.
3404 mapped: Access Control settings that contain IPv4 addresses and
3405 networks for which the DNS server can synthesize AAAA
3406 records with the specified prefix.
3407 name: The name of the DNS64 synthesis group object.
3408 prefix: The IPv6 prefix used for the synthesized AAAA records.
3409 The prefix length must be /32, /40, /48, /56, /64 or /96,
3410 and all bits beyond the specified length must be zero.
3411 """
3412 _infoblox_type = 'dns64group'
3413 _fields = ['clients', 'comment', 'disable', 'enable_dnssec_dns64',
3414 'exclude', 'extattrs', 'mapped', 'name', 'prefix']
3415 _search_for_update_fields = ['name']
3416 _updateable_search_fields = ['comment', 'name', 'prefix']
3417 _all_searchable_fields = ['comment', 'name', 'prefix']
3418 _return_fields = ['comment', 'disable', 'extattrs', 'name']
3419 _remap = {}
3420 _shadow_fields = ['_ref']
3421
3422 _custom_field_processing = {
3423 'clients': Addressac.from_dict,
3424 'exclude': Addressac.from_dict,
3425 'mapped': Addressac.from_dict,
3426 }
3427
3428
3429 class Dtc(InfobloxObject):
3430 """ Dtc: DTC object.
3431 Corresponds to WAPI object 'dtc'
3432
3433 This object can be used to control the DTC functionality of the
3434 appliance.
3435
3436 Attributes:
3437 """
3438 _infoblox_type = 'dtc'
3439 _fields = []
3440 _search_for_update_fields = []
3441 _updateable_search_fields = []
3442 _all_searchable_fields = []
3443 _return_fields = []
3444 _remap = {}
3445 _shadow_fields = ['_ref']
3446
3447 def add_certificate(self, *args, **kwargs):
3448 return self._call_func("add_certificate", *args, **kwargs)
3449
3450 def generate_ea_topology_db(self, *args, **kwargs):
3451 return self._call_func("generate_ea_topology_db", *args, **kwargs)
3452
3453 def import_maxminddb(self, *args, **kwargs):
3454 return self._call_func("import_maxminddb", *args, **kwargs)
3455
3456 def query(self, *args, **kwargs):
3457 return self._call_func("query", *args, **kwargs)
3458
3459
3460 class DtcAllrecords(InfobloxObject):
3461 """ DtcAllrecords: DTC AllRecords object.
3462 Corresponds to WAPI object 'dtc:allrecords'
3463
3464 The DTC AllRecords object is a read-only synthetic object used to
3465 retrieve records that belong to a particular DTC server.
3466
3467 Since this is a synthetic object, it is read-only by specifying
3468 search parameters, not by specifying a reference.
3469
3470 Attributes:
3471 comment: The record comment.
3472 disable: The disable value determines if the record is disabled
3473 or not. "False" means the record is enabled.
3474 dtc_server: The name of the DTC Server object with which the
3475 record is associated.
3476 record: The record object, if supported by the WAPI. Otherwise,
3477 the value is "None".
3478 ttl: The TTL value of the record associated with the DTC
3479 AllRecords object.
3480 type: The record type. When searching for an unspecified record
3481 type, the search is performed for all records. On retrieval,
3482 the appliance returns "UNSUPPORTED" for unsupported records.
3483 """
3484 _infoblox_type = 'dtc:allrecords'
3485 _fields = ['comment', 'disable', 'dtc_server', 'record', 'ttl', 'type']
3486 _search_for_update_fields = ['dtc_server', 'type']
3487 _updateable_search_fields = []
3488 _all_searchable_fields = ['comment', 'dtc_server', 'type']
3489 _return_fields = ['comment', 'dtc_server', 'type']
3490 _remap = {}
3491 _shadow_fields = ['_ref']
3492
3493
3494 class DtcCertificate(InfobloxObject):
3495 """ DtcCertificate: DTC Certificate object.
3496 Corresponds to WAPI object 'dtc:certificate'
3497
3498 These are DTC health monitor certificates.
3499
3500 Attributes:
3501 certificate: Reference to underlying X509Certificate.
3502 in_use: Determines whether the certificate is in use or not.
3503 """
3504 _infoblox_type = 'dtc:certificate'
3505 _fields = ['certificate', 'in_use']
3506 _search_for_update_fields = []
3507 _updateable_search_fields = []
3508 _all_searchable_fields = []
3509 _return_fields = []
3510 _remap = {}
3511 _shadow_fields = ['_ref']
3512
3513
3514 class DtcLbdn(InfobloxObject):
3515 """ DtcLbdn: DTC LBDN object.
3516 Corresponds to WAPI object 'dtc:lbdn'
3517
3518 Load Balanced Domain Name (LBDN) is a Load balanced domain name
3519 record type, which is served by Infoblox Name Servers. LBDN is a
3520 qualified domain name associated with a specific service such as
3521 ftp.abc.com or www.abc.com.
3522
3523 Attributes:
3524 auth_zones: List of linked auth zones.
3525 auto_consolidated_monitors: Flag for enabling auto managing DTC
3526 Consolidated Monitors on related DTC Pools.
3527 comment: Comment for the DTC LBDN; maximum 256 characters.
3528 disable: Determines whether the DTC LBDN is disabled or not.
3529 When this is set to False, the fixed address is enabled.
3530 extattrs: Extensible attributes associated with the object.For
3531 valid values for extensible attributes, see the following
3532 information.
3533 health: The LBDN health information.
3534 lb_method: The load balancing method. Used to select pool.
3535 name: The display name of the DTC LBDN, not DNS related.
3536 patterns: LBDN wildcards for pattern match.
3537 persistence: Maximum time, in seconds, for which client specific
3538 LBDN responses will be cached. Zero specifies no caching.
3539 pools: The maximum time, in seconds, for which client specific
3540 LBDN responses will be cached. Zero specifies no caching.
3541 priority: The LBDN pattern match priority for "overlapping" DTC
3542 LBDN objects. LBDNs are "overlapping" if they are
3543 simultaneously assigned to a zone and have patterns that can
3544 match the same FQDN. The matching LBDN with highest priority
3545 (lowest ordinal) will be used.
3546 topology: The topology rules for TOPOLOGY method.
3547 ttl: The Time To Live (TTL) value for the DTC LBDN. A 32-bit
3548 unsigned integer that represents the duration, in seconds,
3549 for which the record is valid (cached). Zero indicates that
3550 the record should not be cached.
3551 types: The list of resource record types supported by LBDN.
3552 use_ttl: Use flag for: ttl
3553 """
3554 _infoblox_type = 'dtc:lbdn'
3555 _fields = ['auth_zones', 'auto_consolidated_monitors', 'comment',
3556 'disable', 'extattrs', 'health', 'lb_method', 'name',
3557 'patterns', 'persistence', 'pools', 'priority', 'topology',
3558 'ttl', 'types', 'use_ttl']
3559 _search_for_update_fields = ['name']
3560 _updateable_search_fields = ['comment', 'name']
3561 _all_searchable_fields = ['comment', 'name']
3562 _return_fields = ['comment', 'extattrs', 'name']
3563 _remap = {}
3564 _shadow_fields = ['_ref']
3565
3566 _custom_field_processing = {
3567 'pools': DtcPoolLink.from_dict,
3568 }
3569
3570
3571 class DtcMonitor(InfobloxObject):
3572 """ DtcMonitor: DTC monitor object.
3573 Corresponds to WAPI object 'dtc:monitor'
3574
3575 The DTC Monitor object is used to determine the health of a server
3576 by evaluating the response to a health request.
3577
3578 Attributes:
3579 comment: Comment for this DTC monitor; maximum 256 characters.
3580 extattrs: Extensible attributes associated with the object.For
3581 valid values for extensible attributes, see the following
3582 information.
3583 interval: The interval for a health check.
3584 monitor: The actual monitor object.
3585 name: The display name for this DTC monitor.
3586 port: The health monitor port value.
3587 retry_down: The number of how many times the server should
3588 appear as "DOWN" to be treated as dead after it was alive.
3589 retry_up: The number of many times the server should appear as
3590 "UP" to be treated as alive after it was dead.
3591 timeout: The timeout for a health check.
3592 type: The request transport type.
3593 """
3594 _infoblox_type = 'dtc:monitor'
3595 _fields = ['comment', 'extattrs', 'interval', 'monitor', 'name', 'port',
3596 'retry_down', 'retry_up', 'timeout', 'type']
3597 _search_for_update_fields = ['name']
3598 _updateable_search_fields = ['comment', 'name']
3599 _all_searchable_fields = ['comment', 'name']
3600 _return_fields = ['comment', 'extattrs', 'name', 'type']
3601 _remap = {}
3602 _shadow_fields = ['_ref']
3603
3604
3605 class DtcMonitorHttp(InfobloxObject):
3606 """ DtcMonitorHttp: DTC HTTP monitor object.
3607 Corresponds to WAPI object 'dtc:monitor:http'
3608
3609 The DTC HTTP monitor object is used to determine the health of a
3610 HTTP service by first sending a specific http message to a server
3611 and then examining the response received from the server. The
3612 validation is successful if the received response matches the
3613 expected message.
3614
3615 Attributes:
3616 ciphers: An optional cipher list for a secure HTTP/S connection.
3617 client_cert: An optional client certificate, supplied in a
3618 secure HTTP/S mode if present.
3619 comment: Comment for this DTC monitor; maximum 256 characters.
3620 content_check: The content check type.
3621 content_check_input: A portion of response to use as input for
3622 content check.
3623 content_check_op: A content check success criteria operator.
3624 content_check_regex: A content check regular expression.
3625 content_extract_group: A content extraction sub-expression to
3626 extract.
3627 content_extract_type: A content extraction expected type for the
3628 extracted data.
3629 content_extract_value: A content extraction value to compare
3630 with extracted result.
3631 enable_sni: Determines whether the Server Name Indication (SNI)
3632 for HTTPS monitor is enabled.
3633 extattrs: Extensible attributes associated with the object.For
3634 valid values for extensible attributes, see the following
3635 information.
3636 interval: The interval for TCP health check.
3637 name: The display name for this DTC monitor.
3638 port: Port for TCP requests.
3639 request: An HTTP request to send.
3640 result: The type of an expected result.
3641 result_code: The expected return code.
3642 retry_down: The value of how many times the server should appear
3643 as down to be treated as dead after it was alive.
3644 retry_up: The value of how many times the server should appear
3645 as up to be treated as alive after it was dead.
3646 secure: The connection security status.
3647 timeout: The timeout for TCP health check in seconds.
3648 validate_cert: Determines whether the validation of the remote
3649 server's certificate is enabled.
3650 """
3651 _infoblox_type = 'dtc:monitor:http'
3652 _fields = ['ciphers', 'client_cert', 'comment', 'content_check',
3653 'content_check_input', 'content_check_op',
3654 'content_check_regex', 'content_extract_group',
3655 'content_extract_type', 'content_extract_value', 'enable_sni',
3656 'extattrs', 'interval', 'name', 'port', 'request', 'result',
3657 'result_code', 'retry_down', 'retry_up', 'secure', 'timeout',
3658 'validate_cert']
3659 _search_for_update_fields = ['name']
3660 _updateable_search_fields = ['comment', 'name']
3661 _all_searchable_fields = ['comment', 'name']
3662 _return_fields = ['comment', 'extattrs', 'name']
3663 _remap = {}
3664 _shadow_fields = ['_ref']
3665
3666
3667 class DtcMonitorIcmp(InfobloxObject):
3668 """ DtcMonitorIcmp: DTC ICMP monitor object.
3669 Corresponds to WAPI object 'dtc:monitor:icmp'
3670
3671 The DTC ICMP monitor object is used to determine the health of a
3672 server by monitoring the response to an ICMP ping.
3673
3674 Attributes:
3675 comment: Comment for this DTC monitor; maximum 256 characters.
3676 extattrs: Extensible attributes associated with the object.For
3677 valid values for extensible attributes, see the following
3678 information.
3679 interval: The interval for TCP health check.
3680 name: The display name for this DTC monitor.
3681 retry_down: The value of how many times the server should appear
3682 as down to be treated as dead after it was alive.
3683 retry_up: The value of how many times the server should appear
3684 as up to be treated as alive after it was dead.
3685 timeout: The timeout for TCP health check in seconds.
3686 """
3687 _infoblox_type = 'dtc:monitor:icmp'
3688 _fields = ['comment', 'extattrs', 'interval', 'name', 'retry_down',
3689 'retry_up', 'timeout']
3690 _search_for_update_fields = ['name']
3691 _updateable_search_fields = ['comment', 'name']
3692 _all_searchable_fields = ['comment', 'name']
3693 _return_fields = ['comment', 'extattrs', 'name']
3694 _remap = {}
3695 _shadow_fields = ['_ref']
3696
3697
3698 class DtcMonitorPdp(InfobloxObject):
3699 """ DtcMonitorPdp: DTC PDP monitor object.
3700 Corresponds to WAPI object 'dtc:monitor:pdp'
3701
3702 The DTC PDP monitor object is used to determine the health of a
3703 server by sending a PDP ECHO and considering a valid reply to mean
3704 that service is available.
3705
3706 Attributes:
3707 comment: Comment for this DTC monitor; maximum 256 characters.
3708 extattrs: Extensible attributes associated with the object.For
3709 valid values for extensible attributes, see the following
3710 information.
3711 interval: The interval for TCP health check.
3712 name: The display name for this DTC monitor.
3713 port: The port value for PDP requests.
3714 retry_down: The value of how many times the server should appear
3715 as down to be treated as dead after it was alive.
3716 retry_up: The value of how many times the server should appear
3717 as up to be treated as alive after it was dead.
3718 timeout: The timeout for TCP health check in seconds.
3719 """
3720 _infoblox_type = 'dtc:monitor:pdp'
3721 _fields = ['comment', 'extattrs', 'interval', 'name', 'port', 'retry_down',
3722 'retry_up', 'timeout']
3723 _search_for_update_fields = ['name']
3724 _updateable_search_fields = ['comment', 'name']
3725 _all_searchable_fields = ['comment', 'name']
3726 _return_fields = ['comment', 'extattrs', 'name']
3727 _remap = {}
3728 _shadow_fields = ['_ref']
3729
3730
3731 class DtcMonitorSip(InfobloxObject):
3732 """ DtcMonitorSip: DTC SIP monitor object.
3733 Corresponds to WAPI object 'dtc:monitor:sip'
3734
3735 The DTC SIP monitor object is used to determine the health of a SIP
3736 server such as SIP Proxies and Session Border Controllers, and SIP
3737 gateways by issuing SIP options to a server and examining the
3738 response provided by the server. The service is considered available
3739 If the received response matches the expected response.
3740
3741 Attributes:
3742 ciphers: An optional cipher list for secure TLS/SIPS connection.
3743 client_cert: An optional client certificate, supplied in TLS and
3744 SIPS mode if present.
3745 comment: Comment for this DTC monitor; maximum 256 characters.
3746 extattrs: Extensible attributes associated with the object.For
3747 valid values for extensible attributes, see the following
3748 information.
3749 interval: The interval for TCP health check.
3750 name: The display name for this DTC monitor.
3751 port: The port value for SIP requests.
3752 request: A SIP request to send
3753 result: The type of an expected result.
3754 result_code: The expected return code value.
3755 retry_down: The value of how many times the server should appear
3756 as down to be treated as dead after it was alive.
3757 retry_up: The value of how many times the server should appear
3758 as up to be treated as alive after it was dead.
3759 timeout: The timeout for TCP health check in seconds.
3760 transport: The transport layer protocol to use for SIP check.
3761 validate_cert: Determines whether the validation of the remote
3762 server's certificate is enabled.
3763 """
3764 _infoblox_type = 'dtc:monitor:sip'
3765 _fields = ['ciphers', 'client_cert', 'comment', 'extattrs', 'interval',
3766 'name', 'port', 'request', 'result', 'result_code',
3767 'retry_down', 'retry_up', 'timeout', 'transport',
3768 'validate_cert']
3769 _search_for_update_fields = ['name']
3770 _updateable_search_fields = ['comment', 'name']
3771 _all_searchable_fields = ['comment', 'name']
3772 _return_fields = ['comment', 'extattrs', 'name']
3773 _remap = {}
3774 _shadow_fields = ['_ref']
3775
3776
3777 class DtcMonitorSnmp(InfobloxObject):
3778 """ DtcMonitorSnmp: DTC SNMP monitor object.
3779 Corresponds to WAPI object 'dtc:monitor:snmp'
3780
3781 The DTC SNMP Health Monitor determines the health of SNMP servers,
3782 such as SNMP Proxies and Session Border Controllers, and SNMP
3783 gateways by issuing SNMP options to a server and examining the
3784 response sent by the server. The service is considered available if
3785 the returned response matches the expected response.
3786
3787 Attributes:
3788 comment: Comment for this DTC monitor; maximum 256 characters.
3789 community: The SNMP community string for SNMP authentication.
3790 context: The SNMPv3 context.
3791 engine_id: The SNMPv3 engine identifier.
3792 extattrs: Extensible attributes associated with the object.For
3793 valid values for extensible attributes, see the following
3794 information.
3795 interval: The interval for TCP health check.
3796 name: The display name for this DTC monitor.
3797 oids: A list of OIDs for SNMP monitoring.
3798 port: The port value for SNMP requests.
3799 retry_down: The value of how many times the server should appear
3800 as down to be treated as dead after it was alive.
3801 retry_up: The value of how many times the server should appear
3802 as up to be treated as alive after it was dead.
3803 timeout: The timeout for TCP health check in seconds.
3804 user: The SNMPv3 user setting.
3805 version: The SNMP protocol version for the SNMP health check.
3806 """
3807 _infoblox_type = 'dtc:monitor:snmp'
3808 _fields = ['comment', 'community', 'context', 'engine_id', 'extattrs',
3809 'interval', 'name', 'oids', 'port', 'retry_down', 'retry_up',
3810 'timeout', 'user', 'version']
3811 _search_for_update_fields = ['name']
3812 _updateable_search_fields = ['comment', 'context', 'engine_id', 'name']
3813 _all_searchable_fields = ['comment', 'context', 'engine_id', 'name']
3814 _return_fields = ['comment', 'extattrs', 'name']
3815 _remap = {}
3816 _shadow_fields = ['_ref']
3817
3818 _custom_field_processing = {
3819 'oids': DtcMonitorSnmpOid.from_dict,
3820 }
3821
3822
3823 class DtcMonitorTcp(InfobloxObject):
3824 """ DtcMonitorTcp: DTC TCP monitor object.
3825 Corresponds to WAPI object 'dtc:monitor:tcp'
3826
3827 The DTC TCP monitor object is used to determine the health of a
3828 server by evaluating the response to a TCP request.
3829
3830 Attributes:
3831 comment: Comment for this DTC monitor; maximum 256 characters.
3832 extattrs: Extensible attributes associated with the object.For
3833 valid values for extensible attributes, see the following
3834 information.
3835 interval: The interval for TCP health check.
3836 name: The display name for this DTC monitor.
3837 port: The port value for TCP requests.
3838 retry_down: The value of how many times the server should appear
3839 as down to be treated as dead after it was alive.
3840 retry_up: The value of how many times the server should appear
3841 as up to be treated as alive after it was dead.
3842 timeout: The timeout for TCP health check in seconds.
3843 """
3844 _infoblox_type = 'dtc:monitor:tcp'
3845 _fields = ['comment', 'extattrs', 'interval', 'name', 'port', 'retry_down',
3846 'retry_up', 'timeout']
3847 _search_for_update_fields = ['name']
3848 _updateable_search_fields = ['comment', 'name']
3849 _all_searchable_fields = ['comment', 'name']
3850 _return_fields = ['comment', 'extattrs', 'name']
3851 _remap = {}
3852 _shadow_fields = ['_ref']
3853
3854
3855 class DtcObject(InfobloxObject):
3856 """ DtcObject: DTC object.
3857 Corresponds to WAPI object 'dtc:object'
3858
3859 An object for all load balancer managed DTC objects.
3860
3861 Attributes:
3862 abstract_type: The abstract object type.
3863 comment: The comment for the DTC object; maximum 256 characters.
3864 display_type: The display object type.
3865 extattrs: Extensible attributes associated with the object.For
3866 valid values for extensible attributes, see the following
3867 information.
3868 ipv4_address_list: The list of IPv4 addresses.
3869 ipv6_address_list: The list of IPv6 addresses.
3870 name: The display name of the DTC object.
3871 object: The specific DTC object.
3872 status: The availability color status.
3873 status_time: The timestamp when status or health was last
3874 determined.
3875 """
3876 _infoblox_type = 'dtc:object'
3877 _fields = ['abstract_type', 'comment', 'display_type', 'extattrs',
3878 'ipv4_address_list', 'ipv6_address_list', 'name', 'object',
3879 'status', 'status_time']
3880 _search_for_update_fields = ['name']
3881 _updateable_search_fields = []
3882 _all_searchable_fields = ['comment', 'name']
3883 _return_fields = ['abstract_type', 'comment', 'display_type', 'extattrs',
3884 'name', 'status']
3885 _remap = {}
3886 _shadow_fields = ['_ref']
3887
3888
3889 class DtcPool(InfobloxObject):
3890 """ DtcPool: DTC Pool object.
3891 Corresponds to WAPI object 'dtc:pool'
3892
3893 The collection of IDNS resources (virtual servers).
3894
3895 Attributes:
3896 auto_consolidated_monitors: Flag for enabling auto managing DTC
3897 Consolidated Monitors in DTC Pool.
3898 availability: A resource in the pool is available if ANY, at
3899 least QUORUM, or ALL monitors for the pool say that it is
3900 up.
3901 comment: The comment for the DTC Pool; maximum 256 characters.
3902 consolidated_monitors: List of monitors and associated members
3903 statuses of which are shared across members and consolidated
3904 in server availability determination.
3905 disable: Determines whether the DTC Pool is disabled or not.
3906 When this is set to False, the fixed address is enabled.
3907 extattrs: Extensible attributes associated with the object.For
3908 valid values for extensible attributes, see the following
3909 information.
3910 health: The health status.
3911 lb_alternate_method: The alternate load balancing method. Use
3912 this to select a method type from the pool if the preferred
3913 method does not return any results.
3914 lb_alternate_topology: The alternate topology for load
3915 balancing.
3916 lb_dynamic_ratio_alternate: The DTC Pool settings for dynamic
3917 ratio when it's selected as alternate method.
3918 lb_dynamic_ratio_preferred: The DTC Pool settings for dynamic
3919 ratio when it's selected as preferred method.
3920 lb_preferred_method: The preferred load balancing method. Use
3921 this to select a method type from the pool.
3922 lb_preferred_topology: The preferred topology for load
3923 balancing.
3924 monitors: The monitors related to pool.
3925 name: The DTC Pool display name.
3926 quorum: For availability mode QUORUM, at least this many
3927 monitors must report the resource as up for it to be
3928 available
3929 servers: The servers related to the pool.
3930 ttl: The Time To Live (TTL) value for the DTC Pool. A 32-bit
3931 unsigned integer that represents the duration, in seconds,
3932 for which the record is valid (cached). Zero indicates that
3933 the record should not be cached.
3934 use_ttl: Use flag for: ttl
3935 """
3936 _infoblox_type = 'dtc:pool'
3937 _fields = ['auto_consolidated_monitors', 'availability', 'comment',
3938 'consolidated_monitors', 'disable', 'extattrs', 'health',
3939 'lb_alternate_method', 'lb_alternate_topology',
3940 'lb_dynamic_ratio_alternate', 'lb_dynamic_ratio_preferred',
3941 'lb_preferred_method', 'lb_preferred_topology', 'monitors',
3942 'name', 'quorum', 'servers', 'ttl', 'use_ttl']
3943 _search_for_update_fields = ['name']
3944 _updateable_search_fields = ['comment', 'name']
3945 _all_searchable_fields = ['comment', 'name']
3946 _return_fields = ['comment', 'extattrs', 'name']
3947 _remap = {}
3948 _shadow_fields = ['_ref']
3949
3950 _custom_field_processing = {
3951 'consolidated_monitors': DtcPoolConsolidatedMonitorHealth.from_dict,
3952 'servers': DtcServerLink.from_dict,
3953 }
3954
3955
3956 class ADtcRecordBase(InfobloxObject):
3957 @classmethod
3958 def get_v4_class(cls):
3959 return ADtcRecord
3960
3961 @classmethod
3962 def get_v6_class(cls):
3963 return AAAADtcRecord
3964
3965
3966 class ADtcRecord(ADtcRecordBase):
3967 """ ADtcRecord: DTC A Record object.
3968 Corresponds to WAPI object 'dtc:record:a'
3969
3970 A DTC A object represents a DNS Traffic Control Address (DTC A)
3971 resource record. This resource record specifies mapping from domain
3972 name to IPv4 address.
3973
3974 Attributes:
3975 auto_created: Flag that indicates whether this record was
3976 automatically created by NIOS.
3977 comment: Comment for the record; maximum 256 characters.
3978 disable: Determines if the record is disabled or not. False
3979 means that the record is enabled.
3980 dtc_server: The name of the DTC Server object with which the DTC
3981 record is associated.
3982 ipv4addr: The IPv4 Address of the domain name.
3983 ttl: The Time to Live (TTL) value.
3984 use_ttl: Use flag for: ttl
3985 """
3986 _infoblox_type = 'dtc:record:a'
3987 _fields = ['auto_created', 'comment', 'disable', 'dtc_server', 'ipv4addr',
3988 'ttl', 'use_ttl']
3989 _search_for_update_fields = ['dtc_server', 'ipv4addr']
3990 _updateable_search_fields = ['comment', 'ipv4addr']
3991 _all_searchable_fields = ['comment', 'dtc_server', 'ipv4addr']
3992 _return_fields = ['dtc_server', 'ipv4addr']
3993 _remap = {'ip': 'ipv4addr'}
3994 _shadow_fields = ['_ref', 'ip']
3995 _ip_version = 4
3996
3997
3998 class AAAADtcRecord(ADtcRecordBase):
3999 """ AAAADtcRecord: DTC AAAA Record object.
4000 Corresponds to WAPI object 'dtc:record:aaaa'
4001
4002 A DTC AAAA object represents a DNS Traffic Control IPv6 Address (DTC
4003 AAAA) resource record. This resource record specifies mapping from
4004 domain name to IPv6 address.
4005
4006 Attributes:
4007 auto_created: Flag that indicates whether this record was
4008 automatically created by NIOS.
4009 comment: Comment for the record; maximum 256 characters.
4010 disable: Determines if the record is disabled or not. False
4011 means that the record is enabled.
4012 dtc_server: The name of the DTC Server object with which the DTC
4013 record is associated.
4014 ipv6addr: The IPv6 Address of the domain name.
4015 ttl: The Time to Live (TTL) value.
4016 use_ttl: Use flag for: ttl
4017 """
4018 _infoblox_type = 'dtc:record:aaaa'
4019 _fields = ['auto_created', 'comment', 'disable', 'dtc_server', 'ipv6addr',
4020 'ttl', 'use_ttl']
4021 _search_for_update_fields = ['dtc_server', 'ipv6addr']
4022 _updateable_search_fields = ['comment', 'ipv6addr']
4023 _all_searchable_fields = ['comment', 'dtc_server', 'ipv6addr']
4024 _return_fields = ['dtc_server', 'ipv6addr']
4025 _remap = {'ip': 'ipv6addr'}
4026 _shadow_fields = ['_ref', 'ip']
4027 _ip_version = 6
4028
4029
4030 class CNAMEDtcRecord(InfobloxObject):
4031 """ CNAMEDtcRecord: DTC CNAME Record object.
4032 Corresponds to WAPI object 'dtc:record:cname'
4033
4034 A DTC CNAME object represents a DNS Traffic Control Canonical name
4035 (DTC CNAME) resource record. DTC CNAME record maps domain name alias
4036 to its canonical domain name.
4037
4038 Attributes:
4039 auto_created: Flag that indicates whether this record was
4040 automatically created by NIOS.
4041 canonical: The canonical name of the host.
4042 comment: Comment for the record; maximum 256 characters.
4043 disable: Determines if the record is disabled or not. False
4044 means that the record is enabled.
4045 dns_canonical: The canonical name as server by DNS protocol.
4046 dtc_server: The name of the DTC Server object with which the DTC
4047 record is associated.
4048 ttl: The Time to Live (TTL) value.
4049 use_ttl: Use flag for: ttl
4050 """
4051 _infoblox_type = 'dtc:record:cname'
4052 _fields = ['auto_created', 'canonical', 'comment', 'disable',
4053 'dns_canonical', 'dtc_server', 'ttl', 'use_ttl']
4054 _search_for_update_fields = ['canonical', 'dtc_server']
4055 _updateable_search_fields = ['canonical', 'comment']
4056 _all_searchable_fields = ['canonical', 'comment', 'dtc_server']
4057 _return_fields = ['canonical', 'dtc_server']
4058 _remap = {}
4059 _shadow_fields = ['_ref']
4060
4061
4062 class NaptrDtcRecord(InfobloxObject):
4063 """ NaptrDtcRecord: DTC NAPTR Record object.
4064 Corresponds to WAPI object 'dtc:record:naptr'
4065
4066 A DTC NAPTR object represents a DNS Traffic Control Naming Authority
4067 Pointer (DTC NAPTR) resource record. This resource record specifies
4068 a regular expression-based rewrite rule that, when applied to an
4069 existing string, produces a new domain name or URI.
4070
4071 Attributes:
4072 comment: Comment for the record; maximum 256 characters.
4073 disable: Determines if the record is disabled or not. False
4074 means that the record is enabled.
4075 dtc_server: The name of the DTC Server object with which the DTC
4076 record is associated.
4077 flags: The flags used to control the interpretation of the
4078 fields for an NAPTR record object. Supported values for the
4079 flags field are "U", "S", "P" and "A".
4080 order: The order parameter of the NAPTR records. This parameter
4081 specifies the order in which the NAPTR rules are applied
4082 when multiple rules are present. Valid values are from 0 to
4083 65535 (inclusive), in 32-bit unsigned integer format.
4084 preference: The preference of the NAPTR record. The preference
4085 field determines the order the NAPTR records are processed
4086 when multiple records with the same order parameter are
4087 present. Valid values are from 0 to 65535 (inclusive), in
4088 32-bit unsigned integer format.
4089 regexp: The regular expression-based rewriting rule of the NAPTR
4090 record. This should be a POSIX compliant regular expression,
4091 including the substitution rule and flags. Refer to RFC 2915
4092 for the field syntax details.
4093 replacement: The replacement field of the NAPTR record object.
4094 For nonterminal NAPTR records, this field specifies the next
4095 domain name to look up. This value can be in unicode format.
4096 services: The services field of the NAPTR record object; maximum
4097 128 characters. The services field contains protocol and
4098 service identifiers, such as "http+E2U" or "SIPS+D2T".
4099 ttl: The Time to Live (TTL) value.
4100 use_ttl: Use flag for: ttl
4101 """
4102 _infoblox_type = 'dtc:record:naptr'
4103 _fields = ['comment', 'disable', 'dtc_server', 'flags', 'order',
4104 'preference', 'regexp', 'replacement', 'services', 'ttl',
4105 'use_ttl']
4106 _search_for_update_fields = ['dtc_server', 'order', 'preference',
4107 'replacement', 'services']
4108 _updateable_search_fields = ['comment', 'flags', 'order', 'preference',
4109 'replacement', 'services']
4110 _all_searchable_fields = ['comment', 'dtc_server', 'flags', 'order',
4111 'preference', 'replacement', 'services']
4112 _return_fields = ['dtc_server', 'order', 'preference', 'regexp',
4113 'replacement', 'services']
4114 _remap = {}
4115 _shadow_fields = ['_ref']
4116
4117
4118 class SRVDtcRecord(InfobloxObject):
4119 """ SRVDtcRecord: DTC SRV Record object.
4120 Corresponds to WAPI object 'dtc:record:srv'
4121
4122 A DTC SRV object represents a DNS Traffic Control (DTC SRV) resource
4123 record. This resource record provides information on available
4124 services.
4125
4126 Attributes:
4127 comment: Comment for the record; maximum 256 characters.
4128 disable: Determines if the record is disabled or not. False
4129 means that the record is enabled.
4130 dtc_server: The name of the DTC Server object with which the DTC
4131 record is associated.
4132 name: The name for an SRV record in unicode format.
4133 port: The port of the SRV record. Valid values are from 0 to
4134 65535 (inclusive), in 32-bit unsigned integer format.
4135 priority: The priority of the SRV record. Valid values are from
4136 0 to 65535 (inclusive), in 32-bit unsigned integer format.
4137 target: The target of the SRV record in FQDN format. This value
4138 can be in unicode format.
4139 ttl: The Time to Live (TTL) value.
4140 use_ttl: Use flag for: ttl
4141 weight: The weight of the SRV record. Valid values are from 0 to
4142 65535 (inclusive), in 32-bit unsigned integer format.
4143 """
4144 _infoblox_type = 'dtc:record:srv'
4145 _fields = ['comment', 'disable', 'dtc_server', 'name', 'port', 'priority',
4146 'target', 'ttl', 'use_ttl', 'weight']
4147 _search_for_update_fields = ['dtc_server', 'name', 'port', 'priority',
4148 'target', 'weight']
4149 _updateable_search_fields = ['comment', 'name', 'port', 'priority',
4150 'target', 'weight']
4151 _all_searchable_fields = ['comment', 'dtc_server', 'name', 'port',
4152 'priority', 'target', 'weight']
4153 _return_fields = ['dtc_server', 'name', 'port', 'priority', 'target',
4154 'weight']
4155 _remap = {}
4156 _shadow_fields = ['_ref']
4157
4158
4159 class DtcServer(InfobloxObject):
4160 """ DtcServer: DTC Server object.
4161 Corresponds to WAPI object 'dtc:server'
4162
4163 This is a DTC Server. Aka resource, virtual server or pool member.
4164
4165 Attributes:
4166 auto_create_host_record: Enabling this option will auto-create a
4167 single read-only A/AAAA/CNAME record corresponding to the
4168 configured hostname and update it if the hostname changes.
4169 comment: Comment for the DTC Server; maximum 256 characters.
4170 disable: Determines whether the DTC Server is disabled or not.
4171 When this is set to False, the fixed address is enabled.
4172 extattrs: Extensible attributes associated with the object.For
4173 valid values for extensible attributes, see the following
4174 information.
4175 health: The health status.
4176 host: The address or FQDN of the server.
4177 monitors: List of IP/FQDN and monitor pairs to be used for
4178 additional monitoring.
4179 name: The DTC Server display name.
4180 sni_hostname: The hostname for Server Name Indication (SNI) in
4181 FQDN format.
4182 use_sni_hostname: Use flag for: sni_hostname
4183 """
4184 _infoblox_type = 'dtc:server'
4185 _fields = ['auto_create_host_record', 'comment', 'disable', 'extattrs',
4186 'health', 'host', 'monitors', 'name', 'sni_hostname',
4187 'use_sni_hostname']
4188 _search_for_update_fields = ['host', 'name']
4189 _updateable_search_fields = ['comment', 'host', 'name', 'sni_hostname']
4190 _all_searchable_fields = ['comment', 'host', 'name', 'sni_hostname']
4191 _return_fields = ['comment', 'extattrs', 'host', 'name']
4192 _remap = {}
4193 _shadow_fields = ['_ref']
4194
4195 _custom_field_processing = {
4196 'monitors': DtcServerMonitor.from_dict,
4197 }
4198
4199
4200 class DtcTopology(InfobloxObject):
4201 """ DtcTopology: DTC Topology object.
4202 Corresponds to WAPI object 'dtc:topology'
4203
4204 A topology is a named list of ordered topology rules. Topology rules
4205 map client IPs to pools or resources. They require the Topology DB
4206 and named labels refer to it.
4207
4208 Attributes:
4209 comment: The comment for the DTC TOPOLOGY monitor object;
4210 maximum 256 characters.
4211 extattrs: Extensible attributes associated with the object.For
4212 valid values for extensible attributes, see the following
4213 information.
4214 name: Display name of the DTC Topology.
4215 rules: Topology rules.
4216 """
4217 _infoblox_type = 'dtc:topology'
4218 _fields = ['comment', 'extattrs', 'name', 'rules']
4219 _search_for_update_fields = ['name']
4220 _updateable_search_fields = ['comment', 'name']
4221 _all_searchable_fields = ['comment', 'name']
4222 _return_fields = ['comment', 'extattrs', 'name']
4223 _remap = {}
4224 _shadow_fields = ['_ref']
4225
4226
4227 class DtcTopologyLabel(InfobloxObject):
4228 """ DtcTopologyLabel: DTC Topology Label object.
4229 Corresponds to WAPI object 'dtc:topology:label'
4230
4231 This is the label of the field in the Topology database.
4232
4233 Attributes:
4234 field: The name of the field in the Topology database the label
4235 was obtained from.
4236 label: The DTC Topology label name.
4237 """
4238 _infoblox_type = 'dtc:topology:label'
4239 _fields = ['field', 'label']
4240 _search_for_update_fields = ['field', 'label']
4241 _updateable_search_fields = []
4242 _all_searchable_fields = ['field', 'label']
4243 _return_fields = ['field', 'label']
4244 _remap = {}
4245 _shadow_fields = ['_ref']
4246
4247
4248 class DtcTopologyRule(InfobloxObject):
4249 """ DtcTopologyRule: DTC Topology Rule object.
4250 Corresponds to WAPI object 'dtc:topology:rule'
4251
4252 Topology rules map client IPs to pools or resources. They require
4253 the Topology DB and named labels refer to it. Can be created only as
4254 part of topology.
4255
4256 Attributes:
4257 dest_type: The type of the destination for this DTC Topology
4258 rule.
4259 destination_link: The reference to the destination DTC pool or
4260 DTC server.
4261 return_type: Type of the DNS response for rule.
4262 sources: The conditions for matching sources. Should be empty to
4263 set rule as default destination.
4264 topology: The DTC Topology the rule belongs to.
4265 valid: True if the label in the rule exists in the current
4266 Topology DB. Always true for SUBNET rules. Rules with non-
4267 existent labels may be configured but will never match.
4268 """
4269 _infoblox_type = 'dtc:topology:rule'
4270 _fields = ['dest_type', 'destination_link', 'return_type', 'sources',
4271 'topology', 'valid']
4272 _search_for_update_fields = []
4273 _updateable_search_fields = []
4274 _all_searchable_fields = ['topology']
4275 _return_fields = []
4276 _remap = {}
4277 _shadow_fields = ['_ref']
4278
4279 _custom_field_processing = {
4280 'sources': DtcTopologyRuleSource.from_dict,
4281 }
4282
4283
4284 class DxlEndpoint(InfobloxObject):
4285 """ DxlEndpoint: The Data Exchange Layer endpoint object.
4286 Corresponds to WAPI object 'dxl:endpoint'
4287
4288 The DXL endpoint object represents the settings of a particular DXL
4289 endpoint.
4290
4291 Attributes:
4292 brokers: The list of DXL endpoint brokers. Note that you cannot
4293 specify brokers and brokers_import_token at the same time.
4294 brokers_import_token: The token returned by the uploadinit
4295 function call in object fileop for a DXL broker
4296 configuration file. Note that you cannot specify brokers and
4297 brokers_import_token at the same time.
4298 client_certificate_subject: The client certificate subject of a
4299 DXL endpoint.
4300 client_certificate_token: The token returned by the uploadinit
4301 function call in object fileop for a DXL endpoint client
4302 certificate.
4303 client_certificate_valid_from: The timestamp when client
4304 certificate for a DXL endpoint was created.
4305 client_certificate_valid_to: The timestamp when the client
4306 certificate for a DXL endpoint expires.
4307 comment: The comment of a DXL endpoint.
4308 disable: Determines whether a DXL endpoint is disabled.
4309 extattrs: Extensible attributes associated with the object.For
4310 valid values for extensible attributes, see the following
4311 information.
4312 log_level: The log level for a DXL endpoint.
4313 name: The name of a DXL endpoint.
4314 outbound_member_type: The outbound member that will generate
4315 events.
4316 outbound_members: The list of members for outbound events.
4317 template_instance: The DXL template instance. You cannot change
4318 the parameters of the DXL endpoint template instance.
4319 timeout: The timeout of session management (in seconds).
4320 topics: DXL topics
4321 vendor_identifier: The vendor identifier.
4322 wapi_user_name: The user name for WAPI integration.
4323 wapi_user_password: The user password for WAPI integration.
4324 """
4325 _infoblox_type = 'dxl:endpoint'
4326 _fields = ['brokers', 'brokers_import_token', 'client_certificate_subject',
4327 'client_certificate_token', 'client_certificate_valid_from',
4328 'client_certificate_valid_to', 'comment', 'disable', 'extattrs',
4329 'log_level', 'name', 'outbound_member_type', 'outbound_members',
4330 'template_instance', 'timeout', 'topics', 'vendor_identifier',
4331 'wapi_user_name', 'wapi_user_password']
4332 _search_for_update_fields = ['name', 'outbound_member_type']
4333 _updateable_search_fields = ['log_level', 'name', 'outbound_member_type',
4334 'vendor_identifier']
4335 _all_searchable_fields = ['log_level', 'name', 'outbound_member_type',
4336 'vendor_identifier']
4337 _return_fields = ['disable', 'extattrs', 'name', 'outbound_member_type']
4338 _remap = {}
4339 _shadow_fields = ['_ref']
4340
4341 _custom_field_processing = {
4342 'brokers': DxlEndpointBroker.from_dict,
4343 }
4344
4345 def clear_outbound_worker_log(self, *args, **kwargs):
4346 return self._call_func("clear_outbound_worker_log", *args, **kwargs)
4347
4348 def test_broker_connectivity(self, *args, **kwargs):
4349 return self._call_func("test_broker_connectivity", *args, **kwargs)
4350
4351
4352 class EADefinition(InfobloxObject):
4353 """ EADefinition: Extensible Attribute Definition object.
4354 Corresponds to WAPI object 'extensibleattributedef'
4355
4356 The Extensible Attribute Definition object is used to retrieve the
4357 definition of an extensible attribute.
4358
4359 Defined attributes can be associated with other Infoblox objects:
4360 DHCP Fixed Address, DHCP Fixed Address Template, DHCP Network, DHCP
4361 Network Template, DHCP Range, DHCP Range Template, DNS Host, DHCP
4362 Failover and DNS Zone objects that support extensible attributes
4363
4364 Attributes:
4365 allowed_object_types: The object types this extensible attribute
4366 is allowed to associate with.
4367 comment: Comment for the Extensible Attribute Definition;
4368 maximum 256 characters.
4369 default_value: Default value used to pre-populate the attribute
4370 value in the GUI. For email, URL, and string types, the
4371 value is a string with a maximum of 256 characters. For an
4372 integer, the value is an integer from -2147483648 through
4373 2147483647. For a date, the value is the number of seconds
4374 that have elapsed since January 1st, 1970 UTC.
4375 descendants_action: This option describes the action that must
4376 be taken on the extensible attribute by its descendant in
4377 case the 'Inheritable' flag is set.
4378 flags: This field contains extensible attribute flags. Possible
4379 values: (A)udited, (C)loud API, Cloud (G)master,
4380 (I)nheritable, (L)isted, (M)andatory value, MGM (P)rivate,
4381 (R)ead Only, (S)ort enum values, Multiple (V)alues If there
4382 are two or more flags in the field, you must list them
4383 according to the order they are listed above.For example,
4384 'CR' is a valid value for the 'flags' field because C =
4385 Cloud API is listed before R = Read only. However, the value
4386 'RC' is invalid because the order for the 'flags' field is
4387 broken.
4388 list_values: List of Values. Applicable if the extensible
4389 attribute type is ENUM.
4390 max: Maximum allowed value of extensible attribute. Applicable
4391 if the extensible attribute type is INTEGER.
4392 min: Minimum allowed value of extensible attribute. Applicable
4393 if the extensible attribute type is INTEGER.
4394 name: The name of the Extensible Attribute Definition.
4395 namespace: Namespace for the Extensible Attribute Definition.
4396 type: Type for the Extensible Attribute Definition.
4397 """
4398 _infoblox_type = 'extensibleattributedef'
4399 _fields = ['allowed_object_types', 'comment', 'default_value',
4400 'descendants_action', 'flags', 'list_values', 'max', 'min',
4401 'name', 'namespace', 'type']
4402 _search_for_update_fields = ['name', 'type']
4403 _updateable_search_fields = ['comment', 'name', 'type']
4404 _all_searchable_fields = ['comment', 'name', 'namespace', 'type']
4405 _return_fields = ['comment', 'default_value', 'name', 'type']
4406 _remap = {}
4407 _shadow_fields = ['_ref']
4408
4409 _custom_field_processing = {
4410 'list_values': ExtensibleattributedefListvalues.from_dict,
4411 }
4412
4413
4414 class Fileop(InfobloxObject):
4415 """ Fileop: File operations object.
4416 Corresponds to WAPI object 'fileop'
4417
4418 This object controls uploading and downloading data from the
4419 appliance.
4420
4421 Attributes:
4422 """
4423 _infoblox_type = 'fileop'
4424 _fields = []
4425 _search_for_update_fields = []
4426 _updateable_search_fields = []
4427 _all_searchable_fields = []
4428 _return_fields = []
4429 _remap = {}
4430 _shadow_fields = ['_ref']
4431
4432 def upload_file(self, *args, **kwargs):
4433 return self.connector.upload_file(*args, **kwargs)
4434
4435 def download_file(self, *args, **kwargs):
4436 return self.connector.download_file(*args, **kwargs)
4437
4438 def csv_error_log(self, *args, **kwargs):
4439 return self._call_func("csv_error_log", *args, **kwargs)
4440
4441 def csv_export(self, *args, **kwargs):
4442 return self._call_func("csv_export", *args, **kwargs)
4443
4444 def csv_import(self, *args, **kwargs):
4445 return self._call_func("csv_import", *args, **kwargs)
4446
4447 def csv_snapshot_file(self, *args, **kwargs):
4448 return self._call_func("csv_snapshot_file", *args, **kwargs)
4449
4450 def csv_uploaded_file(self, *args, **kwargs):
4451 return self._call_func("csv_uploaded_file", *args, **kwargs)
4452
4453 def download_atp_rule_update(self, *args, **kwargs):
4454 return self._call_func("download_atp_rule_update", *args, **kwargs)
4455
4456 def download_pool_status(self, *args, **kwargs):
4457 return self._call_func("download_pool_status", *args, **kwargs)
4458
4459 def downloadcertificate(self, *args, **kwargs):
4460 return self._call_func("downloadcertificate", *args, **kwargs)
4461
4462 def downloadcomplete(self, *args, **kwargs):
4463 return self._call_func("downloadcomplete", *args, **kwargs)
4464
4465 def generatecsr(self, *args, **kwargs):
4466 return self._call_func("generatecsr", *args, **kwargs)
4467
4468 def generatedxlendpointcerts(self, *args, **kwargs):
4469 return self._call_func("generatedxlendpointcerts", *args, **kwargs)
4470
4471 def generatesafenetclientcert(self, *args, **kwargs):
4472 return self._call_func("generatesafenetclientcert", *args, **kwargs)
4473
4474 def generateselfsignedcert(self, *args, **kwargs):
4475 return self._call_func("generateselfsignedcert", *args, **kwargs)
4476
4477 def get_file_url(self, *args, **kwargs):
4478 return self._call_func("get_file_url", *args, **kwargs)
4479
4480 def get_last_uploaded_atp_ruleset(self, *args, **kwargs):
4481 return self._call_func("get_last_uploaded_atp_ruleset", *args,
4482 **kwargs)
4483
4484 def get_log_files(self, *args, **kwargs):
4485 return self._call_func("get_log_files", *args, **kwargs)
4486
4487 def get_support_bundle(self, *args, **kwargs):
4488 return self._call_func("get_support_bundle", *args, **kwargs)
4489
4490 def getgriddata(self, *args, **kwargs):
4491 return self._call_func("getgriddata", *args, **kwargs)
4492
4493 def getleasehistoryfiles(self, *args, **kwargs):
4494 return self._call_func("getleasehistoryfiles", *args, **kwargs)
4495
4496 def getmemberdata(self, *args, **kwargs):
4497 return self._call_func("getmemberdata", *args, **kwargs)
4498
4499 def getsafenetclientcert(self, *args, **kwargs):
4500 return self._call_func("getsafenetclientcert", *args, **kwargs)
4501
4502 def read(self, *args, **kwargs):
4503 return self._call_func("read", *args, **kwargs)
4504
4505 def restapi_template_export(self, *args, **kwargs):
4506 return self._call_func("restapi_template_export", *args, **kwargs)
4507
4508 def restapi_template_export_schema(self, *args, **kwargs):
4509 return self._call_func("restapi_template_export_schema", *args,
4510 **kwargs)
4511
4512 def restapi_template_import(self, *args, **kwargs):
4513 return self._call_func("restapi_template_import", *args, **kwargs)
4514
4515 def restoredatabase(self, *args, **kwargs):
4516 return self._call_func("restoredatabase", *args, **kwargs)
4517
4518 def restoredtcconfig(self, *args, **kwargs):
4519 return self._call_func("restoredtcconfig", *args, **kwargs)
4520
4521 def set_captive_portal_file(self, *args, **kwargs):
4522 return self._call_func("set_captive_portal_file", *args, **kwargs)
4523
4524 def set_dhcp_leases(self, *args, **kwargs):
4525 return self._call_func("set_dhcp_leases", *args, **kwargs)
4526
4527 def set_downgrade_file(self, *args, **kwargs):
4528 return self._call_func("set_downgrade_file", *args, **kwargs)
4529
4530 def set_last_uploaded_atp_ruleset(self, *args, **kwargs):
4531 return self._call_func("set_last_uploaded_atp_ruleset", *args,
4532 **kwargs)
4533
4534 def set_upgrade_file(self, *args, **kwargs):
4535 return self._call_func("set_upgrade_file", *args, **kwargs)
4536
4537 def setdiscoverycsv(self, *args, **kwargs):
4538 return self._call_func("setdiscoverycsv", *args, **kwargs)
4539
4540 def setfiledest(self, *args, **kwargs):
4541 return self._call_func("setfiledest", *args, **kwargs)
4542
4543 def setleasehistoryfiles(self, *args, **kwargs):
4544 return self._call_func("setleasehistoryfiles", *args, **kwargs)
4545
4546 def setmemberdata(self, *args, **kwargs):
4547 return self._call_func("setmemberdata", *args, **kwargs)
4548
4549 def update_atp_ruleset(self, *args, **kwargs):
4550 return self._call_func("update_atp_ruleset", *args, **kwargs)
4551
4552 def update_licenses(self, *args, **kwargs):
4553 return self._call_func("update_licenses", *args, **kwargs)
4554
4555 def uploadcertificate(self, *args, **kwargs):
4556 return self._call_func("uploadcertificate", *args, **kwargs)
4557
4558 def uploadinit(self, *args, **kwargs):
4559 return self._call_func("uploadinit", *args, **kwargs)
4560
4561 def uploadserviceaccount(self, *args, **kwargs):
4562 return self._call_func("uploadserviceaccount", *args, **kwargs)
4563
4564
4565 class Filterfingerprint(InfobloxObject):
4566 """ Filterfingerprint: DHCP Fingerprint Filter object.
4567 Corresponds to WAPI object 'filterfingerprint'
4568
4569 The appliance can filter an address request by the DHCP fingerprint
4570 of a requesting client. Depending on how you apply DHCP fingerprint
4571 filters, the appliance can grant or deny the address request if the
4572 requesting client matches the filter criteria.
4573
4574 Only superuser can add/modify/delete fingerprint filters.
4575
4576 Attributes:
4577 comment: The descriptive comment.
4578 extattrs: Extensible attributes associated with the object.For
4579 valid values for extensible attributes, see the following
4580 information.
4581 fingerprint: The list of DHCP Fingerprint objects.
4582 name: The name of a DHCP Fingerprint Filter object.
4583 """
4584 _infoblox_type = 'filterfingerprint'
4585 _fields = ['comment', 'extattrs', 'fingerprint', 'name']
4586 _search_for_update_fields = ['name']
4587 _updateable_search_fields = ['comment', 'name']
4588 _all_searchable_fields = ['comment', 'name']
4589 _return_fields = ['comment', 'extattrs', 'name']
4590 _remap = {}
4591 _shadow_fields = ['_ref']
4592
4593
4594 class Filtermac(InfobloxObject):
4595 """ Filtermac: DHCP MAC Address Filter object.
4596 Corresponds to WAPI object 'filtermac'
4597
4598 An Infoblox appliance can filter address requests by the MAC address
4599 and/or vendor prefix (i.e., the first 6 hexadecimal characters of
4600 the MAC address) of a requesting host. The filter instructs the
4601 appliance to either grant or deny an address request if the
4602 requesting host matches the filter.
4603
4604 Attributes:
4605 comment: The descriptive comment of a DHCP MAC Filter object.
4606 default_mac_address_expiration: The default MAC expiration time
4607 of the DHCP MAC Address Filter object.By default, the MAC
4608 address filter never expires; otherwise, it is the absolute
4609 interval when the MAC address filter expires. The maximum
4610 value can extend up to 4294967295 secs. The minimum value is
4611 60 secs (1 min).
4612 disable: Determines if the DHCP Fingerprint object is disabled
4613 or not.
4614 enforce_expiration_times: The flag to enforce MAC address
4615 expiration of the DHCP MAC Address Filter object.
4616 extattrs: Extensible attributes associated with the object.For
4617 valid values for extensible attributes, see the following
4618 information.
4619 lease_time: The length of time the DHCP server leases an IP
4620 address to a client. The lease time applies to hosts that
4621 meet the filter criteria.
4622 name: The name of a DHCP MAC Filter object.
4623 never_expires: Determines if DHCP MAC Filter never expires or
4624 automatically expires.
4625 options: An array of DHCP option structs that lists the DHCP
4626 options associated with the object.
4627 reserved_for_infoblox: This is reserved for writing comments
4628 related to the particular MAC address filter. The length of
4629 comment cannot exceed 1024 bytes.
4630 """
4631 _infoblox_type = 'filtermac'
4632 _fields = ['comment', 'default_mac_address_expiration', 'disable',
4633 'enforce_expiration_times', 'extattrs', 'lease_time', 'name',
4634 'never_expires', 'options', 'reserved_for_infoblox']
4635 _search_for_update_fields = ['name']
4636 _updateable_search_fields = ['comment', 'name']
4637 _all_searchable_fields = ['comment', 'name']
4638 _return_fields = ['comment', 'extattrs', 'name']
4639 _remap = {}
4640 _shadow_fields = ['_ref']
4641
4642 _custom_field_processing = {
4643 'options': DhcpOption.from_dict,
4644 }
4645
4646
4647 class Filternac(InfobloxObject):
4648 """ Filternac: DHCP NAC Filter object.
4649 Corresponds to WAPI object 'filternac'
4650
4651 If NAC authentication is configured, the appliance receives
4652 authentication responses from NAC authentication servers, and it
4653 grants or denies a lease request if the authentication response
4654 matches conditions defined by the NAC filters.
4655
4656 Only superuser can add/modify/delete NAC filters.
4657
4658 Attributes:
4659 comment: The descriptive comment of a DHCP NAC Filter object.
4660 expression: The conditional expression of a DHCP NAC Filter
4661 object.
4662 extattrs: Extensible attributes associated with the object.For
4663 valid values for extensible attributes, see the following
4664 information.
4665 lease_time: The length of time the DHCP server leases an IP
4666 address to a client. The lease time applies to hosts that
4667 meet the filter criteria.
4668 name: The name of a DHCP NAC Filter object.
4669 options: An array of DHCP option structs that lists the DHCP
4670 options associated with the object.
4671 """
4672 _infoblox_type = 'filternac'
4673 _fields = ['comment', 'expression', 'extattrs', 'lease_time', 'name',
4674 'options']
4675 _search_for_update_fields = ['name']
4676 _updateable_search_fields = ['comment', 'name']
4677 _all_searchable_fields = ['comment', 'name']
4678 _return_fields = ['comment', 'extattrs', 'name']
4679 _remap = {}
4680 _shadow_fields = ['_ref']
4681
4682 _custom_field_processing = {
4683 'options': DhcpOption.from_dict,
4684 }
4685
4686
4687 class Filteroption(InfobloxObject):
4688 """ Filteroption: DHCP filter option object.
4689 Corresponds to WAPI object 'filteroption'
4690
4691 In the ISC DHCP terms, it defines a class of clients that match a
4692 particular (option, value) pair. To define an option filter, add
4693 Option to the DHCP Filter object.
4694
4695 Only superuser can add/modify/delete option filters.
4696
4697 Attributes:
4698 apply_as_class: Determines if apply as class is enabled or not.
4699 If this flag is set to "true" the filter is treated as
4700 global DHCP class, e.g it is written to dhcpd config file
4701 even if it is not present in any DHCP range.
4702 bootfile: A name of boot file of a DHCP filter option object.
4703 bootserver: Determines the boot server of a DHCP filter option
4704 object. You can specify the name and/or IP address of the
4705 boot server that host needs to boot.
4706 comment: The descriptive comment of a DHCP filter option object.
4707 expression: The conditional expression of a DHCP filter option
4708 object.
4709 extattrs: Extensible attributes associated with the object.For
4710 valid values for extensible attributes, see the following
4711 information.
4712 lease_time: Determines the lease time of a DHCP filter option
4713 object.
4714 name: The name of a DHCP option filter object.
4715 next_server: Determines the next server of a DHCP filter option
4716 object. You can specify the name and/or IP address of the
4717 next server that the host needs to boot.
4718 option_list: An array of DHCP option structs that lists the DHCP
4719 options associated with the object.
4720 option_space: The option space of a DHCP filter option object.
4721 pxe_lease_time: Determines the PXE (Preboot Execution
4722 Environment) lease time of a DHCP filter option object. To
4723 specify the duration of time it takes a host to connect to a
4724 boot server, such as a TFTP server, and download the file it
4725 needs to boot.
4726 """
4727 _infoblox_type = 'filteroption'
4728 _fields = ['apply_as_class', 'bootfile', 'bootserver', 'comment',
4729 'expression', 'extattrs', 'lease_time', 'name', 'next_server',
4730 'option_list', 'option_space', 'pxe_lease_time']
4731 _search_for_update_fields = ['name']
4732 _updateable_search_fields = ['comment', 'name']
4733 _all_searchable_fields = ['comment', 'name']
4734 _return_fields = ['comment', 'extattrs', 'name']
4735 _remap = {}
4736 _shadow_fields = ['_ref']
4737
4738 _custom_field_processing = {
4739 'option_list': DhcpOption.from_dict,
4740 }
4741
4742
4743 class Filterrelayagent(InfobloxObject):
4744 """ Filterrelayagent: The filter relay agent object.
4745 Corresponds to WAPI object 'filterrelayagent'
4746
4747 The Infoblox appliance can screen address requests through relay
4748 agent filters (DHCP option 82) that assist the agents in forwarding
4749 address assignments across the proper circuit. When a relay agent
4750 receives the DHCPDISCOVER message, it can add one or two agent IDs
4751 in the DHCP option 82 suboption fields to the message. If the agent
4752 ID strings match those defined in a relay agent filter applied to a
4753 DHCP address range, the Infoblox appliance either assigns addresses
4754 from that range or denies the request (based on previously
4755 configured parameters; that is, the Grant lease and Deny lease
4756 parameters).
4757
4758 Attributes:
4759 circuit_id_name: The circuit_id_name of a DHCP relay agent
4760 filter object. This filter identifies the circuit between
4761 the remote host and the relay agent. For example, the
4762 identifier can be the ingress interface number of the
4763 circuit access unit, perhaps concatenated with the unit ID
4764 number and slot number. Also, the circuit ID can be an ATM
4765 virtual circuit ID or cable data virtual circuit ID.
4766 circuit_id_substring_length: The circuit ID substring length.
4767 circuit_id_substring_offset: The circuit ID substring offset.
4768 comment: A descriptive comment of a DHCP relay agent filter
4769 object.
4770 extattrs: Extensible attributes associated with the object.For
4771 valid values for extensible attributes, see the following
4772 information.
4773 is_circuit_id: The circuit ID matching rule of a DHCP relay
4774 agent filter object. The circuit_id value takes effect only
4775 if the value is "MATCHES_VALUE".
4776 is_circuit_id_substring: Determines if the substring of circuit
4777 ID, instead of the full circuit ID, is matched.
4778 is_remote_id: The remote ID matching rule of a DHCP relay agent
4779 filter object. The remote_id value takes effect only if the
4780 value is Matches_Value.
4781 is_remote_id_substring: Determines if the substring of remote
4782 ID, instead of the full remote ID, is matched.
4783 name: The name of a DHCP relay agent filter object.
4784 remote_id_name: The remote ID name attribute of a relay agent
4785 filter object. This filter identifies the remote host. The
4786 remote ID name can represent many different things such as
4787 the caller ID telephone number for a dial-up connection, a
4788 user name for logging in to the ISP, a modem ID, etc. When
4789 the remote ID name is defined on the relay agent, the DHCP
4790 server will have a trusted relationship to identify the
4791 remote host. The remote ID name is considered as a trusted
4792 identifier.
4793 remote_id_substring_length: The remote ID substring length.
4794 remote_id_substring_offset: The remote ID substring offset.
4795 """
4796 _infoblox_type = 'filterrelayagent'
4797 _fields = ['circuit_id_name', 'circuit_id_substring_length',
4798 'circuit_id_substring_offset', 'comment', 'extattrs',
4799 'is_circuit_id', 'is_circuit_id_substring', 'is_remote_id',
4800 'is_remote_id_substring', 'name', 'remote_id_name',
4801 'remote_id_substring_length', 'remote_id_substring_offset']
4802 _search_for_update_fields = ['name']
4803 _updateable_search_fields = ['comment', 'name']
4804 _all_searchable_fields = ['comment', 'name']
4805 _return_fields = ['comment', 'extattrs', 'name']
4806 _remap = {}
4807 _shadow_fields = ['_ref']
4808
4809
4810 class Fingerprint(InfobloxObject):
4811 """ Fingerprint: DHCP Fingerprint object.
4812 Corresponds to WAPI object 'fingerprint'
4813
4814 The DHCP Fingerprint object is part of the Fingerprint filter.
4815
4816 Only 'CUSTOM' fingerprint can be added or modified. The 'STANDARD'
4817 fingerprint can be disabled only.
4818
4819 Attributes:
4820 comment: Comment for the Fingerprint; maximum 256 characters.
4821 device_class: A class of DHCP Fingerprint object; maximum 256
4822 characters.
4823 disable: Determines if the DHCP Fingerprint object is disabled
4824 or not.
4825 extattrs: Extensible attributes associated with the object.For
4826 valid values for extensible attributes, see the following
4827 information.
4828 ipv6_option_sequence: A list (comma separated list) of IPv6
4829 option number sequences of the device or operating system.
4830 name: Name of the DHCP Fingerprint object.
4831 option_sequence: A list (comma separated list) of IPv4 option
4832 number sequences of the device or operating system.
4833 type: The type of the DHCP Fingerprint object.
4834 vendor_id: A list of vendor IDs of the device or operating
4835 system.
4836 """
4837 _infoblox_type = 'fingerprint'
4838 _fields = ['comment', 'device_class', 'disable', 'extattrs',
4839 'ipv6_option_sequence', 'name', 'option_sequence', 'type',
4840 'vendor_id']
4841 _search_for_update_fields = ['device_class', 'name']
4842 _updateable_search_fields = ['comment', 'device_class', 'name', 'type']
4843 _all_searchable_fields = ['comment', 'device_class', 'name', 'type']
4844 _return_fields = ['comment', 'device_class', 'extattrs', 'name']
4845 _remap = {}
4846 _shadow_fields = ['_ref']
4847
4848
4849 class FixedAddress(InfobloxObject):
4850 @classmethod
4851 def get_v4_class(cls):
4852 return FixedAddressV4
4853
4854 @classmethod
4855 def get_v6_class(cls):
4856 return FixedAddressV6
4857
4858
4859 class FixedAddressV4(FixedAddress):
4860 """ FixedAddressV4: DHCP Fixed Address object.
4861 Corresponds to WAPI object 'fixedaddress'
4862
4863 A fixed address is a specific IP address that a DHCP server always
4864 assigns when a lease request comes from a particular MAC address of
4865 the client.
4866
4867 Attributes:
4868 agent_circuit_id: The agent circuit ID for the fixed address.
4869 agent_remote_id: The agent remote ID for the fixed address.
4870 allow_telnet: This field controls whether the credential is used
4871 for both the Telnet and SSH credentials. If set to False,
4872 the credential is used only for SSH.
4873 always_update_dns: This field controls whether only the DHCP
4874 server is allowed to update DNS, regardless of the DHCP
4875 client requests.
4876 bootfile: The bootfile name for the fixed address. You can
4877 configure the DHCP server to support clients that use the
4878 boot file name option in their DHCPREQUEST messages.
4879 bootserver: The bootserver address for the fixed address. You
4880 can specify the name and/or IP address of the boot server
4881 that the host needs to boot.The boot server IPv4 Address or
4882 name in FQDN format.
4883 cli_credentials: The CLI credentials for the fixed address.
4884 client_identifier_prepend_zero: This field controls whether
4885 there is a prepend for the dhcp-client-identifier of a fixed
4886 address.
4887 cloud_info: Structure containing all cloud API related
4888 information for this object.
4889 comment: Comment for the fixed address; maximum 256 characters.
4890 ddns_domainname: The dynamic DNS domain name the appliance uses
4891 specifically for DDNS updates for this fixed address.
4892 ddns_hostname: The DDNS host name for this fixed address.
4893 deny_bootp: If set to true, BOOTP settings are disabled and
4894 BOOTP requests will be denied.
4895 device_description: The description of the device.
4896 device_location: The location of the device.
4897 device_type: The type of the device.
4898 device_vendor: The vendor of the device.
4899 dhcp_client_identifier: The DHCP client ID for the fixed
4900 address.
4901 disable: Determines whether a fixed address is disabled or not.
4902 When this is set to False, the fixed address is enabled.
4903 disable_discovery: Determines if the discovery for this fixed
4904 address is disabled or not. False means that the discovery
4905 is enabled.
4906 discover_now_status: The discovery status of this fixed address.
4907 discovered_data: The discovered data for this fixed address.
4908 enable_ddns: The dynamic DNS updates flag of a DHCP Fixed
4909 Address object. If set to True, the DHCP server sends DDNS
4910 updates to DNS servers in the same Grid, and to external DNS
4911 servers.
4912 enable_immediate_discovery: Determines if the discovery for the
4913 fixed address should be immediately enabled.
4914 enable_pxe_lease_time: Set this to True if you want the DHCP
4915 server to use a different lease time for PXE clients.
4916 extattrs: Extensible attributes associated with the object.For
4917 valid values for extensible attributes, see the following
4918 information.
4919 ignore_dhcp_option_list_request: If this field is set to False,
4920 the appliance returns all DHCP options the client is
4921 eligible to receive, rather than only the list of options
4922 the client has requested.
4923 ipv4addr: The IPv4 Address of the fixed address.
4924 is_invalid_mac: This flag reflects whether the MAC address for
4925 this fixed address is invalid.
4926 logic_filter_rules: This field contains the logic filters to be
4927 applied on the this fixed address.This list corresponds to
4928 the match rules that are written to the dhcpd configuration
4929 file.
4930 mac: The MAC address value for this fixed address.
4931 match_client: The match_client value for this fixed address.
4932 Valid values are:"MAC_ADDRESS": The fixed IP address is
4933 leased to the matching MAC address."CLIENT_ID": The fixed IP
4934 address is leased to the matching DHCP client
4935 identifier."RESERVED": The fixed IP address is reserved for
4936 later use with a MAC address that only has
4937 zeros."CIRCUIT_ID": The fixed IP address is leased to the
4938 DHCP client with a matching circuit ID. Note that the
4939 "agent_circuit_id" field must be set in this
4940 case."REMOTE_ID": The fixed IP address is leased to the DHCP
4941 client with a matching remote ID. Note that the
4942 "agent_remote_id" field must be set in this case.
4943 ms_ad_user_data: The Microsoft Active Directory user related
4944 information.
4945 ms_options: This field contains the Microsoft DHCP options for
4946 this fixed address.
4947 ms_server: The Microsoft server associated with this fixed
4948 address.
4949 name: This field contains the name of this fixed address.
4950 network: The network to which this fixed address belongs, in
4951 IPv4 Address/CIDR format.
4952 network_view: The name of the network view in which this fixed
4953 address resides.
4954 nextserver: The name in FQDN and/or IPv4 Address format of the
4955 next server that the host needs to boot.
4956 options: An array of DHCP option structs that lists the DHCP
4957 options associated with the object.
4958 pxe_lease_time: The PXE lease time value for a DHCP Fixed
4959 Address object. Some hosts use PXE (Preboot Execution
4960 Environment) to boot remotely from a server. To better
4961 manage your IP resources, set a different lease time for PXE
4962 boot requests. You can configure the DHCP server to allocate
4963 an IP address with a shorter lease time to hosts that send
4964 PXE boot requests, so IP addresses are not leased longer
4965 than necessary.A 32-bit unsigned integer that represents the
4966 duration, in seconds, for which the update is cached. Zero
4967 indicates that the update is not cached.
4968 reserved_interface: The ref to the reserved interface to which
4969 the device belongs.
4970 restart_if_needed: Restarts the member service. The
4971 restart_if_needed flag can trigger a restart on DHCP
4972 services only when it is enabled on CP member.
4973 snmp3_credential: The SNMPv3 credential for this fixed address.
4974 snmp_credential: The SNMPv1 or SNMPv2 credential for this fixed
4975 address.
4976 template: If set on creation, the fixed address will be created
4977 according to the values specified in the named template.
4978 use_bootfile: Use flag for: bootfile
4979 use_bootserver: Use flag for: bootserver
4980 use_cli_credentials: If set to true, the CLI credential will
4981 override member-level settings.
4982 use_ddns_domainname: Use flag for: ddns_domainname
4983 use_deny_bootp: Use flag for: deny_bootp
4984 use_enable_ddns: Use flag for: enable_ddns
4985 use_ignore_dhcp_option_list_request: Use flag for:
4986 ignore_dhcp_option_list_request
4987 use_logic_filter_rules: Use flag for: logic_filter_rules
4988 use_ms_options: Use flag for: ms_options
4989 use_nextserver: Use flag for: nextserver
4990 use_options: Use flag for: options
4991 use_pxe_lease_time: Use flag for: pxe_lease_time
4992 use_snmp3_credential: Determines if the SNMPv3 credential should
4993 be used for the fixed address.
4994 use_snmp_credential: If set to true, the SNMP credential will
4995 override member-level settings.
4996 """
4997 _infoblox_type = 'fixedaddress'
4998 _fields = ['agent_circuit_id', 'agent_remote_id', 'allow_telnet',
4999 'always_update_dns', 'bootfile', 'bootserver',
5000 'cli_credentials', 'client_identifier_prepend_zero',
5001 'cloud_info', 'comment', 'ddns_domainname', 'ddns_hostname',
5002 'deny_bootp', 'device_description', 'device_location',
5003 'device_type', 'device_vendor', 'dhcp_client_identifier',
5004 'disable', 'disable_discovery', 'discover_now_status',
5005 'discovered_data', 'enable_ddns', 'enable_immediate_discovery',
5006 'enable_pxe_lease_time', 'extattrs',
5007 'ignore_dhcp_option_list_request', 'ipv4addr', 'is_invalid_mac',
5008 'logic_filter_rules', 'mac', 'match_client', 'ms_ad_user_data',
5009 'ms_options', 'ms_server', 'name', 'network', 'network_view',
5010 'nextserver', 'options', 'pxe_lease_time', 'reserved_interface',
5011 'restart_if_needed', 'snmp3_credential', 'snmp_credential',
5012 'template', 'use_bootfile', 'use_bootserver',
5013 'use_cli_credentials', 'use_ddns_domainname', 'use_deny_bootp',
5014 'use_enable_ddns', 'use_ignore_dhcp_option_list_request',
5015 'use_logic_filter_rules', 'use_ms_options', 'use_nextserver',
5016 'use_options', 'use_pxe_lease_time', 'use_snmp3_credential',
5017 'use_snmp_credential']
5018 _search_for_update_fields = ['ipv4addr', 'network_view', 'mac']
5019 _updateable_search_fields = ['comment', 'device_description',
5020 'device_location', 'device_type',
5021 'device_vendor', 'ipv4addr', 'mac',
5022 'match_client', 'ms_server', 'network',
5023 'network_view']
5024 _all_searchable_fields = ['comment', 'device_description',
5025 'device_location', 'device_type',
5026 'device_vendor', 'ipv4addr', 'mac',
5027 'match_client', 'ms_server', 'network',
5028 'network_view']
5029 _return_fields = ['extattrs', 'ipv4addr', 'network_view', 'mac']
5030 _remap = {'ipv4addr': 'ip'}
5031 _shadow_fields = ['_ref', 'ip']
5032 _ip_version = 4
5033
5034 @property
5035 def ip(self):
5036 if hasattr(self, '_ip'):
5037 return str(self._ip)
5038
5039 # This object represents both ipv4 and ipv6 objects, so it doesn't need
5040 # versioned object for that. Just set v4 or v6 field in addition
5041 # to setting shadow field 'ip' itself.
5042 @ip.setter
5043 def ip(self, ip):
5044 self._ip = ip
5045
5046 _custom_field_processing = {
5047 'cli_credentials': DiscoveryClicredential.from_dict,
5048 'logic_filter_rules': Logicfilterrule.from_dict,
5049 'ms_options': Msdhcpoption.from_dict,
5050 'options': DhcpOption.from_dict,
5051 }
5052
5053
5054 class FixedAddressV6(FixedAddress):
5055 """ FixedAddressV6: DHCP IPv6 Fixed Address object.
5056 Corresponds to WAPI object 'ipv6fixedaddress'
5057
5058 A IPv6 fixed address is a specific IP address that a DHCP server
5059 always assigns when a lease request comes from a particular DUID of
5060 the client.
5061
5062 Attributes:
5063 address_type: The address type value for this IPv6 fixed
5064 address.When the address type is "ADDRESS", a value for the
5065 'ipv6addr' member is required. When the address type is
5066 "PREFIX", values for 'ipv6prefix' and 'ipv6prefix_bits' are
5067 required. When the address type is "BOTH", values for
5068 'ipv6addr', 'ipv6prefix', and 'ipv6prefix_bits' are all
5069 required.
5070 allow_telnet: This field controls whether the credential is used
5071 for both the Telnet and SSH credentials. If set to False,
5072 the credential is used only for SSH.
5073 cli_credentials: The CLI credentials for the IPv6 fixed address.
5074 cloud_info: Structure containing all cloud API related
5075 information for this object.
5076 comment: Comment for the fixed address; maximum 256 characters.
5077 device_description: The description of the device.
5078 device_location: The location of the device.
5079 device_type: The type of the device.
5080 device_vendor: The vendor of the device.
5081 disable: Determines whether a fixed address is disabled or not.
5082 When this is set to False, the IPv6 fixed address is
5083 enabled.
5084 disable_discovery: Determines if the discovery for this IPv6
5085 fixed address is disabled or not. False means that the
5086 discovery is enabled.
5087 discover_now_status: The discovery status of this IPv6 fixed
5088 address.
5089 discovered_data: The discovered data for this IPv6 fixed
5090 address.
5091 domain_name: The domain name for this IPv6 fixed address.
5092 domain_name_servers: The IPv6 addresses of DNS recursive name
5093 servers to which the DHCP client can send name resolution
5094 requests. The DHCP server includes this information in the
5095 DNS Recursive Name Server option in Advertise, Rebind,
5096 Information-Request, and Reply messages.
5097 duid: The DUID value for this IPv6 fixed address.
5098 enable_immediate_discovery: Determines if the discovery for the
5099 IPv6 fixed address should be immediately enabled.
5100 extattrs: Extensible attributes associated with the object.For
5101 valid values for extensible attributes, see the following
5102 information.
5103 ipv6addr: The IPv6 Address of the DHCP IPv6 fixed address.
5104 ipv6prefix: The IPv6 Address prefix of the DHCP IPv6 fixed
5105 address.
5106 ipv6prefix_bits: Prefix bits of the DHCP IPv6 fixed address.
5107 logic_filter_rules: This field contains the logic filters to be
5108 applied to this IPv6 fixed address.This list corresponds to
5109 the match rules that are written to the DHCPv6 configuration
5110 file.
5111 ms_ad_user_data: The Microsoft Active Directory user related
5112 information.
5113 name: This field contains the name of this IPv6 fixed address.
5114 network: The network to which this IPv6 fixed address belongs,
5115 in IPv6 Address/CIDR format.
5116 network_view: The name of the network view in which this IPv6
5117 fixed address resides.
5118 options: An array of DHCP option structs that lists the DHCP
5119 options associated with the object.
5120 preferred_lifetime: The preferred lifetime value for this DHCP
5121 IPv6 fixed address object.
5122 reserved_interface: The reference to the reserved interface to
5123 which the device belongs.
5124 restart_if_needed: Restarts the member service. The
5125 restart_if_needed flag can trigger a restart on DHCP
5126 services only when it is enabled on CP member.
5127 snmp3_credential: The SNMPv3 credential for this IPv6 fixed
5128 address.
5129 snmp_credential: The SNMPv1 or SNMPv2 credential for this IPv6
5130 fixed address.
5131 template: If set on creation, the IPv6 fixed address will be
5132 created according to the values specified in the named
5133 template.
5134 use_cli_credentials: If set to true, the CLI credential will
5135 override member-level settings.
5136 use_domain_name: Use flag for: domain_name
5137 use_domain_name_servers: Use flag for: domain_name_servers
5138 use_logic_filter_rules: Use flag for: logic_filter_rules
5139 use_options: Use flag for: options
5140 use_preferred_lifetime: Use flag for: preferred_lifetime
5141 use_snmp3_credential: Determines if the SNMPv3 credential should
5142 be used for the IPv6 fixed address.
5143 use_snmp_credential: If set to true, SNMP credential will
5144 override member level settings.
5145 use_valid_lifetime: Use flag for: valid_lifetime
5146 valid_lifetime: The valid lifetime value for this DHCP IPv6
5147 Fixed Address object.
5148 """
5149 _infoblox_type = 'ipv6fixedaddress'
5150 _fields = ['address_type', 'allow_telnet', 'cli_credentials', 'cloud_info',
5151 'comment', 'device_description', 'device_location',
5152 'device_type', 'device_vendor', 'disable', 'disable_discovery',
5153 'discover_now_status', 'discovered_data', 'domain_name',
5154 'domain_name_servers', 'duid', 'enable_immediate_discovery',
5155 'extattrs', 'ipv6addr', 'ipv6prefix', 'ipv6prefix_bits',
5156 'logic_filter_rules', 'ms_ad_user_data', 'name', 'network',
5157 'network_view', 'options', 'preferred_lifetime',
5158 'reserved_interface', 'restart_if_needed', 'snmp3_credential',
5159 'snmp_credential', 'template', 'use_cli_credentials',
5160 'use_domain_name', 'use_domain_name_servers',
5161 'use_logic_filter_rules', 'use_options',
5162 'use_preferred_lifetime', 'use_snmp3_credential',
5163 'use_snmp_credential', 'use_valid_lifetime', 'valid_lifetime']
5164 _search_for_update_fields = ['duid', 'ipv6addr', 'network_view']
5165 _updateable_search_fields = ['address_type', 'comment',
5166 'device_description', 'device_location',
5167 'device_type', 'device_vendor', 'duid',
5168 'ipv6addr', 'ipv6prefix', 'ipv6prefix_bits',
5169 'network', 'network_view']
5170 _all_searchable_fields = ['address_type', 'comment', 'device_description',
5171 'device_location', 'device_type',
5172 'device_vendor', 'duid', 'ipv6addr',
5173 'ipv6prefix', 'ipv6prefix_bits', 'network',
5174 'network_view']
5175 _return_fields = ['duid', 'extattrs', 'ipv6addr', 'network_view']
5176 _remap = {'ipv6addr': 'ip'}
5177 _shadow_fields = ['_ref', 'mac', 'ip']
5178 _ip_version = 6
5179
5180 """Set mac and duid fields
5181
5182 To have common interface with FixedAddress accept mac address
5183 and set duid as a side effect.
5184 'mac' was added to _shadow_fields to prevent sending it out over wapi.
5185 """
5186 @property
5187 def mac(self):
5188 return self._mac
5189
5190 @mac.setter
5191 def mac(self, mac):
5192 self._mac = mac
5193 if mac:
5194 self.duid = ib_utils.generate_duid(mac)
5195 elif not hasattr(self, 'duid'):
5196 self.duid = None
5197
5198 @property
5199 def ip(self):
5200 if hasattr(self, '_ip'):
5201 return str(self._ip)
5202
5203 # This object represents both ipv4 and ipv6 objects, so it doesn't need
5204 # versioned object for that. Just set v4 or v6 field in addition
5205 # to setting shadow field 'ip' itself.
5206 @ip.setter
5207 def ip(self, ip):
5208 self._ip = ip
5209
5210 _custom_field_processing = {
5211 'cli_credentials': DiscoveryClicredential.from_dict,
5212 'logic_filter_rules': Logicfilterrule.from_dict,
5213 'options': DhcpOption.from_dict,
5214 }
5215
5216
5217 class FixedAddressTemplate(InfobloxObject):
5218 @classmethod
5219 def get_v4_class(cls):
5220 return FixedAddressTemplateV4
5221
5222 @classmethod
5223 def get_v6_class(cls):
5224 return FixedAddressTemplateV6
5225
5226
5227 class FixedAddressTemplateV4(FixedAddressTemplate):
5228 """ FixedAddressTemplateV4: The fixed address template object.
5229 Corresponds to WAPI object 'fixedaddresstemplate'
5230
5231 The fixed address template used to create a fixed address objects in
5232 a quick and consistent way. Fixed address object created from a
5233 fixed address template will inherit most properties defined in fixed
5234 address template object so most of the fixed address template
5235 properties are the same as the fixed address object properties.
5236
5237 Attributes:
5238 bootfile: The boot file name for the fixed address. You can
5239 configure the DHCP server to support clients that use the
5240 boot file name option in their DHCPREQUEST messages.
5241 bootserver: The boot server address for the fixed address. You
5242 can specify the name and/or IP address of the boot server
5243 that the host needs to boot.The boot server IPv4 Address or
5244 name in FQDN format.
5245 comment: A descriptive comment of a fixed address template
5246 object.
5247 ddns_domainname: The dynamic DNS domain name the appliance uses
5248 specifically for DDNS updates for this fixed address.
5249 ddns_hostname: The DDNS host name for this fixed address.
5250 deny_bootp: Determines if BOOTP settings are disabled and BOOTP
5251 requests will be denied.
5252 enable_ddns: Determines if the DHCP server sends DDNS updates to
5253 DNS servers in the same Grid, and to external DNS servers.
5254 enable_pxe_lease_time: Set this to True if you want the DHCP
5255 server to use a different lease time for PXE clients.
5256 extattrs: Extensible attributes associated with the object.For
5257 valid values for extensible attributes, see the following
5258 information.
5259 ignore_dhcp_option_list_request: If this field is set to False,
5260 the appliance returns all DHCP options the client is
5261 eligible to receive, rather than only the list of options
5262 the client has requested.
5263 logic_filter_rules: This field contains the logic filters to be
5264 applied on this fixed address.This list corresponds to the
5265 match rules that are written to the dhcpd configuration
5266 file.
5267 name: The name of a fixed address template object.
5268 nextserver: The name in FQDN and/or IPv4 Address format of the
5269 next server that the host needs to boot.
5270 number_of_addresses: The number of addresses for this fixed
5271 address.
5272 offset: The start address offset for this fixed address.
5273 options: An array of DHCP option structs that lists the DHCP
5274 options associated with the object.
5275 pxe_lease_time: The PXE lease time value for a DHCP Fixed
5276 Address object. Some hosts use PXE (Preboot Execution
5277 Environment) to boot remotely from a server. To better
5278 manage your IP resources, set a different lease time for PXE
5279 boot requests. You can configure the DHCP server to allocate
5280 an IP address with a shorter lease time to hosts that send
5281 PXE boot requests, so IP addresses are not leased longer
5282 than necessary.A 32-bit unsigned integer that represents the
5283 duration, in seconds, for which the update is cached. Zero
5284 indicates that the update is not cached.
5285 use_bootfile: Use flag for: bootfile
5286 use_bootserver: Use flag for: bootserver
5287 use_ddns_domainname: Use flag for: ddns_domainname
5288 use_deny_bootp: Use flag for: deny_bootp
5289 use_enable_ddns: Use flag for: enable_ddns
5290 use_ignore_dhcp_option_list_request: Use flag for:
5291 ignore_dhcp_option_list_request
5292 use_logic_filter_rules: Use flag for: logic_filter_rules
5293 use_nextserver: Use flag for: nextserver
5294 use_options: Use flag for: options
5295 use_pxe_lease_time: Use flag for: pxe_lease_time
5296 """
5297 _infoblox_type = 'fixedaddresstemplate'
5298 _fields = ['bootfile', 'bootserver', 'comment', 'ddns_domainname',
5299 'ddns_hostname', 'deny_bootp', 'enable_ddns',
5300 'enable_pxe_lease_time', 'extattrs',
5301 'ignore_dhcp_option_list_request', 'logic_filter_rules', 'name',
5302 'nextserver', 'number_of_addresses', 'offset', 'options',
5303 'pxe_lease_time', 'use_bootfile', 'use_bootserver',
5304 'use_ddns_domainname', 'use_deny_bootp', 'use_enable_ddns',
5305 'use_ignore_dhcp_option_list_request', 'use_logic_filter_rules',
5306 'use_nextserver', 'use_options', 'use_pxe_lease_time']
5307 _search_for_update_fields = ['name']
5308 _updateable_search_fields = ['comment', 'name']
5309 _all_searchable_fields = ['comment', 'name']
5310 _return_fields = ['comment', 'extattrs', 'name']
5311 _remap = {}
5312 _shadow_fields = ['_ref']
5313 _ip_version = 4
5314
5315 _custom_field_processing = {
5316 'logic_filter_rules': Logicfilterrule.from_dict,
5317 'options': DhcpOption.from_dict,
5318 }
5319
5320
5321 class FixedAddressTemplateV6(FixedAddressTemplate):
5322 """ FixedAddressTemplateV6: The IPv6 fixed address template object.
5323 Corresponds to WAPI object 'ipv6fixedaddresstemplate'
5324
5325 The IPv6 fixed address template used to create IPv6 fixed address
5326 objects in a quick and consistent way. An IPv6 fixed address object
5327 created from an IPv6 fixed address template will inherit most
5328 properties defined in the IPv6 fixed address template object;
5329 therefor, most of the IPv6 fixed address template properties are the
5330 same as the fixed address object properties.
5331
5332 Attributes:
5333 comment: A descriptive comment of an IPv6 fixed address template
5334 object.
5335 domain_name: Domain name of the IPv6 fixed address template
5336 object.
5337 domain_name_servers: The IPv6 addresses of DNS recursive name
5338 servers to which the DHCP client can send name resolution
5339 requests. The DHCP server includes this information in the
5340 DNS Recursive Name Server option in Advertise, Rebind,
5341 Information-Request, and Reply messages.
5342 extattrs: Extensible attributes associated with the object.For
5343 valid values for extensible attributes, see the following
5344 information.
5345 logic_filter_rules: This field contains the logic filters to be
5346 applied to this IPv6 fixed address.This list corresponds to
5347 the match rules that are written to the DHCPv6 configuration
5348 file.
5349 name: Name of an IPv6 fixed address template object.
5350 number_of_addresses: The number of IPv6 addresses for this fixed
5351 address.
5352 offset: The start address offset for this IPv6 fixed address.
5353 options: An array of DHCP option structs that lists the DHCP
5354 options associated with the object.
5355 preferred_lifetime: The preferred lifetime value for this DHCP
5356 IPv6 fixed address template object.
5357 use_domain_name: Use flag for: domain_name
5358 use_domain_name_servers: Use flag for: domain_name_servers
5359 use_logic_filter_rules: Use flag for: logic_filter_rules
5360 use_options: Use flag for: options
5361 use_preferred_lifetime: Use flag for: preferred_lifetime
5362 use_valid_lifetime: Use flag for: valid_lifetime
5363 valid_lifetime: The valid lifetime value for this DHCP IPv6
5364 fixed address template object.
5365 """
5366 _infoblox_type = 'ipv6fixedaddresstemplate'
5367 _fields = ['comment', 'domain_name', 'domain_name_servers', 'extattrs',
5368 'logic_filter_rules', 'name', 'number_of_addresses', 'offset',
5369 'options', 'preferred_lifetime', 'use_domain_name',
5370 'use_domain_name_servers', 'use_logic_filter_rules',
5371 'use_options', 'use_preferred_lifetime', 'use_valid_lifetime',
5372 'valid_lifetime']
5373 _search_for_update_fields = ['name']
5374 _updateable_search_fields = ['comment', 'name']
5375 _all_searchable_fields = ['comment', 'name']
5376 _return_fields = ['comment', 'extattrs', 'name']
5377 _remap = {}
5378 _shadow_fields = ['_ref']
5379 _ip_version = 6
5380
5381 _custom_field_processing = {
5382 'logic_filter_rules': Logicfilterrule.from_dict,
5383 'options': DhcpOption.from_dict,
5384 }
5385
5386
5387 class Ftpuser(InfobloxObject):
5388 """ Ftpuser: FTP user object.
5389 Corresponds to WAPI object 'ftpuser'
5390
5391 The FTP user represents the user accounts to be used with the FTP
5392 client.
5393
5394 Attributes:
5395 create_home_dir: Determines whether to create the home directory
5396 with the user name or to use the existing directory as the
5397 home directory.
5398 extattrs: Extensible attributes associated with the object.For
5399 valid values for extensible attributes, see the following
5400 information.
5401 home_dir: The absolute path of the FTP user's home directory.
5402 password: The FTP user password.
5403 permission: The FTP user permission.
5404 username: The FTP user name.
5405 """
5406 _infoblox_type = 'ftpuser'
5407 _fields = ['create_home_dir', 'extattrs', 'home_dir', 'password',
5408 'permission', 'username']
5409 _search_for_update_fields = ['username']
5410 _updateable_search_fields = []
5411 _all_searchable_fields = ['username']
5412 _return_fields = ['extattrs', 'username']
5413 _remap = {}
5414 _shadow_fields = ['_ref']
5415
5416
5417 class Grid(InfobloxObject):
5418 """ Grid: Grid object.
5419 Corresponds to WAPI object 'grid'
5420
5421 This object represents the Infoblox Grid.
5422
5423 Attributes:
5424 allow_recursive_deletion: The property to allow recursive
5425 deletion. Determines the users who can choose to perform
5426 recursive deletion on networks or zones from the GUI only.
5427 audit_log_format: Determines the audit log format.
5428 audit_to_syslog_enable: If set to True, audit log messages are
5429 also copied to the syslog.
5430 automated_traffic_capture_setting: The grid level settings for
5431 automated traffic capture.
5432 consent_banner_setting: The Grid consent banner settings.
5433 csp_api_config: The Grid csp api config settings.
5434 csp_grid_setting: CSP settings at grid level
5435 deny_mgm_snapshots: If set to True, the managed Grid will not
5436 send snapshots to the Multi-Grid Master.
5437 descendants_action: The default actions for extensbile
5438 attributes that exist on descendants.
5439 dns_resolver_setting: The DNS resolver setting.
5440 dscp: The DSCP value.Valid values are integers between 0 and 63
5441 inclusive.
5442 email_setting: The e-mail settings for the Grid.
5443 enable_gui_api_for_lan_vip: If set to True, GUI and API access
5444 are enabled on the LAN/VIP port and MGMT port (if
5445 configured).
5446 enable_lom: Determines if the LOM functionality is enabled or
5447 not.
5448 enable_member_redirect: Determines redirections is enabled or
5449 not for members.
5450 enable_recycle_bin: Determines if the Recycle Bin is enabled or
5451 not.
5452 enable_rir_swip: Determines if the RIR/SWIP support is enabled
5453 or not.
5454 external_syslog_backup_servers: The list of external backup
5455 syslog servers.
5456 external_syslog_server_enable: If set to True, external syslog
5457 servers are enabled.
5458 http_proxy_server_setting: The Grid HTTP proxy server settings.
5459 informational_banner_setting: The Grid informational level
5460 banner settings.
5461 is_grid_visualization_visible: If set to True, graphical
5462 visualization of the Grid is enabled.
5463 lockout_setting: Security Setting for Account lockout.
5464 lom_users: The list of LOM users.
5465 mgm_strict_delegate_mode: Determines if strict delegate mode for
5466 the Grid managed by the Master Grid is enabled or not.
5467 ms_setting: The settings for all Microsoft servers in the Grid.
5468 name: The grid name.
5469 nat_groups: The list of all Network Address Translation (NAT)
5470 groups configured on the Grid.
5471 ntp_setting: The Grid Network Time Protocol (NTP) settings.
5472 objects_changes_tracking_setting: Determines the object changes
5473 tracking settings.
5474 password_setting: The Grid password settings.
5475 restart_banner_setting: The setting for the Restart Banner.
5476 restart_status: The restart status for the Grid.
5477 rpz_hit_rate_interval: The time interval (in seconds) that
5478 determines how often the appliance calculates the RPZ hit
5479 rate.
5480 rpz_hit_rate_max_query: The maximum number of incoming queries
5481 between the RPZ hit rate checks.
5482 rpz_hit_rate_min_query: The minimum number of incoming queries
5483 between the RPZ hit rate checks.
5484 scheduled_backup: The scheduled backup configuration.
5485 secret: The shared secret of the Grid. This is a write-only
5486 attribute.
5487 security_banner_setting: The Grid security banner settings.
5488 security_setting: The Grid security settings.
5489 service_status: Determines overall service status of the Grid.
5490 snmp_setting: The Grid SNMP settings.
5491 support_bundle_download_timeout: Support bundle download timeout
5492 in seconds.
5493 syslog_facility: If 'audit_to_syslog_enable' is set to True, the
5494 facility that determines the processes and daemons from
5495 which the log messages are generated.
5496 syslog_servers: The list of external syslog servers.
5497 syslog_size: The maximum size for the syslog file expressed in
5498 megabytes.
5499 threshold_traps: Determines the list of threshold traps. The
5500 user can only change the values for each trap or remove
5501 traps.
5502 time_zone: The time zone of the Grid. The UTC string that
5503 represents the time zone, such as "(UTC - 5:00) Eastern Time
5504 (US and Canada)".
5505 token_usage_delay: The delayed usage (in minutes) of a
5506 permission token.
5507 traffic_capture_auth_dns_setting: Grid level settings for
5508 enabling authoritative DNS latency thresholds for automated
5509 traffic capture.
5510 traffic_capture_chr_setting: Grid level settings for enabling
5511 DNS cache hit ratio threshold for automated traffic capture.
5512 traffic_capture_qps_setting: Grid level settings for enabling
5513 DNS query per second threshold for automated traffic
5514 capture.
5515 traffic_capture_rec_dns_setting: Grid level settings for
5516 enabling recursive DNS latency thresholds for automated
5517 traffic capture.
5518 traffic_capture_rec_queries_setting: Grid level settings for
5519 enabling count for concurrent outgoing recursive queries for
5520 automated traffic capture.
5521 trap_notifications: Determines configuration of the trap
5522 notifications.
5523 updates_download_member_config: The list of member configuration
5524 structures, which provides information and settings for
5525 configuring the member that is responsible for downloading
5526 updates.
5527 vpn_port: The VPN port.
5528 """
5529 _infoblox_type = 'grid'
5530 _fields = ['allow_recursive_deletion', 'audit_log_format',
5531 'audit_to_syslog_enable', 'automated_traffic_capture_setting',
5532 'consent_banner_setting', 'csp_api_config', 'csp_grid_setting',
5533 'deny_mgm_snapshots', 'descendants_action',
5534 'dns_resolver_setting', 'dscp', 'email_setting',
5535 'enable_gui_api_for_lan_vip', 'enable_lom',
5536 'enable_member_redirect', 'enable_recycle_bin',
5537 'enable_rir_swip', 'external_syslog_backup_servers',
5538 'external_syslog_server_enable', 'http_proxy_server_setting',
5539 'informational_banner_setting', 'is_grid_visualization_visible',
5540 'lockout_setting', 'lom_users', 'mgm_strict_delegate_mode',
5541 'ms_setting', 'name', 'nat_groups', 'ntp_setting',
5542 'objects_changes_tracking_setting', 'password_setting',
5543 'restart_banner_setting', 'restart_status',
5544 'rpz_hit_rate_interval', 'rpz_hit_rate_max_query',
5545 'rpz_hit_rate_min_query', 'scheduled_backup', 'secret',
5546 'security_banner_setting', 'security_setting', 'service_status',
5547 'snmp_setting', 'support_bundle_download_timeout',
5548 'syslog_facility', 'syslog_servers', 'syslog_size',
5549 'threshold_traps', 'time_zone', 'token_usage_delay',
5550 'traffic_capture_auth_dns_setting',
5551 'traffic_capture_chr_setting', 'traffic_capture_qps_setting',
5552 'traffic_capture_rec_dns_setting',
5553 'traffic_capture_rec_queries_setting', 'trap_notifications',
5554 'updates_download_member_config', 'vpn_port']
5555 _search_for_update_fields = []
5556 _updateable_search_fields = ['name']
5557 _all_searchable_fields = ['name']
5558 _return_fields = []
5559 _remap = {}
5560 _shadow_fields = ['_ref']
5561
5562 _custom_field_processing = {
5563 'external_syslog_backup_servers': Extsyslogbackupserver.from_dict,
5564 'lom_users': Lomuser.from_dict,
5565 'syslog_servers': Syslogserver.from_dict,
5566 'threshold_traps': Thresholdtrap.from_dict,
5567 'trap_notifications': Trapnotification.from_dict,
5568 'updates_download_member_config':
5569 Updatesdownloadmemberconfig.from_dict,
5570 }
5571
5572 def control_ip_address(self, *args, **kwargs):
5573 return self._call_func("control_ip_address", *args, **kwargs)
5574
5575 def empty_recycle_bin(self, *args, **kwargs):
5576 return self._call_func("empty_recycle_bin", *args, **kwargs)
5577
5578 def generate_tsig_key(self, *args, **kwargs):
5579 return self._call_func("generate_tsig_key", *args, **kwargs)
5580
5581 def get_all_template_vendor_id(self, *args, **kwargs):
5582 return self._call_func("get_all_template_vendor_id", *args, **kwargs)
5583
5584 def get_grid_revert_status(self, *args, **kwargs):
5585 return self._call_func("get_grid_revert_status", *args, **kwargs)
5586
5587 def get_rpz_threat_details(self, *args, **kwargs):
5588 return self._call_func("get_rpz_threat_details", *args, **kwargs)
5589
5590 def get_template_schema_versions(self, *args, **kwargs):
5591 return self._call_func("get_template_schema_versions", *args, **kwargs)
5592
5593 def join(self, *args, **kwargs):
5594 return self._call_func("join", *args, **kwargs)
5595
5596 def join_mgm(self, *args, **kwargs):
5597 return self._call_func("join_mgm", *args, **kwargs)
5598
5599 def join_mgm_mod2(self, *args, **kwargs):
5600 return self._call_func("join_mgm_mod2", *args, **kwargs)
5601
5602 def leave_mgm(self, *args, **kwargs):
5603 return self._call_func("leave_mgm", *args, **kwargs)
5604
5605 def member_upgrade(self, *args, **kwargs):
5606 return self._call_func("member_upgrade", *args, **kwargs)
5607
5608 def publish_changes(self, *args, **kwargs):
5609 return self._call_func("publish_changes", *args, **kwargs)
5610
5611 def query_fqdn_on_member(self, *args, **kwargs):
5612 return self._call_func("query_fqdn_on_member", *args, **kwargs)
5613
5614 def requestrestartservicestatus(self, *args, **kwargs):
5615 return self._call_func("requestrestartservicestatus", *args, **kwargs)
5616
5617 def restartservices(self, *args, **kwargs):
5618 return self._call_func("restartservices", *args, **kwargs)
5619
5620 def skip_member_upgrade(self, *args, **kwargs):
5621 return self._call_func("skip_member_upgrade", *args, **kwargs)
5622
5623 def start_discovery(self, *args, **kwargs):
5624 return self._call_func("start_discovery", *args, **kwargs)
5625
5626 def test_syslog_backup_server_connection(self, *args, **kwargs):
5627 return self._call_func("test_syslog_backup_server_connection", *args,
5628 **kwargs)
5629
5630 def test_syslog_connection(self, *args, **kwargs):
5631 return self._call_func("test_syslog_connection", *args, **kwargs)
5632
5633 def upgrade(self, *args, **kwargs):
5634 return self._call_func("upgrade", *args, **kwargs)
5635
5636 def upgrade_group_now(self, *args, **kwargs):
5637 return self._call_func("upgrade_group_now", *args, **kwargs)
5638
5639 def upload_keytab(self, *args, **kwargs):
5640 return self._call_func("upload_keytab", *args, **kwargs)
5641
5642
5643 class GridCloudapi(InfobloxObject):
5644 """ GridCloudapi: Grid Cloud API object.
5645 Corresponds to WAPI object 'grid:cloudapi'
5646
5647 This object represents the Cloud Grid.
5648
5649 Attributes:
5650 allow_api_admins: Defines administrators who can perform cloud
5651 API requests on the Grid Master. The valid value is NONE (no
5652 administrator), ALL (all administrators), or LIST
5653 (administrators on the ACL).
5654 allowed_api_admins: The list of administrators who can perform
5655 cloud API requests on the Cloud Platform Appliance.
5656 enable_recycle_bin: Determines whether the recycle bin for
5657 deleted cloud objects is enabled or not on the Grid Master.
5658 gateway_config: Structure containing all the information related
5659 to Gateway configuration for the Grid Master
5660 """
5661 _infoblox_type = 'grid:cloudapi'
5662 _fields = ['allow_api_admins', 'allowed_api_admins', 'enable_recycle_bin',
5663 'gateway_config']
5664 _search_for_update_fields = []
5665 _updateable_search_fields = []
5666 _all_searchable_fields = []
5667 _return_fields = ['allow_api_admins', 'allowed_api_admins',
5668 'enable_recycle_bin']
5669 _remap = {}
5670 _shadow_fields = ['_ref']
5671
5672 _custom_field_processing = {
5673 'allowed_api_admins': GridCloudapiUser.from_dict,
5674 }
5675
5676
5677 class GridCloudapiCloudstatistics(InfobloxObject):
5678 """ GridCloudapiCloudstatistics: Grid Cloud Statistics object.
5679 Corresponds to WAPI object 'grid:cloudapi:cloudstatistics'
5680
5681 Represents the cloud statistics data.
5682
5683 Attributes:
5684 allocated_available_ratio: Ratio of allocated vs. available IPs
5685 allocated_ip_count: Total number of IPs allocated by tenants.
5686 available_ip_count: The total number of IP addresses available
5687 to tenants. Only IP addresses in networks that are within a
5688 delegation scope are counted.
5689 fixed_ip_count: The total number of fixed IP addresses currently
5690 in use by all tenants in the system.
5691 floating_ip_count: The total number of floating IP addresses
5692 currently in use by all tenants in the system.
5693 tenant_count: Total number of tenant currently in the system.
5694 tenant_ip_count: The total number of IP addresses currently in
5695 use by all tenants in the system.
5696 tenant_vm_count: The total number of VMs currently in use by all
5697 tenants in the system.
5698 """
5699 _infoblox_type = 'grid:cloudapi:cloudstatistics'
5700 _fields = ['allocated_available_ratio', 'allocated_ip_count',
5701 'available_ip_count', 'fixed_ip_count', 'floating_ip_count',
5702 'tenant_count', 'tenant_ip_count', 'tenant_vm_count']
5703 _search_for_update_fields = []
5704 _updateable_search_fields = []
5705 _all_searchable_fields = []
5706 _return_fields = ['allocated_available_ratio', 'allocated_ip_count',
5707 'available_ip_count', 'fixed_ip_count',
5708 'floating_ip_count', 'tenant_count', 'tenant_ip_count',
5709 'tenant_vm_count']
5710 _remap = {}
5711 _shadow_fields = ['_ref']
5712
5713
5714 class Tenant(InfobloxObject):
5715 """ Tenant: Grid Cloud API Tenant object.
5716 Corresponds to WAPI object 'grid:cloudapi:tenant'
5717
5718 A Tenant object represents an abstract administrative concept in
5719 Cloud Management Platforms, which encompasses all network elements
5720 such as networks, zones, VMs, IP addresses (fixed and floating),
5721 network views, default DNS view, and all related extensive
5722 attributes.
5723
5724 Attributes:
5725 cloud_info: Structure containing all cloud API related
5726 information for this object.
5727 comment: Comment for the Grid Cloud API Tenant object; maximum
5728 256 characters.
5729 created_ts: The timestamp when the tenant was first created in
5730 the system.
5731 id: Unique ID associated with the tenant. This is set only when
5732 the tenant is first created.
5733 last_event_ts: The timestamp when the last event associated with
5734 the tenant happened.
5735 name: Name of the tenant.
5736 network_count: Number of Networks associated with the tenant.
5737 vm_count: Number of VMs associated with the tenant.
5738 """
5739 _infoblox_type = 'grid:cloudapi:tenant'
5740 _fields = ['cloud_info', 'comment', 'created_ts', 'id', 'last_event_ts',
5741 'name', 'network_count', 'vm_count']
5742 _search_for_update_fields = ['id', 'name']
5743 _updateable_search_fields = ['comment', 'name']
5744 _all_searchable_fields = ['comment', 'id', 'name']
5745 _return_fields = ['comment', 'id', 'name']
5746 _remap = {}
5747 _shadow_fields = ['_ref']
5748
5749
5750 class GridCloudapiVm(InfobloxObject):
5751 """ GridCloudapiVm: Grid Cloud API vm object.
5752 Corresponds to WAPI object 'grid:cloudapi:vm'
5753
5754 A vm object represents a virtual machine which encompasses network
5755 elements such as IP addresses (fixed and floating, private and
5756 public), DNS names and all related extensive attributes.
5757
5758 Attributes:
5759 availability_zone: Availability zone of the VM.
5760 cloud_info: Structure containing all the cloud API related
5761 information for this object.
5762 comment: Comment for the vm object; maximum 1024 characters.
5763 elastic_ip_address: Elastic IP address associated with the VM's
5764 primary interface.
5765 extattrs: Extensible attributes associated with the object.For
5766 valid values for extensible attributes, see the following
5767 information.
5768 first_seen: The timestamp when the VM was first seen in the
5769 system.
5770 hostname: Hostname part of the FQDN for the address associated
5771 with the VM's primary interface.
5772 id: Unique ID associated with the VM. This is set only when the
5773 VM is first created.
5774 kernel_id: Identifier of the kernel that this VM is running;
5775 maximum 128 characters.
5776 last_seen: The timestamp when the last event associated with the
5777 VM happened.
5778 name: Name of the VM.
5779 network_count: Number of Networks containing any address
5780 associated with this VM.
5781 operating_system: Guest Operating system that this VM is
5782 running; maximum 128 characters.
5783 primary_mac_address: MAC address associated with the VM's
5784 primary interface.
5785 subnet_address: Address of the network that is the container of
5786 the address associated with the VM's primary interface.
5787 subnet_cidr: CIDR of the network that is the container of the
5788 address associated with the VM's primary interface.
5789 subnet_id: Subnet ID of the network that is the container of the
5790 address associated with the VM's primary interface.
5791 tenant_name: Name of the tenant associated with the VM.
5792 vm_type: VM type; maximum 64 characters.
5793 vpc_address: Network address of the parent VPC.
5794 vpc_cidr: Network CIDR of the parent VPC.
5795 vpc_id: Identifier of the parent VPC.
5796 vpc_name: Name of the parent VPC.
5797 """
5798 _infoblox_type = 'grid:cloudapi:vm'
5799 _fields = ['availability_zone', 'cloud_info', 'comment',
5800 'elastic_ip_address', 'extattrs', 'first_seen', 'hostname',
5801 'id', 'kernel_id', 'last_seen', 'name', 'network_count',
5802 'operating_system', 'primary_mac_address', 'subnet_address',
5803 'subnet_cidr', 'subnet_id', 'tenant_name', 'vm_type',
5804 'vpc_address', 'vpc_cidr', 'vpc_id', 'vpc_name']
5805 _search_for_update_fields = ['id', 'name']
5806 _updateable_search_fields = ['comment', 'name']
5807 _all_searchable_fields = ['comment', 'elastic_ip_address', 'id', 'name',
5808 'primary_mac_address']
5809 _return_fields = ['comment', 'extattrs', 'id', 'name']
5810 _remap = {}
5811 _shadow_fields = ['_ref']
5812
5813
5814 class GridCloudapiVmaddress(InfobloxObject):
5815 """ GridCloudapiVmaddress: Grid Cloud API VM address object.
5816 Corresponds to WAPI object 'grid:cloudapi:vmaddress'
5817
5818 VM address is an abstract object that represents a virtual machine
5819 running on the Cloud Management Platform.
5820
5821 Attributes:
5822 address: The IP address of the interface.
5823 address_type: IP address type (Public, Private, Elastic,
5824 Floating, ...).
5825 associated_ip: Reference to associated IPv4 or IPv6 address.
5826 associated_object_types: Array of string denoting the types of
5827 underlying objects IPv4/IPv6 - "A", "AAAA", "PTR", "HOST",
5828 "FA", "RESERVATION", "UNMANAGED" + ("BULKHOST",
5829 "DHCP_RANGE", "RESERVED_RANGE", "LEASE", "NETWORK",
5830 "BROADCAST", "PENDING"),
5831 associated_objects: The list of references to the object (Host,
5832 Fixed Address, RR, ...) that defines this IP.
5833 cloud_info: Structure containing all the cloud API related
5834 information. Only management platform "mgmt_platform" is
5835 updated for this object.
5836 dns_names: The list of all FQDNs associated with the IP address.
5837 elastic_address: Elastic IP address associated with this private
5838 address, if this address is a private address; otherwise
5839 empty.
5840 interface_name: Name of the interface associated with this IP
5841 address.
5842 is_ipv4: Indicates whether the address is IPv4 or IPv6.
5843 mac_address: The MAC address of the interface.
5844 ms_ad_user_data: The Microsoft Active Directory user related
5845 information.
5846 network: The network to which this address belongs, in IPv4
5847 Address/CIDR format.
5848 network_view: Network view name of the delegated object.
5849 port_id: Port identifier of the interface.
5850 private_address: Private IP address associated with this public
5851 (or elastic or floating) address, if this address is a
5852 public address; otherwise empty.
5853 private_hostname: Host part of the FQDN of this address if this
5854 address is a private address; otherwise empty
5855 public_address: Public IP address associated with this private
5856 address, if this address is a private address; otherwise
5857 empty.
5858 public_hostname: Host part of the FQDN of this address if this
5859 address is a public (or elastic or floating) address;
5860 otherwise empty
5861 subnet_address: Network address of the subnet that is the
5862 container of this address.
5863 subnet_cidr: CIDR of the subnet that is the container of this
5864 address.
5865 subnet_id: Subnet ID that is the container of this address.
5866 tenant: The Cloud API Tenant object.
5867 vm_availability_zone: Availability zone of the VM.
5868 vm_comment: VM comment.
5869 vm_creation_time: Date/time the VM was first created as NIOS
5870 object.
5871 vm_hostname: Host part of the FQDN of the address attached to
5872 the primary interface.
5873 vm_id: The UUID of the Virtual Machine.
5874 vm_kernel_id: Kernel ID of the VM that this address is
5875 associated with.
5876 vm_last_update_time: Last time the VM was updated.
5877 vm_name: The name of the Virtual Machine.
5878 vm_network_count: Count of networks containing all the addresses
5879 of the VM.
5880 vm_operating_system: Operating system that the VM is running.
5881 vm_type: Type of the VM this address is associated with.
5882 vm_vpc_address: Network address of the VPC of the VM that this
5883 address is associated with.
5884 vm_vpc_cidr: CIDR of the VPC of the VM that this address is
5885 associated with.
5886 vm_vpc_id: Identifier of the VPC where the VM is defined.
5887 vm_vpc_name: Name of the VPC where the VM is defined.
5888 vm_vpc_ref: Reference to the VPC where the VM is defined.
5889 """
5890 _infoblox_type = 'grid:cloudapi:vmaddress'
5891 _fields = ['address', 'address_type', 'associated_ip',
5892 'associated_object_types', 'associated_objects', 'cloud_info',
5893 'dns_names', 'elastic_address', 'interface_name', 'is_ipv4',
5894 'mac_address', 'ms_ad_user_data', 'network', 'network_view',
5895 'port_id', 'private_address', 'private_hostname',
5896 'public_address', 'public_hostname', 'subnet_address',
5897 'subnet_cidr', 'subnet_id', 'tenant', 'vm_availability_zone',
5898 'vm_comment', 'vm_creation_time', 'vm_hostname', 'vm_id',
5899 'vm_kernel_id', 'vm_last_update_time', 'vm_name',
5900 'vm_network_count', 'vm_operating_system', 'vm_type',
5901 'vm_vpc_address', 'vm_vpc_cidr', 'vm_vpc_id', 'vm_vpc_name',
5902 'vm_vpc_ref']
5903 _search_for_update_fields = ['address', 'vm_name']
5904 _updateable_search_fields = []
5905 _all_searchable_fields = ['address', 'mac_address', 'vm_id', 'vm_name']
5906 _return_fields = ['address', 'is_ipv4', 'network_view', 'port_id',
5907 'vm_name']
5908 _remap = {}
5909 _shadow_fields = ['_ref']
5910
5911
5912 class GridDashboard(InfobloxObject):
5913 """ GridDashboard: Grid Dashboard object.
5914 Corresponds to WAPI object 'grid:dashboard'
5915
5916 The Grid Dashboard object provides a configuration interface for
5917 threshold values that are used to warn about critical ATP, RPZ and
5918 Analytics events. These threshold values are used to calculate the
5919 security status for ATP, RPZ, and Analytics.
5920
5921 Attributes:
5922 analytics_tunneling_event_critical_threshold: The Grid Dashboard
5923 critical threshold for Analytics tunneling events.
5924 analytics_tunneling_event_warning_threshold: The Grid Dashboard
5925 warning threshold for Analytics tunneling events.
5926 atp_critical_event_critical_threshold: The Grid Dashboard
5927 critical threshold for ATP critical events.
5928 atp_critical_event_warning_threshold: The Grid Dashboard warning
5929 threshold for ATP critical events.
5930 atp_major_event_critical_threshold: The Grid Dashboard critical
5931 threshold for ATP major events.
5932 atp_major_event_warning_threshold: The Grid Dashboard warning
5933 threshold for ATP major events.
5934 atp_warning_event_critical_threshold: The Grid Dashboard
5935 critical threshold for ATP warning events.
5936 atp_warning_event_warning_threshold: The Grid Dashboard warning
5937 threshold for ATP warning events.
5938 rpz_blocked_hit_critical_threshold: The critical threshold value
5939 for blocked RPZ hits in the Grid dashboard.
5940 rpz_blocked_hit_warning_threshold: The warning threshold value
5941 for blocked RPZ hits in the Grid dashboard.
5942 rpz_passthru_event_critical_threshold: The Grid Dashboard
5943 critical threshold for RPZ passthru events.
5944 rpz_passthru_event_warning_threshold: The Grid Dashboard warning
5945 threshold for RPZ passthru events.
5946 rpz_substituted_hit_critical_threshold: The critical threshold
5947 value for substituted RPZ hits in the Grid dashboard.
5948 rpz_substituted_hit_warning_threshold: The warning threshold
5949 value for substituted RPZ hits in the Grid dashboard.
5950 """
5951 _infoblox_type = 'grid:dashboard'
5952 _fields = ['analytics_tunneling_event_critical_threshold',
5953 'analytics_tunneling_event_warning_threshold',
5954 'atp_critical_event_critical_threshold',
5955 'atp_critical_event_warning_threshold',
5956 'atp_major_event_critical_threshold',
5957 'atp_major_event_warning_threshold',
5958 'atp_warning_event_critical_threshold',
5959 'atp_warning_event_warning_threshold',
5960 'rpz_blocked_hit_critical_threshold',
5961 'rpz_blocked_hit_warning_threshold',
5962 'rpz_passthru_event_critical_threshold',
5963 'rpz_passthru_event_warning_threshold',
5964 'rpz_substituted_hit_critical_threshold',
5965 'rpz_substituted_hit_warning_threshold']
5966 _search_for_update_fields = []
5967 _updateable_search_fields = []
5968 _all_searchable_fields = []
5969 _return_fields = ['analytics_tunneling_event_critical_threshold',
5970 'analytics_tunneling_event_warning_threshold',
5971 'atp_critical_event_critical_threshold',
5972 'atp_critical_event_warning_threshold',
5973 'atp_major_event_critical_threshold',
5974 'atp_major_event_warning_threshold',
5975 'atp_warning_event_critical_threshold',
5976 'atp_warning_event_warning_threshold',
5977 'rpz_blocked_hit_critical_threshold',
5978 'rpz_blocked_hit_warning_threshold',
5979 'rpz_passthru_event_critical_threshold',
5980 'rpz_passthru_event_warning_threshold',
5981 'rpz_substituted_hit_critical_threshold',
5982 'rpz_substituted_hit_warning_threshold']
5983 _remap = {}
5984 _shadow_fields = ['_ref']
5985
5986
5987 class GridDhcpproperties(InfobloxObject):
5988 """ GridDhcpproperties: Grid DHCP properties object.
5989 Corresponds to WAPI object 'grid:dhcpproperties'
5990
5991 This object represents a subset of the Infoblox Grid DHCP
5992 properties.
5993
5994 Attributes:
5995 authority: The Grid-level authority flag. This flag specifies
5996 whether a DHCP server is authoritative for a domain.
5997 bootfile: The name of a file that DHCP clients need to boot.
5998 Some DHCP clients use BOOTP (bootstrap protocol) or include
5999 the boot file name option in their DHCPREQUEST messages.
6000 bootserver: The name of the server on which a boot file is
6001 stored.
6002 capture_hostname: The Grid-level capture hostname flag. Set this
6003 flag to capture the hostname and lease time when assigning a
6004 fixed address.
6005 ddns_domainname: The member DDNS domain name value.
6006 ddns_generate_hostname: Determines if the ability of a DHCP
6007 server to generate a host name and update DNS with this host
6008 name when it receives a DHCP REQUEST message that does not
6009 include a host name is enabled or not.
6010 ddns_retry_interval: Determines the retry interval when the DHCP
6011 server makes repeated attempts to send DDNS updates to a DNS
6012 server.
6013 ddns_server_always_updates: Determines that only the DHCP server
6014 is allowed to update DNS, regardless of the requests from
6015 the DHCP clients.
6016 ddns_ttl: The DDNS TTL (Dynamic DNS Time To Live) value
6017 specifies the number of seconds an IP address for the name
6018 is cached.
6019 ddns_update_fixed_addresses: Determines if the Grid DHCP
6020 server's ability to update the A and PTR records with a
6021 fixed address is enabled or not.
6022 ddns_use_option81: Determines if support for option 81 is
6023 enabled or not.
6024 deny_bootp: Determines if deny BOOTP is enabled or not.
6025 disable_all_nac_filters: If set to True, NAC filters will be
6026 disabled on the Infoblox Grid.
6027 dns_update_style: The update style for dynamic DNS updates.
6028 email_list: The Grid-level email_list value. Specify an e-mail
6029 address to which you want the Infoblox appliance to send
6030 e-mail notifications when the DHCP address usage for the
6031 grid crosses a threshold. You can create a list of several
6032 e-mail addresses.
6033 enable_ddns: Determines if the member DHCP server's ability to
6034 send DDNS updates is enabled or not.
6035 enable_dhcp_thresholds: Represents the watermarks above or below
6036 which address usage in a network is unexpected and might
6037 warrant your attention.
6038 enable_email_warnings: Determines if e-mail warnings are enabled
6039 or disabled. When DHCP threshold is enabled and DHCP address
6040 usage crosses a watermark threshold, the appliance sends an
6041 e-mail notification to an administrator.
6042 enable_fingerprint: Determines if the fingerprint feature is
6043 enabled or not. If you enable this feature, the server will
6044 match a fingerprint for incoming lease requests.
6045 enable_gss_tsig: Determines whether all appliances are enabled
6046 to receive GSS-TSIG authenticated updates from DHCP clients.
6047 enable_hostname_rewrite: Determines if the Grid-level host name
6048 rewrite feature is enabled or not.
6049 enable_leasequery: Determines if lease query is allowed or not.
6050 enable_roaming_hosts: Determines if DHCP servers in a Grid
6051 support roaming hosts or not.
6052 enable_snmp_warnings: Determined if the SNMP warnings on Grid-
6053 level are enabled or not. When DHCP threshold is enabled and
6054 DHCP address usage crosses a watermark threshold, the
6055 appliance sends an SNMP trap to the trap receiver that you
6056 defined you defined at the Grid member level.
6057 format_log_option_82: The format option for Option 82 logging.
6058 grid: Determines the Grid that serves DHCP. This specifies a
6059 group of Infoblox appliances that are connected together to
6060 provide a single point of device administration and service
6061 configuration in a secure, highly available environment.
6062 gss_tsig_keys: The list of GSS-TSIG keys for a Grid DHCP object.
6063 high_water_mark: Determines the high watermark value of a Grid
6064 DHCP server. If the percentage of allocated addresses
6065 exceeds this watermark, the appliance makes a syslog entry
6066 and sends an e-mail notification (if enabled). Specifies the
6067 percentage of allocated addresses. The range is from 1 to
6068 100.
6069 high_water_mark_reset: Determines the high watermark reset value
6070 of a member DHCP server. If the percentage of allocated
6071 addresses drops below this value, a corresponding SNMP trap
6072 is reset. Specifies the percentage of allocated addresses.
6073 The range is from 1 to 100. The high watermark reset value
6074 must be lower than the high watermark value.
6075 hostname_rewrite_policy: The name of the default hostname
6076 rewrite policy, which is also in the
6077 protocol_hostname_rewrite_policies array.
6078 ignore_dhcp_option_list_request: Determines if the ignore DHCP
6079 option list request flag of a Grid DHCP is enabled or not.
6080 If this flag is set to true all available DHCP options will
6081 be returned to the client.
6082 ignore_id: Indicates whether the appliance will ignore DHCP
6083 client IDs or MAC addresses. Valid values are "NONE",
6084 "CLIENT", or "MACADDR". The default is "NONE".
6085 ignore_mac_addresses: A list of MAC addresses the appliance will
6086 ignore.
6087 immediate_fa_configuration: Determines if the fixed address
6088 configuration takes effect immediately without DHCP service
6089 restart or not.
6090 ipv6_capture_hostname: Determines if the IPv6 host name and
6091 lease time is captured or not while assigning a fixed
6092 address.
6093 ipv6_ddns_domainname: The Grid-level DDNS domain name value.
6094 ipv6_ddns_enable_option_fqdn: Controls whether the FQDN option
6095 sent by the client is to be used, or if the server can
6096 automatically generate the FQDN.
6097 ipv6_ddns_server_always_updates: Determines if the server always
6098 updates DNS or updates only if requested by the client.
6099 ipv6_ddns_ttl: The Grid-level IPv6 DDNS TTL value.
6100 ipv6_default_prefix: The Grid-level IPv6 default prefix.
6101 ipv6_dns_update_style: The update style for dynamic DHCPv6 DNS
6102 updates.
6103 ipv6_domain_name: The IPv6 domain name.
6104 ipv6_domain_name_servers: The comma separated list of domain
6105 name server addresses in IPv6 address format.
6106 ipv6_enable_ddns: Determines if sending DDNS updates by the
6107 DHCPv6 server is enabled or not.
6108 ipv6_enable_gss_tsig: Determines whether the all appliances are
6109 enabled to receive GSS-TSIG authenticated updates from
6110 DHCPv6 clients.
6111 ipv6_enable_lease_scavenging: Indicates whether DHCPv6 lease
6112 scavenging is enabled or disabled.
6113 ipv6_enable_retry_updates: Determines if the DHCPv6 server
6114 retries failed dynamic DNS updates or not.
6115 ipv6_generate_hostname: Determines if the server generates the
6116 hostname if it is not sent by the client.
6117 ipv6_gss_tsig_keys: The list of GSS-TSIG keys for a Grid DHCPv6
6118 object.
6119 ipv6_kdc_server: The IPv6 address or FQDN of the Kerberos server
6120 for DHCPv6 GSS-TSIG authentication.
6121 ipv6_lease_scavenging_time: The Grid-level grace period (in
6122 seconds) to keep an expired lease before it is deleted by
6123 the scavenging process.
6124 ipv6_microsoft_code_page: The Grid-level Microsoft client DHCP
6125 IPv6 code page value. This value is the hostname translation
6126 code page for Microsoft DHCP IPv6 clients.
6127 ipv6_options: An array of DHCP option structs that lists the
6128 DHCPv6 options associated with the object.
6129 ipv6_prefixes: The Grid-level list of IPv6 prefixes.
6130 ipv6_recycle_leases: Determines if the IPv6 recycle leases
6131 feature is enabled or not. If the feature is enabled, leases
6132 are kept in the Recycle Bin until one week after expiration.
6133 When the feature is disabled, the leases are irrecoverably
6134 deleted.
6135 ipv6_remember_expired_client_association: Enable binding for
6136 expired DHCPv6 leases.
6137 ipv6_retry_updates_interval: Determines the retry interval when
6138 the member DHCPv6 server makes repeated attempts to send
6139 DDNS updates to a DNS server.
6140 ipv6_txt_record_handling: The Grid-level TXT record handling
6141 value. This value specifies how DHCPv6 should treat the TXT
6142 records when performing DNS updates.
6143 ipv6_update_dns_on_lease_renewal: Controls whether the DHCPv6
6144 server updates DNS when an IPv6 DHCP lease is renewed.
6145 kdc_server: The IPv4 address or FQDN of the Kerberos server for
6146 DHCPv4 GSS-TSIG authentication.
6147 lease_logging_member: The Grid member on which you want to store
6148 the DHCP lease history log. Infoblox recommends that you
6149 dedicate a member other than the master as a logging member.
6150 If possible, use this member solely for storing the DHCP
6151 lease history log. If you do not select a member, no logging
6152 can occur.
6153 lease_per_client_settings: Defines how the appliance releases
6154 DHCP leases. Valid values are "RELEASE_MACHING_ID",
6155 "NEVER_RELEASE", or "ONE_LEASE_PER_CLIENT". The default is
6156 "RELEASE_MATCHING_ID".
6157 lease_scavenge_time: Determines the lease scavenging time value.
6158 When this field is set, the appliance permanently deletes
6159 the free and backup leases, that remain in the database
6160 beyond a specified period of time.To disable lease
6161 scavenging, set the parameter to -1. The minimum positive
6162 value must be greater than 86400 seconds (1 day).
6163 log_lease_events: This value specifies whether the Grid DHCP
6164 members log lease events is enabled or not.
6165 logic_filter_rules: This field contains the logic filters to be
6166 applied on the Infoblox Grid.This list corresponds to the
6167 match rules that are written to the dhcpd configuration
6168 file.
6169 low_water_mark: Determines the low watermark value. If the
6170 percent of allocated addresses drops below this watermark,
6171 the appliance makes a syslog entry and if enabled, sends an
6172 e-mail notification.
6173 low_water_mark_reset: Determines the low watermark reset
6174 value.If the percentage of allocated addresses exceeds this
6175 value, a corresponding SNMP trap is reset.A number that
6176 specifies the percentage of allocated addresses. The range
6177 is from 1 to 100. The low watermark reset value must be
6178 higher than the low watermark value.
6179 microsoft_code_page: The Microsoft client DHCP IPv4 code page
6180 value of a Grid. This value is the hostname translation code
6181 page for Microsoft DHCP IPv4 clients.
6182 nextserver: The next server value of a DHCP server. This value
6183 is the IP address or name of the boot file server on which
6184 the boot file is stored.
6185 option60_match_rules: The list of option 60 match rules.
6186 options: An array of DHCP option structs that lists the DHCP
6187 options associated with the object. Note that WAPI does not
6188 return special options 'routers', 'domain-name-servers',
6189 'domain-name' and 'broadcast-address' with empty values for
6190 this object.
6191 ping_count: Specifies the number of pings that the Infoblox
6192 appliance sends to an IP address to verify that it is not in
6193 use. Values are range is from 0 to 10, where 0 disables
6194 pings.
6195 ping_timeout: Indicates the number of milliseconds the appliance
6196 waits for a response to its ping.Valid values are 100, 500,
6197 1000, 2000, 3000, 4000 and 5000 milliseconds.
6198 preferred_lifetime: The preferred lifetime value.
6199 prefix_length_mode: The Prefix length mode for DHCPv6.
6200 protocol_hostname_rewrite_policies: The list of hostname rewrite
6201 policies.
6202 pxe_lease_time: Specifies the duration of time it takes a host
6203 to connect to a boot server, such as a TFTP server, and
6204 download the file it needs to boot.A 32-bit unsigned integer
6205 that represents the duration, in seconds, for which the
6206 update is cached. Zero indicates that the update is not
6207 cached.
6208 recycle_leases: Determines if the recycle leases feature is
6209 enabled or not. If you enabled this feature, and then delete
6210 a DHCP range, the appliance stores active leases from this
6211 range up to one week after the leases expires.
6212 restart_setting: The restart setting.
6213 retry_ddns_updates: Indicates whether the DHCP server makes
6214 repeated attempts to send DDNS updates to a DNS server.
6215 syslog_facility: The syslog facility is the location on the
6216 syslog server to which you want to sort the syslog messages.
6217 txt_record_handling: The Grid-level TXT record handling value.
6218 This value specifies how DHCP should treat the TXT records
6219 when performing DNS updates.
6220 update_dns_on_lease_renewal: Controls whether the DHCP server
6221 updates DNS when a DHCP lease is renewed.
6222 valid_lifetime: The valid lifetime for the Grid members.
6223 """
6224 _infoblox_type = 'grid:dhcpproperties'
6225 _fields = ['authority', 'bootfile', 'bootserver', 'capture_hostname',
6226 'ddns_domainname', 'ddns_generate_hostname',
6227 'ddns_retry_interval', 'ddns_server_always_updates', 'ddns_ttl',
6228 'ddns_update_fixed_addresses', 'ddns_use_option81',
6229 'deny_bootp', 'disable_all_nac_filters', 'dns_update_style',
6230 'email_list', 'enable_ddns', 'enable_dhcp_thresholds',
6231 'enable_email_warnings', 'enable_fingerprint',
6232 'enable_gss_tsig', 'enable_hostname_rewrite',
6233 'enable_leasequery', 'enable_roaming_hosts',
6234 'enable_snmp_warnings', 'format_log_option_82', 'grid',
6235 'gss_tsig_keys', 'high_water_mark', 'high_water_mark_reset',
6236 'hostname_rewrite_policy', 'ignore_dhcp_option_list_request',
6237 'ignore_id', 'ignore_mac_addresses',
6238 'immediate_fa_configuration', 'ipv6_capture_hostname',
6239 'ipv6_ddns_domainname', 'ipv6_ddns_enable_option_fqdn',
6240 'ipv6_ddns_server_always_updates', 'ipv6_ddns_ttl',
6241 'ipv6_default_prefix', 'ipv6_dns_update_style',
6242 'ipv6_domain_name', 'ipv6_domain_name_servers',
6243 'ipv6_enable_ddns', 'ipv6_enable_gss_tsig',
6244 'ipv6_enable_lease_scavenging', 'ipv6_enable_retry_updates',
6245 'ipv6_generate_hostname', 'ipv6_gss_tsig_keys',
6246 'ipv6_kdc_server', 'ipv6_lease_scavenging_time',
6247 'ipv6_microsoft_code_page', 'ipv6_options', 'ipv6_prefixes',
6248 'ipv6_recycle_leases',
6249 'ipv6_remember_expired_client_association',
6250 'ipv6_retry_updates_interval', 'ipv6_txt_record_handling',
6251 'ipv6_update_dns_on_lease_renewal', 'kdc_server',
6252 'lease_logging_member', 'lease_per_client_settings',
6253 'lease_scavenge_time', 'log_lease_events', 'logic_filter_rules',
6254 'low_water_mark', 'low_water_mark_reset', 'microsoft_code_page',
6255 'nextserver', 'option60_match_rules', 'options', 'ping_count',
6256 'ping_timeout', 'preferred_lifetime', 'prefix_length_mode',
6257 'protocol_hostname_rewrite_policies', 'pxe_lease_time',
6258 'recycle_leases', 'restart_setting', 'retry_ddns_updates',
6259 'syslog_facility', 'txt_record_handling',
6260 'update_dns_on_lease_renewal', 'valid_lifetime']
6261 _search_for_update_fields = ['grid']
6262 _updateable_search_fields = []
6263 _all_searchable_fields = ['grid']
6264 _return_fields = ['disable_all_nac_filters', 'grid']
6265 _remap = {}
6266 _shadow_fields = ['_ref']
6267
6268 _custom_field_processing = {
6269 'ipv6_options': DhcpOption.from_dict,
6270 'logic_filter_rules': Logicfilterrule.from_dict,
6271 'option60_match_rules': Option60Matchrule.from_dict,
6272 'options': DhcpOption.from_dict,
6273 }
6274
6275
6276 class GridDns(InfobloxObject):
6277 """ GridDns: Grid DNS properties object.
6278 Corresponds to WAPI object 'grid:dns'
6279
6280 This object supports DNS service management and configuration such
6281 as time-to-live (TTL) settings, zone transfers, queries, root name
6282 servers, dynamic updates, sort lists, Transaction Signatures (TSIG)
6283 for DNS and others, all at the grid level. The service
6284 configurations of a grid are inherited by all members, zones, and
6285 networks unless you specifically override them for selected members,
6286 zones, and networks. For this reason, it is recommended that you
6287 configure services at the grid level before configuring member, zone
6288 and network services.
6289
6290 Attributes:
6291 add_client_ip_mac_options: Add custom IP, MAC and DNS View name
6292 ENDS0 options to outgoing recursive queries.
6293 allow_bulkhost_ddns: Determines if DDNS bulk host is allowed or
6294 not.
6295 allow_gss_tsig_zone_updates: Determines whether GSS-TSIG zone
6296 update is enabled for all Grid members.
6297 allow_query: Determines if queries from the specified IPv4 or
6298 IPv6 addresses and networks are allowed or not. The
6299 appliance can also use Transaction Signature (TSIG) keys to
6300 authenticate the queries.
6301 allow_recursive_query: Determines if the responses to recursive
6302 queries are enabled or not.
6303 allow_transfer: Determines if zone transfers from specified IPv4
6304 or IPv6 addresses and networks or transfers from hosts
6305 authenticated by Transaction signature (TSIG) key are
6306 allowed or not.
6307 allow_update: Determines if dynamic updates from specified IPv4
6308 or IPv6 addresses, networks or from host authenticated by
6309 TSIG key are allowed or not.
6310 anonymize_response_logging: Determines if the anonymization of
6311 captured DNS responses is enabled or disabled.
6312 attack_mitigation: Mitigation settings for DNS attacks.
6313 auto_blackhole: The auto blackhole settings.
6314 bind_check_names_policy: The BIND check names policy, which
6315 indicates the action the appliance takes when it encounters
6316 host names that do not comply with the Strict Hostname
6317 Checking policy. This method applies only if the host name
6318 restriction policy is set to "Strict Hostname Checking".
6319 bind_hostname_directive: The value of the hostname directive for
6320 BIND.
6321 blackhole_list: The list of IPv4 or IPv6 addresses and networks
6322 from which DNS queries are blocked.
6323 blacklist_action: The action to perform when a domain name
6324 matches the pattern defined in a rule that is specified by
6325 the blacklist ruleset.
6326 blacklist_log_query: Determines if blacklist redirection queries
6327 are logged or not.
6328 blacklist_redirect_addresses: The IP addresses the appliance
6329 includes in the response it sends in place of a blacklisted
6330 IP address.
6331 blacklist_redirect_ttl: The TTL value (in seconds) of the
6332 synthetic DNS responses that result from blacklist
6333 redirection.
6334 blacklist_rulesets: The DNS Ruleset object names assigned at the
6335 Grid level for blacklist redirection.
6336 bulk_host_name_templates: The list of bulk host name templates.
6337 There are four Infoblox predefined bulk host name templates.
6338 Template Name Template Format "Four Octets" -$1-$2-$3-$4
6339 "Three Octets" -$2-$3-$4 "Two Octets" -$3-$4 "One Octet" -$4
6340 capture_dns_queries_on_all_domains: Determines if the capture of
6341 DNS queries for all domains is enabled or disabled.
6342 check_names_for_ddns_and_zone_transfer: Determines whether the
6343 application of BIND check-names for zone transfers and DDNS
6344 updates are enabled.
6345 client_subnet_domains: The list of zone domain names that are
6346 allowed or forbidden for EDNS client subnet (ECS) recursion.
6347 client_subnet_ipv4_prefix_length: Default IPv4 Source Prefix-
6348 Length used when sending queries with EDNS client subnet
6349 option.
6350 client_subnet_ipv6_prefix_length: Default IPv6 Source Prefix-
6351 Length used when sending queries with EDNS client subnet
6352 option.
6353 copy_client_ip_mac_options: Copy custom IP, MAC and DNS View
6354 name ENDS0 options from incoming to outgoing recursive
6355 queries.
6356 copy_xfer_to_notify: The allowed IPs, from the zone transfer
6357 list, added to the also-notify statement in the named.conf
6358 file.
6359 custom_root_name_servers: The list of customized root
6360 nameserver(s). You can use Internet root name servers or
6361 specify host names and IP addresses of custom root name
6362 servers.
6363 ddns_force_creation_timestamp_update: Defines whether creation
6364 timestamp of RR should be updated ' when DDNS update happens
6365 even if there is no change to ' the RR.
6366 ddns_principal_group: The DDNS Principal cluster group name.
6367 ddns_principal_tracking: Determines if the DDNS principal track
6368 is enabled or disabled.
6369 ddns_restrict_patterns: Determines if an option to restrict DDNS
6370 update request based on FQDN patterns is enabled or
6371 disabled.
6372 ddns_restrict_patterns_list: The unordered list of restriction
6373 patterns for an option of to restrict DDNS updates based on
6374 FQDN patterns.
6375 ddns_restrict_protected: Determines if an option to restrict
6376 DDNS update request to protected resource records is enabled
6377 or disabled.
6378 ddns_restrict_secure: Determines if DDNS update request for
6379 principal other than target resource record's principal is
6380 restricted.
6381 ddns_restrict_static: Determines if an option to restrict DDNS
6382 update request to resource records which are marked as
6383 'STATIC' is enabled or disabled.
6384 default_bulk_host_name_template: Default bulk host name of a
6385 Grid DNS.
6386 default_ttl: The default TTL value of a Grid DNS object. This
6387 interval tells the secondary how long the data can be
6388 cached.
6389 disable_edns: Determines if the EDNS0 support for queries that
6390 require recursive resolution on Grid members is enabled or
6391 not.
6392 dns64_groups: The list of DNS64 synthesis groups associated with
6393 this Grid DNS object.
6394 dns_cache_acceleration_ttl: The minimum TTL value, in seconds,
6395 that a DNS record must have in order for it to be cached by
6396 the DNS Cache Acceleration service.An integer from 1 to
6397 65000 that represents the TTL in seconds.
6398 dns_health_check_anycast_control: Determines if the anycast
6399 failure (BFD session down) is enabled on member failure or
6400 not.
6401 dns_health_check_domain_list: The list of domain names for the
6402 DNS health check.
6403 dns_health_check_interval: The time interval (in seconds) for
6404 DNS health check.
6405 dns_health_check_recursion_flag: Determines if the recursive DNS
6406 health check is enabled or not.
6407 dns_health_check_retries: The number of DNS health check
6408 retries.
6409 dns_health_check_timeout: The DNS health check timeout interval
6410 (in seconds).
6411 dns_query_capture_file_time_limit: The time limit (in minutes)
6412 for the DNS query capture file.
6413 dnssec_blacklist_enabled: Determines if the blacklist rules for
6414 DNSSEC-enabled clients are enabled or not.
6415 dnssec_dns64_enabled: Determines if the DNS64 groups for DNSSEC-
6416 enabled clients are enabled or not.
6417 dnssec_enabled: Determines if the DNS security extension is
6418 enabled or not.
6419 dnssec_expired_signatures_enabled: Determines when the DNS
6420 member accepts expired signatures.
6421 dnssec_key_params: This structure contains the DNSSEC key
6422 parameters for this zone.
6423 dnssec_negative_trust_anchors: A list of zones for which the
6424 server does not perform DNSSEC validation.
6425 dnssec_nxdomain_enabled: Determines if the NXDOMAIN rules for
6426 DNSSEC-enabled clients are enabled or not.
6427 dnssec_rpz_enabled: Determines if the RPZ policies for DNSSEC-
6428 enabled clients are enabled or not.
6429 dnssec_trusted_keys: The list of trusted keys for the DNSSEC
6430 feature.
6431 dnssec_validation_enabled: Determines if the DNS security
6432 validation is enabled or not.
6433 dnstap_setting: The DNSTAP settings.
6434 domains_to_capture_dns_queries: The list of domains for DNS
6435 query capture.
6436 dtc_dns_queries_specific_behavior: Setting to control specific
6437 behavior for DTC DNS responses for incoming lbdn matched
6438 queries.
6439 dtc_dnssec_mode: DTC DNSSEC operation mode.
6440 dtc_edns_prefer_client_subnet: Determines whether to prefer the
6441 client address from the edns-client-subnet option for DTC or
6442 not.
6443 dtc_scheduled_backup: The scheduled backup configuration.
6444 dtc_topology_ea_list: The DTC topology extensible attribute
6445 definition list. When configuring a DTC topology, users may
6446 configure classification as either "Geographic" or
6447 "Extensible Attributes". Selecting extensible attributes
6448 will replace supported Topology database labels (Continent,
6449 Country, Subdivision, City) with the names of the selection
6450 EA types and provide values extracted from DHCP Network
6451 Container, Network and Range objects with those extensible
6452 attributes.
6453 edns_udp_size: Advertises the EDNS0 buffer size to the upstream
6454 server. The value should be between 512 and 4096 bytes. The
6455 recommended value is between 512 and 1220 bytes.
6456 email: The email address of a Grid DNS object.
6457 enable_blackhole: Determines if the blocking of DNS queries is
6458 enabled or not.
6459 enable_blacklist: Determines if a blacklist is enabled or not.
6460 enable_capture_dns_queries: Determines if the capture of DNS
6461 queries is enabled or disabled.
6462 enable_capture_dns_responses: Determines if the capture of DNS
6463 responses is enabled or disabled.
6464 enable_client_subnet_forwarding: Determines whether to enable
6465 forwarding EDNS client subnet options to upstream servers.
6466 enable_client_subnet_recursive: Determines whether to enable
6467 adding EDNS client subnet options in recursive resolution.
6468 enable_delete_associated_ptr: Determines if the ability to
6469 automatically remove associated PTR records while deleting A
6470 or AAAA records is enabled or not.
6471 enable_dns64: Determines if the DNS64 support is enabled or not.
6472 enable_dns_health_check: Determines if the DNS health check is
6473 enabled or not.
6474 enable_dnstap_queries: Determines whether the query messages
6475 need to be forwarded to DNSTAP or not.
6476 enable_dnstap_responses: Determines whether the response
6477 messages need to be forwarded to DNSTAP or not.
6478 enable_excluded_domain_names: Determines if excluding domain
6479 names from captured DNS queries and responses is enabled or
6480 disabled.
6481 enable_fixed_rrset_order_fqdns: Determines if the fixed RRset
6482 order FQDN is enabled or not.
6483 enable_ftc: Determines whether Fault Tolerant Caching (FTC) is
6484 enabled.
6485 enable_gss_tsig: Determines whether all appliances in the Grid
6486 are enabled to receive GSS-TSIG authenticated updates from
6487 DNS clients.
6488 enable_host_rrset_order: Determines if the host RRset order is
6489 enabled or not.
6490 enable_hsm_signing: Determines whether Hardware Security Modules
6491 (HSMs) are enabled for key generation and signing. Note,
6492 that you must configure the HSM group with at least one
6493 enabled HSM.
6494 enable_notify_source_port: Determines if the notify source port
6495 at the Grid Level is enabled or not.
6496 enable_query_rewrite: Determines if the DNS query rewrite is
6497 enabled or not.
6498 enable_query_source_port: Determines if the query source port at
6499 the Grid Level is enabled or not.
6500 excluded_domain_names: The list of domains that are excluded
6501 from DNS query and response capture.
6502 expire_after: The expiration time of a Grid DNS object. If the
6503 secondary DNS server fails to contact the primary server for
6504 the specified interval, the secondary server stops giving
6505 out answers about the zone because the zone data is too old
6506 to be useful.
6507 file_transfer_setting: The DNS capture file transfer
6508 settings.Include the specified parameter to set the
6509 attribute value. Omit the parameter to retrieve the
6510 attribute value.
6511 filter_aaaa: The type of AAAA filtering for this member DNS
6512 object.
6513 filter_aaaa_list: The list of IPv4 addresses and networks from
6514 which queries are received. AAAA filtering is applied to
6515 these addresses.
6516 fixed_rrset_order_fqdns: The fixed RRset order FQDN. If this
6517 field does not contain an empty value, the appliance will
6518 automatically set the enable_fixed_rrset_order_fqdns field
6519 to 'true', unless the same request sets the enable field to
6520 'false'.
6521 forward_only: Determines if member sends queries to forwarders
6522 only. When the value is "true", the member sends queries to
6523 forwarders only, and not to other internal or Internet root
6524 servers.
6525 forward_updates: Determines if secondary servers is allowed to
6526 forward updates to the DNS server or not.
6527 forwarders: The forwarders for the member. A forwarder is
6528 essentially a name server to which other name servers first
6529 send all of their off-site queries. The forwarder builds up
6530 a cache of information, avoiding the need for the other name
6531 servers to send queries off-site.
6532 ftc_expired_record_timeout: The timeout interval (in seconds)
6533 after which the expired Fault Tolerant Caching (FTC)record
6534 is stale and no longer valid.
6535 ftc_expired_record_ttl: The TTL value (in seconds) of the
6536 expired Fault Tolerant Caching (FTC) record in DNS
6537 responses.
6538 gen_eadb_from_hosts: Flag for taking EA values from IPAM Hosts
6539 into consideration for the DTC topology EA database.
6540 gen_eadb_from_network_containers: Flag for taking EA values from
6541 IPAM Network Containers into consideration for the DTC
6542 topology EA database.
6543 gen_eadb_from_networks: Flag for taking EA values from IPAM
6544 Network into consideration for the DTC topology EA database.
6545 gen_eadb_from_ranges: Flag for taking EA values from IPAM Ranges
6546 into consideration for the DTC topology EA database.
6547 gss_tsig_keys: The list of GSS-TSIG keys for a Grid DNS object.
6548 lame_ttl: The number of seconds to cache lame delegations or
6549 lame servers.
6550 last_queried_acl: Determines last queried ACL for the specified
6551 IPv4 or IPv6 addresses and networks in scavenging settings.
6552 logging_categories: The logging categories.
6553 max_cache_ttl: The maximum time (in seconds) for which the
6554 server will cache positive answers.
6555 max_cached_lifetime: The maximum time (in seconds) a DNS
6556 response can be stored in the hardware acceleration
6557 cache.Valid values are unsigned integer between 60 and
6558 86400, inclusive.
6559 max_ncache_ttl: The maximum time (in seconds) for which the
6560 server will cache negative (NXDOMAIN) responses.The maximum
6561 allowed value is 604800.
6562 max_udp_size: The value is used by authoritative DNS servers to
6563 never send DNS responses larger than the configured value.
6564 The value should be between 512 and 4096 bytes. The
6565 recommended value is between 512 and 1220 bytes.
6566 member_secondary_notify: Determines if Grid members that are
6567 authoritative secondary servers are allowed to send
6568 notification messages to external name servers, if the Grid
6569 member that is primary for a zone fails or loses
6570 connectivity.
6571 negative_ttl: The negative TTL value of a Grid DNS object. This
6572 interval tells the secondary how long data can be cached for
6573 "Does Not Respond" responses.
6574 notify_delay: Specifies with how many seconds of delay the
6575 notify messages are sent to secondaries.
6576 notify_source_port: The source port for notify messages. When
6577 requesting zone transfers from the primary server, some
6578 secondary DNS servers use the source port number (the
6579 primary server used to send the notify message) as the
6580 destination port number in the zone transfer request.Valid
6581 values are between 1 and 63999. The default is picked by
6582 BIND.
6583 nsgroup_default: The default nameserver group.
6584 nsgroups: A name server group is a collection of one primary DNS
6585 server and one or more secondary DNS servers.
6586 nxdomain_log_query: Determines if NXDOMAIN redirection queries
6587 are logged or not.
6588 nxdomain_redirect: Determines if NXDOMAIN redirection is enabled
6589 or not.
6590 nxdomain_redirect_addresses: The list of IPv4 NXDOMAIN
6591 redirection addresses.
6592 nxdomain_redirect_addresses_v6: The list of IPv6 NXDOMAIN
6593 redirection addresses.
6594 nxdomain_redirect_ttl: The TTL value (in seconds) of synthetic
6595 DNS responses that result from NXDOMAIN redirection.
6596 nxdomain_rulesets: The Ruleset object names assigned at the Grid
6597 level for NXDOMAIN redirection.
6598 preserve_host_rrset_order_on_secondaries: Determines if the host
6599 RRset order on secondaries is preserved or not.
6600 protocol_record_name_policies: The list of record name policies.
6601 query_rewrite_domain_names: The list of domain names that
6602 trigger DNS query rewrite.
6603 query_rewrite_prefix: The domain name prefix for DNS query
6604 rewrite.
6605 query_source_port: The source port for queries. Specifying a
6606 source port number for recursive queries ensures that a
6607 firewall will allow the response.Valid values are between 1
6608 and 63999. The default is picked by BIND.
6609 recursive_query_list: The list of IPv4 or IPv6 addresses,
6610 networks or hosts authenticated by Transaction signature
6611 (TSIG) key from which recursive queries are allowed or
6612 denied.
6613 refresh_timer: The refresh time. This interval tells the
6614 secondary how often to send a message to the primary for a
6615 zone to check that its data is current, and retrieve fresh
6616 data if it is not.
6617 resolver_query_timeout: The recursive query timeout for the
6618 member.
6619 response_rate_limiting: The response rate limiting settings for
6620 the member.
6621 restart_setting: The restart setting.
6622 retry_timer: The retry time. This interval tells the secondary
6623 how long to wait before attempting to recontact the primary
6624 after a connection failure occurs between the two servers.
6625 root_name_server_type: Determines the type of root name servers.
6626 rpz_disable_nsdname_nsip: Determines if NSDNAME and NSIP
6627 resource records from RPZ feeds are enabled or not.
6628 rpz_drop_ip_rule_enabled: Enables the appliance to ignore RPZ-IP
6629 triggers with prefix lengths less than the specified minimum
6630 prefix length.
6631 rpz_drop_ip_rule_min_prefix_length_ipv4: The minimum prefix
6632 length for IPv4 RPZ-IP triggers. The appliance ignores RPZ-
6633 IP triggers with prefix lengths less than the specified
6634 minimum IPv4 prefix length.
6635 rpz_drop_ip_rule_min_prefix_length_ipv6: The minimum prefix
6636 length for IPv6 RPZ-IP triggers. The appliance ignores RPZ-
6637 IP triggers with prefix lengths less than the specified
6638 minimum IPv6 prefix length.
6639 rpz_qname_wait_recurse: Determines if recursive RPZ lookups are
6640 enabled.
6641 scavenging_settings: The Grid level scavenging settings.
6642 serial_query_rate: The number of maximum concurrent SOA queries
6643 per second.Valid values are unsigned integer between 20 and
6644 1000, inclusive.
6645 server_id_directive: The value of the server-id directive for
6646 BIND and Unbound DNS.
6647 sortlist: A sort list determines the order of addresses in
6648 responses made to DNS queries.
6649 store_locally: Determines if the storage of query capture
6650 reports on the appliance is enabled or disabled.
6651 syslog_facility: The syslog facility. This is the location on
6652 the syslog server to which you want to sort the DNS logging
6653 messages.
6654 transfer_excluded_servers: The list of excluded DNS servers
6655 during zone transfers.
6656 transfer_format: The BIND format for a zone transfer. This
6657 provides tracking capabilities for single or multiple
6658 transfers and their associated servers.
6659 transfers_in: The number of maximum concurrent transfers for the
6660 Grid.Valid values are unsigned integer between 10 and 10000,
6661 inclusive.
6662 transfers_out: The number of maximum outbound concurrent zone
6663 transfers.Valid values are unsigned integer between 10 and
6664 10000, inclusive.
6665 transfers_per_ns: The number of maximum concurrent transfers per
6666 member.Valid values are unsigned integer between 2 and
6667 10000, inclusive.
6668 zone_deletion_double_confirm: Determines if the double
6669 confirmation during zone deletion is enabled or not.
6670 """
6671 _infoblox_type = 'grid:dns'
6672 _fields = ['add_client_ip_mac_options', 'allow_bulkhost_ddns',
6673 'allow_gss_tsig_zone_updates', 'allow_query',
6674 'allow_recursive_query', 'allow_transfer', 'allow_update',
6675 'anonymize_response_logging', 'attack_mitigation',
6676 'auto_blackhole', 'bind_check_names_policy',
6677 'bind_hostname_directive', 'blackhole_list', 'blacklist_action',
6678 'blacklist_log_query', 'blacklist_redirect_addresses',
6679 'blacklist_redirect_ttl', 'blacklist_rulesets',
6680 'bulk_host_name_templates',
6681 'capture_dns_queries_on_all_domains',
6682 'check_names_for_ddns_and_zone_transfer',
6683 'client_subnet_domains', 'client_subnet_ipv4_prefix_length',
6684 'client_subnet_ipv6_prefix_length',
6685 'copy_client_ip_mac_options', 'copy_xfer_to_notify',
6686 'custom_root_name_servers',
6687 'ddns_force_creation_timestamp_update', 'ddns_principal_group',
6688 'ddns_principal_tracking', 'ddns_restrict_patterns',
6689 'ddns_restrict_patterns_list', 'ddns_restrict_protected',
6690 'ddns_restrict_secure', 'ddns_restrict_static',
6691 'default_bulk_host_name_template', 'default_ttl',
6692 'disable_edns', 'dns64_groups', 'dns_cache_acceleration_ttl',
6693 'dns_health_check_anycast_control',
6694 'dns_health_check_domain_list', 'dns_health_check_interval',
6695 'dns_health_check_recursion_flag', 'dns_health_check_retries',
6696 'dns_health_check_timeout', 'dns_query_capture_file_time_limit',
6697 'dnssec_blacklist_enabled', 'dnssec_dns64_enabled',
6698 'dnssec_enabled', 'dnssec_expired_signatures_enabled',
6699 'dnssec_key_params', 'dnssec_negative_trust_anchors',
6700 'dnssec_nxdomain_enabled', 'dnssec_rpz_enabled',
6701 'dnssec_trusted_keys', 'dnssec_validation_enabled',
6702 'dnstap_setting', 'domains_to_capture_dns_queries',
6703 'dtc_dns_queries_specific_behavior', 'dtc_dnssec_mode',
6704 'dtc_edns_prefer_client_subnet', 'dtc_scheduled_backup',
6705 'dtc_topology_ea_list', 'edns_udp_size', 'email',
6706 'enable_blackhole', 'enable_blacklist',
6707 'enable_capture_dns_queries', 'enable_capture_dns_responses',
6708 'enable_client_subnet_forwarding',
6709 'enable_client_subnet_recursive',
6710 'enable_delete_associated_ptr', 'enable_dns64',
6711 'enable_dns_health_check', 'enable_dnstap_queries',
6712 'enable_dnstap_responses', 'enable_excluded_domain_names',
6713 'enable_fixed_rrset_order_fqdns', 'enable_ftc',
6714 'enable_gss_tsig', 'enable_host_rrset_order',
6715 'enable_hsm_signing', 'enable_notify_source_port',
6716 'enable_query_rewrite', 'enable_query_source_port',
6717 'excluded_domain_names', 'expire_after',
6718 'file_transfer_setting', 'filter_aaaa', 'filter_aaaa_list',
6719 'fixed_rrset_order_fqdns', 'forward_only', 'forward_updates',
6720 'forwarders', 'ftc_expired_record_timeout',
6721 'ftc_expired_record_ttl', 'gen_eadb_from_hosts',
6722 'gen_eadb_from_network_containers', 'gen_eadb_from_networks',
6723 'gen_eadb_from_ranges', 'gss_tsig_keys', 'lame_ttl',
6724 'last_queried_acl', 'logging_categories', 'max_cache_ttl',
6725 'max_cached_lifetime', 'max_ncache_ttl', 'max_udp_size',
6726 'member_secondary_notify', 'negative_ttl', 'notify_delay',
6727 'notify_source_port', 'nsgroup_default', 'nsgroups',
6728 'nxdomain_log_query', 'nxdomain_redirect',
6729 'nxdomain_redirect_addresses', 'nxdomain_redirect_addresses_v6',
6730 'nxdomain_redirect_ttl', 'nxdomain_rulesets',
6731 'preserve_host_rrset_order_on_secondaries',
6732 'protocol_record_name_policies', 'query_rewrite_domain_names',
6733 'query_rewrite_prefix', 'query_source_port',
6734 'recursive_query_list', 'refresh_timer',
6735 'resolver_query_timeout', 'response_rate_limiting',
6736 'restart_setting', 'retry_timer', 'root_name_server_type',
6737 'rpz_disable_nsdname_nsip', 'rpz_drop_ip_rule_enabled',
6738 'rpz_drop_ip_rule_min_prefix_length_ipv4',
6739 'rpz_drop_ip_rule_min_prefix_length_ipv6',
6740 'rpz_qname_wait_recurse', 'scavenging_settings',
6741 'serial_query_rate', 'server_id_directive', 'sortlist',
6742 'store_locally', 'syslog_facility', 'transfer_excluded_servers',
6743 'transfer_format', 'transfers_in', 'transfers_out',
6744 'transfers_per_ns', 'zone_deletion_double_confirm']
6745 _search_for_update_fields = []
6746 _updateable_search_fields = []
6747 _all_searchable_fields = []
6748 _return_fields = []
6749 _remap = {}
6750 _shadow_fields = ['_ref']
6751
6752 _custom_field_processing = {
6753 'allow_query': Addressac.from_dict,
6754 'allow_transfer': Addressac.from_dict,
6755 'allow_update': Addressac.from_dict,
6756 'blackhole_list': Addressac.from_dict,
6757 'client_subnet_domains': Clientsubnetdomain.from_dict,
6758 'custom_root_name_servers': Extserver.from_dict,
6759 'dnssec_trusted_keys': Dnssectrustedkey.from_dict,
6760 'filter_aaaa_list': Addressac.from_dict,
6761 'fixed_rrset_order_fqdns': GridDnsFixedrrsetorderfqdn.from_dict,
6762 'last_queried_acl': Addressac.from_dict,
6763 'recursive_query_list': Addressac.from_dict,
6764 'sortlist': Sortlist.from_dict,
6765 }
6766
6767 def run_scavenging(self, *args, **kwargs):
6768 return self._call_func("run_scavenging", *args, **kwargs)
6769
6770
6771 class GridFiledistribution(InfobloxObject):
6772 """ GridFiledistribution: Grid file distribution object.
6773 Corresponds to WAPI object 'grid:filedistribution'
6774
6775 The Grid file distribution object represents the file distribution
6776 storage limit configuration and global file distribution statistics.
6777
6778 Attributes:
6779 allow_uploads: Determines whether the uploads to Grid members
6780 are allowed.
6781 backup_storage: Determines whether to include distributed files
6782 in the backup.
6783 current_usage: The value is the percentage of the allocated TFTP
6784 storage space that is used, expressed in tenth of a percent.
6785 Valid values are from 0 to 1000.
6786 enable_anonymous_ftp: Determines whether the FTP anonymous login
6787 is enabled.
6788 global_status: The Grid file distribution global status.
6789 name: The Grid name.
6790 storage_limit: Maximum storage in megabytes allowed on the Grid.
6791 The maximum storage space allowed for all file distribution
6792 services on a Grid is equal to the storage space allowed to
6793 the Grid member with the smallest amount of space allowed.
6794 """
6795 _infoblox_type = 'grid:filedistribution'
6796 _fields = ['allow_uploads', 'backup_storage', 'current_usage',
6797 'enable_anonymous_ftp', 'global_status', 'name',
6798 'storage_limit']
6799 _search_for_update_fields = ['name']
6800 _updateable_search_fields = []
6801 _all_searchable_fields = ['name']
6802 _return_fields = ['allow_uploads', 'current_usage', 'global_status',
6803 'name', 'storage_limit']
6804 _remap = {}
6805 _shadow_fields = ['_ref']
6806
6807
6808 class GridLicensePool(InfobloxObject):
6809 """ GridLicensePool: Grid License Pool object.
6810 Corresponds to WAPI object 'grid:license_pool'
6811
6812 This object represents the Grid license pool.
6813
6814 Attributes:
6815 assigned: The number of dynamic licenses allocated to vNIOS
6816 appliances.
6817 expiration_status: The license expiration status.
6818 expiry_date: The expiration timestamp of the license.
6819 installed: The total number of dynamic licenses allowed for this
6820 license pool.
6821 key: The license string for the license pool.
6822 limit: The limitation of dynamic license that can be allocated
6823 from the license pool.
6824 limit_context: The license limit context.
6825 model: The supported vNIOS virtual appliance model.
6826 subpools: The license pool subpools.
6827 temp_assigned: The total number of temporary dynamic licenses
6828 allocated to vNIOS appliances.
6829 type: The license type.
6830 """
6831 _infoblox_type = 'grid:license_pool'
6832 _fields = ['assigned', 'expiration_status', 'expiry_date', 'installed',
6833 'key', 'limit', 'limit_context', 'model', 'subpools',
6834 'temp_assigned', 'type']
6835 _search_for_update_fields = ['type']
6836 _updateable_search_fields = []
6837 _all_searchable_fields = ['key', 'limit', 'model', 'type']
6838 _return_fields = ['type']
6839 _remap = {}
6840 _shadow_fields = ['_ref']
6841
6842 _custom_field_processing = {
6843 'subpools': GridLicensesubpool.from_dict,
6844 }
6845
6846
6847 class GridLicensePoolContainer(InfobloxObject):
6848 """ GridLicensePoolContainer: Grid License Pool Container object.
6849 Corresponds to WAPI object 'grid:license_pool_container'
6850
6851 This object represents the Grid license pool container.
6852
6853 Attributes:
6854 last_entitlement_update: The timestamp when the last pool
6855 licenses were updated.
6856 lpc_uid: The world-wide unique ID for the license pool
6857 container.
6858 """
6859 _infoblox_type = 'grid:license_pool_container'
6860 _fields = ['last_entitlement_update', 'lpc_uid']
6861 _search_for_update_fields = []
6862 _updateable_search_fields = []
6863 _all_searchable_fields = []
6864 _return_fields = []
6865 _remap = {}
6866 _shadow_fields = ['_ref']
6867
6868 def allocate_licenses(self, *args, **kwargs):
6869 return self._call_func("allocate_licenses", *args, **kwargs)
6870
6871
6872 class GridMaxminddbinfo(InfobloxObject):
6873 """ GridMaxminddbinfo: Topology DB Info object.
6874 Corresponds to WAPI object 'grid:maxminddbinfo'
6875
6876 The information about Topology DB.
6877
6878 Attributes:
6879 binary_major_version: The major version of DB binary format.
6880 binary_minor_version: The minor version of DB binary format.
6881 build_time: The time at which the DB was built.
6882 database_type: The structure of data records
6883 ("GeoLite2-Country", GeoLite2-City", etc.).
6884 deployment_time: The time at which the current Topology DB was
6885 deployed.
6886 member: The member for testing the connection.
6887 topology_type: The topology type.
6888 """
6889 _infoblox_type = 'grid:maxminddbinfo'
6890 _fields = ['binary_major_version', 'binary_minor_version', 'build_time',
6891 'database_type', 'deployment_time', 'member', 'topology_type']
6892 _search_for_update_fields = ['topology_type']
6893 _updateable_search_fields = []
6894 _all_searchable_fields = ['topology_type']
6895 _return_fields = ['binary_major_version', 'binary_minor_version',
6896 'build_time', 'database_type', 'deployment_time',
6897 'member', 'topology_type']
6898 _remap = {}
6899 _shadow_fields = ['_ref']
6900
6901
6902 class GridMemberCloudapi(InfobloxObject):
6903 """ GridMemberCloudapi: Member Cloud API object.
6904 Corresponds to WAPI object 'grid:member:cloudapi'
6905
6906 Class that represents member Cloud configuration settings.
6907
6908 Attributes:
6909 allow_api_admins: Defines which administrators are allowed to
6910 perform Cloud API request on the Grid Member: no
6911 administrators (NONE), any administrators (ALL) or
6912 administrators in the ACL list (LIST). Default is ALL.
6913 allowed_api_admins: List of administrators allowed to perform
6914 Cloud Platform API requests on that member.
6915 enable_service: Controls whether the Cloud API service runs on
6916 the member or not.
6917 extattrs: Extensible attributes associated with the object.For
6918 valid values for extensible attributes, see the following
6919 information.
6920 gateway_config: Structure containing all the information related
6921 to Gateway configuration for the member
6922 member: The related Grid Member.
6923 status: Status of Cloud API service on the member.
6924 """
6925 _infoblox_type = 'grid:member:cloudapi'
6926 _fields = ['allow_api_admins', 'allowed_api_admins', 'enable_service',
6927 'extattrs', 'gateway_config', 'member', 'status']
6928 _search_for_update_fields = []
6929 _updateable_search_fields = []
6930 _all_searchable_fields = []
6931 _return_fields = ['allow_api_admins', 'allowed_api_admins',
6932 'enable_service', 'extattrs', 'member', 'status']
6933 _remap = {}
6934 _shadow_fields = ['_ref']
6935
6936 _custom_field_processing = {
6937 'allowed_api_admins': GridCloudapiUser.from_dict,
6938 }
6939
6940
6941 class GridServicerestartGroup(InfobloxObject):
6942 """ GridServicerestartGroup: Service Restart Group object.
6943 Corresponds to WAPI object 'grid:servicerestart:group'
6944
6945 The Grid Service Restart Group object provides the following
6946 information about the restart: applicable services, members, restart
6947 order, and periodicity.
6948
6949 Attributes:
6950 comment: Comment for the Restart Group; maximum 256 characters.
6951 extattrs: Extensible attributes associated with the object.For
6952 valid values for extensible attributes, see the following
6953 information.
6954 is_default: Determines if this Restart Group is the default
6955 group.
6956 last_updated_time: The timestamp when the status of the latest
6957 request has changed.
6958 members: The list of members belonging to the group.
6959 mode: The default restart method for this Restart Group.
6960 name: The name of this Restart Group.
6961 position: The order to restart.
6962 recurring_schedule: The recurring schedule for restart of a
6963 group.
6964 requests: The list of requests associated with a restart group.
6965 service: The applicable service for this Restart Group.
6966 status: The restart status for a restart group.
6967 """
6968 _infoblox_type = 'grid:servicerestart:group'
6969 _fields = ['comment', 'extattrs', 'is_default', 'last_updated_time',
6970 'members', 'mode', 'name', 'position', 'recurring_schedule',
6971 'requests', 'service', 'status']
6972 _search_for_update_fields = ['name', 'service']
6973 _updateable_search_fields = ['comment', 'name', 'service']
6974 _all_searchable_fields = ['comment', 'is_default', 'name', 'service']
6975 _return_fields = ['comment', 'extattrs', 'name', 'service']
6976 _remap = {}
6977 _shadow_fields = ['_ref']
6978
6979
6980 class GridServicerestartGroupOrder(InfobloxObject):
6981 """ GridServicerestartGroupOrder: Restart Group Order object.
6982 Corresponds to WAPI object 'grid:servicerestart:group:order'
6983
6984 The Grid Service Restart Group Order Setting is used to set the
6985 restart order for particular services and members.
6986
6987 Attributes:
6988 groups: The ordered list of the Service Restart Group.
6989 """
6990 _infoblox_type = 'grid:servicerestart:group:order'
6991 _fields = ['groups']
6992 _search_for_update_fields = []
6993 _updateable_search_fields = []
6994 _all_searchable_fields = []
6995 _return_fields = []
6996 _remap = {}
6997 _shadow_fields = ['_ref']
6998
6999
7000 class GridServicerestartRequest(InfobloxObject):
7001 """ GridServicerestartRequest: Restart Request object.
7002 Corresponds to WAPI object 'grid:servicerestart:request'
7003
7004 The Restart Request object provides information and statistics about
7005 the service restart routine for the Service Restart Group.
7006
7007 Attributes:
7008 error: The error message if restart has failed.
7009 forced: Indicates if this is a force restart.
7010 group: The name of the Restart Group associated with the
7011 request.
7012 last_updated_time: The timestamp when the status of the request
7013 has changed.
7014 member: The member to restart.
7015 needed: Indicates if restart is needed.
7016 order: The order to restart.
7017 result: The result of the restart operation.
7018 service: The service to restart.
7019 state: The state of the request.
7020 """
7021 _infoblox_type = 'grid:servicerestart:request'
7022 _fields = ['error', 'forced', 'group', 'last_updated_time', 'member',
7023 'needed', 'order', 'result', 'service', 'state']
7024 _search_for_update_fields = ['group']
7025 _updateable_search_fields = []
7026 _all_searchable_fields = ['group', 'member']
7027 _return_fields = ['error', 'group', 'result', 'state']
7028 _remap = {}
7029 _shadow_fields = ['_ref']
7030
7031
7032 class GridServicerestartRequestChangedobject(InfobloxObject):
7033 """ GridServicerestartRequestChangedobject: Grid service restart
7034 request changed object.
7035 Corresponds to WAPI object
7036 'grid:servicerestart:request:changedobject'
7037
7038 The Grid service restart request changed object provides information
7039 about changes that are waiting for the restart.
7040
7041 Attributes:
7042 action: The operation on the changed object.
7043 changed_properties: The list of changed properties in the
7044 object.
7045 changed_time: The time when the object was changed.
7046 object_name: The name of the changed object.
7047 object_type: The type of the changed object. This is undefined
7048 if the object is not supported.
7049 user_name: The name of the user who changed the object
7050 properties.
7051 """
7052 _infoblox_type = 'grid:servicerestart:request:changedobject'
7053 _fields = ['action', 'changed_properties', 'changed_time', 'object_name',
7054 'object_type', 'user_name']
7055 _search_for_update_fields = ['user_name']
7056 _updateable_search_fields = []
7057 _all_searchable_fields = ['user_name']
7058 _return_fields = ['action', 'changed_properties', 'changed_time',
7059 'object_name', 'object_type', 'user_name']
7060 _remap = {}
7061 _shadow_fields = ['_ref']
7062
7063
7064 class GridServicerestartStatus(InfobloxObject):
7065 """ GridServicerestartStatus: Restart Status object.
7066 Corresponds to WAPI object 'grid:servicerestart:status'
7067
7068 The Restart Status object provides information and statistics about
7069 service restart routine for the Grid or Service Restart Group.
7070
7071 Attributes:
7072 failures: The number of failed requests.
7073 finished: The number of finished requests.
7074 grouped: The type of grouping.
7075 needed_restart: The number of created yet unprocessed requests
7076 for restart.
7077 no_restart: The number of requests that did not require a
7078 restart.
7079 parent: A reference to the grid or grid:servicerestart:group
7080 object associated with the request.
7081 pending: The number of requests that are pending a restart.
7082 pending_restart: The number of forced or needed requests pending
7083 for restart.
7084 processing: The number of not forced and not needed requests
7085 pending for restart.
7086 restarting: The number of service restarts for corresponding
7087 members.
7088 success: The number of requests associated with successful
7089 restarts.
7090 timeouts: The number of timeout requests.
7091 """
7092 _infoblox_type = 'grid:servicerestart:status'
7093 _fields = ['failures', 'finished', 'grouped', 'needed_restart',
7094 'no_restart', 'parent', 'pending', 'pending_restart',
7095 'processing', 'restarting', 'success', 'timeouts']
7096 _search_for_update_fields = ['parent']
7097 _updateable_search_fields = []
7098 _all_searchable_fields = ['parent']
7099 _return_fields = ['failures', 'finished', 'grouped', 'needed_restart',
7100 'no_restart', 'parent', 'pending', 'pending_restart',
7101 'processing', 'restarting', 'success', 'timeouts']
7102 _remap = {}
7103 _shadow_fields = ['_ref']
7104
7105
7106 class GridThreatanalytics(InfobloxObject):
7107 """ GridThreatanalytics: Grid threat analytics object.
7108 Corresponds to WAPI object 'grid:threatanalytics'
7109
7110 To mitigate DNS data exfiltration, Infoblox DNS threat analytics
7111 employs analytics algorithms that analyze incoming DNS queries and
7112 responses to detect DNS tunneling traffic.
7113
7114 The Grid threat analytics object contains settings and information
7115 about updates download, and mitigation response policy zone to which
7116 queries on blacklisted domains are transfered.
7117
7118 Attributes:
7119 configure_domain_collapsing: Disable domain collapsing at grid
7120 level
7121 current_moduleset: The current threat analytics module set.
7122 current_whitelist: The Grid whitelist.
7123 dns_tunnel_black_list_rpz_zones: The list of response policy
7124 zones for DNS tunnelling requests.
7125 domain_collapsing_level: Level of domain collapsing
7126 enable_auto_download: Determines whether the automatic threat
7127 analytics module set download is enabled.
7128 enable_scheduled_download: Determines whether the scheduled
7129 download of the threat analytics module set is enabled.
7130 enable_whitelist_auto_download: Indicates whether auto download
7131 service is enabled
7132 enable_whitelist_scheduled_download: Indicates whether the
7133 custom scheduled settings for auto download is enabled. If
7134 false then default frequency is once per 24 hours
7135 last_checked_for_update: The last time when the threat analytics
7136 module set was checked for the update.
7137 last_checked_for_whitelist_update: Timestamp of last checked
7138 whitelist
7139 last_module_update_time: The last update time for the threat
7140 analytics module set.
7141 last_module_update_version: The version number of the last
7142 updated threat analytics module set.
7143 last_whitelist_update_time: The last update time for the threat
7144 analytics whitelist.
7145 last_whitelist_update_version: The version number of the last
7146 updated threat analytics whitelist.
7147 module_update_policy: The update policy for the threat analytics
7148 module set.
7149 name: The Grid name.
7150 scheduled_download: The schedule settings for the threat
7151 analytics module set download.
7152 scheduled_whitelist_download: Schedule setting for automatic
7153 whitelist update run
7154 whitelist_update_policy: whitelist update policy (manual or
7155 automatic)
7156 """
7157 _infoblox_type = 'grid:threatanalytics'
7158 _fields = ['configure_domain_collapsing', 'current_moduleset',
7159 'current_whitelist', 'dns_tunnel_black_list_rpz_zones',
7160 'domain_collapsing_level', 'enable_auto_download',
7161 'enable_scheduled_download', 'enable_whitelist_auto_download',
7162 'enable_whitelist_scheduled_download',
7163 'last_checked_for_update', 'last_checked_for_whitelist_update',
7164 'last_module_update_time', 'last_module_update_version',
7165 'last_whitelist_update_time', 'last_whitelist_update_version',
7166 'module_update_policy', 'name', 'scheduled_download',
7167 'scheduled_whitelist_download', 'whitelist_update_policy']
7168 _search_for_update_fields = ['name']
7169 _updateable_search_fields = []
7170 _all_searchable_fields = ['name']
7171 _return_fields = ['enable_auto_download', 'enable_scheduled_download',
7172 'module_update_policy', 'name']
7173 _remap = {}
7174 _shadow_fields = ['_ref']
7175
7176 def download_threat_analytics_moduleset_update(self, *args, **kwargs):
7177 return self._call_func("download_threat_analytics_moduleset_update",
7178 *args, **kwargs)
7179
7180 def download_threat_analytics_whitelist_update(self, *args, **kwargs):
7181 return self._call_func("download_threat_analytics_whitelist_update",
7182 *args, **kwargs)
7183
7184 def move_blacklist_rpz_to_white_list(self, *args, **kwargs):
7185 return self._call_func("move_blacklist_rpz_to_white_list", *args,
7186 **kwargs)
7187
7188 def set_last_uploaded_threat_analytics_moduleset(self, *args, **kwargs):
7189 return self._call_func("set_last_uploaded_threat_analytics_moduleset",
7190 *args, **kwargs)
7191
7192 def test_threat_analytics_server_connectivity(self, *args, **kwargs):
7193 return self._call_func("test_threat_analytics_server_connectivity",
7194 *args, **kwargs)
7195
7196 def update_threat_analytics_moduleset(self, *args, **kwargs):
7197 return self._call_func("update_threat_analytics_moduleset", *args,
7198 **kwargs)
7199
7200
7201 class GridThreatprotection(InfobloxObject):
7202 """ GridThreatprotection: The Grid threat protection object.
7203 Corresponds to WAPI object 'grid:threatprotection'
7204
7205 The Grid threat protection settings.
7206
7207 Attributes:
7208 current_ruleset: The current Grid ruleset.
7209 disable_multiple_dns_tcp_request: Determines if multiple BIND
7210 responses via TCP connection are disabled.
7211 enable_accel_resp_before_threat_protection: Determines if DNS
7212 responses are sent from acceleration cache before applying
7213 Threat Protection rules. Recommended for better performance
7214 when using DNS Cache Acceleration.
7215 enable_auto_download: Determines if auto download service is
7216 enabled.
7217 enable_nat_rules: Determines if NAT (Network Address
7218 Translation) mapping for threat protection is enabled or
7219 not.
7220 enable_scheduled_download: Determines if scheduled download is
7221 enabled. The default frequency is once in every 24 hours if
7222 it is disabled.
7223 events_per_second_per_rule: The number of events logged per
7224 second per rule.
7225 grid_name: The Grid name.
7226 last_checked_for_update: The time when the Grid last checked for
7227 updates.
7228 last_rule_update_timestamp: The last rule update timestamp.
7229 last_rule_update_version: The version of last rule update.
7230 nat_rules: The list of NAT mapping rules for threat protection.
7231 outbound_settings: Outbound settings for ATP events.
7232 rule_update_policy: The update rule policy.
7233 scheduled_download: The schedule setting for automatic rule
7234 update.
7235 """
7236 _infoblox_type = 'grid:threatprotection'
7237 _fields = ['current_ruleset', 'disable_multiple_dns_tcp_request',
7238 'enable_accel_resp_before_threat_protection',
7239 'enable_auto_download', 'enable_nat_rules',
7240 'enable_scheduled_download', 'events_per_second_per_rule',
7241 'grid_name', 'last_checked_for_update',
7242 'last_rule_update_timestamp', 'last_rule_update_version',
7243 'nat_rules', 'outbound_settings', 'rule_update_policy',
7244 'scheduled_download']
7245 _search_for_update_fields = []
7246 _updateable_search_fields = []
7247 _all_searchable_fields = []
7248 _return_fields = ['grid_name']
7249 _remap = {}
7250 _shadow_fields = ['_ref']
7251
7252 _custom_field_processing = {
7253 'nat_rules': ThreatprotectionNatrule.from_dict,
7254 }
7255
7256 def atp_object_reset(self, *args, **kwargs):
7257 return self._call_func("atp_object_reset", *args, **kwargs)
7258
7259 def test_atp_server_connectivity(self, *args, **kwargs):
7260 return self._call_func("test_atp_server_connectivity", *args, **kwargs)
7261
7262
7263 class GridX509Certificate(InfobloxObject):
7264 """ GridX509Certificate: X509Certificate object.
7265 Corresponds to WAPI object 'grid:x509certificate'
7266
7267 In the X.509 system, a certification authority issues a certificate
7268 binding a public key to a particular distinguished name in the X.500
7269 tradition, or to an alternative name such as an e-mail address or a
7270 DNS entry.
7271
7272 Attributes:
7273 issuer: Certificate issuer.
7274 serial: X509Certificate serial number.
7275 subject: A Distinguished Name that is made of multiple relative
7276 distinguished names (RDNs).
7277 valid_not_after: Certificate expiry date.
7278 valid_not_before: Certificate validity start date.
7279 """
7280 _infoblox_type = 'grid:x509certificate'
7281 _fields = ['issuer', 'serial', 'subject', 'valid_not_after',
7282 'valid_not_before']
7283 _search_for_update_fields = ['issuer', 'serial', 'subject']
7284 _updateable_search_fields = []
7285 _all_searchable_fields = ['issuer', 'serial', 'subject', 'valid_not_after',
7286 'valid_not_before']
7287 _return_fields = ['issuer', 'serial', 'subject']
7288 _remap = {}
7289 _shadow_fields = ['_ref']
7290
7291
7292 class Hostnamerewritepolicy(InfobloxObject):
7293 """ Hostnamerewritepolicy: Hostname rewrite policy object.
7294 Corresponds to WAPI object 'hostnamerewritepolicy'
7295
7296 A hostname rewrite policy object represents the set of valid
7297 characters as well as replacement characters for names that do not
7298 conform to the policy.
7299
7300 Attributes:
7301 is_default: True if the policy is the Grid default.
7302 name: The name of a hostname rewrite policy object.
7303 pre_defined: Determines whether the policy is a predefined one.
7304 replacement_character: The replacement character for symbols in
7305 hostnames that do not conform to the hostname policy.
7306 valid_characters: The set of valid characters represented in
7307 string format.
7308 """
7309 _infoblox_type = 'hostnamerewritepolicy'
7310 _fields = ['is_default', 'name', 'pre_defined', 'replacement_character',
7311 'valid_characters']
7312 _search_for_update_fields = ['name']
7313 _updateable_search_fields = ['name']
7314 _all_searchable_fields = ['name']
7315 _return_fields = ['name', 'replacement_character', 'valid_characters']
7316 _remap = {}
7317 _shadow_fields = ['_ref']
7318
7319
7320 class HsmAllgroups(InfobloxObject):
7321 """ HsmAllgroups: All Hardware Security Module groups object.
7322 Corresponds to WAPI object 'hsm:allgroups'
7323
7324 The All Hardware Security Module (HSM) groups object is used to
7325 retrieve all HSM groups configured on the appliance.
7326
7327 Attributes:
7328 groups: The list of HSM groups configured on the appliance.
7329 """
7330 _infoblox_type = 'hsm:allgroups'
7331 _fields = ['groups']
7332 _search_for_update_fields = []
7333 _updateable_search_fields = []
7334 _all_searchable_fields = []
7335 _return_fields = ['groups']
7336 _remap = {}
7337 _shadow_fields = ['_ref']
7338
7339
7340 class HsmSafenetgroup(InfobloxObject):
7341 """ HsmSafenetgroup: The Hardware Security Module SafeNet group
7342 object.
7343 Corresponds to WAPI object 'hsm:safenetgroup'
7344
7345 You can integrate a Grid with a third-party, network-attached
7346 Hardware Security Modules (HSMs) for secure private key storage and
7347 generation, and zone-signing offloading. Infoblox appliances support
7348 integration with either SafeNet HSMs or Thales HSMs. When using a
7349 network-attached HSM, you can provide tight physical access control,
7350 allowing only selected security personnel to physically access the
7351 HSM that stores the DNSSEC keys.
7352
7353 The Hardware Security Module (HSM) SafeNet group represents the
7354 collection of HSM SafeeNet devices that are used for private key
7355 storage and generation.
7356
7357 Note that you can create one HSM SafeNet group in the Grid.
7358
7359 Attributes:
7360 comment: The HSM SafeNet group comment.
7361 group_sn: The HSM SafeNet group serial number.
7362 hsm_safenet: The list of HSM SafeNet devices.
7363 hsm_version: The HSM SafeNet version.
7364 name: The HSM SafeNet group name.
7365 pass_phrase: The pass phrase used to unlock the HSM SafeNet
7366 keystore.
7367 status: The status of all HSM SafeNet devices in the group.
7368 """
7369 _infoblox_type = 'hsm:safenetgroup'
7370 _fields = ['comment', 'group_sn', 'hsm_safenet', 'hsm_version', 'name',
7371 'pass_phrase', 'status']
7372 _search_for_update_fields = ['name']
7373 _updateable_search_fields = ['comment', 'name']
7374 _all_searchable_fields = ['comment', 'name']
7375 _return_fields = ['comment', 'hsm_version', 'name']
7376 _remap = {}
7377 _shadow_fields = ['_ref']
7378
7379 _custom_field_processing = {
7380 'hsm_safenet': HsmSafenet.from_dict,
7381 }
7382
7383 def refresh_hsm(self, *args, **kwargs):
7384 return self._call_func("refresh_hsm", *args, **kwargs)
7385
7386 def test_hsm_status(self, *args, **kwargs):
7387 return self._call_func("test_hsm_status", *args, **kwargs)
7388
7389
7390 class HsmThalesgroup(InfobloxObject):
7391 """ HsmThalesgroup: The Thales Harware Security Module group object.
7392 Corresponds to WAPI object 'hsm:thalesgroup'
7393
7394 You can integrate a Grid with a third-party, network-attached
7395 Hardware Security Modules (HSMs) for secure private key storage and
7396 generation, and zone-signing offloading. Infoblox appliances support
7397 integration with either SafeNet HSMs or Thales HSMs. When using a
7398 network-attached HSM, you can provide tight physical access control,
7399 allowing only selected security personnel to physically access the
7400 HSM that stores the DNSSEC keys.
7401
7402 The Thales Hardware Security Module (HSM) group represents the
7403 collection of Thales HSM devices that are used for private key
7404 storage and generation.
7405
7406 Note that you can create one Thales HSM group in the Grid.
7407
7408 Attributes:
7409 card_name: The Thales HSM softcard name.
7410 comment: The Thales HSM group comment.
7411 key_server_ip: The remote file server (RFS) IPv4 Address.
7412 key_server_port: The remote file server (RFS) port.
7413 name: The Thales HSM group name.
7414 pass_phrase: The password phrase used to unlock the Thales HSM
7415 keystore.
7416 protection: The level of protection that the HSM group uses for
7417 the DNSSEC key data.
7418 status: The status of all Thales HSM devices in the group.
7419 thales_hsm: The list of Thales HSM devices.
7420 """
7421 _infoblox_type = 'hsm:thalesgroup'
7422 _fields = ['card_name', 'comment', 'key_server_ip', 'key_server_port',
7423 'name', 'pass_phrase', 'protection', 'status', 'thales_hsm']
7424 _search_for_update_fields = ['name']
7425 _updateable_search_fields = ['comment', 'name']
7426 _all_searchable_fields = ['comment', 'name']
7427 _return_fields = ['comment', 'key_server_ip', 'name']
7428 _remap = {}
7429 _shadow_fields = ['_ref']
7430
7431 _custom_field_processing = {
7432 'thales_hsm': HsmThales.from_dict,
7433 }
7434
7435 def refresh_hsm(self, *args, **kwargs):
7436 return self._call_func("refresh_hsm", *args, **kwargs)
7437
7438 def test_hsm_status(self, *args, **kwargs):
7439 return self._call_func("test_hsm_status", *args, **kwargs)
7440
7441
7442 class IpamStatistics(InfobloxObject):
7443 """ IpamStatistics: IPAM statistics object.
7444 Corresponds to WAPI object 'ipam:statistics'
7445
7446 A synthetic object used to view the IPAM statistics of the network
7447 or network container in an Infoblox appliance
7448
7449 Attributes:
7450 cidr: The network CIDR.
7451 conflict_count: The number of conflicts discovered via network
7452 discovery. This attribute is only valid for a Network
7453 object.
7454 ms_ad_user_data: The Microsoft Active Directory user related
7455 information.
7456 network: The network address.
7457 network_view: The network view.
7458 unmanaged_count: The number of unmanaged IP addresses as
7459 discovered by network discovery. This attribute is only
7460 valid for a Network object.
7461 utilization: The network utilization in percentage.
7462 utilization_update: The time that the utilization statistics
7463 were updated last. This attribute is only valid for a
7464 Network object. For a Network Container object, the return
7465 value is undefined.
7466 """
7467 _infoblox_type = 'ipam:statistics'
7468 _fields = ['cidr', 'conflict_count', 'ms_ad_user_data', 'network',
7469 'network_view', 'unmanaged_count', 'utilization',
7470 'utilization_update']
7471 _search_for_update_fields = ['network', 'network_view']
7472 _updateable_search_fields = []
7473 _all_searchable_fields = ['network', 'network_view']
7474 _return_fields = ['cidr', 'network', 'network_view']
7475 _remap = {}
7476 _shadow_fields = ['_ref']
7477
7478
7479 class IPAddress(InfobloxObject):
7480 @classmethod
7481 def get_v4_class(cls):
7482 return IPv4Address
7483
7484 @classmethod
7485 def get_v6_class(cls):
7486 return IPv6Address
7487
7488
7489 class IPv4Address(IPAddress):
7490 """ IPv4Address: IPAM IPv4Address object.
7491 Corresponds to WAPI object 'ipv4address'
7492
7493 This object is created only as part of the record.host object , it
7494 cannot be created directly.
7495
7496 Attributes:
7497 comment: Comment for the address; maximum 256 characters.
7498 conflict_types: Types of the conflict.
7499 dhcp_client_identifier: The client unique identifier.
7500 discover_now_status: Discover now status for this address.
7501 discovered_data: The discovered data for this address.
7502 extattrs: Extensible attributes associated with the object.For
7503 valid values for extensible attributes, see the following
7504 information.
7505 fingerprint: DHCP fingerprint for the address.
7506 ip_address: The IP address.
7507 is_conflict: If set to True, the IP address has either a MAC
7508 address conflict or a DHCP lease conflict detected through a
7509 network discovery.
7510 is_invalid_mac: This flag reflects whether the MAC address for
7511 this address is invalid.
7512 lease_state: The lease state of the address.
7513 mac_address: The MAC address.
7514 ms_ad_user_data: The Microsoft Active Directory user related
7515 information.
7516 names: The DNS names. For example, if the IP address belongs to
7517 a host record, this field contains the hostname. This field
7518 supports both single and array search.
7519 network: The network to which this address belongs, in FQDN/CIDR
7520 format.
7521 network_view: The name of the network view.
7522 objects: The objects associated with the IP address.
7523 reserved_port: The reserved port for the address.
7524 status: The current status of the address.
7525 types: The types of associated objects. This field supports both
7526 single and array search.
7527 usage: Indicates whether the IP address is configured for DNS or
7528 DHCP. This field supports both single and array search.
7529 username: The name of the user who created or modified the
7530 record.
7531 """
7532 _infoblox_type = 'ipv4address'
7533 _fields = ['comment', 'conflict_types', 'dhcp_client_identifier',
7534 'discover_now_status', 'discovered_data', 'extattrs',
7535 'fingerprint', 'ip_address', 'is_conflict', 'is_invalid_mac',
7536 'lease_state', 'mac_address', 'ms_ad_user_data', 'names',
7537 'network', 'network_view', 'objects', 'reserved_port', 'status',
7538 'types', 'usage', 'username']
7539 _search_for_update_fields = ['dhcp_client_identifier', 'ip_address',
7540 'is_conflict', 'lease_state', 'mac_address',
7541 'names', 'network', 'network_view', 'status',
7542 'types', 'usage', 'username']
7543 _updateable_search_fields = []
7544 _all_searchable_fields = ['comment', 'dhcp_client_identifier',
7545 'fingerprint', 'ip_address', 'is_conflict',
7546 'lease_state', 'mac_address', 'names', 'network',
7547 'network_view', 'status', 'types', 'usage',
7548 'username']
7549 _return_fields = ['dhcp_client_identifier', 'extattrs', 'ip_address',
7550 'is_conflict', 'lease_state', 'mac_address', 'names',
7551 'network', 'network_view', 'objects', 'status', 'types',
7552 'usage', 'username']
7553 _remap = {}
7554 _shadow_fields = ['_ref']
7555 _ip_version = 4
7556
7557
7558 class IPv6Address(IPAddress):
7559 """ IPv6Address: IPAM IPv6Address object.
7560 Corresponds to WAPI object 'ipv6address'
7561
7562 This object is created only as part of the record.host object , it
7563 cannot be created directly.
7564
7565 Attributes:
7566 comment: Comment for the address; maximum 256 characters.
7567 conflict_types: Types of the conflict.
7568 discover_now_status: Discover now status for this address.
7569 discovered_data: The discovered data for this address.
7570 duid: DHCPv6 Unique Identifier (DUID) of the address object.
7571 extattrs: Extensible attributes associated with the object.For
7572 valid values for extensible attributes, see the following
7573 information.
7574 fingerprint: DHCP fingerprint for the address.
7575 ip_address: IPv6 addresses of the address object.
7576 is_conflict: IP address has either a duid conflict or a DHCP
7577 lease conflict detected through a network discovery.
7578 lease_state: The lease state of the address.
7579 ms_ad_user_data: The Microsoft Active Directory user related
7580 information.
7581 names: The DNS names. For example, if the IP address belongs to
7582 a host record, this field contains the hostname. This field
7583 supports both single and array search.
7584 network: The network to which this address belongs, in FQDN/CIDR
7585 format.
7586 network_view: The name of the network view.
7587 objects: The objects associated with the IP address.
7588 reserved_port: The reserved port for the address.
7589 status: The current status of the address.
7590 types: The types of associated objects. This field supports both
7591 single and array search.
7592 usage: Indicates whether the IP address is configured for DNS or
7593 DHCP. This field supports both single and array search.
7594 """
7595 _infoblox_type = 'ipv6address'
7596 _fields = ['comment', 'conflict_types', 'discover_now_status',
7597 'discovered_data', 'duid', 'extattrs', 'fingerprint',
7598 'ip_address', 'is_conflict', 'lease_state', 'ms_ad_user_data',
7599 'names', 'network', 'network_view', 'objects', 'reserved_port',
7600 'status', 'types', 'usage']
7601 _search_for_update_fields = ['duid', 'ip_address', 'is_conflict',
7602 'lease_state', 'names', 'network',
7603 'network_view', 'status', 'types', 'usage']
7604 _updateable_search_fields = []
7605 _all_searchable_fields = ['comment', 'duid', 'fingerprint', 'ip_address',
7606 'is_conflict', 'lease_state', 'names', 'network',
7607 'network_view', 'status', 'types', 'usage']
7608 _return_fields = ['duid', 'extattrs', 'ip_address', 'is_conflict',
7609 'lease_state', 'names', 'network', 'network_view',
7610 'objects', 'status', 'types', 'usage']
7611 _remap = {}
7612 _shadow_fields = ['_ref']
7613 _ip_version = 6
7614
7615
7616 class Ipv6Filteroption(InfobloxObject):
7617 """ Ipv6Filteroption: DHCP filter option object.
7618 Corresponds to WAPI object 'ipv6filteroption'
7619
7620 In the ISC DHCP terms, it defines a class of clients that match a
7621 particular (option, value) pair. To define an option filter, add an
7622 Option to the IPv6 DHCP Filter object.
7623
7624 Only superuser can add/modify/delete IPv6 option filters.
7625
7626 Attributes:
7627 apply_as_class: Determines if apply as class is enabled or not.
7628 If this flag is set to "true" the filter is treated as
7629 global DHCP class, e.g it is written to DHCPv6 configuration
7630 file even if it is not present in any DHCP range.
7631 comment: The descriptive comment of a DHCP IPv6 filter option
7632 object.
7633 expression: The conditional expression of a DHCP IPv6 filter
7634 option object.
7635 extattrs: Extensible attributes associated with the object.For
7636 valid values for extensible attributes, see the following
7637 information.
7638 lease_time: Determines the lease time of a DHCP IPv6 filter
7639 option object.
7640 name: The name of a DHCP IPv6 option filter object.
7641 option_list: An array of DHCP option structs that lists the DHCP
7642 options associated with the object.
7643 option_space: The option space of a DHCP IPv6 filter option
7644 object.
7645 """
7646 _infoblox_type = 'ipv6filteroption'
7647 _fields = ['apply_as_class', 'comment', 'expression', 'extattrs',
7648 'lease_time', 'name', 'option_list', 'option_space']
7649 _search_for_update_fields = ['name']
7650 _updateable_search_fields = ['comment', 'name']
7651 _all_searchable_fields = ['comment', 'name']
7652 _return_fields = ['comment', 'extattrs', 'name']
7653 _remap = {}
7654 _shadow_fields = ['_ref']
7655
7656 _custom_field_processing = {
7657 'option_list': DhcpOption.from_dict,
7658 }
7659
7660
7661 class Network(InfobloxObject):
7662 @classmethod
7663 def get_v4_class(cls):
7664 return NetworkV4
7665
7666 @classmethod
7667 def get_v6_class(cls):
7668 return NetworkV6
7669
7670
7671 class NetworkV4(Network):
7672 """ NetworkV4: DHCP Network object.
7673 Corresponds to WAPI object 'network'
7674
7675 When DHCP services are configured on an appliance, the network that
7676 it serves must be defined. After a network is created, you can
7677 either create all the subnets individually, or create a parent
7678 network that encompasses the subnets.
7679
7680 Attributes:
7681 authority: Authority for the DHCP network.
7682 auto_create_reversezone: This flag controls whether reverse
7683 zones are automatically created when the network is added.
7684 bootfile: The bootfile name for the network. You can configure
7685 the DHCP server to support clients that use the boot file
7686 name option in their DHCPREQUEST messages.
7687 bootserver: The bootserver address for the network. You can
7688 specify the name and/or IP address of the boot server that
7689 the host needs to boot.The boot server IPv4 Address or name
7690 in FQDN format.
7691 cloud_info: Structure containing all cloud API related
7692 information for this object.
7693 comment: Comment for the network, maximum 256 characters.
7694 conflict_count: The number of conflicts discovered via network
7695 discovery.
7696 ddns_domainname: The dynamic DNS domain name the appliance uses
7697 specifically for DDNS updates for this network.
7698 ddns_generate_hostname: If this field is set to True, the DHCP
7699 server generates a hostname and updates DNS with it when the
7700 DHCP client request does not contain a hostname.
7701 ddns_server_always_updates: This field controls whether only the
7702 DHCP server is allowed to update DNS, regardless of the DHCP
7703 clients requests. Note that changes for this field take
7704 effect only if ddns_use_option81 is True.
7705 ddns_ttl: The DNS update Time to Live (TTL) value of a DHCP
7706 network object.The TTL is a 32-bit unsigned integer that
7707 represents the duration, in seconds, for which the update is
7708 cached. Zero indicates that the update is not cached.
7709 ddns_update_fixed_addresses: By default, the DHCP server does
7710 not update DNS when it allocates a fixed address to a
7711 client. You can configure the DHCP server to update the A
7712 and PTR records of a client with a fixed address. When this
7713 feature is enabled and the DHCP server adds A and PTR
7714 records for a fixed address, the DHCP server never discards
7715 the records.
7716 ddns_use_option81: The support for DHCP Option 81 at the network
7717 level.
7718 delete_reason: The reason for deleting the RIR registration
7719 request.
7720 deny_bootp: If set to true, BOOTP settings are disabled and
7721 BOOTP requests will be denied.
7722 dhcp_utilization: The percentage of the total DHCP utilization
7723 of the network multiplied by 1000. This is the percentage of
7724 the total number of available IP addresses belonging to the
7725 network versus the total number of all IP addresses in
7726 network.
7727 dhcp_utilization_status: A string describing the utilization
7728 level of the network.
7729 disable: Determines whether a network is disabled or not. When
7730 this is set to False, the network is enabled.
7731 discover_now_status: Discover now status for this network.
7732 discovered_bgp_as: Number of the discovered BGP AS.When multiple
7733 BGP autonomous systems are discovered in the network, this
7734 field displays "Multiple".
7735 discovered_bridge_domain: Discovered bridge domain.
7736 discovered_tenant: Discovered tenant.
7737 discovered_vlan_id: The identifier of the discovered VLAN.When
7738 multiple VLANs are discovered in the network, this field
7739 displays "Multiple".
7740 discovered_vlan_name: The name of the discovered VLAN.When
7741 multiple VLANs are discovered in the network, this field
7742 displays "Multiple".
7743 discovered_vrf_description: Description of the discovered
7744 VRF.When multiple VRFs are discovered in the network, this
7745 field displays "Multiple".
7746 discovered_vrf_name: The name of the discovered VRF.When
7747 multiple VRFs are discovered in the network, this field
7748 displays "Multiple".
7749 discovered_vrf_rd: Route distinguisher of the discovered
7750 VRF.When multiple VRFs are discovered in the network, this
7751 field displays "Multiple".
7752 discovery_basic_poll_settings: The discovery basic poll settings
7753 for this network.
7754 discovery_blackout_setting: The discovery blackout setting for
7755 this network.
7756 discovery_engine_type: The network discovery engine type.
7757 discovery_member: The member that will run discovery for this
7758 network.
7759 dynamic_hosts: The total number of DHCP leases issued for the
7760 network.
7761 email_list: The e-mail lists to which the appliance sends DHCP
7762 threshold alarm e-mail messages.
7763 enable_ddns: The dynamic DNS updates flag of a DHCP network
7764 object. If set to True, the DHCP server sends DDNS updates
7765 to DNS servers in the same Grid, and to external DNS
7766 servers.
7767 enable_dhcp_thresholds: Determines if DHCP thresholds are
7768 enabled for the network.
7769 enable_discovery: Determines whether a discovery is enabled or
7770 not for this network. When this is set to False, the network
7771 discovery is disabled.
7772 enable_email_warnings: Determines if DHCP threshold warnings are
7773 sent through email.
7774 enable_ifmap_publishing: Determines if IFMAP publishing is
7775 enabled for the network.
7776 enable_immediate_discovery: Determines if the discovery for the
7777 network should be immediately enabled.
7778 enable_pxe_lease_time: Set this to True if you want the DHCP
7779 server to use a different lease time for PXE clients.
7780 enable_snmp_warnings: Determines if DHCP threshold warnings are
7781 send through SNMP.
7782 endpoint_sources: The endpoints that provides data for the DHCP
7783 Network object.
7784 extattrs: Extensible attributes associated with the object.For
7785 valid values for extensible attributes, see the following
7786 information.
7787 high_water_mark: The percentage of DHCP network usage threshold
7788 above which network usage is not expected and may warrant
7789 your attention. When the high watermark is reached, the
7790 Infoblox appliance generates a syslog message and sends a
7791 warning (if enabled).A number that specifies the percentage
7792 of allocated addresses. The range is from 1 to 100.
7793 high_water_mark_reset: The percentage of DHCP network usage
7794 below which the corresponding SNMP trap is reset.A number
7795 that specifies the percentage of allocated addresses. The
7796 range is from 1 to 100. The high watermark reset value must
7797 be lower than the high watermark value.
7798 ignore_dhcp_option_list_request: If this field is set to False,
7799 the appliance returns all DHCP options the client is
7800 eligible to receive, rather than only the list of options
7801 the client has requested.
7802 ignore_id: Indicates whether the appliance will ignore DHCP
7803 client IDs or MAC addresses. Valid values are "NONE",
7804 "CLIENT", or "MACADDR". The default is "NONE".
7805 ignore_mac_addresses: A list of MAC addresses the appliance will
7806 ignore.
7807 ipam_email_addresses: The e-mail lists to which the appliance
7808 sends IPAM threshold alarm e-mail messages.
7809 ipam_threshold_settings: The IPAM Threshold settings for this
7810 network.
7811 ipam_trap_settings: The IPAM Trap settings for this network.
7812 ipv4addr: The IPv4 Address of the network.
7813 last_rir_registration_update_sent: The timestamp when the last
7814 RIR registration update was sent.
7815 last_rir_registration_update_status: Last RIR registration
7816 update status.
7817 lease_scavenge_time: An integer that specifies the period of
7818 time (in seconds) that frees and backs up leases remained in
7819 the database before they are automatically deleted. To
7820 disable lease scavenging, set the parameter to -1. The
7821 minimum positive value must be greater than 86400 seconds (1
7822 day).
7823 logic_filter_rules: This field contains the logic filters to be
7824 applied on the this network.This list corresponds to the
7825 match rules that are written to the dhcpd configuration
7826 file.
7827 low_water_mark: The percentage of DHCP network usage below which
7828 the Infoblox appliance generates a syslog message and sends
7829 a warning (if enabled).A number that specifies the
7830 percentage of allocated addresses. The range is from 1 to
7831 100.
7832 low_water_mark_reset: The percentage of DHCP network usage
7833 threshold below which network usage is not expected and may
7834 warrant your attention. When the low watermark is crossed,
7835 the Infoblox appliance generates a syslog message and sends
7836 a warning (if enabled).A number that specifies the
7837 percentage of allocated addresses. The range is from 1 to
7838 100. The low watermark reset value must be higher than the
7839 low watermark value.
7840 members: A list of members or Microsoft (r) servers that serve
7841 DHCP for this network.
7842 mgm_private: This field controls whether this object is
7843 synchronized with the Multi-Grid Master. If this field is
7844 set to True, objects are not synchronized.
7845 mgm_private_overridable: This field is assumed to be True unless
7846 filled by any conforming objects, such as Network, IPv6
7847 Network, Network Container, IPv6 Network Container, and
7848 Network View. This value is set to False if mgm_private is
7849 set to True in the parent object.
7850 ms_ad_user_data: The Microsoft Active Directory user related
7851 information.
7852 netmask: The netmask of the network in CIDR format.
7853 network: The network address in IPv4 Address/CIDR format. For
7854 regular expression searches, only the IPv4 Address portion
7855 is supported. Searches for the CIDR portion is always an
7856 exact match.For example, both network containers 10.0.0.0/8
7857 and 20.1.0.0/16 are matched by expression '.0' and only
7858 20.1.0.0/16 is matched by '.0/16'.
7859 network_container: The network container to which this network
7860 belongs (if any).
7861 network_view: The name of the network view in which this network
7862 resides.
7863 nextserver: The name in FQDN and/or IPv4 Address of the next
7864 server that the host needs to boot.
7865 options: An array of DHCP option structs that lists the DHCP
7866 options associated with the object.
7867 port_control_blackout_setting: The port control blackout setting
7868 for this network.
7869 pxe_lease_time: The PXE lease time value of a DHCP Network
7870 object. Some hosts use PXE (Preboot Execution Environment)
7871 to boot remotely from a server. To better manage your IP
7872 resources, set a different lease time for PXE boot requests.
7873 You can configure the DHCP server to allocate an IP address
7874 with a shorter lease time to hosts that send PXE boot
7875 requests, so IP addresses are not leased longer than
7876 necessary.A 32-bit unsigned integer that represents the
7877 duration, in seconds, for which the update is cached. Zero
7878 indicates that the update is not cached.
7879 recycle_leases: If the field is set to True, the leases are kept
7880 in the Recycle Bin until one week after expiration.
7881 Otherwise, the leases are permanently deleted.
7882 restart_if_needed: Restarts the member service.
7883 rir: The registry (RIR) that allocated the network address
7884 space.
7885 rir_organization: The RIR organization assoicated with the
7886 network.
7887 rir_registration_action: The RIR registration action.
7888 rir_registration_status: The registration status of the network
7889 in RIR.
7890 same_port_control_discovery_blackout: If the field is set to
7891 True, the discovery blackout setting will be used for port
7892 control blackout setting.
7893 send_rir_request: Determines whether to send the RIR
7894 registration request.
7895 static_hosts: The number of static DHCP addresses configured in
7896 the network.
7897 subscribe_settings: The DHCP Network Cisco ISE subscribe
7898 settings.
7899 template: If set on creation, the network is created according
7900 to the values specified in the selected template.
7901 total_hosts: The total number of DHCP addresses configured in
7902 the network.
7903 unmanaged: Determines whether the DHCP IPv4 Network is unmanaged
7904 or not.
7905 unmanaged_count: The number of unmanaged IP addresses as
7906 discovered by network discovery.
7907 update_dns_on_lease_renewal: This field controls whether the
7908 DHCP server updates DNS when a DHCP lease is renewed.
7909 use_authority: Use flag for: authority
7910 use_blackout_setting: Use flag for: discovery_blackout_setting ,
7911 port_control_blackout_setting,
7912 same_port_control_discovery_blackout
7913 use_bootfile: Use flag for: bootfile
7914 use_bootserver: Use flag for: bootserver
7915 use_ddns_domainname: Use flag for: ddns_domainname
7916 use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
7917 use_ddns_ttl: Use flag for: ddns_ttl
7918 use_ddns_update_fixed_addresses: Use flag for:
7919 ddns_update_fixed_addresses
7920 use_ddns_use_option81: Use flag for: ddns_use_option81
7921 use_deny_bootp: Use flag for: deny_bootp
7922 use_discovery_basic_polling_settings: Use flag for:
7923 discovery_basic_poll_settings
7924 use_email_list: Use flag for: email_list
7925 use_enable_ddns: Use flag for: enable_ddns
7926 use_enable_dhcp_thresholds: Use flag for: enable_dhcp_thresholds
7927 use_enable_discovery: Use flag for: discovery_member ,
7928 enable_discovery
7929 use_enable_ifmap_publishing: Use flag for:
7930 enable_ifmap_publishing
7931 use_ignore_dhcp_option_list_request: Use flag for:
7932 ignore_dhcp_option_list_request
7933 use_ignore_id: Use flag for: ignore_id
7934 use_ipam_email_addresses: Use flag for: ipam_email_addresses
7935 use_ipam_threshold_settings: Use flag for:
7936 ipam_threshold_settings
7937 use_ipam_trap_settings: Use flag for: ipam_trap_settings
7938 use_lease_scavenge_time: Use flag for: lease_scavenge_time
7939 use_logic_filter_rules: Use flag for: logic_filter_rules
7940 use_mgm_private: Use flag for: mgm_private
7941 use_nextserver: Use flag for: nextserver
7942 use_options: Use flag for: options
7943 use_pxe_lease_time: Use flag for: pxe_lease_time
7944 use_recycle_leases: Use flag for: recycle_leases
7945 use_subscribe_settings: Use flag for: subscribe_settings
7946 use_update_dns_on_lease_renewal: Use flag for:
7947 update_dns_on_lease_renewal
7948 use_zone_associations: Use flag for: zone_associations
7949 utilization: The network utilization in percentage.
7950 utilization_update: The timestamp when the utilization
7951 statistics were last updated.
7952 vlans: List of VLANs assigned to Network.
7953 zone_associations: The list of zones associated with this
7954 network.
7955 """
7956 _infoblox_type = 'network'
7957 _fields = ['authority', 'auto_create_reversezone', 'bootfile',
7958 'bootserver', 'cloud_info', 'comment', 'conflict_count',
7959 'ddns_domainname', 'ddns_generate_hostname',
7960 'ddns_server_always_updates', 'ddns_ttl',
7961 'ddns_update_fixed_addresses', 'ddns_use_option81',
7962 'delete_reason', 'deny_bootp', 'dhcp_utilization',
7963 'dhcp_utilization_status', 'disable', 'discover_now_status',
7964 'discovered_bgp_as', 'discovered_bridge_domain',
7965 'discovered_tenant', 'discovered_vlan_id',
7966 'discovered_vlan_name', 'discovered_vrf_description',
7967 'discovered_vrf_name', 'discovered_vrf_rd',
7968 'discovery_basic_poll_settings', 'discovery_blackout_setting',
7969 'discovery_engine_type', 'discovery_member', 'dynamic_hosts',
7970 'email_list', 'enable_ddns', 'enable_dhcp_thresholds',
7971 'enable_discovery', 'enable_email_warnings',
7972 'enable_ifmap_publishing', 'enable_immediate_discovery',
7973 'enable_pxe_lease_time', 'enable_snmp_warnings',
7974 'endpoint_sources', 'extattrs', 'high_water_mark',
7975 'high_water_mark_reset', 'ignore_dhcp_option_list_request',
7976 'ignore_id', 'ignore_mac_addresses', 'ipam_email_addresses',
7977 'ipam_threshold_settings', 'ipam_trap_settings', 'ipv4addr',
7978 'last_rir_registration_update_sent',
7979 'last_rir_registration_update_status', 'lease_scavenge_time',
7980 'logic_filter_rules', 'low_water_mark', 'low_water_mark_reset',
7981 'members', 'mgm_private', 'mgm_private_overridable',
7982 'ms_ad_user_data', 'netmask', 'network', 'network_container',
7983 'network_view', 'nextserver', 'options',
7984 'port_control_blackout_setting', 'pxe_lease_time',
7985 'recycle_leases', 'restart_if_needed', 'rir',
7986 'rir_organization', 'rir_registration_action',
7987 'rir_registration_status',
7988 'same_port_control_discovery_blackout', 'send_rir_request',
7989 'static_hosts', 'subscribe_settings', 'template', 'total_hosts',
7990 'unmanaged', 'unmanaged_count', 'update_dns_on_lease_renewal',
7991 'use_authority', 'use_blackout_setting', 'use_bootfile',
7992 'use_bootserver', 'use_ddns_domainname',
7993 'use_ddns_generate_hostname', 'use_ddns_ttl',
7994 'use_ddns_update_fixed_addresses', 'use_ddns_use_option81',
7995 'use_deny_bootp', 'use_discovery_basic_polling_settings',
7996 'use_email_list', 'use_enable_ddns',
7997 'use_enable_dhcp_thresholds', 'use_enable_discovery',
7998 'use_enable_ifmap_publishing',
7999 'use_ignore_dhcp_option_list_request', 'use_ignore_id',
8000 'use_ipam_email_addresses', 'use_ipam_threshold_settings',
8001 'use_ipam_trap_settings', 'use_lease_scavenge_time',
8002 'use_logic_filter_rules', 'use_mgm_private', 'use_nextserver',
8003 'use_options', 'use_pxe_lease_time', 'use_recycle_leases',
8004 'use_subscribe_settings', 'use_update_dns_on_lease_renewal',
8005 'use_zone_associations', 'utilization', 'utilization_update',
8006 'vlans', 'zone_associations']
8007 _search_for_update_fields = ['network', 'network_view']
8008 _updateable_search_fields = ['comment', 'discovered_bridge_domain',
8009 'discovered_tenant', 'ipv4addr', 'network',
8010 'rir_organization', 'unmanaged']
8011 _all_searchable_fields = ['comment', 'discovered_bgp_as',
8012 'discovered_bridge_domain', 'discovered_tenant',
8013 'discovered_vlan_id', 'discovered_vlan_name',
8014 'discovered_vrf_description',
8015 'discovered_vrf_name', 'discovered_vrf_rd',
8016 'discovery_engine_type', 'ipv4addr', 'network',
8017 'network_container', 'network_view', 'rir',
8018 'rir_organization', 'unmanaged']
8019 _return_fields = ['comment', 'extattrs', 'network', 'network_view']
8020 _remap = {'cidr': 'network'}
8021 _shadow_fields = ['_ref', 'cidr']
8022 _ip_version = 4
8023
8024 _custom_field_processing = {
8025 'logic_filter_rules': Logicfilterrule.from_dict,
8026 'members': Dhcpmember.from_dict,
8027 'options': DhcpOption.from_dict,
8028 'vlans': Vlanlink.from_dict,
8029 'zone_associations': Zoneassociation.from_dict,
8030 }
8031
8032 def expand_network(self, *args, **kwargs):
8033 return self._call_func("expand_network", *args, **kwargs)
8034
8035 def next_available_ip(self, *args, **kwargs):
8036 return self._call_func("next_available_ip", *args, **kwargs)
8037
8038 def next_available_network(self, *args, **kwargs):
8039 return self._call_func("next_available_network", *args, **kwargs)
8040
8041 def next_available_vlan(self, *args, **kwargs):
8042 return self._call_func("next_available_vlan", *args, **kwargs)
8043
8044 def resize(self, *args, **kwargs):
8045 return self._call_func("resize", *args, **kwargs)
8046
8047 def split_network(self, *args, **kwargs):
8048 return self._call_func("split_network", *args, **kwargs)
8049
8050
8051 class NetworkV6(Network):
8052 """ NetworkV6: DHCP IPv6Network object.
8053 Corresponds to WAPI object 'ipv6network'
8054
8055 When DHCP services are configured on an appliance, the network that
8056 it serves must be defined. After a network is created, you can
8057 either create all the subnets individually, or create a parent
8058 network that encompasses the subnets.
8059
8060 Attributes:
8061 auto_create_reversezone: This flag controls whether reverse
8062 zones are automatically created when the network is added.
8063 cloud_info: Structure containing all cloud API related
8064 information for this object.
8065 comment: Comment for the network; maximum 256 characters.
8066 ddns_domainname: The dynamic DNS domain name the appliance uses
8067 specifically for DDNS updates for this network.
8068 ddns_enable_option_fqdn: Use this method to set or retrieve the
8069 ddns_enable_option_fqdn flag of a DHCP IPv6 Network object.
8070 This method controls whether the FQDN option sent by the
8071 client is to be used, or if the server can automatically
8072 generate the FQDN. This setting overrides the upper-level
8073 settings.
8074 ddns_generate_hostname: If this field is set to True, the DHCP
8075 server generates a hostname and updates DNS with it when the
8076 DHCP client request does not contain a hostname.
8077 ddns_server_always_updates: This field controls whether only the
8078 DHCP server is allowed to update DNS, regardless of the DHCP
8079 clients requests. Note that changes for this field take
8080 effect only if ddns_enable_option_fqdn is True.
8081 ddns_ttl: The DNS update Time to Live (TTL) value of a DHCP
8082 network object.The TTL is a 32-bit unsigned integer that
8083 represents the duration, in seconds, for which the update is
8084 cached. Zero indicates that the update is not cached.
8085 delete_reason: The reason for deleting the RIR registration
8086 request.
8087 disable: Determines whether a network is disabled or not. When
8088 this is set to False, the network is enabled.
8089 discover_now_status: Discover now status for this network.
8090 discovered_bgp_as: Number of the discovered BGP AS.When multiple
8091 BGP autonomous systems are discovered in the network, this
8092 field displays "Multiple".
8093 discovered_bridge_domain: Discovered bridge domain.
8094 discovered_tenant: Discovered tenant.
8095 discovered_vlan_id: The identifier of the discovered VLAN.When
8096 multiple VLANs are discovered in the network, this field
8097 displays "Multiple".
8098 discovered_vlan_name: The name of the discovered VLAN.When
8099 multiple VLANs are discovered in the network, this field
8100 displays "Multiple".
8101 discovered_vrf_description: Description of the discovered
8102 VRF.When multiple VRFs are discovered in the network, this
8103 field displays "Multiple".
8104 discovered_vrf_name: The name of the discovered VRF.When
8105 multiple VRFs are discovered in the network, this field
8106 displays "Multiple".
8107 discovered_vrf_rd: Route distinguisher of the discovered
8108 VRF.When multiple VRFs are discovered in the network, this
8109 field displays "Multiple".
8110 discovery_basic_poll_settings: The discovery basic poll settings
8111 for this network.
8112 discovery_blackout_setting: The discovery blackout setting for
8113 this network.
8114 discovery_engine_type: The network discovery engine type.
8115 discovery_member: The member that will run discovery for this
8116 network.
8117 domain_name: Use this method to set or retrieve the domain_name
8118 value of a DHCP IPv6 Network object.
8119 domain_name_servers: Use this method to set or retrieve the
8120 dynamic DNS updates flag of a DHCP IPv6 Network object. The
8121 DHCP server can send DDNS updates to DNS servers in the same
8122 Grid and to external DNS servers. This setting overrides the
8123 member level settings.
8124 enable_ddns: The dynamic DNS updates flag of a DHCP IPv6 network
8125 object. If set to True, the DHCP server sends DDNS updates
8126 to DNS servers in the same Grid, and to external DNS
8127 servers.
8128 enable_discovery: Determines whether a discovery is enabled or
8129 not for this network. When this is set to False, the network
8130 discovery is disabled.
8131 enable_ifmap_publishing: Determines if IFMAP publishing is
8132 enabled for the network.
8133 enable_immediate_discovery: Determines if the discovery for the
8134 network should be immediately enabled.
8135 endpoint_sources: The endpoints that provides data for the DHCP
8136 IPv6 Network object.
8137 extattrs: Extensible attributes associated with the object.For
8138 valid values for extensible attributes, see the following
8139 information.
8140 last_rir_registration_update_sent: The timestamp when the last
8141 RIR registration update was sent.
8142 last_rir_registration_update_status: Last RIR registration
8143 update status.
8144 logic_filter_rules: This field contains the logic filters to be
8145 applied on this IPv6 network.This list corresponds to the
8146 match rules that are written to the DHCPv6 configuration
8147 file.
8148 members: A list of members servers that serve DHCP for the
8149 network.All members in the array must be of the same type.
8150 The struct type must be indicated in each element, by
8151 setting the "_struct" member to the struct type.
8152 mgm_private: This field controls whether this object is
8153 synchronized with the Multi-Grid Master. If this field is
8154 set to True, objects are not synchronized.
8155 mgm_private_overridable: This field is assumed to be True unless
8156 filled by any conforming objects, such as Network, IPv6
8157 Network, Network Container, IPv6 Network Container, and
8158 Network View. This value is set to False if mgm_private is
8159 set to True in the parent object.
8160 ms_ad_user_data: The Microsoft Active Directory user related
8161 information.
8162 network: The network address in IPv6 Address/CIDR format. For
8163 regular expression searches, only the IPv6 Address portion
8164 is supported. Searches for the CIDR portion is always an
8165 exact match.For example, both network containers 16::0/28
8166 and 26::0/24 are matched by expression '.6' and only
8167 26::0/24 is matched by '.6/24'.
8168 network_container: The network container to which this network
8169 belongs, if any.
8170 network_view: The name of the network view in which this network
8171 resides.
8172 options: An array of DHCP option structs that lists the DHCP
8173 options associated with the object.
8174 port_control_blackout_setting: The port control blackout setting
8175 for this network.
8176 preferred_lifetime: Use this method to set or retrieve the
8177 preferred lifetime value of a DHCP IPv6 Network object.
8178 recycle_leases: If the field is set to True, the leases are kept
8179 in the Recycle Bin until one week after expiration.
8180 Otherwise, the leases are permanently deleted.
8181 restart_if_needed: Restarts the member service.
8182 rir: The registry (RIR) that allocated the IPv6 network address
8183 space.
8184 rir_organization: The RIR organization associated with the IPv6
8185 network.
8186 rir_registration_action: The RIR registration action.
8187 rir_registration_status: The registration status of the IPv6
8188 network in RIR.
8189 same_port_control_discovery_blackout: If the field is set to
8190 True, the discovery blackout setting will be used for port
8191 control blackout setting.
8192 send_rir_request: Determines whether to send the RIR
8193 registration request.
8194 subscribe_settings: The DHCP IPv6 Network Cisco ISE subscribe
8195 settings.
8196 template: If set on creation, the network is created according
8197 to the values specified in the selected template.
8198 unmanaged: Determines whether the DHCP IPv6 Network is unmanaged
8199 or not.
8200 unmanaged_count: The number of unmanaged IP addresses as
8201 discovered by network discovery.
8202 update_dns_on_lease_renewal: This field controls whether the
8203 DHCP server updates DNS when a DHCP lease is renewed.
8204 use_blackout_setting: Use flag for: discovery_blackout_setting ,
8205 port_control_blackout_setting,
8206 same_port_control_discovery_blackout
8207 use_ddns_domainname: Use flag for: ddns_domainname
8208 use_ddns_enable_option_fqdn: Use flag for:
8209 ddns_enable_option_fqdn
8210 use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
8211 use_ddns_ttl: Use flag for: ddns_ttl
8212 use_discovery_basic_polling_settings: Use flag for:
8213 discovery_basic_poll_settings
8214 use_domain_name: Use flag for: domain_name
8215 use_domain_name_servers: Use flag for: domain_name_servers
8216 use_enable_ddns: Use flag for: enable_ddns
8217 use_enable_discovery: Use flag for: discovery_member ,
8218 enable_discovery
8219 use_enable_ifmap_publishing: Use flag for:
8220 enable_ifmap_publishing
8221 use_logic_filter_rules: Use flag for: logic_filter_rules
8222 use_mgm_private: Use flag for: mgm_private
8223 use_options: Use flag for: options
8224 use_preferred_lifetime: Use flag for: preferred_lifetime
8225 use_recycle_leases: Use flag for: recycle_leases
8226 use_subscribe_settings: Use flag for: subscribe_settings
8227 use_update_dns_on_lease_renewal: Use flag for:
8228 update_dns_on_lease_renewal
8229 use_valid_lifetime: Use flag for: valid_lifetime
8230 use_zone_associations: Use flag for: zone_associations
8231 valid_lifetime: Use this method to set or retrieve the valid
8232 lifetime value of a DHCP IPv6 Network object.
8233 vlans: List of VLANs assigned to Network.
8234 zone_associations: The list of zones associated with this
8235 network.
8236 """
8237 _infoblox_type = 'ipv6network'
8238 _fields = ['auto_create_reversezone', 'cloud_info', 'comment',
8239 'ddns_domainname', 'ddns_enable_option_fqdn',
8240 'ddns_generate_hostname', 'ddns_server_always_updates',
8241 'ddns_ttl', 'delete_reason', 'disable', 'discover_now_status',
8242 'discovered_bgp_as', 'discovered_bridge_domain',
8243 'discovered_tenant', 'discovered_vlan_id',
8244 'discovered_vlan_name', 'discovered_vrf_description',
8245 'discovered_vrf_name', 'discovered_vrf_rd',
8246 'discovery_basic_poll_settings', 'discovery_blackout_setting',
8247 'discovery_engine_type', 'discovery_member', 'domain_name',
8248 'domain_name_servers', 'enable_ddns', 'enable_discovery',
8249 'enable_ifmap_publishing', 'enable_immediate_discovery',
8250 'endpoint_sources', 'extattrs',
8251 'last_rir_registration_update_sent',
8252 'last_rir_registration_update_status', 'logic_filter_rules',
8253 'members', 'mgm_private', 'mgm_private_overridable',
8254 'ms_ad_user_data', 'network', 'network_container',
8255 'network_view', 'options', 'port_control_blackout_setting',
8256 'preferred_lifetime', 'recycle_leases', 'restart_if_needed',
8257 'rir', 'rir_organization', 'rir_registration_action',
8258 'rir_registration_status',
8259 'same_port_control_discovery_blackout', 'send_rir_request',
8260 'subscribe_settings', 'template', 'unmanaged',
8261 'unmanaged_count', 'update_dns_on_lease_renewal',
8262 'use_blackout_setting', 'use_ddns_domainname',
8263 'use_ddns_enable_option_fqdn', 'use_ddns_generate_hostname',
8264 'use_ddns_ttl', 'use_discovery_basic_polling_settings',
8265 'use_domain_name', 'use_domain_name_servers', 'use_enable_ddns',
8266 'use_enable_discovery', 'use_enable_ifmap_publishing',
8267 'use_logic_filter_rules', 'use_mgm_private', 'use_options',
8268 'use_preferred_lifetime', 'use_recycle_leases',
8269 'use_subscribe_settings', 'use_update_dns_on_lease_renewal',
8270 'use_valid_lifetime', 'use_zone_associations', 'valid_lifetime',
8271 'vlans', 'zone_associations']
8272 _search_for_update_fields = ['network', 'network_view']
8273 _updateable_search_fields = ['comment', 'discovered_bridge_domain',
8274 'discovered_tenant', 'network',
8275 'network_view', 'rir_organization',
8276 'unmanaged']
8277 _all_searchable_fields = ['comment', 'discovered_bgp_as',
8278 'discovered_bridge_domain', 'discovered_tenant',
8279 'discovered_vlan_id', 'discovered_vlan_name',
8280 'discovered_vrf_description',
8281 'discovered_vrf_name', 'discovered_vrf_rd',
8282 'discovery_engine_type', 'network',
8283 'network_container', 'network_view', 'rir',
8284 'rir_organization', 'unmanaged']
8285 _return_fields = ['comment', 'extattrs', 'network', 'network_view']
8286 _remap = {'cidr': 'network'}
8287 _shadow_fields = ['_ref', 'cidr']
8288 _ip_version = 6
8289
8290 _custom_field_processing = {
8291 'logic_filter_rules': Logicfilterrule.from_dict,
8292 'members': Dhcpmember.from_dict,
8293 'options': DhcpOption.from_dict,
8294 'vlans': Vlanlink.from_dict,
8295 'zone_associations': Zoneassociation.from_dict,
8296 }
8297
8298 def expand_network(self, *args, **kwargs):
8299 return self._call_func("expand_network", *args, **kwargs)
8300
8301 def next_available_ip(self, *args, **kwargs):
8302 return self._call_func("next_available_ip", *args, **kwargs)
8303
8304 def next_available_network(self, *args, **kwargs):
8305 return self._call_func("next_available_network", *args, **kwargs)
8306
8307 def next_available_vlan(self, *args, **kwargs):
8308 return self._call_func("next_available_vlan", *args, **kwargs)
8309
8310 def split_network(self, *args, **kwargs):
8311 return self._call_func("split_network", *args, **kwargs)
8312
8313
8314 class NetworkContainer(InfobloxObject):
8315 @classmethod
8316 def get_v4_class(cls):
8317 return NetworkContainerV4
8318
8319 @classmethod
8320 def get_v6_class(cls):
8321 return NetworkContainerV6
8322
8323
8324 class NetworkContainerV4(NetworkContainer):
8325 """ NetworkContainerV4: DHCP Network Container object.
8326 Corresponds to WAPI object 'networkcontainer'
8327
8328 A network can contain child networks. The network that contains
8329 child networks is called a network container. This object
8330 encapsulates an IPv4 network container object.
8331
8332 Attributes:
8333 authority: Authority for the DHCP network container.
8334 auto_create_reversezone: This flag controls whether reverse
8335 zones are automatically created when the network is added.
8336 bootfile: The boot server IPv4 Address or name in FQDN format
8337 for the network container. You can specify the name and/or
8338 IP address of the boot server that the host needs to boot.
8339 bootserver: The bootserver address for the network container.
8340 You can specify the name and/or IP address of the boot
8341 server that the host needs to boot.The boot server IPv4
8342 Address or name in FQDN format.
8343 cloud_info: Structure containing all cloud API related
8344 information for this object.
8345 comment: Comment for the network container; maximum 256
8346 characters.
8347 ddns_domainname: The dynamic DNS domain name the appliance uses
8348 specifically for DDNS updates for this network container.
8349 ddns_generate_hostname: If this field is set to True, the DHCP
8350 server generates a hostname and updates DNS with it when the
8351 DHCP client request does not contain a hostname.
8352 ddns_server_always_updates: This field controls whether the DHCP
8353 server is allowed to update DNS, regardless of the DHCP
8354 client requests. Note that changes for this field take
8355 effect only if ddns_use_option81 is True.
8356 ddns_ttl: The DNS update Time to Live (TTL) value of a DHCP
8357 network container object.The TTL is a 32-bit unsigned
8358 integer that represents the duration, in seconds, for which
8359 the update is cached. Zero indicates that the update is not
8360 cached.
8361 ddns_update_fixed_addresses: By default, the DHCP server does
8362 not update DNS when it allocates a fixed address to a
8363 client. You can configure the DHCP server to update the A
8364 and PTR records of a client with a fixed address. When this
8365 feature is enabled and the DHCP server adds A and PTR
8366 records for a fixed address, the DHCP server never discards
8367 the records.
8368 ddns_use_option81: The support for DHCP Option 81 at the network
8369 container level.
8370 delete_reason: The reason for deleting the RIR registration
8371 request.
8372 deny_bootp: If set to True, BOOTP settings are disabled and
8373 BOOTP requests will be denied.
8374 discover_now_status: Discover now status for this network
8375 container.
8376 discovery_basic_poll_settings: The discovery basic poll settings
8377 for this network container.
8378 discovery_blackout_setting: The discovery blackout setting for
8379 this network container.
8380 discovery_engine_type: The network discovery engine type.
8381 discovery_member: The member that will run discovery for this
8382 network container.
8383 email_list: The e-mail lists to which the appliance sends DHCP
8384 threshold alarm e-mail messages.
8385 enable_ddns: The dynamic DNS updates flag of a DHCP network
8386 container object. If set to True, the DHCP server sends DDNS
8387 updates to DNS servers in the same Grid, and to external DNS
8388 servers.
8389 enable_dhcp_thresholds: Determines if DHCP thresholds are
8390 enabled for the network container.
8391 enable_discovery: Determines whether a discovery is enabled or
8392 not for this network container. When this is set to False,
8393 the network container discovery is disabled.
8394 enable_email_warnings: Determines if DHCP threshold warnings are
8395 sent through email.
8396 enable_immediate_discovery: Determines if the discovery for the
8397 network container should be immediately enabled.
8398 enable_pxe_lease_time: Set this to True if you want the DHCP
8399 server to use a different lease time for PXE clients.
8400 enable_snmp_warnings: Determines if DHCP threshold warnings are
8401 send through SNMP.
8402 endpoint_sources: The endpoints that provides data for the DHCP
8403 Network Container object.
8404 extattrs: Extensible attributes associated with the object.For
8405 valid values for extensible attributes, see the following
8406 information.
8407 high_water_mark: The percentage of DHCP network container usage
8408 threshold above which network container usage is not
8409 expected and may warrant your attention. When the high
8410 watermark is reached, the Infoblox appliance generates a
8411 syslog message and sends a warning (if enabled).A number
8412 that specifies the percentage of allocated addresses. The
8413 range is from 1 to 100.
8414 high_water_mark_reset: The percentage of DHCP network container
8415 usage below which the corresponding SNMP trap is reset.A
8416 number that specifies the percentage of allocated addresses.
8417 The range is from 1 to 100. The high watermark reset value
8418 must be lower than the high watermark value.
8419 ignore_dhcp_option_list_request: If this field is set to False,
8420 the appliance returns all DHCP options the client is
8421 eligible to receive, rather than only the list of options
8422 the client has requested.
8423 ignore_id: Indicates whether the appliance will ignore DHCP
8424 client IDs or MAC addresses.
8425 ignore_mac_addresses: A list of MAC addresses the appliance will
8426 ignore.
8427 ipam_email_addresses: The e-mail lists to which the appliance
8428 sends IPAM threshold alarm e-mail messages.
8429 ipam_threshold_settings: The IPAM Threshold settings for this
8430 network container.
8431 ipam_trap_settings: The IPAM Trap settings for this network
8432 container.
8433 last_rir_registration_update_sent: The timestamp when the last
8434 RIR registration update was sent.
8435 last_rir_registration_update_status: Last RIR registration
8436 update status.
8437 lease_scavenge_time: An integer that specifies the period of
8438 time (in seconds) that frees and backs up leases remained in
8439 the database before they are automatically deleted. To
8440 disable lease scavenging, set the parameter to -1. The
8441 minimum positive value must be greater than 86400 seconds (1
8442 day).
8443 logic_filter_rules: This field contains the logic filters to be
8444 applied on the this network container.This list corresponds
8445 to the match rules that are written to the dhcpd
8446 configuration file.
8447 low_water_mark: The percentage of DHCP network container usage
8448 below which the Infoblox appliance generates a syslog
8449 message and sends a warning (if enabled).A number that
8450 specifies the percentage of allocated addresses. The range
8451 is from 1 to 100.
8452 low_water_mark_reset: The percentage of DHCP network container
8453 usage threshold below which network container usage is not
8454 expected and may warrant your attention. When the low
8455 watermark is crossed, the Infoblox appliance generates a
8456 syslog message and sends a warning (if enabled).A number
8457 that specifies the percentage of allocated addresses. The
8458 range is from 1 to 100. The low watermark reset value must
8459 be higher than the low watermark value.
8460 mgm_private: This field controls whether this object is
8461 synchronized with the Multi-Grid Master. If this field is
8462 set to True, objects are not synchronized.
8463 mgm_private_overridable: This field is assumed to be True unless
8464 filled by any conforming objects, such as Network, IPv6
8465 Network, Network Container, IPv6 Network Container, and
8466 Network View. This value is set to False if mgm_private is
8467 set to True in the parent object.
8468 ms_ad_user_data: The Microsoft Active Directory user related
8469 information.
8470 network: The network address in IPv4 Address/CIDR format. For
8471 regular expression searches, only the IPv4 Address portion
8472 is supported. Searches for the CIDR portion is always an
8473 exact match.For example, both network containers 10.0.0.0/8
8474 and 20.1.0.0/16 are matched by expression '.0' and only
8475 20.1.0.0/16 is matched by '.0/16'.
8476 network_container: The network container to which this network
8477 belongs, if any.
8478 network_view: The name of the network view in which this network
8479 resides.
8480 nextserver: The name in FQDN and/or IPv4 Address of the next
8481 server that the host needs to boot.
8482 options: An array of DHCP option structs that lists the DHCP
8483 options associated with the object.
8484 port_control_blackout_setting: The port control blackout setting
8485 for this network container.
8486 pxe_lease_time: The PXE lease time value of a DHCP Network
8487 container object. Some hosts use PXE (Preboot Execution
8488 Environment) to boot remotely from a server. To better
8489 manage your IP resources, set a different lease time for PXE
8490 boot requests. You can configure the DHCP server to allocate
8491 an IP address with a shorter lease time to hosts that send
8492 PXE boot requests, so IP addresses are not leased longer
8493 than necessary.A 32-bit unsigned integer that represents the
8494 duration, in seconds, for which the update is cached. Zero
8495 indicates that the update is not cached.
8496 recycle_leases: If the field is set to True, the leases are kept
8497 in the Recycle Bin until one week after expiration.
8498 Otherwise, the leases are permanently deleted.
8499 restart_if_needed: Restarts the member service.
8500 rir: The registry (RIR) that allocated the network container
8501 address space.
8502 rir_organization: The RIR organization assoicated with the
8503 network container.
8504 rir_registration_action: The RIR registration action.
8505 rir_registration_status: The registration status of the network
8506 container in RIR.
8507 same_port_control_discovery_blackout: If the field is set to
8508 True, the discovery blackout setting will be used for port
8509 control blackout setting.
8510 send_rir_request: Determines whether to send the RIR
8511 registration request.
8512 subscribe_settings: The DHCP Network Container Cisco ISE
8513 subscribe settings.
8514 unmanaged: Determines whether the network container is unmanaged
8515 or not.
8516 update_dns_on_lease_renewal: This field controls whether the
8517 DHCP server updates DNS when a DHCP lease is renewed.
8518 use_authority: Use flag for: authority
8519 use_blackout_setting: Use flag for: discovery_blackout_setting ,
8520 port_control_blackout_setting,
8521 same_port_control_discovery_blackout
8522 use_bootfile: Use flag for: bootfile
8523 use_bootserver: Use flag for: bootserver
8524 use_ddns_domainname: Use flag for: ddns_domainname
8525 use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
8526 use_ddns_ttl: Use flag for: ddns_ttl
8527 use_ddns_update_fixed_addresses: Use flag for:
8528 ddns_update_fixed_addresses
8529 use_ddns_use_option81: Use flag for: ddns_use_option81
8530 use_deny_bootp: Use flag for: deny_bootp
8531 use_discovery_basic_polling_settings: Use flag for:
8532 discovery_basic_poll_settings
8533 use_email_list: Use flag for: email_list
8534 use_enable_ddns: Use flag for: enable_ddns
8535 use_enable_dhcp_thresholds: Use flag for: enable_dhcp_thresholds
8536 use_enable_discovery: Use flag for: discovery_member ,
8537 enable_discovery
8538 use_ignore_dhcp_option_list_request: Use flag for:
8539 ignore_dhcp_option_list_request
8540 use_ignore_id: Use flag for: ignore_id
8541 use_ipam_email_addresses: Use flag for: ipam_email_addresses
8542 use_ipam_threshold_settings: Use flag for:
8543 ipam_threshold_settings
8544 use_ipam_trap_settings: Use flag for: ipam_trap_settings
8545 use_lease_scavenge_time: Use flag for: lease_scavenge_time
8546 use_logic_filter_rules: Use flag for: logic_filter_rules
8547 use_mgm_private: Use flag for: mgm_private
8548 use_nextserver: Use flag for: nextserver
8549 use_options: Use flag for: options
8550 use_pxe_lease_time: Use flag for: pxe_lease_time
8551 use_recycle_leases: Use flag for: recycle_leases
8552 use_subscribe_settings: Use flag for: subscribe_settings
8553 use_update_dns_on_lease_renewal: Use flag for:
8554 update_dns_on_lease_renewal
8555 use_zone_associations: Use flag for: zone_associations
8556 utilization: The network container utilization in percentage.
8557 zone_associations: The list of zones associated with this
8558 network.
8559 """
8560 _infoblox_type = 'networkcontainer'
8561 _fields = ['authority', 'auto_create_reversezone', 'bootfile',
8562 'bootserver', 'cloud_info', 'comment', 'ddns_domainname',
8563 'ddns_generate_hostname', 'ddns_server_always_updates',
8564 'ddns_ttl', 'ddns_update_fixed_addresses', 'ddns_use_option81',
8565 'delete_reason', 'deny_bootp', 'discover_now_status',
8566 'discovery_basic_poll_settings', 'discovery_blackout_setting',
8567 'discovery_engine_type', 'discovery_member', 'email_list',
8568 'enable_ddns', 'enable_dhcp_thresholds', 'enable_discovery',
8569 'enable_email_warnings', 'enable_immediate_discovery',
8570 'enable_pxe_lease_time', 'enable_snmp_warnings',
8571 'endpoint_sources', 'extattrs', 'high_water_mark',
8572 'high_water_mark_reset', 'ignore_dhcp_option_list_request',
8573 'ignore_id', 'ignore_mac_addresses', 'ipam_email_addresses',
8574 'ipam_threshold_settings', 'ipam_trap_settings',
8575 'last_rir_registration_update_sent',
8576 'last_rir_registration_update_status', 'lease_scavenge_time',
8577 'logic_filter_rules', 'low_water_mark', 'low_water_mark_reset',
8578 'mgm_private', 'mgm_private_overridable', 'ms_ad_user_data',
8579 'network', 'network_container', 'network_view', 'nextserver',
8580 'options', 'port_control_blackout_setting', 'pxe_lease_time',
8581 'recycle_leases', 'remove_subnets', 'restart_if_needed', 'rir',
8582 'rir_organization', 'rir_registration_action',
8583 'rir_registration_status',
8584 'same_port_control_discovery_blackout', 'send_rir_request',
8585 'subscribe_settings', 'unmanaged',
8586 'update_dns_on_lease_renewal', 'use_authority',
8587 'use_blackout_setting', 'use_bootfile', 'use_bootserver',
8588 'use_ddns_domainname', 'use_ddns_generate_hostname',
8589 'use_ddns_ttl', 'use_ddns_update_fixed_addresses',
8590 'use_ddns_use_option81', 'use_deny_bootp',
8591 'use_discovery_basic_polling_settings', 'use_email_list',
8592 'use_enable_ddns', 'use_enable_dhcp_thresholds',
8593 'use_enable_discovery', 'use_ignore_dhcp_option_list_request',
8594 'use_ignore_id', 'use_ipam_email_addresses',
8595 'use_ipam_threshold_settings', 'use_ipam_trap_settings',
8596 'use_lease_scavenge_time', 'use_logic_filter_rules',
8597 'use_mgm_private', 'use_nextserver', 'use_options',
8598 'use_pxe_lease_time', 'use_recycle_leases',
8599 'use_subscribe_settings', 'use_update_dns_on_lease_renewal',
8600 'use_zone_associations', 'utilization', 'zone_associations']
8601 _search_for_update_fields = ['network', 'network_view']
8602 _updateable_search_fields = ['comment', 'rir_organization', 'unmanaged']
8603 _all_searchable_fields = ['comment', 'discovery_engine_type', 'network',
8604 'network_container', 'network_view', 'rir',
8605 'rir_organization', 'unmanaged']
8606 _return_fields = ['comment', 'extattrs', 'network', 'network_view']
8607 _remap = {}
8608 _shadow_fields = ['_ref']
8609 _ip_version = 4
8610
8611 _custom_field_processing = {
8612 'logic_filter_rules': Logicfilterrule.from_dict,
8613 'options': DhcpOption.from_dict,
8614 'zone_associations': Zoneassociation.from_dict,
8615 }
8616
8617 def next_available_network(self, *args, **kwargs):
8618 return self._call_func("next_available_network", *args, **kwargs)
8619
8620 def resize(self, *args, **kwargs):
8621 return self._call_func("resize", *args, **kwargs)
8622
8623
8624 class NetworkContainerV6(NetworkContainer):
8625 """ NetworkContainerV6: DHCP IPv6NetworkContainer object.
8626 Corresponds to WAPI object 'ipv6networkcontainer'
8627
8628 A network can contain child networks. The network that contains
8629 child networks is called a network container. This object
8630 encapsulates an IPv6 network container object.
8631
8632 Attributes:
8633 auto_create_reversezone: This flag controls whether reverse
8634 zones are automatically created when the network is added.
8635 cloud_info: Structure containing all cloud API related
8636 information for this object.
8637 comment: Comment for the network; maximum 256 characters.
8638 ddns_domainname: The dynamic DNS domain name the appliance uses
8639 specifically for DDNS updates for this network container.
8640 ddns_enable_option_fqdn: Use this method to set or retrieve the
8641 ddns_enable_option_fqdn flag of a DHCP IPv6 Network
8642 Container object. This method controls whether the FQDN
8643 option sent by the client is to be used, or if the server
8644 can automatically generate the FQDN. This setting overrides
8645 the upper-level settings.
8646 ddns_generate_hostname: If this field is set to True, the DHCP
8647 server generates a hostname and updates DNS with it when the
8648 DHCP client request does not contain a hostname.
8649 ddns_server_always_updates: This field controls whether the DHCP
8650 server is allowed to update DNS, regardless of the DHCP
8651 client requests. Note that changes for this field take
8652 effect only if ddns_enable_option_fqdn is True.
8653 ddns_ttl: The DNS update Time to Live (TTL) value of a DHCP
8654 network container object.The TTL is a 32-bit unsigned
8655 integer that represents the duration, in seconds, for which
8656 the update is cached. Zero indicates that the update is not
8657 cached.
8658 delete_reason: The reason for deleting the RIR registration
8659 request.
8660 discover_now_status: Discover now status for this network
8661 container.
8662 discovery_basic_poll_settings: The discovery basic poll settings
8663 for this network container.
8664 discovery_blackout_setting: The discovery blackout setting for
8665 this network container.
8666 discovery_engine_type: The network discovery engine type.
8667 discovery_member: The member that will run discovery for this
8668 network container.
8669 domain_name_servers: Use this method to set or retrieve the
8670 dynamic DNS updates flag of a DHCP IPv6 Network Container
8671 object. The DHCP server can send DDNS updates to DNS servers
8672 in the same Grid and to external DNS servers. This setting
8673 overrides the member level settings.
8674 enable_ddns: The dynamic DNS updates flag of a DHCP IPv6 network
8675 container object. If set to True, the DHCP server sends DDNS
8676 updates to DNS servers in the same Grid, and to external DNS
8677 servers.
8678 enable_discovery: Determines whether a discovery is enabled or
8679 not for this network container. When this is set to False,
8680 the network container discovery is disabled.
8681 enable_immediate_discovery: Determines if the discovery for the
8682 network container should be immediately enabled.
8683 endpoint_sources: The endpoints that provides data for the DHCP
8684 IPv6 Network Container.
8685 extattrs: Extensible attributes associated with the object.For
8686 valid values for extensible attributes, see the following
8687 information.
8688 last_rir_registration_update_sent: The timestamp when the last
8689 RIR registration update was sent.
8690 last_rir_registration_update_status: Last RIR registration
8691 update status.
8692 logic_filter_rules: This field contains the logic filters to be
8693 applied on the this network container.This list corresponds
8694 to the match rules that are written to the dhcpd
8695 configuration file.
8696 mgm_private: This field controls whether this object is
8697 synchronized with the Multi-Grid Master. If this field is
8698 set to True, objects are not synchronized.
8699 mgm_private_overridable: This field is assumed to be True unless
8700 filled by any conforming objects, such as Network, IPv6
8701 Network, Network Container, IPv6 Network Container, and
8702 Network View. This value is set to False if mgm_private is
8703 set to True in the parent object.
8704 ms_ad_user_data: The Microsoft Active Directory user related
8705 information.
8706 network: The network address in IPv6 Address/CIDR format. For
8707 regular expression searches, only the IPv6 Address portion
8708 is supported. Searches for the CIDR portion is always an
8709 exact match.For example, both network containers 16::0/28
8710 and 26::0/24 are matched by expression '.6' and only
8711 26::0/24 is matched by '.6/24'.
8712 network_container: The network container to which this network
8713 belongs, if any.
8714 network_view: The name of the network view in which this network
8715 resides.
8716 options: An array of DHCP option structs that lists the DHCP
8717 options associated with the object.
8718 port_control_blackout_setting: The port control blackout setting
8719 for this network container.
8720 preferred_lifetime: Use this method to set or retrieve the
8721 preferred lifetime value of a DHCP IPv6 Network Container
8722 object.
8723 restart_if_needed: Restarts the member service.
8724 rir: The registry (RIR) that allocated the IPv6 network
8725 container address space.
8726 rir_organization: The RIR organization associated with the IPv6
8727 network container.
8728 rir_registration_action: The RIR registration action.
8729 rir_registration_status: The registration status of the IPv6
8730 network container in RIR.
8731 same_port_control_discovery_blackout: If the field is set to
8732 True, the discovery blackout setting will be used for port
8733 control blackout setting.
8734 send_rir_request: Determines whether to send the RIR
8735 registration request.
8736 subscribe_settings: The DHCP IPv6 Network Container Cisco ISE
8737 subscribe settings.
8738 unmanaged: Determines whether the network container is unmanaged
8739 or not.
8740 update_dns_on_lease_renewal: This field controls whether the
8741 DHCP server updates DNS when a DHCP lease is renewed.
8742 use_blackout_setting: Use flag for: discovery_blackout_setting ,
8743 port_control_blackout_setting,
8744 same_port_control_discovery_blackout
8745 use_ddns_domainname: Use flag for: ddns_domainname
8746 use_ddns_enable_option_fqdn: Use flag for:
8747 ddns_enable_option_fqdn
8748 use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
8749 use_ddns_ttl: Use flag for: ddns_ttl
8750 use_discovery_basic_polling_settings: Use flag for:
8751 discovery_basic_poll_settings
8752 use_domain_name_servers: Use flag for: domain_name_servers
8753 use_enable_ddns: Use flag for: enable_ddns
8754 use_enable_discovery: Use flag for: discovery_member ,
8755 enable_discovery
8756 use_logic_filter_rules: Use flag for: logic_filter_rules
8757 use_mgm_private: Use flag for: mgm_private
8758 use_options: Use flag for: options
8759 use_preferred_lifetime: Use flag for: preferred_lifetime
8760 use_subscribe_settings: Use flag for: subscribe_settings
8761 use_update_dns_on_lease_renewal: Use flag for:
8762 update_dns_on_lease_renewal
8763 use_valid_lifetime: Use flag for: valid_lifetime
8764 use_zone_associations: Use flag for: zone_associations
8765 utilization: The network container utilization in percentage.
8766 valid_lifetime: Use this method to set or retrieve the valid
8767 lifetime value of a DHCP IPv6 Network Container object.
8768 zone_associations: The list of zones associated with this
8769 network container.
8770 """
8771 _infoblox_type = 'ipv6networkcontainer'
8772 _fields = ['auto_create_reversezone', 'cloud_info', 'comment',
8773 'ddns_domainname', 'ddns_enable_option_fqdn',
8774 'ddns_generate_hostname', 'ddns_server_always_updates',
8775 'ddns_ttl', 'delete_reason', 'discover_now_status',
8776 'discovery_basic_poll_settings', 'discovery_blackout_setting',
8777 'discovery_engine_type', 'discovery_member',
8778 'domain_name_servers', 'enable_ddns', 'enable_discovery',
8779 'enable_immediate_discovery', 'endpoint_sources', 'extattrs',
8780 'last_rir_registration_update_sent',
8781 'last_rir_registration_update_status', 'logic_filter_rules',
8782 'mgm_private', 'mgm_private_overridable', 'ms_ad_user_data',
8783 'network', 'network_container', 'network_view', 'options',
8784 'port_control_blackout_setting', 'preferred_lifetime',
8785 'remove_subnets', 'restart_if_needed', 'rir',
8786 'rir_organization', 'rir_registration_action',
8787 'rir_registration_status',
8788 'same_port_control_discovery_blackout', 'send_rir_request',
8789 'subscribe_settings', 'unmanaged',
8790 'update_dns_on_lease_renewal', 'use_blackout_setting',
8791 'use_ddns_domainname', 'use_ddns_enable_option_fqdn',
8792 'use_ddns_generate_hostname', 'use_ddns_ttl',
8793 'use_discovery_basic_polling_settings',
8794 'use_domain_name_servers', 'use_enable_ddns',
8795 'use_enable_discovery', 'use_logic_filter_rules',
8796 'use_mgm_private', 'use_options', 'use_preferred_lifetime',
8797 'use_subscribe_settings', 'use_update_dns_on_lease_renewal',
8798 'use_valid_lifetime', 'use_zone_associations', 'utilization',
8799 'valid_lifetime', 'zone_associations']
8800 _search_for_update_fields = ['network', 'network_view']
8801 _updateable_search_fields = ['comment', 'network_view', 'rir_organization',
8802 'unmanaged']
8803 _all_searchable_fields = ['comment', 'discovery_engine_type', 'network',
8804 'network_container', 'network_view', 'rir',
8805 'rir_organization', 'unmanaged']
8806 _return_fields = ['comment', 'extattrs', 'network', 'network_view']
8807 _remap = {}
8808 _shadow_fields = ['_ref']
8809 _ip_version = 6
8810
8811 _custom_field_processing = {
8812 'logic_filter_rules': Logicfilterrule.from_dict,
8813 'options': DhcpOption.from_dict,
8814 'zone_associations': Zoneassociation.from_dict,
8815 }
8816
8817 def next_available_network(self, *args, **kwargs):
8818 return self._call_func("next_available_network", *args, **kwargs)
8819
8820
8821 class NetworkTemplate(InfobloxObject):
8822 @classmethod
8823 def get_v4_class(cls):
8824 return NetworkTemplateV4
8825
8826 @classmethod
8827 def get_v6_class(cls):
8828 return NetworkTemplateV6
8829
8830
8831 class NetworkTemplateV4(NetworkTemplate):
8832 """ NetworkTemplateV4: DHCP Network template object.
8833 Corresponds to WAPI object 'networktemplate'
8834
8835 The network template used to create networks in a quick and
8836 consistent way. Networks created from a network template inherit all
8837 the properties defined in the network template, except for the
8838 comment and netmask that can be defined in the network.
8839
8840 Attributes:
8841 allow_any_netmask: This flag controls whether the template
8842 allows any netmask. You must specify a netmask when creating
8843 a network using this template. If you set this parameter to
8844 false, you must specify the "netmask" field for the network
8845 template object.
8846 authority: Authority for the DHCP network.
8847 auto_create_reversezone: This flag controls whether reverse
8848 zones are automatically created when the network is added.
8849 bootfile: The boot server IPv4 Address or name in FQDN format
8850 for the network. You can specify the name and/or IP address
8851 of the boot server that the host needs to boot.
8852 bootserver: The bootserver address for the network. You can
8853 specify the name and/or IP address of the boot server that
8854 the host needs to boot.The boot server IPv4 Address or name
8855 in FQDN format.
8856 cloud_api_compatible: This flag controls whether this template
8857 can be used to create network objects in a cloud-computing
8858 deployment.
8859 comment: Comment for the network; maximum 256 characters.
8860 ddns_domainname: The dynamic DNS domain name the appliance uses
8861 specifically for DDNS updates for this network.
8862 ddns_generate_hostname: If this field is set to True, the DHCP
8863 server generates a hostname and updates DNS with it when the
8864 DHCP client request does not contain a hostname.
8865 ddns_server_always_updates: This field controls whether the DHCP
8866 server is allowed to update DNS, regardless of the DHCP
8867 client requests. Note that changes for this field take
8868 effect only if ddns_use_option81 is True.
8869 ddns_ttl: The DNS update Time to Live (TTL) value of a DHCP
8870 network object.The TTL is a 32-bit unsigned integer that
8871 represents the duration, in seconds, for which the update is
8872 cached. Zero indicates that the update is not cached.
8873 ddns_update_fixed_addresses: By default, the DHCP server does
8874 not update DNS when it allocates a fixed address to a
8875 client. You can configure the DHCP server to update the A
8876 and PTR records of a client with a fixed address. When this
8877 feature is enabled and the DHCP server adds A and PTR
8878 records for a fixed address, the DHCP server never discards
8879 the records.
8880 ddns_use_option81: The support for DHCP Option 81 at the network
8881 level.
8882 delegated_member: Reference the Cloud Platform Appliance to
8883 which authority of the object should be delegated when the
8884 object is created using the template.
8885 deny_bootp: If set to True, BOOTP settings are disabled and
8886 BOOTP requests will be denied.
8887 email_list: The e-mail lists to which the appliance sends DHCP
8888 threshold alarm e-mail messages.
8889 enable_ddns: The dynamic DNS updates flag of a DHCP network
8890 object. If set to True, the DHCP server sends DDNS updates
8891 to DNS servers in the same Grid, and to external DNS
8892 servers.
8893 enable_dhcp_thresholds: Determines if DHCP thresholds are
8894 enabled for the network.
8895 enable_email_warnings: Determines if DHCP threshold warnings are
8896 sent through email.
8897 enable_pxe_lease_time: Set this to True if you want the DHCP
8898 server to use a different lease time for PXE clients.
8899 enable_snmp_warnings: Determines if DHCP threshold warnings are
8900 send through SNMP.
8901 extattrs: Extensible attributes associated with the object.For
8902 valid values for extensible attributes, see the following
8903 information.
8904 fixed_address_templates: The list of fixed address templates
8905 assigned to this network template object. When you create a
8906 network based on a network template object that contains
8907 fixed address templates, the fixed addresses are created
8908 based on the associated fixed address templates.
8909 high_water_mark: The percentage of DHCP network usage threshold
8910 above which network usage is not expected and may warrant
8911 your attention. When the high watermark is reached, the
8912 Infoblox appliance generates a syslog message and sends a
8913 warning (if enabled).A number that specifies the percentage
8914 of allocated addresses. The range is from 1 to 100.
8915 high_water_mark_reset: The percentage of DHCP network usage
8916 below which the corresponding SNMP trap is reset.A number
8917 that specifies the percentage of allocated addresses. The
8918 range is from 1 to 100. The high watermark reset value must
8919 be lower than the high watermark value.
8920 ignore_dhcp_option_list_request: If this field is set to False,
8921 the appliance returns all DHCP options the client is
8922 eligible to receive, rather than only the list of options
8923 the client has requested.
8924 ipam_email_addresses: The e-mail lists to which the appliance
8925 sends IPAM threshold alarm e-mail messages.
8926 ipam_threshold_settings: The IPAM Threshold settings for this
8927 network template.
8928 ipam_trap_settings: The IPAM Trap settings for this network
8929 template.
8930 lease_scavenge_time: An integer that specifies the period of
8931 time (in seconds) that frees and backs up leases remained in
8932 the database before they are automatically deleted. To
8933 disable lease scavenging, set the parameter to -1. The
8934 minimum positive value must be greater than 86400 seconds (1
8935 day).
8936 logic_filter_rules: This field contains the logic filters to be
8937 applied on the this network template.This list corresponds
8938 to the match rules that are written to the dhcpd
8939 configuration file.
8940 low_water_mark: The percentage of DHCP network usage below which
8941 the Infoblox appliance generates a syslog message and sends
8942 a warning (if enabled).A number that specifies the
8943 percentage of allocated addresses. The range is from 1 to
8944 100.
8945 low_water_mark_reset: The percentage of DHCP network usage
8946 threshold below which network usage is not expected and may
8947 warrant your attention. When the low watermark is crossed,
8948 the Infoblox appliance generates a syslog message and sends
8949 a warning (if enabled).A number that specifies the
8950 percentage of allocated addresses. The range is from 1 to
8951 100. The low watermark reset value must be higher than the
8952 low watermark value.
8953 members: A list of members or Microsoft (r) servers that serve
8954 DHCP for this network.
8955 name: The name of this network template.
8956 netmask: The netmask of the network in CIDR format.
8957 nextserver: The name in FQDN and/or IPv4 Address of the next
8958 server that the host needs to boot.
8959 options: An array of DHCP option structs that lists the DHCP
8960 options associated with the object.
8961 pxe_lease_time: The PXE lease time value of a DHCP Network
8962 object. Some hosts use PXE (Preboot Execution Environment)
8963 to boot remotely from a server. To better manage your IP
8964 resources, set a different lease time for PXE boot requests.
8965 You can configure the DHCP server to allocate an IP address
8966 with a shorter lease time to hosts that send PXE boot
8967 requests, so IP addresses are not leased longer than
8968 necessary.A 32-bit unsigned integer that represents the
8969 duration, in seconds, for which the update is cached. Zero
8970 indicates that the update is not cached.
8971 range_templates: The list of IP address range templates assigned
8972 to this network template object. When you create a network
8973 based on a network template object that contains range
8974 templates, the IP address ranges are created based on the
8975 associated IP address range templates.
8976 recycle_leases: If the field is set to True, the leases are kept
8977 in the Recycle Bin until one week after expiration.
8978 Otherwise, the leases are permanently deleted.
8979 rir: THe registry (RIR) that allocated the network address
8980 space.
8981 rir_organization: The RIR organization assoicated with the
8982 network.
8983 rir_registration_action: The RIR registration action.
8984 rir_registration_status: The registration status of the network
8985 in RIR.
8986 send_rir_request: Determines whether to send the RIR
8987 registration request.
8988 update_dns_on_lease_renewal: This field controls whether the
8989 DHCP server updates DNS when a DHCP lease is renewed.
8990 use_authority: Use flag for: authority
8991 use_bootfile: Use flag for: bootfile
8992 use_bootserver: Use flag for: bootserver
8993 use_ddns_domainname: Use flag for: ddns_domainname
8994 use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
8995 use_ddns_ttl: Use flag for: ddns_ttl
8996 use_ddns_update_fixed_addresses: Use flag for:
8997 ddns_update_fixed_addresses
8998 use_ddns_use_option81: Use flag for: ddns_use_option81
8999 use_deny_bootp: Use flag for: deny_bootp
9000 use_email_list: Use flag for: email_list
9001 use_enable_ddns: Use flag for: enable_ddns
9002 use_enable_dhcp_thresholds: Use flag for: enable_dhcp_thresholds
9003 use_ignore_dhcp_option_list_request: Use flag for:
9004 ignore_dhcp_option_list_request
9005 use_ipam_email_addresses: Use flag for: ipam_email_addresses
9006 use_ipam_threshold_settings: Use flag for:
9007 ipam_threshold_settings
9008 use_ipam_trap_settings: Use flag for: ipam_trap_settings
9009 use_lease_scavenge_time: Use flag for: lease_scavenge_time
9010 use_logic_filter_rules: Use flag for: logic_filter_rules
9011 use_nextserver: Use flag for: nextserver
9012 use_options: Use flag for: options
9013 use_pxe_lease_time: Use flag for: pxe_lease_time
9014 use_recycle_leases: Use flag for: recycle_leases
9015 use_update_dns_on_lease_renewal: Use flag for:
9016 update_dns_on_lease_renewal
9017 """
9018 _infoblox_type = 'networktemplate'
9019 _fields = ['allow_any_netmask', 'authority', 'auto_create_reversezone',
9020 'bootfile', 'bootserver', 'cloud_api_compatible', 'comment',
9021 'ddns_domainname', 'ddns_generate_hostname',
9022 'ddns_server_always_updates', 'ddns_ttl',
9023 'ddns_update_fixed_addresses', 'ddns_use_option81',
9024 'delegated_member', 'deny_bootp', 'email_list', 'enable_ddns',
9025 'enable_dhcp_thresholds', 'enable_email_warnings',
9026 'enable_pxe_lease_time', 'enable_snmp_warnings', 'extattrs',
9027 'fixed_address_templates', 'high_water_mark',
9028 'high_water_mark_reset', 'ignore_dhcp_option_list_request',
9029 'ipam_email_addresses', 'ipam_threshold_settings',
9030 'ipam_trap_settings', 'lease_scavenge_time',
9031 'logic_filter_rules', 'low_water_mark', 'low_water_mark_reset',
9032 'members', 'name', 'netmask', 'nextserver', 'options',
9033 'pxe_lease_time', 'range_templates', 'recycle_leases', 'rir',
9034 'rir_organization', 'rir_registration_action',
9035 'rir_registration_status', 'send_rir_request',
9036 'update_dns_on_lease_renewal', 'use_authority', 'use_bootfile',
9037 'use_bootserver', 'use_ddns_domainname',
9038 'use_ddns_generate_hostname', 'use_ddns_ttl',
9039 'use_ddns_update_fixed_addresses', 'use_ddns_use_option81',
9040 'use_deny_bootp', 'use_email_list', 'use_enable_ddns',
9041 'use_enable_dhcp_thresholds',
9042 'use_ignore_dhcp_option_list_request',
9043 'use_ipam_email_addresses', 'use_ipam_threshold_settings',
9044 'use_ipam_trap_settings', 'use_lease_scavenge_time',
9045 'use_logic_filter_rules', 'use_nextserver', 'use_options',
9046 'use_pxe_lease_time', 'use_recycle_leases',
9047 'use_update_dns_on_lease_renewal']
9048 _search_for_update_fields = ['name']
9049 _updateable_search_fields = ['comment', 'name', 'rir_organization']
9050 _all_searchable_fields = ['comment', 'name', 'rir', 'rir_organization']
9051 _return_fields = ['comment', 'extattrs', 'name']
9052 _remap = {}
9053 _shadow_fields = ['_ref']
9054 _ip_version = 4
9055
9056 _custom_field_processing = {
9057 'logic_filter_rules': Logicfilterrule.from_dict,
9058 'members': Dhcpmember.from_dict,
9059 'options': DhcpOption.from_dict,
9060 }
9061
9062
9063 class NetworkTemplateV6(NetworkTemplate):
9064 """ NetworkTemplateV6: DHCP IPv6 network template object.
9065 Corresponds to WAPI object 'ipv6networktemplate'
9066
9067 The IPv6 network template used to create IPv6 networks in a quick
9068 and consistent way. IPv6 networks created from an IPv6 network
9069 template inherit all the properties defined in the IPv6 network
9070 template, except for the comment and CIDR that can be defined in the
9071 IPv6 network.
9072
9073 Attributes:
9074 allow_any_netmask: This flag controls whether the template
9075 allows any netmask. You must specify a netmask when creating
9076 a network using this template. If you set this parameter to
9077 False, you must specify the "cidr" field for the network
9078 template object.
9079 auto_create_reversezone: This flag controls whether reverse
9080 zones are automatically created when the network is added.
9081 cidr: The CIDR of the network in CIDR format.
9082 cloud_api_compatible: This flag controls whether this template
9083 can be used to create network objects in a cloud-computing
9084 deployment.
9085 comment: Comment for the network; maximum 256 characters.
9086 ddns_domainname: The dynamic DNS domain name the appliance uses
9087 specifically for DDNS updates for this network.
9088 ddns_enable_option_fqdn: Use this method to set or retrieve the
9089 ddns_enable_option_fqdn flag of a DHCP IPv6 Network object.
9090 This method controls whether the FQDN option sent by the
9091 client is to be used, or if the server can automatically
9092 generate the FQDN. This setting overrides the upper-level
9093 settings.
9094 ddns_generate_hostname: If this field is set to True, the DHCP
9095 server generates a hostname and updates DNS with it when the
9096 DHCP client request does not contain a hostname.
9097 ddns_server_always_updates: This field controls whether the DHCP
9098 server is allowed to update DNS, regardless of the DHCP
9099 client requests. Note that changes for this field take
9100 effect only if ddns_enable_option_fqdn is True.
9101 ddns_ttl: The DNS update Time to Live (TTL) value of a DHCP
9102 network object.The TTL is a 32-bit unsigned integer that
9103 represents the duration, in seconds, for which the update is
9104 cached. Zero indicates that the update is not cached.
9105 delegated_member: Reference the Cloud Platform Appliance to
9106 which authority of the object should be delegated when the
9107 object is created using the template.
9108 domain_name: Use this method to set or retrieve the domain_name
9109 value of a DHCP IPv6 Network object.
9110 domain_name_servers: Use this method to set or retrieve the
9111 dynamic DNS updates flag of a DHCP IPv6 Network object. The
9112 DHCP server can send DDNS updates to DNS servers in the same
9113 Grid and to external DNS servers. This setting overrides the
9114 member level settings.
9115 enable_ddns: The dynamic DNS updates flag of a DHCP IPv6 network
9116 object. If set to True, the DHCP server sends DDNS updates
9117 to DNS servers in the same Grid, and to external DNS
9118 servers.
9119 extattrs: Extensible attributes associated with the object.For
9120 valid values for extensible attributes, see the following
9121 information.
9122 fixed_address_templates: The list of IPv6 fixed address
9123 templates assigned to this IPv6 network template object.
9124 When you create an IPv6 network based on an IPv6 network
9125 template object that contains IPv6 fixed address templates,
9126 the IPv6 fixed addresses are created based on the associated
9127 IPv6 fixed address templates.
9128 ipv6prefix: The IPv6 Address prefix of the DHCP IPv6 network.
9129 logic_filter_rules: This field contains the logic filters to be
9130 applied on this IPv6 network template.This list corresponds
9131 to the match rules that are written to the DHCPv6
9132 configuration file.
9133 members: A list of members that serve DHCP for the network.All
9134 members in the array must be of the same type. The struct
9135 type must be indicated in each element, by setting the
9136 "_struct" member to the struct type.
9137 name: The name of this IPv6 network template.
9138 options: An array of DHCP option structs that lists the DHCP
9139 options associated with the object.
9140 preferred_lifetime: Use this method to set or retrieve the
9141 preferred lifetime value of a DHCP IPv6 Network object.
9142 range_templates: The list of IPv6 address range templates
9143 assigned to this IPv6 network template object. When you
9144 create an IPv6 network based on an IPv6 network template
9145 object that contains IPv6 range templates, the IPv6 address
9146 ranges are created based on the associated IPv6 address
9147 range templates.
9148 recycle_leases: If the field is set to True, the leases are kept
9149 in the Recycle Bin until one week after expiration.
9150 Otherwise, the leases are permanently deleted.
9151 rir: The registry (RIR) that allocated the IPv6 network address
9152 space.
9153 rir_organization: The RIR organization associated with the IPv6
9154 network.
9155 rir_registration_action: The action for the RIR registration.
9156 rir_registration_status: The registration status of the IPv6
9157 network in RIR.
9158 send_rir_request: Determines whether to send the RIR
9159 registration request.
9160 update_dns_on_lease_renewal: This field controls whether the
9161 DHCP server updates DNS when a DHCP lease is renewed.
9162 use_ddns_domainname: Use flag for: ddns_domainname
9163 use_ddns_enable_option_fqdn: Use flag for:
9164 ddns_enable_option_fqdn
9165 use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
9166 use_ddns_ttl: Use flag for: ddns_ttl
9167 use_domain_name: Use flag for: domain_name
9168 use_domain_name_servers: Use flag for: domain_name_servers
9169 use_enable_ddns: Use flag for: enable_ddns
9170 use_logic_filter_rules: Use flag for: logic_filter_rules
9171 use_options: Use flag for: options
9172 use_preferred_lifetime: Use flag for: preferred_lifetime
9173 use_recycle_leases: Use flag for: recycle_leases
9174 use_update_dns_on_lease_renewal: Use flag for:
9175 update_dns_on_lease_renewal
9176 use_valid_lifetime: Use flag for: valid_lifetime
9177 valid_lifetime: Use this method to set or retrieve the valid
9178 lifetime value of a DHCP IPv6 Network object.
9179 """
9180 _infoblox_type = 'ipv6networktemplate'
9181 _fields = ['allow_any_netmask', 'auto_create_reversezone', 'cidr',
9182 'cloud_api_compatible', 'comment', 'ddns_domainname',
9183 'ddns_enable_option_fqdn', 'ddns_generate_hostname',
9184 'ddns_server_always_updates', 'ddns_ttl', 'delegated_member',
9185 'domain_name', 'domain_name_servers', 'enable_ddns', 'extattrs',
9186 'fixed_address_templates', 'ipv6prefix', 'logic_filter_rules',
9187 'members', 'name', 'options', 'preferred_lifetime',
9188 'range_templates', 'recycle_leases', 'rir', 'rir_organization',
9189 'rir_registration_action', 'rir_registration_status',
9190 'send_rir_request', 'update_dns_on_lease_renewal',
9191 'use_ddns_domainname', 'use_ddns_enable_option_fqdn',
9192 'use_ddns_generate_hostname', 'use_ddns_ttl', 'use_domain_name',
9193 'use_domain_name_servers', 'use_enable_ddns',
9194 'use_logic_filter_rules', 'use_options',
9195 'use_preferred_lifetime', 'use_recycle_leases',
9196 'use_update_dns_on_lease_renewal', 'use_valid_lifetime',
9197 'valid_lifetime']
9198 _search_for_update_fields = ['name']
9199 _updateable_search_fields = ['comment', 'ipv6prefix', 'name',
9200 'rir_organization']
9201 _all_searchable_fields = ['comment', 'ipv6prefix', 'name', 'rir',
9202 'rir_organization']
9203 _return_fields = ['comment', 'extattrs', 'name']
9204 _remap = {}
9205 _shadow_fields = ['_ref']
9206 _ip_version = 6
9207
9208 _custom_field_processing = {
9209 'logic_filter_rules': Logicfilterrule.from_dict,
9210 'members': Dhcpmember.from_dict,
9211 'options': DhcpOption.from_dict,
9212 }
9213
9214
9215 class IPRange(InfobloxObject):
9216 @classmethod
9217 def get_v4_class(cls):
9218 return IPRangeV4
9219
9220 @classmethod
9221 def get_v6_class(cls):
9222 return IPRangeV6
9223
9224
9225 class IPRangeV4(IPRange):
9226 """ IPRangeV4: DHCP Range object.
9227 Corresponds to WAPI object 'range'
9228
9229 A DHCP range defines the specified range of IP addresses in a
9230 network. A DHCP range should be added for a network so the Infoblox
9231 appliance can assign IP addresses within that specified range to
9232 DHCP clients. If the client is on a network that is assigned a DHCP
9233 range, the device distributes an available IP address from that
9234 range to the DHCP client, or to a DHCP relay agent if the request
9235 came through an agent. The DHCP range should also be assigned with a
9236 device. If devices are in a grid, the particular member serving DHCP
9237 for the DHCP range must be specified. If the server is an
9238 independent device, this device must be specified as the member that
9239 serves the DHCP range.
9240
9241 Attributes:
9242 always_update_dns: This field controls whether only the DHCP
9243 server is allowed to update DNS, regardless of the DHCP
9244 clients requests.
9245 bootfile: The bootfile name for the range. You can configure the
9246 DHCP server to support clients that use the boot file name
9247 option in their DHCPREQUEST messages.
9248 bootserver: The bootserver address for the range. You can
9249 specify the name and/or IP address of the boot server that
9250 the host needs to boot.The boot server IPv4 Address or name
9251 in FQDN format.
9252 cloud_info: Structure containing all cloud API related
9253 information for this object.
9254 comment: Comment for the range; maximum 256 characters.
9255 ddns_domainname: The dynamic DNS domain name the appliance uses
9256 specifically for DDNS updates for this range.
9257 ddns_generate_hostname: If this field is set to True, the DHCP
9258 server generates a hostname and updates DNS with it when the
9259 DHCP client request does not contain a hostname.
9260 deny_all_clients: If True, send NAK forcing the client to take
9261 the new address.
9262 deny_bootp: If set to true, BOOTP settings are disabled and
9263 BOOTP requests will be denied.
9264 dhcp_utilization: The percentage of the total DHCP utilization
9265 of the range multiplied by 1000. This is the percentage of
9266 the total number of available IP addresses belonging to the
9267 range versus the total number of all IP addresses in the
9268 range.
9269 dhcp_utilization_status: A string describing the utilization
9270 level of the range.
9271 disable: Determines whether a range is disabled or not. When
9272 this is set to False, the range is enabled.
9273 discover_now_status: Discover now status for this range.
9274 discovery_basic_poll_settings: The discovery basic poll settings
9275 for this range.
9276 discovery_blackout_setting: The discovery blackout setting for
9277 this range.
9278 discovery_member: The member that will run discovery for this
9279 range.
9280 dynamic_hosts: The total number of DHCP leases issued for the
9281 range.
9282 email_list: The e-mail lists to which the appliance sends DHCP
9283 threshold alarm e-mail messages.
9284 enable_ddns: The dynamic DNS updates flag of a DHCP range
9285 object. If set to True, the DHCP server sends DDNS updates
9286 to DNS servers in the same Grid, and to external DNS
9287 servers.
9288 enable_dhcp_thresholds: Determines if DHCP thresholds are
9289 enabled for the range.
9290 enable_discovery: Determines whether a discovery is enabled or
9291 not for this range. When this is set to False, the discovery
9292 for this range is disabled.
9293 enable_email_warnings: Determines if DHCP threshold warnings are
9294 sent through email.
9295 enable_ifmap_publishing: Determines if IFMAP publishing is
9296 enabled for the range.
9297 enable_immediate_discovery: Determines if the discovery for the
9298 range should be immediately enabled.
9299 enable_pxe_lease_time: Set this to True if you want the DHCP
9300 server to use a different lease time for PXE clients.
9301 enable_snmp_warnings: Determines if DHCP threshold warnings are
9302 send through SNMP.
9303 end_addr: The IPv4 Address end address of the range.
9304 endpoint_sources: The endpoints that provides data for the DHCP
9305 Range object.
9306 exclude: These are ranges of IP addresses that the appliance
9307 does not use to assign to clients. You can use these
9308 exclusion addresses as static IP addresses. They contain the
9309 start and end addresses of the exclusion range, and
9310 optionally, information about this exclusion range.
9311 extattrs: Extensible attributes associated with the object.For
9312 valid values for extensible attributes, see the following
9313 information.
9314 failover_association: The name of the failover association: the
9315 server in this failover association will serve the IPv4
9316 range in case the main server is out of service.
9317 fingerprint_filter_rules: This field contains the fingerprint
9318 filters for this DHCP range.The appliance uses matching
9319 rules in these filters to select the address range from
9320 which it assigns a lease.
9321 high_water_mark: The percentage of DHCP range usage threshold
9322 above which range usage is not expected and may warrant your
9323 attention. When the high watermark is reached, the Infoblox
9324 appliance generates a syslog message and sends a warning (if
9325 enabled).A number that specifies the percentage of allocated
9326 addresses. The range is from 1 to 100.
9327 high_water_mark_reset: The percentage of DHCP range usage below
9328 which the corresponding SNMP trap is reset.A number that
9329 specifies the percentage of allocated addresses. The range
9330 is from 1 to 100. The high watermark reset value must be
9331 lower than the high watermark value.
9332 ignore_dhcp_option_list_request: If this field is set to False,
9333 the appliance returns all DHCP options the client is
9334 eligible to receive, rather than only the list of options
9335 the client has requested.
9336 ignore_id: Indicates whether the appliance will ignore DHCP
9337 client IDs or MAC addresses. Valid values are "NONE",
9338 "CLIENT", or "MACADDR". The default is "NONE".
9339 ignore_mac_addresses: A list of MAC addresses the appliance will
9340 ignore.
9341 is_split_scope: This field will be 'true' if this particular
9342 range is part of a split scope.
9343 known_clients: Permission for known clients. This can be 'Allow'
9344 or 'Deny'. If set to 'Deny' known clients will be denied IP
9345 addresses.Known clients include roaming hosts and clients
9346 with fixed addresses or DHCP host entries. Unknown clients
9347 include clients that are not roaming hosts and clients that
9348 do not have fixed addresses or DHCP host entries.
9349 lease_scavenge_time: An integer that specifies the period of
9350 time (in seconds) that frees and backs up leases remained in
9351 the database before they are automatically deleted. To
9352 disable lease scavenging, set the parameter to -1. The
9353 minimum positive value must be greater than 86400 seconds (1
9354 day).
9355 logic_filter_rules: This field contains the logic filters to be
9356 applied to this range.This list corresponds to the match
9357 rules that are written to the dhcpd configuration file.
9358 low_water_mark: The percentage of DHCP range usage below which
9359 the Infoblox appliance generates a syslog message and sends
9360 a warning (if enabled).A number that specifies the
9361 percentage of allocated addresses. The range is from 1 to
9362 100.
9363 low_water_mark_reset: The percentage of DHCP range usage
9364 threshold below which range usage is not expected and may
9365 warrant your attention. When the low watermark is crossed,
9366 the Infoblox appliance generates a syslog message and sends
9367 a warning (if enabled).A number that specifies the
9368 percentage of allocated addresses. The range is from 1 to
9369 100. The low watermark reset value must be higher than the
9370 low watermark value.
9371 mac_filter_rules: This field contains the MAC filters to be
9372 applied to this range.The appliance uses the matching rules
9373 of these filters to select the address range from which it
9374 assigns a lease.
9375 member: The member that will provide service for this range.
9376 ms_ad_user_data: The Microsoft Active Directory user related
9377 information.
9378 ms_options: This field contains the Microsoft DHCP options for
9379 this range.
9380 ms_server: The Microsoft server that will provide service for
9381 this range.
9382 nac_filter_rules: This field contains the NAC filters to be
9383 applied to this range.The appliance uses the matching rules
9384 of these filters to select the address range from which it
9385 assigns a lease.
9386 name: This field contains the name of the Microsoft scope.
9387 network: The network to which this range belongs, in IPv4
9388 Address/CIDR format.
9389 network_view: The name of the network view in which this range
9390 resides.
9391 nextserver: The name in FQDN and/or IPv4 Address of the next
9392 server that the host needs to boot.
9393 option_filter_rules: This field contains the Option filters to
9394 be applied to this range.The appliance uses the matching
9395 rules of these filters to select the address range from
9396 which it assigns a lease.
9397 options: An array of DHCP option structs that lists the DHCP
9398 options associated with the object.
9399 port_control_blackout_setting: The port control blackout setting
9400 for this range.
9401 pxe_lease_time: The PXE lease time value of a DHCP Range object.
9402 Some hosts use PXE (Preboot Execution Environment) to boot
9403 remotely from a server. To better manage your IP resources,
9404 set a different lease time for PXE boot requests. You can
9405 configure the DHCP server to allocate an IP address with a
9406 shorter lease time to hosts that send PXE boot requests, so
9407 IP addresses are not leased longer than necessary.A 32-bit
9408 unsigned integer that represents the duration, in seconds,
9409 for which the update is cached. Zero indicates that the
9410 update is not cached.
9411 recycle_leases: If the field is set to True, the leases are kept
9412 in the Recycle Bin until one week after expiration.
9413 Otherwise, the leases are permanently deleted.
9414 relay_agent_filter_rules: This field contains the Relay Agent
9415 filters to be applied to this range.The appliance uses the
9416 matching rules of these filters to select the address range
9417 from which it assigns a lease.
9418 restart_if_needed: Restarts the member service.
9419 same_port_control_discovery_blackout: If the field is set to
9420 True, the discovery blackout setting will be used for port
9421 control blackout setting.
9422 server_association_type: The type of server that is going to
9423 serve the range.
9424 split_member: The Microsoft member to which the split scope is
9425 assigned. See split_scope_exclusion_percent for more
9426 information
9427 split_scope_exclusion_percent: This field controls the
9428 percentage used when creating a split scope.Valid values are
9429 numbers between 1 and 99. If the value is 40, it means that
9430 the top 40% of the exclusion will be created on the DHCP
9431 range assigned to ms_server and the lower 60% of the range
9432 will be assigned to DHCP range assigned to split_member
9433 start_addr: The IPv4 Address starting address of the range.
9434 static_hosts: The number of static DHCP addresses configured in
9435 the range.
9436 subscribe_settings: The DHCP Range Cisco ISE subscribe settings.
9437 template: If set on creation, the range will be created
9438 according to the values specified in the named template.
9439 total_hosts: The total number of DHCP addresses configured in
9440 the range.
9441 unknown_clients: Permission for unknown clients. This can be
9442 'Allow' or 'Deny'. If set to 'Deny', unknown clients will be
9443 denied IP addresses.Known clients include roaming hosts and
9444 clients with fixed addresses or DHCP host entries. Unknown
9445 clients include clients that are not roaming hosts and
9446 clients that do not have fixed addresses or DHCP host
9447 entries.
9448 update_dns_on_lease_renewal: This field controls whether the
9449 DHCP server updates DNS when a DHCP lease is renewed.
9450 use_blackout_setting: Use flag for: discovery_blackout_setting ,
9451 port_control_blackout_setting,
9452 same_port_control_discovery_blackout
9453 use_bootfile: Use flag for: bootfile
9454 use_bootserver: Use flag for: bootserver
9455 use_ddns_domainname: Use flag for: ddns_domainname
9456 use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
9457 use_deny_bootp: Use flag for: deny_bootp
9458 use_discovery_basic_polling_settings: Use flag for:
9459 discovery_basic_poll_settings
9460 use_email_list: Use flag for: email_list
9461 use_enable_ddns: Use flag for: enable_ddns
9462 use_enable_dhcp_thresholds: Use flag for: enable_dhcp_thresholds
9463 use_enable_discovery: Use flag for: discovery_member ,
9464 enable_discovery
9465 use_enable_ifmap_publishing: Use flag for:
9466 enable_ifmap_publishing
9467 use_ignore_dhcp_option_list_request: Use flag for:
9468 ignore_dhcp_option_list_request
9469 use_ignore_id: Use flag for: ignore_id
9470 use_known_clients: Use flag for: known_clients
9471 use_lease_scavenge_time: Use flag for: lease_scavenge_time
9472 use_logic_filter_rules: Use flag for: logic_filter_rules
9473 use_ms_options: Use flag for: ms_options
9474 use_nextserver: Use flag for: nextserver
9475 use_options: Use flag for: options
9476 use_pxe_lease_time: Use flag for: pxe_lease_time
9477 use_recycle_leases: Use flag for: recycle_leases
9478 use_subscribe_settings: Use flag for: subscribe_settings
9479 use_unknown_clients: Use flag for: unknown_clients
9480 use_update_dns_on_lease_renewal: Use flag for:
9481 update_dns_on_lease_renewal
9482 """
9483 _infoblox_type = 'range'
9484 _fields = ['always_update_dns', 'bootfile', 'bootserver', 'cloud_info',
9485 'comment', 'ddns_domainname', 'ddns_generate_hostname',
9486 'deny_all_clients', 'deny_bootp', 'dhcp_utilization',
9487 'dhcp_utilization_status', 'disable', 'discover_now_status',
9488 'discovery_basic_poll_settings', 'discovery_blackout_setting',
9489 'discovery_member', 'dynamic_hosts', 'email_list',
9490 'enable_ddns', 'enable_dhcp_thresholds', 'enable_discovery',
9491 'enable_email_warnings', 'enable_ifmap_publishing',
9492 'enable_immediate_discovery', 'enable_pxe_lease_time',
9493 'enable_snmp_warnings', 'end_addr', 'endpoint_sources',
9494 'exclude', 'extattrs', 'failover_association',
9495 'fingerprint_filter_rules', 'high_water_mark',
9496 'high_water_mark_reset', 'ignore_dhcp_option_list_request',
9497 'ignore_id', 'ignore_mac_addresses', 'is_split_scope',
9498 'known_clients', 'lease_scavenge_time', 'logic_filter_rules',
9499 'low_water_mark', 'low_water_mark_reset', 'mac_filter_rules',
9500 'member', 'ms_ad_user_data', 'ms_options', 'ms_server',
9501 'nac_filter_rules', 'name', 'network', 'network_view',
9502 'nextserver', 'option_filter_rules', 'options',
9503 'port_control_blackout_setting', 'pxe_lease_time',
9504 'recycle_leases', 'relay_agent_filter_rules',
9505 'restart_if_needed', 'same_port_control_discovery_blackout',
9506 'server_association_type', 'split_member',
9507 'split_scope_exclusion_percent', 'start_addr', 'static_hosts',
9508 'subscribe_settings', 'template', 'total_hosts',
9509 'unknown_clients', 'update_dns_on_lease_renewal',
9510 'use_blackout_setting', 'use_bootfile', 'use_bootserver',
9511 'use_ddns_domainname', 'use_ddns_generate_hostname',
9512 'use_deny_bootp', 'use_discovery_basic_polling_settings',
9513 'use_email_list', 'use_enable_ddns',
9514 'use_enable_dhcp_thresholds', 'use_enable_discovery',
9515 'use_enable_ifmap_publishing',
9516 'use_ignore_dhcp_option_list_request', 'use_ignore_id',
9517 'use_known_clients', 'use_lease_scavenge_time',
9518 'use_logic_filter_rules', 'use_ms_options', 'use_nextserver',
9519 'use_options', 'use_pxe_lease_time', 'use_recycle_leases',
9520 'use_subscribe_settings', 'use_unknown_clients',
9521 'use_update_dns_on_lease_renewal']
9522 _search_for_update_fields = ['end_addr', 'network', 'network_view',
9523 'start_addr']
9524 _updateable_search_fields = ['comment', 'end_addr', 'failover_association',
9525 'member', 'ms_server', 'network',
9526 'network_view', 'server_association_type',
9527 'start_addr']
9528 _all_searchable_fields = ['comment', 'end_addr', 'failover_association',
9529 'member', 'ms_server', 'network', 'network_view',
9530 'server_association_type', 'start_addr']
9531 _return_fields = ['comment', 'end_addr', 'extattrs', 'network',
9532 'network_view', 'start_addr']
9533 _remap = {'cidr': 'network'}
9534 _shadow_fields = ['_ref', 'cidr']
9535 _ip_version = 4
9536
9537 _custom_field_processing = {
9538 'exclude': Exclusionrange.from_dict,
9539 'fingerprint_filter_rules': Filterrule.from_dict,
9540 'logic_filter_rules': Logicfilterrule.from_dict,
9541 'mac_filter_rules': Filterrule.from_dict,
9542 'ms_options': Msdhcpoption.from_dict,
9543 'nac_filter_rules': Filterrule.from_dict,
9544 'option_filter_rules': Filterrule.from_dict,
9545 'options': DhcpOption.from_dict,
9546 'relay_agent_filter_rules': Filterrule.from_dict,
9547 }
9548
9549 def next_available_ip(self, *args, **kwargs):
9550 return self._call_func("next_available_ip", *args, **kwargs)
9551
9552
9553 class IPRangeV6(IPRange):
9554 """ IPRangeV6: DHCP IPv6 Range object.
9555 Corresponds to WAPI object 'ipv6range'
9556
9557 A DHCP IPv6 range defines the specified range of IP addresses in an
9558 IPv6 network. A DHCP IPv6 range should be added for an IPv6 network
9559 so the Infoblox appliance can assign IP addresses within that
9560 specified range to DHCP clients. If the client is on an IPv6 network
9561 that is assigned a DHCP IPv6 range, the device distributes an
9562 available IP address from that range to the DHCP client, or to a
9563 DHCP relay agent if the request came through an agent. The DHCP IPv6
9564 range should also be assigned with a device. If devices are in a
9565 grid, the particular member serving DHCP for the DHCP IPv6 range
9566 must be specified. If the server is an independent device, this
9567 device must be specified as the member that serves the DHCP IPv6
9568 range.
9569
9570 Attributes:
9571 address_type: Type of a DHCP IPv6 Range object. Valid values are
9572 "ADDRESS", "PREFIX", or "BOTH". When the address type is
9573 "ADDRESS", values for the 'start_addr' and 'end_addr'
9574 members are required. When the address type is "PREFIX",
9575 values for 'ipv6_start_prefix', 'ipv6_end_prefix', and
9576 'ipv6_prefix_bits' are required. When the address type is
9577 "BOTH", values for 'start_addr', 'end_addr',
9578 'ipv6_start_prefix', 'ipv6_end_prefix', and
9579 'ipv6_prefix_bits' are all required.
9580 cloud_info: Structure containing all cloud API related
9581 information for this object.
9582 comment: Comment for the range; maximum 256 characters.
9583 disable: Determines whether a range is disabled or not. When
9584 this is set to False, the range is enabled.
9585 discover_now_status: Discover now status for this range.
9586 discovery_basic_poll_settings: The discovery basic poll settings
9587 for this range.
9588 discovery_blackout_setting: The discovery blackout setting for
9589 this range.
9590 discovery_member: The member that will run discovery for this
9591 range.
9592 enable_discovery: Determines whether a discovery is enabled or
9593 not for this range. When this is set to False, the discovery
9594 for this range is disabled.
9595 enable_immediate_discovery: Determines if the discovery for the
9596 range should be immediately enabled.
9597 end_addr: The IPv6 Address end address of the DHCP IPv6 range.
9598 endpoint_sources: The endpoints that provides data for the DHCP
9599 IPv6 Range object.
9600 exclude: These are ranges of IP addresses that the appliance
9601 does not use to assign to clients. You can use these
9602 exclusion addresses as static IP addresses. They contain the
9603 start and end addresses of the exclusion range, and
9604 optionally,information about this exclusion range.
9605 extattrs: Extensible attributes associated with the object.For
9606 valid values for extensible attributes, see the following
9607 information.
9608 ipv6_end_prefix: The IPv6 Address end prefix of the DHCP IPv6
9609 range.
9610 ipv6_prefix_bits: Prefix bits of the DHCP IPv6 range.
9611 ipv6_start_prefix: The IPv6 Address starting prefix of the DHCP
9612 IPv6 range.
9613 logic_filter_rules: This field contains the logic filters to be
9614 applied to this IPv6 range. This list corresponds to the
9615 match rules that are written to the DHCPv6 configuration
9616 file.
9617 member: The member that will provide service for this range.
9618 name: This field contains the name of the Microsoft scope.
9619 network: The network this range belongs to, in IPv6 Address/CIDR
9620 format.
9621 network_view: The name of the network view in which this range
9622 resides.
9623 option_filter_rules: This field contains the Option filters to
9624 be applied to this IPv6 range. The appliance uses the
9625 matching rules of these filters to select the address range
9626 from which it assigns a lease.
9627 port_control_blackout_setting: The port control blackout setting
9628 for this range.
9629 recycle_leases: If the field is set to True, the leases are kept
9630 in the Recycle Bin until one week after expiration.
9631 Otherwise, the leases are permanently deleted.
9632 restart_if_needed: Restarts the member service.
9633 same_port_control_discovery_blackout: If the field is set to
9634 True, the discovery blackout setting will be used for port
9635 control blackout setting.
9636 server_association_type: The type of server that is going to
9637 serve the range. Valid values are:
9638 start_addr: The IPv6 Address starting address of the DHCP IPv6
9639 range.
9640 subscribe_settings: The DHCP IPv6 Range Cisco ISE subscribe
9641 settings.
9642 template: If set on creation, the range will be created
9643 according to the values specified in the named template.
9644 use_blackout_setting: Use flag for: discovery_blackout_setting ,
9645 port_control_blackout_setting,
9646 same_port_control_discovery_blackout
9647 use_discovery_basic_polling_settings: Use flag for:
9648 discovery_basic_poll_settings
9649 use_enable_discovery: Use flag for: discovery_member ,
9650 enable_discovery
9651 use_logic_filter_rules: Use flag for: logic_filter_rules
9652 use_recycle_leases: Use flag for: recycle_leases
9653 use_subscribe_settings: Use flag for: subscribe_settings
9654 """
9655 _infoblox_type = 'ipv6range'
9656 _fields = ['address_type', 'cloud_info', 'comment', 'disable',
9657 'discover_now_status', 'discovery_basic_poll_settings',
9658 'discovery_blackout_setting', 'discovery_member',
9659 'enable_discovery', 'enable_immediate_discovery', 'end_addr',
9660 'endpoint_sources', 'exclude', 'extattrs', 'ipv6_end_prefix',
9661 'ipv6_prefix_bits', 'ipv6_start_prefix', 'logic_filter_rules',
9662 'member', 'name', 'network', 'network_view',
9663 'option_filter_rules', 'port_control_blackout_setting',
9664 'recycle_leases', 'restart_if_needed',
9665 'same_port_control_discovery_blackout',
9666 'server_association_type', 'start_addr', 'subscribe_settings',
9667 'template', 'use_blackout_setting',
9668 'use_discovery_basic_polling_settings', 'use_enable_discovery',
9669 'use_logic_filter_rules', 'use_recycle_leases',
9670 'use_subscribe_settings']
9671 _search_for_update_fields = ['end_addr', 'network', 'network_view',
9672 'start_addr']
9673 _updateable_search_fields = ['address_type', 'comment', 'end_addr',
9674 'ipv6_end_prefix', 'ipv6_prefix_bits',
9675 'ipv6_start_prefix', 'member', 'name',
9676 'network', 'network_view',
9677 'server_association_type', 'start_addr']
9678 _all_searchable_fields = ['address_type', 'comment', 'end_addr',
9679 'ipv6_end_prefix', 'ipv6_prefix_bits',
9680 'ipv6_start_prefix', 'member', 'name', 'network',
9681 'network_view', 'server_association_type',
9682 'start_addr']
9683 _return_fields = ['comment', 'end_addr', 'extattrs', 'network',
9684 'network_view', 'start_addr']
9685 _remap = {'cidr': 'network'}
9686 _shadow_fields = ['_ref', 'cidr']
9687 _ip_version = 6
9688
9689 _custom_field_processing = {
9690 'exclude': Exclusionrange.from_dict,
9691 'logic_filter_rules': Logicfilterrule.from_dict,
9692 'option_filter_rules': Filterrule.from_dict,
9693 }
9694
9695 def next_available_ip(self, *args, **kwargs):
9696 return self._call_func("next_available_ip", *args, **kwargs)
9697
9698
9699 class RangeTemplate(InfobloxObject):
9700 @classmethod
9701 def get_v4_class(cls):
9702 return RangeTemplateV4
9703
9704 @classmethod
9705 def get_v6_class(cls):
9706 return RangeTemplateV6
9707
9708
9709 class RangeTemplateV4(RangeTemplate):
9710 """ RangeTemplateV4: DHCP Range template object.
9711 Corresponds to WAPI object 'rangetemplate'
9712
9713 The range template used to create a range objects in a quick and
9714 consistant way. Range object created from a range template will
9715 inherit most properties defined in range template object so most of
9716 the range template properties are the same as the range object
9717 properties.
9718
9719 Attributes:
9720 bootfile: The bootfile name for the range. You can configure the
9721 DHCP server to support clients that use the boot file name
9722 option in their DHCPREQUEST messages.
9723 bootserver: The bootserver address for the range. You can
9724 specify the name and/or IP address of the boot server that
9725 the host needs to boot.The boot server IPv4 Address or name
9726 in FQDN format.
9727 cloud_api_compatible: This flag controls whether this template
9728 can be used to create network objects in a cloud-computing
9729 deployment.
9730 comment: A descriptive comment of a range template object.
9731 ddns_domainname: The dynamic DNS domain name the appliance uses
9732 specifically for DDNS updates for this range.
9733 ddns_generate_hostname: If this field is set to True, the DHCP
9734 server generates a hostname and updates DNS with it when the
9735 DHCP client request does not contain a hostname.
9736 delegated_member: The vconnector member that the object should
9737 be delegated to when created from this range template.
9738 deny_all_clients: If True, send NAK forcing the client to take
9739 the new address.
9740 deny_bootp: Determines if BOOTP settings are disabled and BOOTP
9741 requests will be denied.
9742 email_list: The e-mail lists to which the appliance sends DHCP
9743 threshold alarm e-mail messages.
9744 enable_ddns: Determines if the DHCP server sends DDNS updates to
9745 DNS servers in the same Grid, and to external DNS servers.
9746 enable_dhcp_thresholds: Determines if DHCP thresholds are
9747 enabled for the range.
9748 enable_email_warnings: Determines if DHCP threshold warnings are
9749 sent through email.
9750 enable_pxe_lease_time: Set this to True if you want the DHCP
9751 server to use a different lease time for PXE clients.
9752 enable_snmp_warnings: Determines if DHCP threshold warnings are
9753 sent through SNMP.
9754 exclude: These are ranges of IP addresses that the appliance
9755 does not use to assign to clients. You can use these
9756 exclusion addresses as static IP addresses. They contain the
9757 start and end addresses of the exclusion range, and
9758 optionally, information about this exclusion range.
9759 extattrs: Extensible attributes associated with the object.For
9760 valid values for extensible attributes, see the following
9761 information.
9762 failover_association: The name of the failover association: the
9763 server in this failover association will serve the IPv4
9764 range in case the main server is out of service.
9765 fingerprint_filter_rules: This field contains the fingerprint
9766 filters for this DHCP range.The appliance uses matching
9767 rules in these filters to select the address range from
9768 which it assigns a lease.
9769 high_water_mark: The percentage of DHCP range usage threshold
9770 above which range usage is not expected and may warrant your
9771 attention. When the high watermark is reached, the Infoblox
9772 appliance generates a syslog message and sends a warning (if
9773 enabled).A number that specifies the percentage of allocated
9774 addresses. The range is from 1 to 100.
9775 high_water_mark_reset: The percentage of DHCP range usage below
9776 which the corresponding SNMP trap is reset.A number that
9777 specifies the percentage of allocated addresses. The range
9778 is from 1 to 100. The high watermark reset value must be
9779 lower than the high watermark value.
9780 ignore_dhcp_option_list_request: If this field is set to False,
9781 the appliance returns all DHCP options the client is
9782 eligible to receive, rather than only the list of options
9783 the client has requested.
9784 known_clients: Permission for known clients. If set to 'Deny'
9785 known clients will be denied IP addresses.Known clients
9786 include roaming hosts and clients with fixed addresses or
9787 DHCP host entries. Unknown clients include clients that are
9788 not roaming hosts and clients that do not have fixed
9789 addresses or DHCP host entries.
9790 lease_scavenge_time: An integer that specifies the period of
9791 time (in seconds) that frees and backs up leases remained in
9792 the database before they are automatically deleted. To
9793 disable lease scavenging, set the parameter to -1. The
9794 minimum positive value must be greater than 86400 seconds (1
9795 day).
9796 logic_filter_rules: This field contains the logic filters to be
9797 applied on this range.This list corresponds to the match
9798 rules that are written to the dhcpd configuration file.
9799 low_water_mark: The percentage of DHCP range usage below which
9800 the Infoblox appliance generates a syslog message and sends
9801 a warning (if enabled).A number that specifies the
9802 percentage of allocated addresses. The range is from 1 to
9803 100.
9804 low_water_mark_reset: The percentage of DHCP range usage
9805 threshold below which range usage is not expected and may
9806 warrant your attention. When the low watermark is crossed,
9807 the Infoblox appliance generates a syslog message and sends
9808 a warning (if enabled).A number that specifies the
9809 percentage of allocated addresses. The range is from 1 to
9810 100. The low watermark reset value must be higher than the
9811 low watermark value.
9812 mac_filter_rules: This field contains the MAC filters to be
9813 applied to this range.The appliance uses the matching rules
9814 of these filters to select the address range from which it
9815 assigns a lease.
9816 member: The member that will provide service for this range.
9817 ms_options: The Microsoft DHCP options for this range.
9818 ms_server: The Microsoft server that will provide service for
9819 this range.
9820 nac_filter_rules: This field contains the NAC filters to be
9821 applied to this range.The appliance uses the matching rules
9822 of these filters to select the address range from which it
9823 assigns a lease.
9824 name: The name of a range template object.
9825 nextserver: The name in FQDN and/or IPv4 Address format of the
9826 next server that the host needs to boot.
9827 number_of_addresses: The number of addresses for this range.
9828 offset: The start address offset for this range.
9829 option_filter_rules: This field contains the Option filters to
9830 be applied to this range.The appliance uses the matching
9831 rules of these filters to select the address range from
9832 which it assigns a lease.
9833 options: An array of DHCP option structs that lists the DHCP
9834 options associated with the object.
9835 pxe_lease_time: The PXE lease time value for a range object.
9836 Some hosts use PXE (Preboot Execution Environment) to boot
9837 remotely from a server. To better manage your IP resources,
9838 set a different lease time for PXE boot requests. You can
9839 configure the DHCP server to allocate an IP address with a
9840 shorter lease time to hosts that send PXE boot requests, so
9841 IP addresses are not leased longer than necessary.A 32-bit
9842 unsigned integer that represents the duration, in seconds,
9843 for which the update is cached. Zero indicates that the
9844 update is not cached.
9845 recycle_leases: If the field is set to True, the leases are kept
9846 in the Recycle Bin until one week after expiration.
9847 Otherwise, the leases are permanently deleted.
9848 relay_agent_filter_rules: This field contains the Relay Agent
9849 filters to be applied to this range.The appliance uses the
9850 matching rules of these filters to select the address range
9851 from which it assigns a lease.
9852 server_association_type: The type of server that is going to
9853 serve the range.
9854 unknown_clients: Permission for unknown clients. If set to
9855 'Deny' unknown clients will be denied IP addresses.Known
9856 clients include roaming hosts and clients with fixed
9857 addresses or DHCP host entries. Unknown clients include
9858 clients that are not roaming hosts and clients that do not
9859 have fixed addresses or DHCP host entries.
9860 update_dns_on_lease_renewal: This field controls whether the
9861 DHCP server updates DNS when a DHCP lease is renewed.
9862 use_bootfile: Use flag for: bootfile
9863 use_bootserver: Use flag for: bootserver
9864 use_ddns_domainname: Use flag for: ddns_domainname
9865 use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
9866 use_deny_bootp: Use flag for: deny_bootp
9867 use_email_list: Use flag for: email_list
9868 use_enable_ddns: Use flag for: enable_ddns
9869 use_enable_dhcp_thresholds: Use flag for: enable_dhcp_thresholds
9870 use_ignore_dhcp_option_list_request: Use flag for:
9871 ignore_dhcp_option_list_request
9872 use_known_clients: Use flag for: known_clients
9873 use_lease_scavenge_time: Use flag for: lease_scavenge_time
9874 use_logic_filter_rules: Use flag for: logic_filter_rules
9875 use_ms_options: Use flag for: ms_options
9876 use_nextserver: Use flag for: nextserver
9877 use_options: Use flag for: options
9878 use_pxe_lease_time: Use flag for: pxe_lease_time
9879 use_recycle_leases: Use flag for: recycle_leases
9880 use_unknown_clients: Use flag for: unknown_clients
9881 use_update_dns_on_lease_renewal: Use flag for:
9882 update_dns_on_lease_renewal
9883 """
9884 _infoblox_type = 'rangetemplate'
9885 _fields = ['bootfile', 'bootserver', 'cloud_api_compatible', 'comment',
9886 'ddns_domainname', 'ddns_generate_hostname', 'delegated_member',
9887 'deny_all_clients', 'deny_bootp', 'email_list', 'enable_ddns',
9888 'enable_dhcp_thresholds', 'enable_email_warnings',
9889 'enable_pxe_lease_time', 'enable_snmp_warnings', 'exclude',
9890 'extattrs', 'failover_association', 'fingerprint_filter_rules',
9891 'high_water_mark', 'high_water_mark_reset',
9892 'ignore_dhcp_option_list_request', 'known_clients',
9893 'lease_scavenge_time', 'logic_filter_rules', 'low_water_mark',
9894 'low_water_mark_reset', 'mac_filter_rules', 'member',
9895 'ms_options', 'ms_server', 'nac_filter_rules', 'name',
9896 'nextserver', 'number_of_addresses', 'offset',
9897 'option_filter_rules', 'options', 'pxe_lease_time',
9898 'recycle_leases', 'relay_agent_filter_rules',
9899 'server_association_type', 'unknown_clients',
9900 'update_dns_on_lease_renewal', 'use_bootfile', 'use_bootserver',
9901 'use_ddns_domainname', 'use_ddns_generate_hostname',
9902 'use_deny_bootp', 'use_email_list', 'use_enable_ddns',
9903 'use_enable_dhcp_thresholds',
9904 'use_ignore_dhcp_option_list_request', 'use_known_clients',
9905 'use_lease_scavenge_time', 'use_logic_filter_rules',
9906 'use_ms_options', 'use_nextserver', 'use_options',
9907 'use_pxe_lease_time', 'use_recycle_leases',
9908 'use_unknown_clients', 'use_update_dns_on_lease_renewal']
9909 _search_for_update_fields = ['name']
9910 _updateable_search_fields = ['comment', 'failover_association', 'member',
9911 'ms_server', 'name',
9912 'server_association_type']
9913 _all_searchable_fields = ['comment', 'failover_association', 'member',
9914 'ms_server', 'name', 'server_association_type']
9915 _return_fields = ['comment', 'extattrs', 'name', 'number_of_addresses',
9916 'offset']
9917 _remap = {}
9918 _shadow_fields = ['_ref']
9919 _ip_version = 4
9920
9921 _custom_field_processing = {
9922 'exclude': Exclusionrangetemplate.from_dict,
9923 'fingerprint_filter_rules': Filterrule.from_dict,
9924 'logic_filter_rules': Logicfilterrule.from_dict,
9925 'mac_filter_rules': Filterrule.from_dict,
9926 'ms_options': Msdhcpoption.from_dict,
9927 'nac_filter_rules': Filterrule.from_dict,
9928 'option_filter_rules': Filterrule.from_dict,
9929 'options': DhcpOption.from_dict,
9930 'relay_agent_filter_rules': Filterrule.from_dict,
9931 }
9932
9933
9934 class RangeTemplateV6(RangeTemplate):
9935 """ RangeTemplateV6: IPv6 DHCP Range template object.
9936 Corresponds to WAPI object 'ipv6rangetemplate'
9937
9938 The IPv6 range template used to create an IPv6 range object in a
9939 quick and consistent way. The DHCP IPv6 range created from the DHCP
9940 IPv6 range template will inherit the properties defined in this
9941 template.
9942
9943 Attributes:
9944 cloud_api_compatible: Determines whether the IPv6 DHCP range
9945 template can be used to create network objects in a cloud-
9946 computing deployment.
9947 comment: The IPv6 DHCP range template descriptive comment.
9948 delegated_member: The vConnector member that the object should
9949 be delegated to when created from the IPv6 DHCP range
9950 template. I assume that vConnector refers to VMware
9951 vConnector.
9952 exclude: These are ranges of IPv6 addresses that the appliance
9953 does not use to assign to clients. You can use these
9954 excluded addresses as static IPv6 addresses. They contain
9955 the start and end addresses of the excluded range, and
9956 optionally, information about this excluded range.
9957 logic_filter_rules: This field contains the logic filters to be
9958 applied on this IPv6 range.This list corresponds to the
9959 match rules that are written to the DHCPv6 configuration
9960 file.
9961 member: The member that will provide service for the IPv6 DHCP
9962 range.Set server_association_type to 'MEMBER' if you want
9963 the server specified here to serve the range. For searching
9964 by this field, use an HTTP method that contains a body (POST
9965 or PUT) with MS DHCP server structure and the request should
9966 have option _method=GET.
9967 name: Name of the IPv6 DHCP range template.
9968 number_of_addresses: The number of addresses for the IPv6 DHCP
9969 range.
9970 offset: The start address offset for the IPv6 DHCP range.
9971 option_filter_rules: This field contains the Option filters to
9972 be applied to this IPv6 range. The appliance uses the
9973 matching rules of these filters to select the address range
9974 from which it assigns a lease.
9975 recycle_leases: Determines whether the leases are kept in
9976 Recycle Bin until one week after expiry. If this is set to
9977 False, the leases are permanently deleted.
9978 server_association_type: The type of server that is going to
9979 serve the IPv6 DHCP range.
9980 use_logic_filter_rules: Use flag for: logic_filter_rules
9981 use_recycle_leases: Use flag for: recycle_leases
9982 """
9983 _infoblox_type = 'ipv6rangetemplate'
9984 _fields = ['cloud_api_compatible', 'comment', 'delegated_member',
9985 'exclude', 'logic_filter_rules', 'member', 'name',
9986 'number_of_addresses', 'offset', 'option_filter_rules',
9987 'recycle_leases', 'server_association_type',
9988 'use_logic_filter_rules', 'use_recycle_leases']
9989 _search_for_update_fields = ['name']
9990 _updateable_search_fields = ['comment', 'member', 'name',
9991 'server_association_type']
9992 _all_searchable_fields = ['comment', 'member', 'name',
9993 'server_association_type']
9994 _return_fields = ['comment', 'name', 'number_of_addresses', 'offset']
9995 _remap = {}
9996 _shadow_fields = ['_ref']
9997 _ip_version = 6
9998
9999 _custom_field_processing = {
10000 'exclude': Exclusionrangetemplate.from_dict,
10001 'logic_filter_rules': Logicfilterrule.from_dict,
10002 'option_filter_rules': Filterrule.from_dict,
10003 }
10004
10005
10006 class SharedNetwork(InfobloxObject):
10007 @classmethod
10008 def get_v4_class(cls):
10009 return SharedNetworkV4
10010
10011 @classmethod
10012 def get_v6_class(cls):
10013 return SharedNetworkV6
10014
10015
10016 class SharedNetworkV4(SharedNetwork):
10017 """ SharedNetworkV4: DHCP Shared Network object.
10018 Corresponds to WAPI object 'sharednetwork'
10019
10020 A shared network is a network segment to which you assign two or
10021 more subnets. When subnets in a shared network contain IP addresses
10022 that are available for dynamic allocation, the addresses are put
10023 into a common pool for allocation when client requests arise. When
10024 you create a shared network, the DHCP server can assign IP addresses
10025 to client requests from any subnet (that resides on the same network
10026 interface) in the shared network.
10027
10028 Attributes:
10029 authority: Authority for the shared network.
10030 bootfile: The bootfile name for the shared network. You can
10031 configure the DHCP server to support clients that use the
10032 boot file name option in their DHCPREQUEST messages.
10033 bootserver: The bootserver address for the shared network. You
10034 can specify the name and/or IP address of the boot server
10035 that the host needs to boot.The boot server IPv4 Address or
10036 name in FQDN format.
10037 comment: Comment for the shared network, maximum 256 characters.
10038 ddns_generate_hostname: If this field is set to True, the DHCP
10039 server generates a hostname and updates DNS with it when the
10040 DHCP client request does not contain a hostname.
10041 ddns_server_always_updates: This field controls whether only the
10042 DHCP server is allowed to update DNS, regardless of the DHCP
10043 clients requests. Note that changes for this field take
10044 effect only if ddns_use_option81 is True.
10045 ddns_ttl: The DNS update Time to Live (TTL) value of a shared
10046 network object.The TTL is a 32-bit unsigned integer that
10047 represents the duration, in seconds, for which the update is
10048 cached. Zero indicates that the update is not cached.
10049 ddns_update_fixed_addresses: By default, the DHCP server does
10050 not update DNS when it allocates a fixed address to a
10051 client. You can configure the DHCP server to update the A
10052 and PTR records of a client with a fixed address. When this
10053 feature is enabled and the DHCP server adds A and PTR
10054 records for a fixed address, the DHCP server never discards
10055 the records.
10056 ddns_use_option81: The support for DHCP Option 81 at the shared
10057 network level.
10058 deny_bootp: If set to true, BOOTP settings are disabled and
10059 BOOTP requests will be denied.
10060 dhcp_utilization: The percentage of the total DHCP utilization
10061 of the networks belonging to the shared network multiplied
10062 by 1000. This is the percentage of the total number of
10063 available IP addresses from all the networks belonging to
10064 the shared network versus the total number of all IP
10065 addresses in all of the networks in the shared network.
10066 dhcp_utilization_status: A string describing the utilization
10067 level of the shared network.
10068 disable: Determines whether a shared network is disabled or not.
10069 When this is set to False, the shared network is enabled.
10070 dynamic_hosts: The total number of DHCP leases issued for the
10071 shared network.
10072 enable_ddns: The dynamic DNS updates flag of a shared network
10073 object. If set to True, the DHCP server sends DDNS updates
10074 to DNS servers in the same Grid, and to external DNS
10075 servers.
10076 enable_pxe_lease_time: Set this to True if you want the DHCP
10077 server to use a different lease time for PXE clients.
10078 extattrs: Extensible attributes associated with the object.For
10079 valid values for extensible attributes, see the following
10080 information.
10081 ignore_client_identifier: If set to true, the client identifier
10082 will be ignored.
10083 ignore_dhcp_option_list_request: If this field is set to False,
10084 the appliance returns all DHCP options the client is
10085 eligible to receive, rather than only the list of options
10086 the client has requested.
10087 ignore_id: Indicates whether the appliance will ignore DHCP
10088 client IDs or MAC addresses. Valid values are "NONE",
10089 "CLIENT", or "MACADDR". The default is "NONE".
10090 ignore_mac_addresses: A list of MAC addresses the appliance will
10091 ignore.
10092 lease_scavenge_time: An integer that specifies the period of
10093 time (in seconds) that frees and backs up leases remained in
10094 the database before they are automatically deleted. To
10095 disable lease scavenging, set the parameter to -1. The
10096 minimum positive value must be greater than 86400 seconds (1
10097 day).
10098 logic_filter_rules: This field contains the logic filters to be
10099 applied on the this shared network.This list corresponds to
10100 the match rules that are written to the dhcpd configuration
10101 file.
10102 ms_ad_user_data: The Microsoft Active Directory user related
10103 information.
10104 name: The name of the IPv6 Shared Network.
10105 network_view: The name of the network view in which this shared
10106 network resides.
10107 networks: A list of networks belonging to the shared networkEach
10108 individual list item must be specified as an object
10109 containing a '_ref' parameter to a network reference, for
10110 example:if the reference of the wanted network is not known,
10111 it is possible to specify search parameters for the network
10112 instead in the following way:note that in this case the
10113 search must match exactly one network for the assignment to
10114 be successful.
10115 nextserver: The name in FQDN and/or IPv4 Address of the next
10116 server that the host needs to boot.
10117 options: An array of DHCP option structs that lists the DHCP
10118 options associated with the object.
10119 pxe_lease_time: The PXE lease time value of a shared network
10120 object. Some hosts use PXE (Preboot Execution Environment)
10121 to boot remotely from a server. To better manage your IP
10122 resources, set a different lease time for PXE boot requests.
10123 You can configure the DHCP server to allocate an IP address
10124 with a shorter lease time to hosts that send PXE boot
10125 requests, so IP addresses are not leased longer than
10126 necessary.A 32-bit unsigned integer that represents the
10127 duration, in seconds, for which the update is cached. Zero
10128 indicates that the update is not cached.
10129 static_hosts: The number of static DHCP addresses configured in
10130 the shared network.
10131 total_hosts: The total number of DHCP addresses configured in
10132 the shared network.
10133 update_dns_on_lease_renewal: This field controls whether the
10134 DHCP server updates DNS when a DHCP lease is renewed.
10135 use_authority: Use flag for: authority
10136 use_bootfile: Use flag for: bootfile
10137 use_bootserver: Use flag for: bootserver
10138 use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
10139 use_ddns_ttl: Use flag for: ddns_ttl
10140 use_ddns_update_fixed_addresses: Use flag for:
10141 ddns_update_fixed_addresses
10142 use_ddns_use_option81: Use flag for: ddns_use_option81
10143 use_deny_bootp: Use flag for: deny_bootp
10144 use_enable_ddns: Use flag for: enable_ddns
10145 use_ignore_client_identifier: Use flag for:
10146 ignore_client_identifier
10147 use_ignore_dhcp_option_list_request: Use flag for:
10148 ignore_dhcp_option_list_request
10149 use_ignore_id: Use flag for: ignore_id
10150 use_lease_scavenge_time: Use flag for: lease_scavenge_time
10151 use_logic_filter_rules: Use flag for: logic_filter_rules
10152 use_nextserver: Use flag for: nextserver
10153 use_options: Use flag for: options
10154 use_pxe_lease_time: Use flag for: pxe_lease_time
10155 use_update_dns_on_lease_renewal: Use flag for:
10156 update_dns_on_lease_renewal
10157 """
10158 _infoblox_type = 'sharednetwork'
10159 _fields = ['authority', 'bootfile', 'bootserver', 'comment',
10160 'ddns_generate_hostname', 'ddns_server_always_updates',
10161 'ddns_ttl', 'ddns_update_fixed_addresses', 'ddns_use_option81',
10162 'deny_bootp', 'dhcp_utilization', 'dhcp_utilization_status',
10163 'disable', 'dynamic_hosts', 'enable_ddns',
10164 'enable_pxe_lease_time', 'extattrs', 'ignore_client_identifier',
10165 'ignore_dhcp_option_list_request', 'ignore_id',
10166 'ignore_mac_addresses', 'lease_scavenge_time',
10167 'logic_filter_rules', 'ms_ad_user_data', 'name', 'network_view',
10168 'networks', 'nextserver', 'options', 'pxe_lease_time',
10169 'static_hosts', 'total_hosts', 'update_dns_on_lease_renewal',
10170 'use_authority', 'use_bootfile', 'use_bootserver',
10171 'use_ddns_generate_hostname', 'use_ddns_ttl',
10172 'use_ddns_update_fixed_addresses', 'use_ddns_use_option81',
10173 'use_deny_bootp', 'use_enable_ddns',
10174 'use_ignore_client_identifier',
10175 'use_ignore_dhcp_option_list_request', 'use_ignore_id',
10176 'use_lease_scavenge_time', 'use_logic_filter_rules',
10177 'use_nextserver', 'use_options', 'use_pxe_lease_time',
10178 'use_update_dns_on_lease_renewal']
10179 _search_for_update_fields = ['name', 'network_view']
10180 _updateable_search_fields = ['comment', 'name']
10181 _all_searchable_fields = ['comment', 'name', 'network_view']
10182 _return_fields = ['comment', 'extattrs', 'name', 'network_view',
10183 'networks']
10184 _remap = {}
10185 _shadow_fields = ['_ref']
10186 _ip_version = 4
10187
10188 _custom_field_processing = {
10189 'logic_filter_rules': Logicfilterrule.from_dict,
10190 'options': DhcpOption.from_dict,
10191 }
10192
10193
10194 class SharedNetworkV6(SharedNetwork):
10195 """ SharedNetworkV6: DHCP IPv6 Shared Network object.
10196 Corresponds to WAPI object 'ipv6sharednetwork'
10197
10198 A shared network is a network segment to which you assign two or
10199 more subnets. When subnets in a shared network contain IP addresses
10200 that are available for dynamic allocation, the addresses are put
10201 into a common pool for allocation when client requests arise. When
10202 you create a shared network, the DHCP server can assign IP addresses
10203 to client requests from any subnet (that resides on the same network
10204 interface) in the shared network.
10205
10206 Attributes:
10207 comment: Comment for the IPv6 shared network, maximum 256
10208 characters.
10209 ddns_domainname: The dynamic DNS domain name the appliance uses
10210 specifically for DDNS updates for this network.
10211 ddns_generate_hostname: If this field is set to True, the DHCP
10212 server generates a hostname and updates DNS with it when the
10213 DHCP client request does not contain a hostname.
10214 ddns_server_always_updates: This field controls whether only the
10215 DHCP server is allowed to update DNS, regardless of the DHCP
10216 clients requests. Note that changes for this field take
10217 effect only if ddns_use_option81 is True.
10218 ddns_ttl: The DNS update Time to Live (TTL) value of an IPv6
10219 shared network object.The TTL is a 32-bit unsigned integer
10220 that represents the duration, in seconds, for which the
10221 update is cached. Zero indicates that the update is not
10222 cached.
10223 ddns_use_option81: The support for DHCP Option 81 at the IPv6
10224 shared network level.
10225 disable: Determines whether an IPv6 shared network is disabled
10226 or not. When this is set to False, the IPv6 shared network
10227 is enabled.
10228 domain_name: Use this method to set or retrieve the domain_name
10229 value of a DHCP IPv6 Shared Network object.
10230 domain_name_servers: Use this method to set or retrieve the
10231 dynamic DNS updates flag of a DHCP IPv6 Shared Network
10232 object. The DHCP server can send DDNS updates to DNS servers
10233 in the same Grid and to external DNS servers. This setting
10234 overrides the member level settings.
10235 enable_ddns: The dynamic DNS updates flag of an IPv6 shared
10236 network object. If set to True, the DHCP server sends DDNS
10237 updates to DNS servers in the same Grid, and to external DNS
10238 servers.
10239 extattrs: Extensible attributes associated with the object.For
10240 valid values for extensible attributes, see the following
10241 information.
10242 logic_filter_rules: This field contains the logic filters to be
10243 applied on the this IPv6 shared network.This list
10244 corresponds to the match rules that are written to the
10245 DHCPv6 configuration file.
10246 name: The name of the IPv6 Shared Network.
10247 network_view: The name of the network view in which this IPv6
10248 shared network resides.
10249 networks: A list of IPv6 networks belonging to the shared
10250 networkEach individual list item must be specified as an
10251 object containing a '_ref' parameter to a network reference,
10252 for example:if the reference of the wanted network is not
10253 known, it is possible to specify search parameters for the
10254 network instead in the following way:note that in this case
10255 the search must match exactly one network for the assignment
10256 to be successful.
10257 options: An array of DHCP option structs that lists the DHCP
10258 options associated with the object.
10259 preferred_lifetime: Use this method to set or retrieve the
10260 preferred lifetime value of a DHCP IPv6 Shared Network
10261 object.
10262 update_dns_on_lease_renewal: This field controls whether the
10263 DHCP server updates DNS when a DHCP lease is renewed.
10264 use_ddns_domainname: Use flag for: ddns_domainname
10265 use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
10266 use_ddns_ttl: Use flag for: ddns_ttl
10267 use_ddns_use_option81: Use flag for: ddns_use_option81
10268 use_domain_name: Use flag for: domain_name
10269 use_domain_name_servers: Use flag for: domain_name_servers
10270 use_enable_ddns: Use flag for: enable_ddns
10271 use_logic_filter_rules: Use flag for: logic_filter_rules
10272 use_options: Use flag for: options
10273 use_preferred_lifetime: Use flag for: preferred_lifetime
10274 use_update_dns_on_lease_renewal: Use flag for:
10275 update_dns_on_lease_renewal
10276 use_valid_lifetime: Use flag for: valid_lifetime
10277 valid_lifetime: Use this method to set or retrieve the valid
10278 lifetime value of a DHCP IPv6 Shared Network object.
10279 """
10280 _infoblox_type = 'ipv6sharednetwork'
10281 _fields = ['comment', 'ddns_domainname', 'ddns_generate_hostname',
10282 'ddns_server_always_updates', 'ddns_ttl', 'ddns_use_option81',
10283 'disable', 'domain_name', 'domain_name_servers', 'enable_ddns',
10284 'extattrs', 'logic_filter_rules', 'name', 'network_view',
10285 'networks', 'options', 'preferred_lifetime',
10286 'update_dns_on_lease_renewal', 'use_ddns_domainname',
10287 'use_ddns_generate_hostname', 'use_ddns_ttl',
10288 'use_ddns_use_option81', 'use_domain_name',
10289 'use_domain_name_servers', 'use_enable_ddns',
10290 'use_logic_filter_rules', 'use_options',
10291 'use_preferred_lifetime', 'use_update_dns_on_lease_renewal',
10292 'use_valid_lifetime', 'valid_lifetime']
10293 _search_for_update_fields = ['name', 'network_view']
10294 _updateable_search_fields = ['comment', 'name']
10295 _all_searchable_fields = ['comment', 'name', 'network_view']
10296 _return_fields = ['comment', 'extattrs', 'name', 'network_view',
10297 'networks']
10298 _remap = {}
10299 _shadow_fields = ['_ref']
10300 _ip_version = 6
10301
10302 _custom_field_processing = {
10303 'logic_filter_rules': Logicfilterrule.from_dict,
10304 'options': DhcpOption.from_dict,
10305 }
10306
10307
10308 class Kerberoskey(InfobloxObject):
10309 """ Kerberoskey: Kerberos key object.
10310 Corresponds to WAPI object 'kerberoskey'
10311
10312 GSS-TSIG (Generic Security Service Algorithm for Secret Key
10313 Transaction) is used to authenticate DDNS updates. It is a modified
10314 form of TSIG authentication that uses Kerberos v5 authentication
10315 system.
10316
10317 You can configure the appliance to accept GSS-TSIG signed DDNS
10318 updates from a single client or multiple clients that belong to
10319 different AD domains in which each domain have a unique GSS-TSIG
10320 key. You can also configure the appliance to support one or multiple
10321 GSS-TSIG keys for each of Grid members.
10322
10323 The Kerberos key object represents the GSS-TSIG key used to
10324 authenticate clients for GSS-TSIG signed DDNS updates.
10325
10326 Attributes:
10327 domain: The Kerberos domain name.
10328 enctype: The Kerberos key encryption type.
10329 in_use: Determines whether the Kerberos key is assigned to the
10330 Grid or Grid member.
10331 members: The list of hostnames and services of Grid members
10332 where the key is assigned or Grid/DHCP4 or Grid/DHCP6 or
10333 Grid/DNS.
10334 principal: The principal of the Kerberos key object.
10335 upload_timestamp: The timestamp of the Kerberos key upload
10336 operation.
10337 version: The Kerberos key version number (KVNO).
10338 """
10339 _infoblox_type = 'kerberoskey'
10340 _fields = ['domain', 'enctype', 'in_use', 'members', 'principal',
10341 'upload_timestamp', 'version']
10342 _search_for_update_fields = ['domain', 'enctype', 'in_use', 'principal',
10343 'version']
10344 _updateable_search_fields = []
10345 _all_searchable_fields = ['domain', 'enctype', 'in_use', 'principal',
10346 'version']
10347 _return_fields = ['domain', 'enctype', 'in_use', 'principal', 'version']
10348 _remap = {}
10349 _shadow_fields = ['_ref']
10350
10351
10352 class LdapAuthService(InfobloxObject):
10353 """ LdapAuthService: The LDAP authentication service object.
10354 Corresponds to WAPI object 'ldap_auth_service'
10355
10356 LDAP (Lightweight Directory Access Protocol) is an internet protocol
10357 for accessing distributed directory services. The appliance can
10358 authenticate admin accounts by verifying user names and passwords
10359 against LDAP. This object is used to configure the LDAP
10360 authentication service.
10361
10362 Attributes:
10363 comment: The LDAP descriptive comment.
10364 disable: Determines if the LDAP authentication service is
10365 disabled.
10366 ea_mapping: The mapping LDAP fields to extensible attributes.
10367 ldap_group_attribute: The name of the LDAP attribute that
10368 defines group membership.
10369 ldap_group_authentication_type: The LDAP group authentication
10370 type.
10371 ldap_user_attribute: The LDAP userid attribute that is used for
10372 search.
10373 mode: The LDAP authentication mode.
10374 name: The LDAP authentication service name.
10375 recovery_interval: The period of time in seconds to wait before
10376 trying to contact a LDAP server that has been marked as
10377 'DOWN'.
10378 retries: The maximum number of LDAP authentication attempts.
10379 search_scope: The starting point of the LDAP search.
10380 servers: The list of LDAP servers used for authentication.
10381 timeout: The LDAP authentication timeout in seconds.
10382 """
10383 _infoblox_type = 'ldap_auth_service'
10384 _fields = ['comment', 'disable', 'ea_mapping', 'ldap_group_attribute',
10385 'ldap_group_authentication_type', 'ldap_user_attribute', 'mode',
10386 'name', 'recovery_interval', 'retries', 'search_scope',
10387 'servers', 'timeout']
10388 _search_for_update_fields = ['mode', 'name']
10389 _updateable_search_fields = ['comment', 'mode', 'name', 'search_scope']
10390 _all_searchable_fields = ['comment', 'mode', 'name', 'search_scope']
10391 _return_fields = ['comment', 'disable', 'ldap_user_attribute', 'mode',
10392 'name']
10393 _remap = {}
10394 _shadow_fields = ['_ref']
10395
10396 _custom_field_processing = {
10397 'ea_mapping': LdapEamapping.from_dict,
10398 'servers': LdapServer.from_dict,
10399 }
10400
10401 def check_ldap_server_settings(self, *args, **kwargs):
10402 return self._call_func("check_ldap_server_settings", *args, **kwargs)
10403
10404
10405 class DHCPLease(InfobloxObject):
10406 """ DHCPLease: DHCP Lease object.
10407 Corresponds to WAPI object 'lease'
10408
10409 A DHCP lease is an IP address that the Infoblox appliance assigns to
10410 a DHCP client for a certain amount of time. When the appliance
10411 assigns a lease, it also assignes other information, such as the
10412 time when the appliance issued or freed an IP address, the MAC
10413 address and host name of the client that received the IP address,
10414 and the Grid member that supplied the lease. The DHCP Lease object
10415 allows the appliance to store and correlate DHCP lease information
10416 over the lifetime of a lease.
10417
10418 Note that deleting a lease object only clears the lease, it does not
10419 remove the actual object.
10420
10421 Attributes:
10422 address: The IPv4 Address or IPv6 Address of the lease.
10423 billing_class: The billing_class value of a DHCP Lease object.
10424 This field specifies the class to which this lease is
10425 currently billed. This field is for IPv4 leases only.
10426 binding_state: The binding state for the current lease.
10427 Following are some of the values this field can be set to:
10428 client_hostname: The client_hostname of a DHCP Lease object.
10429 This field specifies the host name that the DHCP client
10430 sends to the Infoblox appliance using DHCP option 12.
10431 cltt: The CLTT (Client Last Transaction Time) value of a DHCP
10432 Lease object. This field specifies the time of the last
10433 transaction with the DHCP client for this lease.
10434 discovered_data: The discovered data for this lease.
10435 ends: The end time value of a DHCP Lease object. This field
10436 specifies the time when a lease ended.
10437 fingerprint: DHCP fingerprint for the lease.
10438 hardware: The hardware type of a DHCP Lease object. This field
10439 specifies the MAC address of the network interface on which
10440 the lease will be used. This field is for IPv4 leases only.
10441 ipv6_duid: The DUID value for this lease. This field is only
10442 applicable for IPv6 leases.
10443 ipv6_iaid: The interface ID of an IPv6 address that the Infoblox
10444 appliance leased to the DHCP client. This field is for IPv6
10445 leases only.
10446 ipv6_preferred_lifetime: The preferred lifetime value of an IPv6
10447 address that the Infoblox appliance leased to the DHCP
10448 client. This field is for IPv6 leases only.
10449 ipv6_prefix_bits: Prefix bits for this lease. This field is for
10450 IPv6 leases only.
10451 is_invalid_mac: This flag reflects whether the MAC address for
10452 this lease is invalid.
10453 ms_ad_user_data: The Microsoft Active Directory user related
10454 information.
10455 network: The network, in "network/netmask" format, with which
10456 this lease is associated.
10457 network_view: The name of the network view in which this lease
10458 resides.
10459 never_ends: If this field is set to True, the lease does not
10460 have an end time.
10461 never_starts: If this field is set to True, the lease does not
10462 have a start time.
10463 next_binding_state: The subsequent binding state when the
10464 current lease expires. This field is for IPv4 leases only.
10465 Following are some of the values this field can be set to:
10466 on_commit: The list of commands to be executed when the lease is
10467 granted.
10468 on_expiry: The list of commands to be executed when the lease
10469 expires.
10470 on_release: The list of commands to be executed when the lease
10471 is released.
10472 option: The option value of a DHCP Lease object. This field
10473 specifies the agent circuit ID and remote ID sent by a DHCP
10474 relay agent in DHCP option 82. This field is for IPv4 leases
10475 only.
10476 protocol: This field determines whether the lease is an IPv4 or
10477 IPv6 address.
10478 remote_id: This field represents the "Remote ID" sub-option of
10479 DHCP option 82.Remote ID can be in ASCII form (e.g. "abcd")
10480 or in colon-separated HEX form (e.g. 1:2:ab:cd). HEX
10481 representation is used only when the sub-option value
10482 contains unprintable characters. If a remote ID sub-option
10483 value is in ASCII form, it is always enclosed in quotes to
10484 prevent ambiguous values (e.g. "10:20" - ASCII 5-byte
10485 string; 10:20 - HEX 2-byte value).NIOS does not support the
10486 convertion between HEX and ASCII formats. Searches are
10487 performed using the exact same format and value as the sub-
10488 option is represented.Query examples assume the following
10489 leases are stored in the database:Expected results:
10490 served_by: The IP address of the server that sends an active
10491 lease to a client.
10492 server_host_name: The host name of the Grid member or Microsoft
10493 DHCP server that issues the lease.
10494 starts: The start time of a DHCP Lease object. This field
10495 specifies the time when the lease starts.
10496 tsfp: The TSFP (Time Sent From Partner) value of a DHCP Lease
10497 object. This field specifies the time that the current lease
10498 state ends, from the point of view of a remote DHCP failover
10499 peer. This field is for IPv4 leases only.
10500 tstp: The TSTP (Time Sent To Partner) value of a DHCP Lease
10501 object. This field specifies the time that the current lease
10502 state ends, from the point of view of a local DHCP failover
10503 peer. This field is for IPv4 leases only.
10504 uid: The UID (User ID) value of a DHCP Lease object. This field
10505 specifies the client identifier that the DHCP client sends
10506 the Infoblox appliance (in DHCP option 61) when it acquires
10507 the lease. Not all DHCP clients send a UID. This field is
10508 for IPv4 leases only.
10509 username: The user name that the server has associated with a
10510 DHCP Lease object.
10511 variable: The variable value of a DHCP Lease object. This field
10512 keeps all variables related to the DDNS update of the DHCP
10513 lease. The variables related to the DDNS updates of the DHCP
10514 lease. The variables can be one of the following:ddns-text:
10515 The ddns-text variable is used to record the value of the
10516 client's TXT identification record when the interim DDNS
10517 update style has been used to update the DNS service for a
10518 particular lease.ddns-fwd-name: When a DDNS update was
10519 successfully completed, the ddns-fwd-name variable records
10520 the value of the name used when the client's A record was
10521 updated. The server may have used this name when it updated
10522 the client's PTR record.ddns-client-fqdn: If the server is
10523 configured to use the interim DDNS update style and is also
10524 configured to allow clients to update their own FQDNs, the
10525 ddns-client-fqdn variable records the name that the client
10526 used when it updated its own FQDN. This is also the name
10527 that the server used to update the client's PTR record.ddns-
10528 rev-name: If the server successfully updates the client's
10529 PTR record, this variable will record the name that the DHCP
10530 server used for the PTR record. The name to which the PTR
10531 record points will be either the ddns-fwd-name or the ddns-
10532 client-fqdn.
10533 """
10534 _infoblox_type = 'lease'
10535 _fields = ['address', 'billing_class', 'binding_state', 'client_hostname',
10536 'cltt', 'discovered_data', 'ends', 'fingerprint', 'hardware',
10537 'ipv6_duid', 'ipv6_iaid', 'ipv6_preferred_lifetime',
10538 'ipv6_prefix_bits', 'is_invalid_mac', 'ms_ad_user_data',
10539 'network', 'network_view', 'never_ends', 'never_starts',
10540 'next_binding_state', 'on_commit', 'on_expiry', 'on_release',
10541 'option', 'protocol', 'remote_id', 'served_by',
10542 'server_host_name', 'starts', 'tsfp', 'tstp', 'uid', 'username',
10543 'variable']
10544 _search_for_update_fields = ['address', 'network_view']
10545 _updateable_search_fields = []
10546 _all_searchable_fields = ['address', 'client_hostname', 'fingerprint',
10547 'hardware', 'ipv6_duid', 'ipv6_prefix_bits',
10548 'network', 'network_view', 'protocol',
10549 'remote_id', 'username']
10550 _return_fields = ['address', 'network_view']
10551 _remap = {}
10552 _shadow_fields = ['_ref']
10553
10554
10555 class LicenseGridwide(InfobloxObject):
10556 """ LicenseGridwide: Gridwide license object.
10557 Corresponds to WAPI object 'license:gridwide'
10558
10559 This object represents the Grid-wide license.
10560
10561 Attributes:
10562 expiration_status: The license expiration status.
10563 expiry_date: The expiration timestamp of the license.
10564 key: The license string.
10565 limit: The license limit value.
10566 limit_context: The license limit context.
10567 type: The license type.
10568 """
10569 _infoblox_type = 'license:gridwide'
10570 _fields = ['expiration_status', 'expiry_date', 'key', 'limit',
10571 'limit_context', 'type']
10572 _search_for_update_fields = ['type']
10573 _updateable_search_fields = []
10574 _all_searchable_fields = ['key', 'limit', 'type']
10575 _return_fields = ['type']
10576 _remap = {}
10577 _shadow_fields = ['_ref']
10578
10579
10580 class LocaluserAuthservice(InfobloxObject):
10581 """ LocaluserAuthservice: Local user authentication service object.
10582 Corresponds to WAPI object 'localuser:authservice'
10583
10584 The object represents a local authentication service for
10585 authenticating users against the local database.
10586
10587 Note that read by reference is not supported.
10588
10589 Attributes:
10590 comment: The local user authentication service comment.
10591 disabled: Flag that indicates whether the local user
10592 authentication service is enabled or not.
10593 name: The name of the local user authentication service.
10594 """
10595 _infoblox_type = 'localuser:authservice'
10596 _fields = ['comment', 'disabled', 'name']
10597 _search_for_update_fields = []
10598 _updateable_search_fields = []
10599 _all_searchable_fields = []
10600 _return_fields = ['comment', 'disabled', 'name']
10601 _remap = {}
10602 _shadow_fields = ['_ref']
10603
10604
10605 class Macfilteraddress(InfobloxObject):
10606 """ Macfilteraddress: MAC Filter Address object.
10607 Corresponds to WAPI object 'macfilteraddress'
10608
10609 MAC filter address is part of the MAC filter.
10610
10611 Attributes:
10612 authentication_time: The absolute UNIX time (in seconds) since
10613 the address was last authenticated.
10614 comment: Comment for the MAC filter address; maximum 256
10615 characters.
10616 expiration_time: The absolute UNIX time (in seconds) until the
10617 address expires.
10618 extattrs: Extensible attributes associated with the object.For
10619 valid values for extensible attributes, see the following
10620 information.
10621 filter: Name of the MAC filter to which this address belongs.
10622 fingerprint: DHCP fingerprint for the address.
10623 guest_custom_field1: Guest custom field 1.
10624 guest_custom_field2: Guest custom field 2.
10625 guest_custom_field3: Guest custom field 3.
10626 guest_custom_field4: Guest custom field 4.
10627 guest_email: Guest e-mail.
10628 guest_first_name: Guest first name.
10629 guest_last_name: Guest last name.
10630 guest_middle_name: Guest middle name.
10631 guest_phone: Guest phone number.
10632 is_registered_user: Determines if the user has been
10633 authenticated or not.
10634 mac: MAC Address.
10635 never_expires: Determines if MAC address expiration is enabled
10636 or disabled.
10637 reserved_for_infoblox: Reserved for future use.
10638 username: Username for authenticated DHCP purposes.
10639 """
10640 _infoblox_type = 'macfilteraddress'
10641 _fields = ['authentication_time', 'comment', 'expiration_time', 'extattrs',
10642 'filter', 'fingerprint', 'guest_custom_field1',
10643 'guest_custom_field2', 'guest_custom_field3',
10644 'guest_custom_field4', 'guest_email', 'guest_first_name',
10645 'guest_last_name', 'guest_middle_name', 'guest_phone',
10646 'is_registered_user', 'mac', 'never_expires',
10647 'reserved_for_infoblox', 'username']
10648 _search_for_update_fields = ['authentication_time', 'expiration_time',
10649 'filter', 'guest_custom_field1',
10650 'guest_custom_field2', 'guest_custom_field3',
10651 'guest_custom_field4', 'guest_email',
10652 'guest_first_name', 'guest_last_name',
10653 'guest_middle_name', 'guest_phone', 'mac',
10654 'never_expires', 'reserved_for_infoblox',
10655 'username']
10656 _updateable_search_fields = ['authentication_time', 'comment',
10657 'expiration_time', 'filter',
10658 'guest_custom_field1', 'guest_custom_field2',
10659 'guest_custom_field3', 'guest_custom_field4',
10660 'guest_email', 'guest_first_name',
10661 'guest_last_name', 'guest_middle_name',
10662 'guest_phone', 'mac', 'never_expires',
10663 'reserved_for_infoblox', 'username']
10664 _all_searchable_fields = ['authentication_time', 'comment',
10665 'expiration_time', 'filter', 'fingerprint',
10666 'guest_custom_field1', 'guest_custom_field2',
10667 'guest_custom_field3', 'guest_custom_field4',
10668 'guest_email', 'guest_first_name',
10669 'guest_last_name', 'guest_middle_name',
10670 'guest_phone', 'mac', 'never_expires',
10671 'reserved_for_infoblox', 'username']
10672 _return_fields = ['authentication_time', 'comment', 'expiration_time',
10673 'extattrs', 'filter', 'guest_custom_field1',
10674 'guest_custom_field2', 'guest_custom_field3',
10675 'guest_custom_field4', 'guest_email', 'guest_first_name',
10676 'guest_last_name', 'guest_middle_name', 'guest_phone',
10677 'is_registered_user', 'mac', 'never_expires',
10678 'reserved_for_infoblox', 'username']
10679 _remap = {}
10680 _shadow_fields = ['_ref']
10681
10682
10683 class Mastergrid(InfobloxObject):
10684 """ Mastergrid: Master Grid object.
10685 Corresponds to WAPI object 'mastergrid'
10686
10687 This object represents the Master Grid. The Master Grid object is
10688 automatically generated when a Grid successfully joins the Master
10689 Grid.
10690
10691 Attributes:
10692 address: The domain name or IP address for the Master Grid.
10693 connection_disabled: Determines if the sub-grid is currently
10694 disabled.
10695 connection_timestamp: The timestamp that indicates when the
10696 connection to the Master Grid was established.
10697 detached: The detached flag for the Master Grid.
10698 enable: Determines if the Master Grid is enabled.
10699 joined: The flag shows if the Grid has joined the Master Grid.
10700 last_event: The Master Grid's last event.
10701 last_event_details: The details of the Master Grid's last event.
10702 last_sync_timestamp: The timestamp or the last synchronization
10703 operation with the Master Grid.
10704 port: The Master Grid port to which the Grid connects.
10705 status: The Master Grid's status.
10706 use_mgmt_port: The flag shows if the MGMT port was used to join
10707 the Grid.
10708 """
10709 _infoblox_type = 'mastergrid'
10710 _fields = ['address', 'connection_disabled', 'connection_timestamp',
10711 'detached', 'enable', 'joined', 'last_event',
10712 'last_event_details', 'last_sync_timestamp', 'port', 'status',
10713 'use_mgmt_port']
10714 _search_for_update_fields = ['address', 'port']
10715 _updateable_search_fields = ['address', 'port']
10716 _all_searchable_fields = ['address', 'port']
10717 _return_fields = ['address', 'enable', 'port']
10718 _remap = {}
10719 _shadow_fields = ['_ref']
10720
10721
10722 class Member(InfobloxObject):
10723 """ Member: Member object.
10724 Corresponds to WAPI object 'member'
10725
10726 This object represents the Infoblox Grid Member.
10727
10728 Attributes:
10729 active_position: The active server of a Grid member.
10730 additional_ip_list: The additional IP list of a Grid member.
10731 This list contains additional interface information that can
10732 be used at the member level.Note that interface structure(s)
10733 with interface type set to 'MGMT' are not supported.
10734 automated_traffic_capture_setting: Member level settings for
10735 automated traffic capture.
10736 bgp_as: The BGP configuration for anycast for a Grid member.
10737 comment: A descriptive comment of the Grid member.
10738 config_addr_type: Address configuration type.
10739 csp_access_key: CSP portal on-prem host access key
10740 csp_member_setting: csp setting at member level
10741 dns_resolver_setting: DNS resolver setting for member.
10742 dscp: The DSCP (Differentiated Services Code Point) value.
10743 email_setting: The email setting for member.
10744 enable_ha: If set to True, the member has two physical nodes (HA
10745 pair).
10746 enable_lom: Determines if the LOM functionality is enabled or
10747 not.
10748 enable_member_redirect: Determines if the member will redirect
10749 GUI connections to the Grid Master or not.
10750 enable_ro_api_access: If set to True and the member object is a
10751 Grid Master Candidate, then read-only API access is enabled.
10752 extattrs: Extensible attributes associated with the object.For
10753 valid values for extensible attributes, see the following
10754 information.
10755 external_syslog_backup_servers: The list of external syslog
10756 backup servers.
10757 external_syslog_server_enable: Determines if external syslog
10758 servers should be enabled.
10759 host_name: The host name of the Grid member.
10760 ipv6_setting: IPV6 setting for member.
10761 ipv6_static_routes: List of IPv6 static routes.
10762 is_dscp_capable: Determines if a Grid member supports DSCP
10763 (Differentiated Services Code Point).
10764 lan2_enabled: If this is set to "true", the LAN2 port is enabled
10765 as an independent port or as a port for failover purposes.
10766 lan2_port_setting: Settings for the Grid member LAN2 port if
10767 'lan2_enabled' is set to "true".
10768 lcd_input: Determines if the Liquid Crystal Display (LCD) input
10769 buttons on the front panel of the appliance are enabled or
10770 not.
10771 lom_network_config: The Network configurations for LOM.
10772 lom_users: The list of LOM users.
10773 master_candidate: Determines if a Grid member is a Grid Master
10774 Candidate or not. This flag enables the Grid member to
10775 assume the role of the Grid Master as a disaster recovery
10776 measure.
10777 member_service_communication: Configure communication type for
10778 various services.
10779 mgmt_port_setting: Settings for the member MGMT port.
10780 mmdb_ea_build_time: Extensible attributes Topology database
10781 build time.
10782 mmdb_geoip_build_time: GeoIP Topology database build time.
10783 nat_setting: NAT settings for the member.
10784 node_info: The node information list with detailed status report
10785 on the operations of the Grid Member.
10786 ntp_setting: The member Network Time Protocol (NTP) settings.
10787 ospf_list: The OSPF area configuration (for anycast) list for a
10788 Grid member.
10789 passive_ha_arp_enabled: The ARP protocol setting on the passive
10790 node of an HA pair. If you do not specify a value, the
10791 default value is "false". You can only set this value to
10792 "true" if the member is an HA pair.
10793 platform: Hardware Platform.
10794 pre_provisioning: Pre-provisioning information.
10795 preserve_if_owns_delegation: Set this flag to "true" to prevent
10796 the deletion of the member if any delegated object remains
10797 attached to it.
10798 remote_console_access_enable: If set to True, superuser admins
10799 can access the Infoblox CLI from a remote location using an
10800 SSH (Secure Shell) v2 client.
10801 router_id: Virutal router identifier. Provide this ID if
10802 "ha_enabled" is set to "true". This is a unique VRID number
10803 (from 1 to 255) for the local subnet.
10804 service_status: The service status list of a grid member.
10805 service_type_configuration: Configure all services to the given
10806 type.
10807 snmp_setting: The Grid Member SNMP settings.
10808 static_routes: List of static routes.
10809 support_access_enable: Determines if support access for the Grid
10810 member should be enabled.
10811 support_access_info: The information string for support access.
10812 syslog_proxy_setting: The Grid Member syslog proxy settings.
10813 syslog_servers: The list of external syslog servers.
10814 syslog_size: The maximum size for the syslog file expressed in
10815 megabytes.
10816 threshold_traps: Determines the list of threshold traps. The
10817 user can only change the values for each trap or remove
10818 traps.
10819 time_zone: The time zone of the Grid member. The UTC string that
10820 represents the time zone, such as "(UTC - 5:00) Eastern Time
10821 (US and Canada)".
10822 traffic_capture_auth_dns_setting: Grid level settings for
10823 enabling authoritative DNS latency thresholds for automated
10824 traffic capture.
10825 traffic_capture_chr_setting: Member level settings for enabling
10826 DNS cache hit ratio threshold for automated traffic capture.
10827 traffic_capture_qps_setting: Member level settings for enabling
10828 DNS query per second threshold for automated traffic
10829 capture.
10830 traffic_capture_rec_dns_setting: Grid level settings for
10831 enabling recursive DNS latency thresholds for automated
10832 traffic capture.
10833 traffic_capture_rec_queries_setting: Grid level settings for
10834 enabling count for concurrent outgoing recursive queries for
10835 automated traffic capture.
10836 trap_notifications: Determines configuration of the trap
10837 notifications.
10838 upgrade_group: The name of the upgrade group to which this Grid
10839 member belongs.
10840 use_automated_traffic_capture: This flag is the use flag for
10841 enabling automated traffic capture based on DNS cache ratio
10842 thresholds.
10843 use_dns_resolver_setting: Use flag for: dns_resolver_setting
10844 use_dscp: Use flag for: dscp
10845 use_email_setting: Use flag for: email_setting
10846 use_enable_lom: Use flag for: enable_lom
10847 use_enable_member_redirect: Use flag for: enable_member_redirect
10848 use_external_syslog_backup_servers: Use flag for:
10849 external_syslog_backup_servers
10850 use_lcd_input: Use flag for: lcd_input
10851 use_remote_console_access_enable: Use flag for:
10852 remote_console_access_enable
10853 use_snmp_setting: Use flag for: snmp_setting
10854 use_support_access_enable: Use flag for: support_access_enable
10855 use_syslog_proxy_setting: Use flag for:
10856 external_syslog_server_enable , syslog_servers,
10857 syslog_proxy_setting, syslog_size
10858 use_threshold_traps: Use flag for: threshold_traps
10859 use_time_zone: Use flag for: time_zone
10860 use_traffic_capture_auth_dns: This flag is the use flag for
10861 enabling automated traffic capture based on authorative DNS
10862 latency.
10863 use_traffic_capture_chr: This flag is the use flag for automated
10864 traffic capture settings at member level.
10865 use_traffic_capture_qps: This flag is the use flag for enabling
10866 automated traffic capture based on DNS querie per second
10867 thresholds.
10868 use_traffic_capture_rec_dns: This flag is the use flag for
10869 enabling automated traffic capture based on recursive DNS
10870 latency.
10871 use_traffic_capture_rec_queries: This flag is the use flag for
10872 enabling automated traffic capture based on outgoing
10873 recursive queries.
10874 use_trap_notifications: Use flag for: trap_notifications
10875 use_v4_vrrp: Specify "true" to use VRRPv4 or "false" to use
10876 VRRPv6.
10877 vip_setting: The network settings for the Grid member.
10878 vpn_mtu: The VPN maximum transmission unit (MTU).
10879 """
10880 _infoblox_type = 'member'
10881 _fields = ['active_position', 'additional_ip_list',
10882 'automated_traffic_capture_setting', 'bgp_as', 'comment',
10883 'config_addr_type', 'csp_access_key', 'csp_member_setting',
10884 'dns_resolver_setting', 'dscp', 'email_setting', 'enable_ha',
10885 'enable_lom', 'enable_member_redirect', 'enable_ro_api_access',
10886 'extattrs', 'external_syslog_backup_servers',
10887 'external_syslog_server_enable', 'host_name', 'ipv6_setting',
10888 'ipv6_static_routes', 'is_dscp_capable', 'lan2_enabled',
10889 'lan2_port_setting', 'lcd_input', 'lom_network_config',
10890 'lom_users', 'master_candidate', 'member_service_communication',
10891 'mgmt_port_setting', 'mmdb_ea_build_time',
10892 'mmdb_geoip_build_time', 'nat_setting', 'node_info',
10893 'ntp_setting', 'ospf_list', 'passive_ha_arp_enabled',
10894 'platform', 'pre_provisioning', 'preserve_if_owns_delegation',
10895 'remote_console_access_enable', 'router_id', 'service_status',
10896 'service_type_configuration', 'snmp_setting', 'static_routes',
10897 'support_access_enable', 'support_access_info',
10898 'syslog_proxy_setting', 'syslog_servers', 'syslog_size',
10899 'threshold_traps', 'time_zone',
10900 'traffic_capture_auth_dns_setting',
10901 'traffic_capture_chr_setting', 'traffic_capture_qps_setting',
10902 'traffic_capture_rec_dns_setting',
10903 'traffic_capture_rec_queries_setting', 'trap_notifications',
10904 'upgrade_group', 'use_automated_traffic_capture',
10905 'use_dns_resolver_setting', 'use_dscp', 'use_email_setting',
10906 'use_enable_lom', 'use_enable_member_redirect',
10907 'use_external_syslog_backup_servers', 'use_lcd_input',
10908 'use_remote_console_access_enable', 'use_snmp_setting',
10909 'use_support_access_enable', 'use_syslog_proxy_setting',
10910 'use_threshold_traps', 'use_time_zone',
10911 'use_traffic_capture_auth_dns', 'use_traffic_capture_chr',
10912 'use_traffic_capture_qps', 'use_traffic_capture_rec_dns',
10913 'use_traffic_capture_rec_queries', 'use_trap_notifications',
10914 'use_v4_vrrp', 'vip_setting', 'vpn_mtu', 'ipv4_address',
10915 'ipv6_address']
10916 _search_for_update_fields = ['config_addr_type', 'host_name', 'platform',
10917 'service_type_configuration', 'ipv4_address',
10918 'ipv6_address']
10919 _updateable_search_fields = ['comment', 'config_addr_type', 'enable_ha',
10920 'enable_ro_api_access', 'host_name',
10921 'master_candidate', 'platform',
10922 'preserve_if_owns_delegation', 'router_id',
10923 'service_type_configuration']
10924 _all_searchable_fields = ['comment', 'config_addr_type', 'enable_ha',
10925 'enable_ro_api_access', 'host_name',
10926 'master_candidate', 'platform',
10927 'preserve_if_owns_delegation', 'router_id',
10928 'service_type_configuration', 'ipv4_address',
10929 'ipv6_address']
10930 _return_fields = ['config_addr_type', 'extattrs', 'host_name', 'platform',
10931 'service_type_configuration']
10932 _remap = {'name': 'host_name'}
10933 _shadow_fields = ['_ref', 'name']
10934
10935 _custom_field_processing = {
10936 'additional_ip_list': Interface.from_dict,
10937 'bgp_as': Bgpas.from_dict,
10938 'external_syslog_backup_servers': Extsyslogbackupserver.from_dict,
10939 'ipv6_static_routes': Ipv6Networksetting.from_dict,
10940 'lom_network_config': Lomnetworkconfig.from_dict,
10941 'lom_users': Lomuser.from_dict,
10942 'member_service_communication': Memberservicecommunication.from_dict,
10943 'node_info': Nodeinfo.from_dict,
10944 'ospf_list': Ospf.from_dict,
10945 'service_status': Memberservicestatus.from_dict,
10946 'static_routes': SettingNetwork.from_dict,
10947 'syslog_servers': Syslogserver.from_dict,
10948 'threshold_traps': Thresholdtrap.from_dict,
10949 'trap_notifications': Trapnotification.from_dict,
10950 }
10951
10952 def capture_traffic_control(self, *args, **kwargs):
10953 return self._call_func("capture_traffic_control", *args, **kwargs)
10954
10955 def capture_traffic_status(self, *args, **kwargs):
10956 return self._call_func("capture_traffic_status", *args, **kwargs)
10957
10958 def create_token(self, *args, **kwargs):
10959 return self._call_func("create_token", *args, **kwargs)
10960
10961 def member_admin_operation(self, *args, **kwargs):
10962 return self._call_func("member_admin_operation", *args, **kwargs)
10963
10964 def read_token(self, *args, **kwargs):
10965 return self._call_func("read_token", *args, **kwargs)
10966
10967 def requestrestartservicestatus(self, *args, **kwargs):
10968 return self._call_func("requestrestartservicestatus", *args, **kwargs)
10969
10970 def restartservices(self, *args, **kwargs):
10971 return self._call_func("restartservices", *args, **kwargs)
10972
10973
10974 class MemberDhcpproperties(InfobloxObject):
10975 """ MemberDhcpproperties: Member DHCP properties object.
10976 Corresponds to WAPI object 'member:dhcpproperties'
10977
10978 This object represents a subset of the Infoblox Member DHCP
10979 properties.
10980
10981 Attributes:
10982 auth_server_group: The Authentication Server Group object
10983 associated with this member.
10984 authn_captive_portal: The captive portal responsible for
10985 authenticating this DHCP member.
10986 authn_captive_portal_authenticated_filter: The MAC filter
10987 representing the authenticated range.
10988 authn_captive_portal_enabled: The flag that controls if this
10989 DHCP member is enabled for captive portal authentication.
10990 authn_captive_portal_guest_filter: The MAC filter representing
10991 the guest range.
10992 authn_server_group_enabled: The flag that controls if this DHCP
10993 member can send authentication requests to an authentication
10994 server group.
10995 authority: The authority flag of a Grid member. This flag
10996 specifies if a DHCP server is authoritative for a domain.
10997 bootfile: The name of a file that DHCP clients need to boot.
10998 This setting overrides the Grid level setting.
10999 bootserver: The name of the server on which a boot file is
11000 stored. This setting overrides the Grid level setting.
11001 ddns_domainname: The member DDNS domain name value.
11002 ddns_generate_hostname: Determines the ability of a member DHCP
11003 server to generate a host name and update DNS with this host
11004 name when it receives a DHCP REQUEST message that does not
11005 include a host name.
11006 ddns_retry_interval: Determines the retry interval when the
11007 member DHCP server makes repeated attempts to send DDNS
11008 updates to a DNS server.
11009 ddns_server_always_updates: Determines that only the DHCP server
11010 is allowed to update DNS, regardless of the requests from
11011 the DHCP clients. This setting overrides the Grid level
11012 setting.
11013 ddns_ttl: The DDNS TTL (Dynamic DNS Time To Live) value
11014 specifies the number of seconds an IP address for the name
11015 is cached.
11016 ddns_update_fixed_addresses: Determines if the member DHCP
11017 server's ability to update the A and PTR records with a
11018 fixed address is enabled or not.
11019 ddns_use_option81: Determines if support for option 81 is
11020 enabled or not.
11021 ddns_zone_primaries: An ordered list of zone primaries that will
11022 receive DDNS updates.
11023 deny_bootp: Determines if a BOOTP server denies BOOTP request or
11024 not. This setting overrides the Grid level setting.
11025 dhcp_utilization: The percentage of the total DHCP utilization
11026 of DHCP objects belonging to the Grid Member multiplied by
11027 1000. This is the percentage of the total number of
11028 available IP addresses from all the DHCP objects belonging
11029 to the Grid Member versus the total number of all IP
11030 addresses in all of the DHCP objects on the Grid Member.
11031 dhcp_utilization_status: A string describing the utilization
11032 level of DHCP objects that belong to the Grid Member.
11033 dns_update_style: The update style for dynamic DNS updates.
11034 dynamic_hosts: The total number of DHCP leases issued for the
11035 DHCP objects on the Grid Member.
11036 email_list: The email_list value of a member DHCP server.
11037 enable_ddns: Determines if the member DHCP server's ability to
11038 send DDNS updates is enabled or not.
11039 enable_dhcp: Determines if the DHCP service of a member is
11040 enabled or not.
11041 enable_dhcp_on_ipv6_lan2: Determines if the DHCP service on the
11042 IPv6 LAN2 interface is enabled or not.
11043 enable_dhcp_on_lan2: Determines if the DHCP service on the LAN2
11044 interface is enabled or not.
11045 enable_dhcp_thresholds: Represents the watermarks above or below
11046 which address usage in a network is unexpected and might
11047 warrant your attention. This setting overrides the Grid
11048 level setting.
11049 enable_dhcpv6_service: Determines if DHCPv6 service for the
11050 member is enabled or not.
11051 enable_email_warnings: Determines if e-mail warnings are enabled
11052 or disabled. When DHCP threshold is enabled and DHCP address
11053 usage crosses a watermark threshold, the appliance sends an
11054 e-mail notification to an administrator.
11055 enable_fingerprint: Determines if fingerprint feature is enabled
11056 on this member. If you enable this feature, the server will
11057 match a fingerprint for incoming lease requests.
11058 enable_gss_tsig: Determines whether the appliance is enabled to
11059 receive GSS-TSIG authenticated updates from DHCP clients.
11060 enable_hostname_rewrite: Determines if the Grid member's host
11061 name rewrite feature is enabled or not.
11062 enable_leasequery: Determines if lease query is allowed or not.
11063 This setting overrides the Grid-level setting.
11064 enable_snmp_warnings: Determines if SNMP warnings are enabled or
11065 disabled on this DHCP member. When DHCP threshold is enabled
11066 and DHCP address usage crosses a watermark threshold, the
11067 appliance sends an SNMP trap to the trap receiver that was
11068 defined for the Grid member level.
11069 extattrs: Extensible attributes associated with the object.For
11070 valid values for extensible attributes, see the following
11071 information.
11072 gss_tsig_keys: The list of GSS-TSIG keys for a member DHCP
11073 object.
11074 high_water_mark: Determines the high watermark value of a member
11075 DHCP server. If the percentage of allocated addresses
11076 exceeds this watermark, the appliance makes a syslog entry
11077 and sends an e-mail notification (if enabled).Specifies the
11078 percentage of allocated addresses. The range is from 1 to
11079 100.
11080 high_water_mark_reset: Determines the high watermark reset value
11081 of a member DHCP server. If the percentage of allocated
11082 addresses drops below this value, a corresponding SNMP trap
11083 is reset.Specifies the percentage of allocated addresses.
11084 The range is from 1 to 100. The high watermark reset value
11085 must be lower than the high watermark value.
11086 host_name: Host name of the Grid member.
11087 hostname_rewrite_policy: The hostname rewrite policy that is in
11088 the protocol hostname rewrite policies array of the Grid
11089 DHCP object. This attribute is mandatory if
11090 enable_hostname_rewrite is "true".
11091 ignore_dhcp_option_list_request: Determines if the ignore DHCP
11092 option list request flag of a Grid member DHCP is enabled or
11093 not. If this flag is set to true all available DHCP options
11094 will be returned to the client.
11095 ignore_id: Indicates whether the appliance will ignore DHCP
11096 client IDs or MAC addresses. Valid values are "NONE",
11097 "CLIENT", or "MACADDR". The default is "NONE".
11098 ignore_mac_addresses: A list of MAC addresses the appliance will
11099 ignore.
11100 immediate_fa_configuration: Determines if the Immediate Fixed
11101 address configuration apply feature for the DHCP member is
11102 enabled or not.
11103 ipv4addr: The IPv4 Address of the Grid member.
11104 ipv6_ddns_domainname: The member DDNS IPv6 domain name value.
11105 ipv6_ddns_enable_option_fqdn: Controls whether the FQDN option
11106 sent by the DHCPv6 client is to be used, or if the server
11107 can automatically generate the FQDN.
11108 ipv6_ddns_hostname: The member IPv6 DDNS hostname value.
11109 ipv6_ddns_server_always_updates: Determines if the server always
11110 updates DNS or updates only if requested by the client.
11111 ipv6_ddns_ttl: The member IPv6 DDNS TTL value.
11112 ipv6_dns_update_style: The update style for dynamic DHCPv6 DNS
11113 updates.
11114 ipv6_domain_name: The IPv6 domain name.
11115 ipv6_domain_name_servers: The comma separated list of domain
11116 name server addresses in IPv6 address format.
11117 ipv6_enable_ddns: Determines if sending DDNS updates by the
11118 member DHCPv6 server is enabled or not.
11119 ipv6_enable_gss_tsig: Determines whether the appliance is
11120 enabled to receive GSS-TSIG authenticated updates from
11121 DHCPv6 clients.
11122 ipv6_enable_lease_scavenging: Indicates whether DHCPv6 lease
11123 scavenging is enabled or disabled.
11124 ipv6_enable_retry_updates: Determines if the DHCPv6 server
11125 retries failed dynamic DNS updates or not.
11126 ipv6_generate_hostname: Determines if the server generates the
11127 hostname if it is not sent by the client.
11128 ipv6_gss_tsig_keys: The list of GSS-TSIG keys for a member
11129 DHCPv6 object.
11130 ipv6_kdc_server: Determines the IPv6 address or FQDN of the
11131 Kerberos server for DHCPv6 GSS-TSIG authentication. This
11132 setting overrides the Grid level setting.
11133 ipv6_lease_scavenging_time: The member-level grace period (in
11134 seconds) to keep an expired lease before it is deleted by
11135 the scavenging process.
11136 ipv6_microsoft_code_page: The Microsoft client DHCP IPv6 code
11137 page value of a Grid member. This value is the hostname
11138 translation code page for Microsoft DHCP IPv6 clients and
11139 overrides the Grid level Microsoft DHCP IPv6 client code
11140 page.
11141 ipv6_options: An array of DHCP option structs that lists the
11142 DHCPv6 options associated with the object.
11143 ipv6_recycle_leases: Determines if the IPv6 recycle leases
11144 feature is enabled or not. If the feature is enabled, leases
11145 are kept in the Recycle Bin until one week after lease
11146 expiration. When the feature is disabled, the leases are
11147 irrecoverably deleted.
11148 ipv6_remember_expired_client_association: Enable binding for
11149 expired DHCPv6 leases.
11150 ipv6_retry_updates_interval: Determines the retry interval when
11151 the member DHCPv6 server makes repeated attempts to send
11152 DDNS updates to a DNS server.
11153 ipv6_server_duid: The server DHCPv6 unique identifier (DUID) for
11154 the Grid member.
11155 ipv6_update_dns_on_lease_renewal: Controls whether the DHCPv6
11156 server updates DNS when an IPv6 DHCP lease is renewed.
11157 ipv6addr: The IPv6 Address of the Grid member.
11158 kdc_server: The IPv4 address or FQDN of the Kerberos server for
11159 DHCPv4 GSS-TSIG authentication. This setting overrides the
11160 Grid level setting.
11161 lease_per_client_settings: Defines how the appliance releases
11162 DHCP leases. Valid values are "RELEASE_MACHING_ID",
11163 "NEVER_RELEASE", or "ONE_LEASE_PER_CLIENT". The default is
11164 "RELEASE_MATCHING_ID".
11165 lease_scavenge_time: Determines the lease scavenging time value.
11166 When this field is set, the appliance permanently deletes
11167 the free and backup leases that remain in the database
11168 beyond a specified period of time.To disable lease
11169 scavenging, set the parameter to -1. The minimum positive
11170 value must be greater than 86400 seconds (1 day).
11171 log_lease_events: This value specifies whether the grid member
11172 logs lease events. This setting overrides the Grid level
11173 setting.
11174 logic_filter_rules: This field contains the logic filters to be
11175 applied on the Grid member.This list corresponds to the
11176 match rules that are written to the dhcpd configuration
11177 file.
11178 low_water_mark: Determines the low watermark value. If the
11179 percent of allocated addresses drops below this watermark,
11180 the appliance makes a syslog entry and sends an e-mail
11181 notification (if enabled).
11182 low_water_mark_reset: Determines the low watermark reset value.
11183 If the percentage of allocated addresses exceeds this value,
11184 a corresponding SNMP trap is reset.A number that specifies
11185 the percentage of allocated addresses. The range is from 1
11186 to 100. The low watermark reset value must be higher than
11187 the low watermark value.
11188 microsoft_code_page: The Microsoft client DHCP IPv4 code page
11189 value of a grid member. This value is the hostname
11190 translation code page for Microsoft DHCP IPv4 clients and
11191 overrides the Grid level Microsoft DHCP IPv4 client code
11192 page.
11193 nextserver: The next server value of a member DHCP server. This
11194 value is the IP address or name of the boot file server on
11195 which the boot file is stored.
11196 option60_match_rules: The list of option 60 match rules.
11197 options: An array of DHCP option structs that lists the DHCP
11198 options associated with the object.
11199 ping_count: Specifies the number of pings that the Infoblox
11200 appliance sends to an IP address to verify that it is not in
11201 use. Values are from 0 to 10, where 0 disables pings.
11202 ping_timeout: Indicates the number of milliseconds the appliance
11203 waits for a response to its ping.Valid values are 100, 500,
11204 1000, 2000, 3000, 4000 and 5000 milliseconds.
11205 preferred_lifetime: The preferred lifetime value.
11206 prefix_length_mode: The Prefix length mode for DHCPv6.
11207 pxe_lease_time: Specifies the duration of time it takes a host
11208 to connect to a boot server, such as a TFTP server, and
11209 download the file it needs to boot.A 32-bit unsigned integer
11210 that represents the duration, in seconds, for which the
11211 update is cached. Zero indicates that the update is not
11212 cached.
11213 recycle_leases: Determines if the recycle leases feature is
11214 enabled or not. If you enabled this feature and then delete
11215 a DHCP range, the appliance stores active leases from this
11216 range up to one week after the leases expires.
11217 retry_ddns_updates: Indicates whether the DHCP server makes
11218 repeated attempts to send DDNS updates to a DNS server.
11219 static_hosts: The number of static DHCP addresses configured in
11220 DHCP objects that belong to the Grid Member.
11221 syslog_facility: The syslog facility is the location on the
11222 syslog server to which you want to sort the syslog messages.
11223 total_hosts: The total number of DHCP addresses configured in
11224 DHCP objects that belong to the Grid Member.
11225 update_dns_on_lease_renewal: Controls whether the DHCP server
11226 updates DNS when a DHCP lease is renewed.
11227 use_authority: Use flag for: authority
11228 use_bootfile: Use flag for: bootfile
11229 use_bootserver: Use flag for: bootserver
11230 use_ddns_domainname: Use flag for: ddns_domainname
11231 use_ddns_generate_hostname: Use flag for: ddns_generate_hostname
11232 use_ddns_ttl: Use flag for: ddns_ttl
11233 use_ddns_update_fixed_addresses: Use flag for:
11234 ddns_update_fixed_addresses
11235 use_ddns_use_option81: Use flag for: ddns_use_option81
11236 use_deny_bootp: Use flag for: deny_bootp
11237 use_dns_update_style: Use flag for: dns_update_style
11238 use_email_list: Use flag for: email_list
11239 use_enable_ddns: Use flag for: enable_ddns
11240 use_enable_dhcp_thresholds: Use flag for: enable_dhcp_thresholds
11241 , high_water_mark, high_water_mark_reset, low_water_mark,
11242 low_water_mark_reset
11243 use_enable_fingerprint: Use flag for: enable_fingerprint
11244 use_enable_gss_tsig: Use flag for: kdc_server , enable_gss_tsig
11245 use_enable_hostname_rewrite: Use flag for:
11246 enable_hostname_rewrite , hostname_rewrite_policy
11247 use_enable_leasequery: Use flag for: enable_leasequery
11248 use_enable_one_lease_per_client: Use flag for:
11249 enable_one_lease_per_client
11250 use_gss_tsig_keys: Use flag for: gss_tsig_keys
11251 use_ignore_dhcp_option_list_request: Use flag for:
11252 ignore_dhcp_option_list_request
11253 use_ignore_id: Use flag for: ignore_id
11254 use_immediate_fa_configuration: Use flag for:
11255 immediate_fa_configuration
11256 use_ipv6_ddns_domainname: Use flag for: ipv6_ddns_domainname
11257 use_ipv6_ddns_enable_option_fqdn: Use flag for:
11258 ipv6_ddns_enable_option_fqdn
11259 use_ipv6_ddns_hostname: Use flag for: ipv6_ddns_hostname
11260 use_ipv6_ddns_ttl: Use flag for: ipv6_ddns_ttl
11261 use_ipv6_dns_update_style: Use flag for: ipv6_dns_update_style
11262 use_ipv6_domain_name: Use flag for: ipv6_domain_name
11263 use_ipv6_domain_name_servers: Use flag for:
11264 ipv6_domain_name_servers
11265 use_ipv6_enable_ddns: Use flag for: ipv6_enable_ddns
11266 use_ipv6_enable_gss_tsig: Use flag for: ipv6_kdc_server ,
11267 ipv6_enable_gss_tsig
11268 use_ipv6_enable_retry_updates: Use flag for:
11269 ipv6_enable_retry_updates , ipv6_retry_updates_interval
11270 use_ipv6_generate_hostname: Use flag for: ipv6_generate_hostname
11271 use_ipv6_gss_tsig_keys: Use flag for: ipv6_gss_tsig_keys
11272 use_ipv6_lease_scavenging: Use flag for:
11273 ipv6_enable_lease_scavenging , ipv6_lease_scavenging_time,
11274 ipv6_remember_expired_client_association
11275 use_ipv6_microsoft_code_page: Use flag for:
11276 ipv6_microsoft_code_page
11277 use_ipv6_options: Use flag for: ipv6_options
11278 use_ipv6_recycle_leases: Use flag for: ipv6_recycle_leases
11279 use_ipv6_update_dns_on_lease_renewal: Use flag for:
11280 ipv6_update_dns_on_lease_renewal
11281 use_lease_per_client_settings: Use flag for:
11282 lease_per_client_settings
11283 use_lease_scavenge_time: Use flag for: lease_scavenge_time
11284 use_log_lease_events: Use flag for: log_lease_events
11285 use_logic_filter_rules: Use flag for: logic_filter_rules
11286 use_microsoft_code_page: Use flag for: microsoft_code_page
11287 use_nextserver: Use flag for: nextserver
11288 use_options: Use flag for: options
11289 use_ping_count: Use flag for: ping_count
11290 use_ping_timeout: Use flag for: ping_timeout
11291 use_preferred_lifetime: Use flag for: preferred_lifetime
11292 use_prefix_length_mode: Use flag for: prefix_length_mode
11293 use_pxe_lease_time: Use flag for: pxe_lease_time
11294 use_recycle_leases: Use flag for: recycle_leases
11295 use_retry_ddns_updates: Use flag for: ddns_retry_interval ,
11296 retry_ddns_updates
11297 use_syslog_facility: Use flag for: syslog_facility
11298 use_update_dns_on_lease_renewal: Use flag for:
11299 update_dns_on_lease_renewal
11300 use_valid_lifetime: Use flag for: valid_lifetime
11301 valid_lifetime: The valid lifetime for Grid Member DHCP.
11302 Specifies the length of time addresses that are assigned to
11303 DHCPv6 clients remain in the valid state.
11304 """
11305 _infoblox_type = 'member:dhcpproperties'
11306 _fields = ['auth_server_group', 'authn_captive_portal',
11307 'authn_captive_portal_authenticated_filter',
11308 'authn_captive_portal_enabled',
11309 'authn_captive_portal_guest_filter',
11310 'authn_server_group_enabled', 'authority', 'bootfile',
11311 'bootserver', 'ddns_domainname', 'ddns_generate_hostname',
11312 'ddns_retry_interval', 'ddns_server_always_updates', 'ddns_ttl',
11313 'ddns_update_fixed_addresses', 'ddns_use_option81',
11314 'ddns_zone_primaries', 'deny_bootp', 'dhcp_utilization',
11315 'dhcp_utilization_status', 'dns_update_style', 'dynamic_hosts',
11316 'email_list', 'enable_ddns', 'enable_dhcp',
11317 'enable_dhcp_on_ipv6_lan2', 'enable_dhcp_on_lan2',
11318 'enable_dhcp_thresholds', 'enable_dhcpv6_service',
11319 'enable_email_warnings', 'enable_fingerprint',
11320 'enable_gss_tsig', 'enable_hostname_rewrite',
11321 'enable_leasequery', 'enable_snmp_warnings', 'extattrs',
11322 'gss_tsig_keys', 'high_water_mark', 'high_water_mark_reset',
11323 'host_name', 'hostname_rewrite_policy',
11324 'ignore_dhcp_option_list_request', 'ignore_id',
11325 'ignore_mac_addresses', 'immediate_fa_configuration',
11326 'ipv4addr', 'ipv6_ddns_domainname',
11327 'ipv6_ddns_enable_option_fqdn', 'ipv6_ddns_hostname',
11328 'ipv6_ddns_server_always_updates', 'ipv6_ddns_ttl',
11329 'ipv6_dns_update_style', 'ipv6_domain_name',
11330 'ipv6_domain_name_servers', 'ipv6_enable_ddns',
11331 'ipv6_enable_gss_tsig', 'ipv6_enable_lease_scavenging',
11332 'ipv6_enable_retry_updates', 'ipv6_generate_hostname',
11333 'ipv6_gss_tsig_keys', 'ipv6_kdc_server',
11334 'ipv6_lease_scavenging_time', 'ipv6_microsoft_code_page',
11335 'ipv6_options', 'ipv6_recycle_leases',
11336 'ipv6_remember_expired_client_association',
11337 'ipv6_retry_updates_interval', 'ipv6_server_duid',
11338 'ipv6_update_dns_on_lease_renewal', 'ipv6addr', 'kdc_server',
11339 'lease_per_client_settings', 'lease_scavenge_time',
11340 'log_lease_events', 'logic_filter_rules', 'low_water_mark',
11341 'low_water_mark_reset', 'microsoft_code_page', 'nextserver',
11342 'option60_match_rules', 'options', 'ping_count', 'ping_timeout',
11343 'preferred_lifetime', 'prefix_length_mode', 'pxe_lease_time',
11344 'recycle_leases', 'retry_ddns_updates', 'static_hosts',
11345 'syslog_facility', 'total_hosts', 'update_dns_on_lease_renewal',
11346 'use_authority', 'use_bootfile', 'use_bootserver',
11347 'use_ddns_domainname', 'use_ddns_generate_hostname',
11348 'use_ddns_ttl', 'use_ddns_update_fixed_addresses',
11349 'use_ddns_use_option81', 'use_deny_bootp',
11350 'use_dns_update_style', 'use_email_list', 'use_enable_ddns',
11351 'use_enable_dhcp_thresholds', 'use_enable_fingerprint',
11352 'use_enable_gss_tsig', 'use_enable_hostname_rewrite',
11353 'use_enable_leasequery', 'use_enable_one_lease_per_client',
11354 'use_gss_tsig_keys', 'use_ignore_dhcp_option_list_request',
11355 'use_ignore_id', 'use_immediate_fa_configuration',
11356 'use_ipv6_ddns_domainname', 'use_ipv6_ddns_enable_option_fqdn',
11357 'use_ipv6_ddns_hostname', 'use_ipv6_ddns_ttl',
11358 'use_ipv6_dns_update_style', 'use_ipv6_domain_name',
11359 'use_ipv6_domain_name_servers', 'use_ipv6_enable_ddns',
11360 'use_ipv6_enable_gss_tsig', 'use_ipv6_enable_retry_updates',
11361 'use_ipv6_generate_hostname', 'use_ipv6_gss_tsig_keys',
11362 'use_ipv6_lease_scavenging', 'use_ipv6_microsoft_code_page',
11363 'use_ipv6_options', 'use_ipv6_recycle_leases',
11364 'use_ipv6_update_dns_on_lease_renewal',
11365 'use_lease_per_client_settings', 'use_lease_scavenge_time',
11366 'use_log_lease_events', 'use_logic_filter_rules',
11367 'use_microsoft_code_page', 'use_nextserver', 'use_options',
11368 'use_ping_count', 'use_ping_timeout', 'use_preferred_lifetime',
11369 'use_prefix_length_mode', 'use_pxe_lease_time',
11370 'use_recycle_leases', 'use_retry_ddns_updates',
11371 'use_syslog_facility', 'use_update_dns_on_lease_renewal',
11372 'use_valid_lifetime', 'valid_lifetime']
11373 _search_for_update_fields = ['host_name', 'ipv4addr', 'ipv6addr']
11374 _updateable_search_fields = []
11375 _all_searchable_fields = ['host_name', 'ipv4addr', 'ipv6addr']
11376 _return_fields = ['extattrs', 'host_name', 'ipv4addr', 'ipv6addr']
11377 _remap = {}
11378 _shadow_fields = ['_ref', 'ip']
11379
11380 @property
11381 def ip(self):
11382 if hasattr(self, '_ip'):
11383 return str(self._ip)
11384
11385 # This object represents both ipv4 and ipv6 objects, so it doesn't need
11386 # versioned object for that. Just set v4 or v6 field in addition
11387 # to setting shadow field 'ip' itself.
11388 @ip.setter
11389 def ip(self, ip):
11390 self._ip = ip
11391 if ib_utils.determine_ip_version(ip) == 6:
11392 if 'ipv6addr' not in self._fields:
11393 raise ib_ex.InfobloxInvalidIp(ip=ip)
11394 self.ipv6addr = ip
11395 else:
11396 if 'ipv4addr' not in self._fields:
11397 raise ib_ex.InfobloxInvalidIp(ip=ip)
11398 self.ipv4addr = ip
11399
11400 _custom_field_processing = {
11401 'ddns_zone_primaries': Dhcpddns.from_dict,
11402 'ipv6_options': DhcpOption.from_dict,
11403 'logic_filter_rules': Logicfilterrule.from_dict,
11404 'option60_match_rules': Option60Matchrule.from_dict,
11405 'options': DhcpOption.from_dict,
11406 }
11407
11408 def clear_nac_auth_cache(self, *args, **kwargs):
11409 return self._call_func("clear_nac_auth_cache", *args, **kwargs)
11410
11411 def purge_ifmap_data(self, *args, **kwargs):
11412 return self._call_func("purge_ifmap_data", *args, **kwargs)
11413
11414
11415 class MemberDns(InfobloxObject):
11416 """ MemberDns: Member DNS object.
11417 Corresponds to WAPI object 'member:dns'
11418
11419 The Grid Member DNS object can be used to configure DNS properties
11420 for a Grid member, including enabling or disabling DNS services and
11421 other DNS service related parameters. Grid service configurations
11422 are inherited by all members.
11423
11424 Attributes:
11425 add_client_ip_mac_options: Add custom IP, MAC and DNS View name
11426 ENDS0 options to outgoing recursive queries.
11427 additional_ip_list: The list of additional IP addresses on which
11428 DNS is enabled for a Grid member. Only one of
11429 "additional_ip_list" or "additional_ip_list_struct" should
11430 be set when modifying the object.
11431 additional_ip_list_struct: The list of additional IP addresses
11432 and IP Space Discriminator short names on which DNS is
11433 enabled for a Grid member. Only one of "additional_ip_list"
11434 or "additional_ip_list_struct" should be set when modifying
11435 the object.
11436 allow_gss_tsig_zone_updates: Determines whether the GSS-TSIG
11437 zone updates is enabled for the Grid member.
11438 allow_query: Determines if queries from specified IPv4 or IPv6
11439 addresses and networks are enabled or not. The appliance can
11440 also use Transaction Signature (TSIG) keys to authenticate
11441 the queries. This setting overrides the Grid query settings.
11442 allow_recursive_query: Determines if the responses to recursive
11443 queries is enabled or not. This setting overrides Grid
11444 recursive query settings.
11445 allow_transfer: Allows or rejects zone transfers from specified
11446 IPv4 or IPv6 addresses and networks or allows transfers from
11447 hosts authenticated by Transaction signature (TSIG) key.
11448 This setting overrides the Grid zone transfer settings.
11449 allow_update: Allows or rejects dynamic updates from specified
11450 IPv4 or IPv6 addresses, networks or from host authenticated
11451 by TSIG key. This setting overrides Grid update settings.
11452 anonymize_response_logging: The flag that indicates whether the
11453 anonymization of captured DNS responses is enabled or
11454 disabled.
11455 atc_fwd_enable: Enable DNS recursive query forwarding to Active
11456 Trust Cloud.
11457 attack_mitigation: Mitigation settings for DNS attacks.
11458 auto_blackhole: The auto blackhole settings.
11459 auto_create_a_and_ptr_for_lan2: Determines if the auto-
11460 generation of A and PTR records for the LAN2 IP address is
11461 enabled or not, if DNS service is enabled on LAN2.
11462 auto_create_aaaa_and_ipv6ptr_for_lan2: Determines if auto-
11463 generation of AAAA and IPv6 PTR records for LAN2 IPv6
11464 address is enabled or not.
11465 auto_sort_views: Determines if a Grid member to automatically
11466 sort DNS views is enabled or not. The order of the DNS views
11467 determines the order in which the appliance checks the match
11468 lists.
11469 bind_check_names_policy: The BIND check names policy, which
11470 indicates the action the appliance takes when it encounters
11471 host names that do not comply with the Strict Hostname
11472 Checking policy. This method applies only if the host name
11473 restriction policy is set to 'Strict Hostname Checking'.
11474 bind_hostname_directive: The value of the hostname directive for
11475 BIND.
11476 bind_hostname_directive_fqdn: The value of the user-defined
11477 hostname directive for BIND. To enable user-defined hostname
11478 directive, you must set the bind_hostname_directive to
11479 "USER_DEFINED".
11480 blackhole_list: The list of IPv4 or IPv6 addresses and networks
11481 from which DNS queries are blocked. This setting overrides
11482 the Grid blackhole_list.
11483 blacklist_action: The action to perform when a domain name
11484 matches the pattern defined in a rule that is specified by
11485 the blacklist_ruleset method.
11486 blacklist_log_query: Determines if blacklist redirection queries
11487 are logged or not.
11488 blacklist_redirect_addresses: The IP addresses the appliance
11489 includes in the response it sends in place of a blacklisted
11490 IP address.
11491 blacklist_redirect_ttl: The TTL value of the synthetic DNS
11492 responses that result from blacklist redirection.
11493 blacklist_rulesets: The DNS Ruleset object names assigned at the
11494 Grid level for blacklist redirection.
11495 capture_dns_queries_on_all_domains: The flag that indicates
11496 whether the capture of DNS queries for all domains is
11497 enabled or disabled.
11498 check_names_for_ddns_and_zone_transfer: Determines whether the
11499 application of BIND check-names for zone transfers and DDNS
11500 updates are enabled.
11501 copy_client_ip_mac_options: Copy custom IP, MAC and DNS View
11502 name ENDS0 options from incoming to outgoing recursive
11503 queries.
11504 copy_xfer_to_notify: Copies the allowed IPs from the zone
11505 transfer list into the also-notify statement in the
11506 named.conf file.
11507 custom_root_name_servers: The list of custom root name servers.
11508 You can either select and use Internet root name servers or
11509 specify custom root name servers by providing a host name
11510 and IP address to which the Infoblox appliance can send
11511 queries.
11512 disable_edns: The EDNS0 support for queries that require
11513 recursive resolution on Grid members.
11514 dns64_groups: The list of DNS64 synthesis groups associated with
11515 this member.
11516 dns_cache_acceleration_status: The DNS cache acceleration
11517 status.
11518 dns_cache_acceleration_ttl: The minimum TTL value, in seconds,
11519 that a DNS record must have in order for it to be cached by
11520 the DNS Cache Acceleration service.An integer from 1 to
11521 65000 that represents the TTL in seconds.
11522 dns_health_check_anycast_control: The flag that indicates
11523 whether the anycast failure (BFD session down) is enabled on
11524 member failure or not.
11525 dns_health_check_domain_list: The list of domain names for the
11526 DNS health check.
11527 dns_health_check_interval: The time interval (in seconds) for
11528 DNS health check.
11529 dns_health_check_recursion_flag: The flag that indicates whether
11530 the recursive DNS health check is enabled or not.
11531 dns_health_check_retries: The number of DNS health check
11532 retries.
11533 dns_health_check_timeout: The DNS health check timeout interval
11534 (in seconds).
11535 dns_notify_transfer_source: Determines which IP address is used
11536 as the source for DDNS notify and transfer operations.
11537 dns_notify_transfer_source_address: The source address used if
11538 dns_notify_transfer_source type is "IP".
11539 dns_over_tls_service: Enables DNS over TLS service.
11540 dns_query_capture_file_time_limit: The time limit (in minutes)
11541 for the DNS query capture file.
11542 dns_query_source_address: The source address used if
11543 dns_query_source_interface type is "IP".
11544 dns_query_source_interface: Determines which IP address is used
11545 as the source for DDNS query operations.
11546 dns_view_address_settings: Array of notify/query source settings
11547 for views.
11548 dnssec_blacklist_enabled: Determines if the blacklist rules for
11549 DNSSEC-enabled clients are enabled or not.
11550 dnssec_dns64_enabled: Determines if the DNS64 groups for DNSSEC-
11551 enabled clients are enabled or not.
11552 dnssec_enabled: Determines if the DNS security extension is
11553 enabled or not.
11554 dnssec_expired_signatures_enabled: Determines when the DNS
11555 member accepts expired signatures.
11556 dnssec_negative_trust_anchors: A list of zones for which the
11557 server does not perform DNSSEC validation.
11558 dnssec_nxdomain_enabled: Determines if the NXDOMAIN rules for
11559 DNSSEC-enabled clients are enabled or not.
11560 dnssec_rpz_enabled: Determines if the RPZ policies for DNSSEC-
11561 enabled clients are enabled or not.
11562 dnssec_trusted_keys: The list of trusted keys for the DNSSEC
11563 feature.
11564 dnssec_validation_enabled: Determines if the DNS security
11565 validation is enabled or not.
11566 dnstap_setting: The DNSTAP settings.
11567 doh_https_session_duration: DNS over HTTPS sessions duration.
11568 doh_service: Enables DNS over HTTPS service.
11569 domains_to_capture_dns_queries: The list of domains for DNS
11570 query capture.
11571 dtc_dns_queries_specific_behavior: Setting to control specific
11572 behavior for DTC DNS responses for incoming lbdn matched
11573 queries.
11574 dtc_edns_prefer_client_subnet: Determines whether to prefer the
11575 client address from the edns-client-subnet option for DTC or
11576 not.
11577 dtc_health_source: The health check source type.
11578 dtc_health_source_address: The source address used if
11579 dtc_health_source type is "IP".
11580 edns_udp_size: Advertises the EDNS0 buffer size to the upstream
11581 server. The value should be between 512 and 4096 bytes. The
11582 recommended value is between 512 and 1220 bytes.
11583 enable_blackhole: Determines if the blocking of DNS queries is
11584 enabled or not. This setting overrides the Grid
11585 enable_blackhole settings.
11586 enable_blacklist: Determines if a blacklist is enabled or not on
11587 the Grid member.
11588 enable_capture_dns_queries: The flag that indicates whether the
11589 capture of DNS queries is enabled or disabled.
11590 enable_capture_dns_responses: The flag that indicates whether
11591 the capture of DNS responses is enabled or disabled.
11592 enable_dns: Determines if the DNS service of a member is enabled
11593 or not.
11594 enable_dns64: Determines if the DNS64 support is enabled or not
11595 for this member.
11596 enable_dns_cache_acceleration: Determines if the DNS Cache
11597 Acceleration service is enabled or not for a member.
11598 enable_dns_health_check: The flag that indicates whether the DNS
11599 health check is enabled or not.
11600 enable_dnstap_queries: Determines whether the query messages
11601 need to be forwarded to DNSTAP or not.
11602 enable_dnstap_responses: Determines whether the response
11603 messages need to be forwarded to DNSTAP or not.
11604 enable_excluded_domain_names: The flag that indicates whether
11605 excluding domain names from captured DNS queries and
11606 responses is enabled or disabled.
11607 enable_fixed_rrset_order_fqdns: Determines if the fixed RRset
11608 order FQDN is enabled or not.
11609 enable_ftc: Determines whether Fault Tolerant Caching (FTC) is
11610 enabled.
11611 enable_gss_tsig: Determines whether the appliance is enabled to
11612 receive GSS-TSIG authenticated updates from DHCP clients.
11613 enable_notify_source_port: Determines if the notify source port
11614 for a member is enabled or not.
11615 enable_query_rewrite: Determines if the DNS query rewrite is
11616 enabled or not for this member.
11617 enable_query_source_port: Determines if the query source port
11618 for a memer is enabled or not.
11619 excluded_domain_names: The list of domains that are excluded
11620 from DNS query and response capture.
11621 extattrs: Extensible attributes associated with the object.For
11622 valid values for extensible attributes, see the following
11623 information.
11624 file_transfer_setting: The DNS capture file transfer settings.
11625 Include the specified parameter to set the attribute value.
11626 Omit the parameter to retrieve the attribute value.
11627 filter_aaaa: The type of AAAA filtering for this member DNS
11628 object.
11629 filter_aaaa_list: The list of IPv4 addresses and networks from
11630 which queries are received. AAAA filtering is applied to
11631 these addresses.
11632 fixed_rrset_order_fqdns: The fixed RRset order FQDN. If this
11633 field does not contain an empty value, the appliance will
11634 automatically set the enable_fixed_rrset_order_fqdns field
11635 to 'true', unless the same request sets the enable field to
11636 'false'.
11637 forward_only: Permits this member to send queries to forwarders
11638 only. When the value is "true", the member sends queries to
11639 forwarders only, and not to other internal or Internet root
11640 servers.
11641 forward_updates: Allows secondary servers to forward updates to
11642 the DNS server. This setting overrides grid update settings.
11643 forwarders: The forwarders for the member. A forwarder is
11644 essentially a name server to which other name servers first
11645 send all of their off-site queries. The forwarder builds up
11646 a cache of information, avoiding the need for the other name
11647 servers to send queries off-site. This setting overrides the
11648 Grid level setting.
11649 ftc_expired_record_timeout: The timeout interval (in seconds)
11650 after which the expired Fault Tolerant Caching (FTC)record
11651 is stale and no longer valid.
11652 ftc_expired_record_ttl: The TTL value (in seconds) of the
11653 expired Fault Tolerant Caching (FTC) record in DNS
11654 responses.
11655 glue_record_addresses: The list of glue record addresses.
11656 gss_tsig_keys: The list of GSS-TSIG keys for a member DNS
11657 object.
11658 host_name: The host name of the Grid member.
11659 ipv4addr: The IPv4 Address of the Grid member.
11660 ipv6_glue_record_addresses: The list of IPv6 glue record
11661 addresses.
11662 ipv6addr: The IPv6 Address of the Grid member.
11663 is_unbound_capable: The flag that indicates whether member DNS
11664 supports Unbound as the recursive resolver or not.
11665 lame_ttl: The number of seconds to cache lame delegations or
11666 lame servers.
11667 logging_categories: The logging categories for this DNS member.
11668 max_cache_ttl: The maximum time (in seconds) for which the
11669 server will cache positive answers.
11670 max_cached_lifetime: The maximum time in seconds a DNS response
11671 can be stored in the hardware acceleration cache.Valid
11672 values are unsigned integer between 60 and 86400, inclusive.
11673 max_ncache_ttl: The maximum time (in seconds) for which the
11674 server will cache negative (NXDOMAIN) responses.The maximum
11675 allowed value is 604800.
11676 max_udp_size: The value is used by authoritative DNS servers to
11677 never send DNS responses larger than the configured value.
11678 The value should be between 512 and 4096 bytes. The
11679 recommended value is between 512 and 1220 bytes.
11680 minimal_resp: Enables the ability to return a minimal amount of
11681 data in response to a query. This capability speeds up the
11682 DNS services provided by the appliance.
11683 notify_delay: Specifies the number of seconds of delay the
11684 notify messages are sent to secondaries.
11685 notify_source_port: The source port for notify messages. When
11686 requesting zone transfers from the primary server, some
11687 secondary DNS servers use the source port number (the
11688 primary server used to send the notify message) as the
11689 destination port number in the zone transfer request. This
11690 setting overrides Grid static source port settings.Valid
11691 values are between 1 and 63999. The default is selected by
11692 BIND.
11693 nxdomain_log_query: Determines if NXDOMAIN redirection queries
11694 are logged or not.
11695 nxdomain_redirect: Enables NXDOMAIN redirection.
11696 nxdomain_redirect_addresses: The IPv4 NXDOMAIN redirection
11697 addresses.
11698 nxdomain_redirect_addresses_v6: The IPv6 NXDOMAIN redirection
11699 addresses.
11700 nxdomain_redirect_ttl: The TTL value of synthetic DNS responses
11701 that result from NXDOMAIN redirection.
11702 nxdomain_rulesets: The names of the Ruleset objects assigned at
11703 the Grid level for NXDOMAIN redirection.
11704 query_source_port: The source port for queries. Specifying a
11705 source port number for recursive queries ensures that a
11706 firewall will allow the response.Valid values are between 1
11707 and 63999. The default is selected by BIND.
11708 record_name_policy: The record name restriction policy.
11709 recursive_client_limit: A limit on the number of concurrent
11710 recursive clients.
11711 recursive_query_list: The list of IPv4 or IPv6 addresses,
11712 networks or hosts authenticated by Transaction signature
11713 (TSIG) key from which recursive queries are allowed or
11714 denied.
11715 recursive_resolver: The recursive resolver for member DNS.
11716 resolver_query_timeout: The recursive query timeout for the
11717 member. The value must be 0 or between 10 and 30.
11718 response_rate_limiting: The response rate limiting settings for
11719 the member.
11720 root_name_server_type: Determines the type of root name servers.
11721 rpz_disable_nsdname_nsip: Enables NSDNAME and NSIP resource
11722 records from RPZ feeds at member level.
11723 rpz_drop_ip_rule_enabled: Enables the appliance to ignore RPZ-IP
11724 triggers with prefix lengths less than the specified minimum
11725 prefix length.
11726 rpz_drop_ip_rule_min_prefix_length_ipv4: The minimum prefix
11727 length for IPv4 RPZ-IP triggers. The appliance ignores RPZ-
11728 IP triggers with prefix lengths less than the specified
11729 minimum IPv4 prefix length.
11730 rpz_drop_ip_rule_min_prefix_length_ipv6: The minimum prefix
11731 length for IPv6 RPZ-IP triggers. The appliance ignores RPZ-
11732 IP triggers with prefix lengths less than the specified
11733 minimum IPv6 prefix length.
11734 rpz_qname_wait_recurse: The flag that indicates whether
11735 recursive RPZ lookups are enabled.
11736 serial_query_rate: The number of maximum concurrent SOA queries
11737 per second for the member.
11738 server_id_directive: The value of the server-id directive for
11739 BIND and Unbound DNS.
11740 server_id_directive_string: The value of the user-defined
11741 hostname directive for BIND and UNBOUND DNS. To enable user-
11742 defined hostname directive, you must set the
11743 bind_hostname_directive to "USER_DEFINED".
11744 skip_in_grid_rpz_queries: Determines if RPZ rules are applied to
11745 queries originated from this member and received by other
11746 Grid members.
11747 sortlist: A sort list determines the order of addresses in
11748 responses made to DNS queries. This setting overrides Grid
11749 sort list settings.
11750 store_locally: The flag that indicates whether the storage of
11751 query capture reports on the appliance is enabled or
11752 disabled.
11753 syslog_facility: The syslog facility. This is the location on
11754 the syslog server to which you want to sort the DNS logging
11755 messages. This setting overrides the Grid logging facility
11756 settings.
11757 tcp_idle_timeout: TCP Idle timeout for DNS over TLS connections.
11758 tls_session_duration: DNS over TLS sessions duration.
11759 transfer_excluded_servers: Excludes specified DNS servers during
11760 zone transfers.
11761 transfer_format: The BIND format for a zone transfer. This
11762 provides tracking capabilities for single or multiple
11763 transfers and their associated servers.
11764 transfers_in: The number of maximum concurrent transfers for the
11765 member.
11766 transfers_out: The number of maximum outbound concurrent zone
11767 transfers for the member.
11768 transfers_per_ns: The number of maximum concurrent transfers per
11769 member for the member.
11770 unbound_logging_level: Logging level for the Unbound recursive
11771 resolver.
11772 use_add_client_ip_mac_options: Use flag for:
11773 add_client_ip_mac_options
11774 use_allow_query: Use flag for: allow_query
11775 use_allow_transfer: Use flag for: allow_transfer
11776 use_attack_mitigation: Use flag for: attack_mitigation
11777 use_auto_blackhole: Use flag for: auto_blackhole
11778 use_bind_hostname_directive: Use flag for:
11779 bind_hostname_directive
11780 use_blackhole: Use flag for: enable_blackhole
11781 use_blacklist: Use flag for: blackhole_list , blacklist_action,
11782 blacklist_log_query, blacklist_redirect_addresses,
11783 blacklist_redirect_ttl, blacklist_rulesets, enable_blacklist
11784 use_capture_dns_queries_on_all_domains: Use flag for:
11785 capture_dns_queries_on_all_domains
11786 use_copy_client_ip_mac_options: Use flag for:
11787 copy_client_ip_mac_options
11788 use_copy_xfer_to_notify: Use flag for: copy_xfer_to_notify
11789 use_disable_edns: Use flag for: disable_edns
11790 use_dns64: Use flag for: enable_dns64 , dns64_groups
11791 use_dns_cache_acceleration_ttl: Use flag for:
11792 dns_cache_acceleration_ttl
11793 use_dns_health_check: Use flag for: dns_health_check_domain_list
11794 , dns_health_check_recursion_flag,
11795 dns_health_check_anycast_control, enable_dns_health_check,
11796 dns_health_check_interval, dns_health_check_timeout,
11797 dns_health_check_retries
11798 use_dnssec: Use flag for: dnssec_enabled ,
11799 dnssec_expired_signatures_enabled,
11800 dnssec_validation_enabled, dnssec_trusted_keys
11801 use_dnstap_setting: Use flag for: enable_dnstap_queries ,
11802 enable_dnstap_responses, dnstap_setting
11803 use_dtc_dns_queries_specific_behavior: Use flag for:
11804 dtc_dns_queries_specific_behavior
11805 use_dtc_edns_prefer_client_subnet: Use flag for:
11806 dtc_edns_prefer_client_subnet
11807 use_edns_udp_size: Use flag for: edns_udp_size
11808 use_enable_capture_dns: Use flag for: enable_capture_dns_queries
11809 , enable_capture_dns_responses
11810 use_enable_excluded_domain_names: Use flag for:
11811 enable_excluded_domain_names
11812 use_enable_gss_tsig: Use flag for: enable_gss_tsig
11813 use_enable_query_rewrite: Use flag for: enable_query_rewrite
11814 use_filter_aaaa: Use flag for: filter_aaaa , filter_aaaa_list
11815 use_fixed_rrset_order_fqdns: Use flag for:
11816 fixed_rrset_order_fqdns , enable_fixed_rrset_order_fqdns
11817 use_forward_updates: Use flag for: forward_updates
11818 use_forwarders: Use flag for: forwarders , forward_only
11819 use_ftc: Use flag for: enable_ftc , ftc_expired_record_ttl,
11820 ftc_expired_record_timeout
11821 use_gss_tsig_keys: Use flag for: gss_tsig_keys
11822 use_lame_ttl: Use flag for: lame_ttl
11823 use_lan2_ipv6_port: Determines if the DNS service on the IPv6
11824 LAN2 port is enabled or not.
11825 use_lan2_port: Determines if the DNS service on the LAN2 port is
11826 enabled or not.
11827 use_lan_ipv6_port: Determines if the DNS service on the IPv6 LAN
11828 port is enabled or not.
11829 use_lan_port: Determines the status of the use of DNS services
11830 on the IPv4 LAN1 port.
11831 use_logging_categories: Use flag for: logging_categories
11832 use_max_cache_ttl: Use flag for: max_cache_ttl
11833 use_max_cached_lifetime: Use flag for: max_cached_lifetime
11834 use_max_ncache_ttl: Use flag for: max_ncache_ttl
11835 use_max_udp_size: Use flag for: max_udp_size
11836 use_mgmt_ipv6_port: Determines if the DNS services on the IPv6
11837 MGMT port is enabled or not.
11838 use_mgmt_port: Determines if the DNS services on the MGMT port
11839 is enabled or not.
11840 use_notify_delay: Use flag for: notify_delay
11841 use_nxdomain_redirect: Use flag for: nxdomain_redirect ,
11842 nxdomain_redirect_addresses, nxdomain_redirect_addresses_v6,
11843 nxdomain_redirect_ttl, nxdomain_log_query, nxdomain_rulesets
11844 use_record_name_policy: Use flag for: record_name_policy
11845 use_recursive_client_limit: Use flag for: recursive_client_limit
11846 use_recursive_query_setting: Use flag for: allow_recursive_query
11847 , recursive_query_list
11848 use_resolver_query_timeout: Use flag for: resolver_query_timeout
11849 use_response_rate_limiting: Use flag for: response_rate_limiting
11850 use_root_name_server: Use flag for: root_name_server_type ,
11851 custom_root_name_servers, use_root_server_for_all_views
11852 use_root_server_for_all_views: Determines if root name servers
11853 should be applied to all views or only to Default view.
11854 use_rpz_disable_nsdname_nsip: Use flag for:
11855 rpz_disable_nsdname_nsip
11856 use_rpz_drop_ip_rule: Use flag for: rpz_drop_ip_rule_enabled ,
11857 rpz_drop_ip_rule_min_prefix_length_ipv4,
11858 rpz_drop_ip_rule_min_prefix_length_ipv6
11859 use_rpz_qname_wait_recurse: Use flag for: rpz_qname_wait_recurse
11860 use_serial_query_rate: Use flag for: serial_query_rate
11861 use_server_id_directive: Use flag for: server_id_directive
11862 use_sortlist: Use flag for: sortlist
11863 use_source_ports: Use flag for: enable_notify_source_port ,
11864 notify_source_port, enable_query_source_port,
11865 query_source_port
11866 use_syslog_facility: Use flag for: syslog_facility
11867 use_transfers_in: Use flag for: transfers_in
11868 use_transfers_out: Use flag for: transfers_out
11869 use_transfers_per_ns: Use flag for: transfers_per_ns
11870 use_update_setting: Use flag for: allow_update ,
11871 allow_gss_tsig_zone_updates
11872 use_zone_transfer_format: Use flag for:
11873 transfer_excluded_servers , transfer_format
11874 views: The list of views associated with this member.
11875 """
11876 _infoblox_type = 'member:dns'
11877 _fields = ['add_client_ip_mac_options', 'additional_ip_list',
11878 'additional_ip_list_struct', 'allow_gss_tsig_zone_updates',
11879 'allow_query', 'allow_recursive_query', 'allow_transfer',
11880 'allow_update', 'anonymize_response_logging', 'atc_fwd_enable',
11881 'attack_mitigation', 'auto_blackhole',
11882 'auto_create_a_and_ptr_for_lan2',
11883 'auto_create_aaaa_and_ipv6ptr_for_lan2', 'auto_sort_views',
11884 'bind_check_names_policy', 'bind_hostname_directive',
11885 'bind_hostname_directive_fqdn', 'blackhole_list',
11886 'blacklist_action', 'blacklist_log_query',
11887 'blacklist_redirect_addresses', 'blacklist_redirect_ttl',
11888 'blacklist_rulesets', 'capture_dns_queries_on_all_domains',
11889 'check_names_for_ddns_and_zone_transfer',
11890 'copy_client_ip_mac_options', 'copy_xfer_to_notify',
11891 'custom_root_name_servers', 'disable_edns', 'dns64_groups',
11892 'dns_cache_acceleration_status', 'dns_cache_acceleration_ttl',
11893 'dns_health_check_anycast_control',
11894 'dns_health_check_domain_list', 'dns_health_check_interval',
11895 'dns_health_check_recursion_flag', 'dns_health_check_retries',
11896 'dns_health_check_timeout', 'dns_notify_transfer_source',
11897 'dns_notify_transfer_source_address', 'dns_over_tls_service',
11898 'dns_query_capture_file_time_limit', 'dns_query_source_address',
11899 'dns_query_source_interface', 'dns_view_address_settings',
11900 'dnssec_blacklist_enabled', 'dnssec_dns64_enabled',
11901 'dnssec_enabled', 'dnssec_expired_signatures_enabled',
11902 'dnssec_negative_trust_anchors', 'dnssec_nxdomain_enabled',
11903 'dnssec_rpz_enabled', 'dnssec_trusted_keys',
11904 'dnssec_validation_enabled', 'dnstap_setting',
11905 'doh_https_session_duration', 'doh_service',
11906 'domains_to_capture_dns_queries',
11907 'dtc_dns_queries_specific_behavior',
11908 'dtc_edns_prefer_client_subnet', 'dtc_health_source',
11909 'dtc_health_source_address', 'edns_udp_size',
11910 'enable_blackhole', 'enable_blacklist',
11911 'enable_capture_dns_queries', 'enable_capture_dns_responses',
11912 'enable_dns', 'enable_dns64', 'enable_dns_cache_acceleration',
11913 'enable_dns_health_check', 'enable_dnstap_queries',
11914 'enable_dnstap_responses', 'enable_excluded_domain_names',
11915 'enable_fixed_rrset_order_fqdns', 'enable_ftc',
11916 'enable_gss_tsig', 'enable_notify_source_port',
11917 'enable_query_rewrite', 'enable_query_source_port',
11918 'excluded_domain_names', 'extattrs', 'file_transfer_setting',
11919 'filter_aaaa', 'filter_aaaa_list', 'fixed_rrset_order_fqdns',
11920 'forward_only', 'forward_updates', 'forwarders',
11921 'ftc_expired_record_timeout', 'ftc_expired_record_ttl',
11922 'glue_record_addresses', 'gss_tsig_keys', 'host_name',
11923 'ipv4addr', 'ipv6_glue_record_addresses', 'ipv6addr',
11924 'is_unbound_capable', 'lame_ttl', 'logging_categories',
11925 'max_cache_ttl', 'max_cached_lifetime', 'max_ncache_ttl',
11926 'max_udp_size', 'minimal_resp', 'notify_delay',
11927 'notify_source_port', 'nxdomain_log_query', 'nxdomain_redirect',
11928 'nxdomain_redirect_addresses', 'nxdomain_redirect_addresses_v6',
11929 'nxdomain_redirect_ttl', 'nxdomain_rulesets',
11930 'query_source_port', 'record_name_policy',
11931 'recursive_client_limit', 'recursive_query_list',
11932 'recursive_resolver', 'resolver_query_timeout',
11933 'response_rate_limiting', 'root_name_server_type',
11934 'rpz_disable_nsdname_nsip', 'rpz_drop_ip_rule_enabled',
11935 'rpz_drop_ip_rule_min_prefix_length_ipv4',
11936 'rpz_drop_ip_rule_min_prefix_length_ipv6',
11937 'rpz_qname_wait_recurse', 'serial_query_rate',
11938 'server_id_directive', 'server_id_directive_string',
11939 'skip_in_grid_rpz_queries', 'sortlist', 'store_locally',
11940 'syslog_facility', 'tcp_idle_timeout', 'tls_session_duration',
11941 'transfer_excluded_servers', 'transfer_format', 'transfers_in',
11942 'transfers_out', 'transfers_per_ns', 'unbound_logging_level',
11943 'use_add_client_ip_mac_options', 'use_allow_query',
11944 'use_allow_transfer', 'use_attack_mitigation',
11945 'use_auto_blackhole', 'use_bind_hostname_directive',
11946 'use_blackhole', 'use_blacklist',
11947 'use_capture_dns_queries_on_all_domains',
11948 'use_copy_client_ip_mac_options', 'use_copy_xfer_to_notify',
11949 'use_disable_edns', 'use_dns64',
11950 'use_dns_cache_acceleration_ttl', 'use_dns_health_check',
11951 'use_dnssec', 'use_dnstap_setting',
11952 'use_dtc_dns_queries_specific_behavior',
11953 'use_dtc_edns_prefer_client_subnet', 'use_edns_udp_size',
11954 'use_enable_capture_dns', 'use_enable_excluded_domain_names',
11955 'use_enable_gss_tsig', 'use_enable_query_rewrite',
11956 'use_filter_aaaa', 'use_fixed_rrset_order_fqdns',
11957 'use_forward_updates', 'use_forwarders', 'use_ftc',
11958 'use_gss_tsig_keys', 'use_lame_ttl', 'use_lan2_ipv6_port',
11959 'use_lan2_port', 'use_lan_ipv6_port', 'use_lan_port',
11960 'use_logging_categories', 'use_max_cache_ttl',
11961 'use_max_cached_lifetime', 'use_max_ncache_ttl',
11962 'use_max_udp_size', 'use_mgmt_ipv6_port', 'use_mgmt_port',
11963 'use_notify_delay', 'use_nxdomain_redirect',
11964 'use_record_name_policy', 'use_recursive_client_limit',
11965 'use_recursive_query_setting', 'use_resolver_query_timeout',
11966 'use_response_rate_limiting', 'use_root_name_server',
11967 'use_root_server_for_all_views', 'use_rpz_disable_nsdname_nsip',
11968 'use_rpz_drop_ip_rule', 'use_rpz_qname_wait_recurse',
11969 'use_serial_query_rate', 'use_server_id_directive',
11970 'use_sortlist', 'use_source_ports', 'use_syslog_facility',
11971 'use_transfers_in', 'use_transfers_out', 'use_transfers_per_ns',
11972 'use_update_setting', 'use_zone_transfer_format', 'views']
11973 _search_for_update_fields = ['host_name', 'ipv4addr', 'ipv6addr']
11974 _updateable_search_fields = []
11975 _all_searchable_fields = ['host_name', 'ipv4addr', 'ipv6addr']
11976 _return_fields = ['extattrs', 'host_name', 'ipv4addr', 'ipv6addr']
11977 _remap = {}
11978 _shadow_fields = ['_ref', 'ip']
11979
11980 @property
11981 def ip(self):
11982 if hasattr(self, '_ip'):
11983 return str(self._ip)
11984
11985 # This object represents both ipv4 and ipv6 objects, so it doesn't need
11986 # versioned object for that. Just set v4 or v6 field in addition
11987 # to setting shadow field 'ip' itself.
11988 @ip.setter
11989 def ip(self, ip):
11990 self._ip = ip
11991 if ib_utils.determine_ip_version(ip) == 6:
11992 if 'ipv6addr' not in self._fields:
11993 raise ib_ex.InfobloxInvalidIp(ip=ip)
11994 self.ipv6addr = ip
11995 else:
11996 if 'ipv4addr' not in self._fields:
11997 raise ib_ex.InfobloxInvalidIp(ip=ip)
11998 self.ipv4addr = ip
11999
12000 _custom_field_processing = {
12001 'additional_ip_list_struct': MemberDnsip.from_dict,
12002 'allow_query': Addressac.from_dict,
12003 'allow_transfer': Addressac.from_dict,
12004 'allow_update': Addressac.from_dict,
12005 'blackhole_list': Addressac.from_dict,
12006 'custom_root_name_servers': Extserver.from_dict,
12007 'dns_view_address_settings': SettingViewaddress.from_dict,
12008 'dnssec_trusted_keys': Dnssectrustedkey.from_dict,
12009 'filter_aaaa_list': Addressac.from_dict,
12010 'fixed_rrset_order_fqdns': GridDnsFixedrrsetorderfqdn.from_dict,
12011 'glue_record_addresses': MemberDnsgluerecordaddr.from_dict,
12012 'ipv6_glue_record_addresses': MemberDnsgluerecordaddr.from_dict,
12013 'recursive_query_list': Addressac.from_dict,
12014 'sortlist': Sortlist.from_dict,
12015 }
12016
12017 def clear_dns_cache(self, *args, **kwargs):
12018 return self._call_func("clear_dns_cache", *args, **kwargs)
12019
12020
12021 class MemberFiledistribution(InfobloxObject):
12022 """ MemberFiledistribution: Grid member file distribution object.
12023 Corresponds to WAPI object 'member:filedistribution'
12024
12025 The Grid member file distribution object is used to configure file
12026 distribution services such as TFTP, FTP and HTTP, and access control
12027 lists (ACL) that determine which clients are granted access to the
12028 service (TFTP, FTP, HTTP), and which clients are denied access to
12029 the service.
12030
12031 Attributes:
12032 allow_uploads: Determines whether uploads to the Grid member are
12033 allowed.
12034 comment: The Grid member descriptive comment.
12035 enable_ftp: Determines whether the FTP prtocol is enabled for
12036 file distribution.
12037 enable_ftp_filelist: Determines whether the LIST command for FTP
12038 is enabled.
12039 enable_ftp_passive: Determines whether the passive mode for FTP
12040 is enabled.
12041 enable_http: Determines whether the HTTP prtocol is enabled for
12042 file distribution.
12043 enable_http_acl: Determines whether the HTTP prtocol access
12044 control (AC) settings are enabled.
12045 enable_tftp: Determines whether the TFTP prtocol is enabled for
12046 file distribution.
12047 ftp_acls: Access control (AC) settings for the FTP protocol.
12048 ftp_port: The network port used by the FTP protocol.
12049 ftp_status: The FTP protocol status.
12050 host_name: The Grid member host name.
12051 http_acls: Access control (AC) settings for the HTTP protocol.
12052 http_status: The HTTP protocol status.
12053 ipv4_address: The IPv4 address of the Grid member.
12054 ipv6_address: The IPv6 address of the Grid member.
12055 status: The Grid member file distribution status.
12056 tftp_acls: The access control (AC) settings for the TFTP
12057 protocol.
12058 tftp_port: The network port used by the TFTP protocol.
12059 tftp_status: The TFTP protocol status.
12060 use_allow_uploads: Use flag for: allow_uploads
12061 """
12062 _infoblox_type = 'member:filedistribution'
12063 _fields = ['allow_uploads', 'comment', 'enable_ftp', 'enable_ftp_filelist',
12064 'enable_ftp_passive', 'enable_http', 'enable_http_acl',
12065 'enable_tftp', 'ftp_acls', 'ftp_port', 'ftp_status',
12066 'host_name', 'http_acls', 'http_status', 'ipv4_address',
12067 'ipv6_address', 'status', 'tftp_acls', 'tftp_port',
12068 'tftp_status', 'use_allow_uploads']
12069 _search_for_update_fields = ['host_name', 'ipv4_address', 'ipv6_address']
12070 _updateable_search_fields = []
12071 _all_searchable_fields = ['comment', 'host_name', 'ipv4_address',
12072 'ipv6_address']
12073 _return_fields = ['host_name', 'ipv4_address', 'ipv6_address', 'status']
12074 _remap = {}
12075 _shadow_fields = ['_ref']
12076
12077 _custom_field_processing = {
12078 'ftp_acls': Addressac.from_dict,
12079 'http_acls': Addressac.from_dict,
12080 'tftp_acls': Addressac.from_dict,
12081 }
12082
12083
12084 class MemberLicense(InfobloxObject):
12085 """ MemberLicense: Member License object.
12086 Corresponds to WAPI object 'member:license'
12087
12088 This object represents the member license.
12089
12090 Attributes:
12091 expiration_status: The license expiration status.
12092 expiry_date: The expiration timestamp of the license.
12093 hwid: The hardware ID of the physical node on which the license
12094 is installed.
12095 key: License string.
12096 kind: The overall type of license: static or dynamic.
12097 limit: The license limit value.
12098 limit_context: The license limit context.
12099 type: The license type.
12100 """
12101 _infoblox_type = 'member:license'
12102 _fields = ['expiration_status', 'expiry_date', 'hwid', 'key', 'kind',
12103 'limit', 'limit_context', 'type']
12104 _search_for_update_fields = ['type']
12105 _updateable_search_fields = []
12106 _all_searchable_fields = ['hwid', 'key', 'kind', 'limit', 'type']
12107 _return_fields = ['type']
12108 _remap = {}
12109 _shadow_fields = ['_ref']
12110
12111
12112 class MemberParentalcontrol(InfobloxObject):
12113 """ MemberParentalcontrol: Member mobile security properties object.
12114 Corresponds to WAPI object 'member:parentalcontrol'
12115
12116 This object represents a set of parental control properties for the
12117 Grid member.
12118
12119 Attributes:
12120 enable_service: Determines if the parental control service is
12121 enabled.
12122 name: The parental control member hostname.
12123 """
12124 _infoblox_type = 'member:parentalcontrol'
12125 _fields = ['enable_service', 'name']
12126 _search_for_update_fields = ['name']
12127 _updateable_search_fields = []
12128 _all_searchable_fields = ['name']
12129 _return_fields = ['enable_service', 'name']
12130 _remap = {}
12131 _shadow_fields = ['_ref']
12132
12133
12134 class MemberThreatanalytics(InfobloxObject):
12135 """ MemberThreatanalytics: Grid member threat analytics object.
12136 Corresponds to WAPI object 'member:threatanalytics'
12137
12138 To mitigate DNS data exfiltration, Infoblox DNS threat analytics
12139 employs analytics algorithms that analyze incoming DNS queries and
12140 responses to detect DNS tunneling traffic.
12141
12142 The Grid member threat analytics object contains facilities for
12143 starting and stopping the DNS threat analytics routines as well as
12144 for monitoring the current status of the threat analytics service.
12145
12146 Attributes:
12147 comment: The Grid member descriptive comment.
12148 enable_service: Determines whether the threat analytics service
12149 is enabled.
12150 host_name: The Grid member host name.
12151 ipv4_address: The IPv4 Address address of the Grid member.
12152 ipv6_address: The IPv6 Address address of the Grid member.
12153 status: The Grid member threat analytics status.
12154 """
12155 _infoblox_type = 'member:threatanalytics'
12156 _fields = ['comment', 'enable_service', 'host_name', 'ipv4_address',
12157 'ipv6_address', 'status']
12158 _search_for_update_fields = ['host_name', 'ipv4_address', 'ipv6_address']
12159 _updateable_search_fields = []
12160 _all_searchable_fields = ['comment', 'host_name', 'ipv4_address',
12161 'ipv6_address']
12162 _return_fields = ['host_name', 'ipv4_address', 'ipv6_address', 'status']
12163 _remap = {}
12164 _shadow_fields = ['_ref']
12165
12166
12167 class MemberThreatprotection(InfobloxObject):
12168 """ MemberThreatprotection: Member threat protection object.
12169 Corresponds to WAPI object 'member:threatprotection'
12170
12171 This object provides information about the member threat protection
12172 settings.
12173
12174 Attributes:
12175 comment: The human readable comment for member threat protection
12176 properties.
12177 current_ruleset: The ruleset used for threat protection.
12178 disable_multiple_dns_tcp_request: Determines if multiple BIND
12179 responses via TCP connection is enabled or not.
12180 enable_accel_resp_before_threat_protection: Determines if DNS
12181 responses are sent from acceleration cache before applying
12182 Threat Protection rules. Recommended for better performance
12183 when using DNS Cache Acceleration.
12184 enable_nat_rules: Determines if NAT (Network Address
12185 Translation) mapping for threat protection is enabled or
12186 not.
12187 enable_service: Determines if the Threat protection service is
12188 enabled or not.
12189 events_per_second_per_rule: The number of events logged per
12190 second per rule.
12191 hardware_model: The hardware model of the member.
12192 hardware_type: The hardware type of the member.
12193 host_name: A Grid member name.
12194 ipv4address: The IPv4 address of member threat protection
12195 service.
12196 ipv6address: The IPv6 address of member threat protection
12197 service.
12198 nat_rules: The list of NAT rules.
12199 outbound_settings: Outbound settings for ATP events.
12200 profile: The Threat Protection profile associated with the
12201 member.
12202 use_current_ruleset: Use flag for: current_ruleset
12203 use_disable_multiple_dns_tcp_request: Use flag for:
12204 disable_multiple_dns_tcp_request
12205 use_enable_accel_resp_before_threat_protection: Use flag for:
12206 enable_accel_resp_before_threat_protection
12207 use_enable_nat_rules: Use flag for: enable_nat_rules
12208 use_events_per_second_per_rule: Use flag for:
12209 events_per_second_per_rule
12210 use_outbound_settings: Use flag for: outbound_settings
12211 """
12212 _infoblox_type = 'member:threatprotection'
12213 _fields = ['comment', 'current_ruleset',
12214 'disable_multiple_dns_tcp_request',
12215 'enable_accel_resp_before_threat_protection',
12216 'enable_nat_rules', 'enable_service',
12217 'events_per_second_per_rule', 'hardware_model', 'hardware_type',
12218 'host_name', 'ipv4address', 'ipv6address', 'nat_rules',
12219 'outbound_settings', 'profile', 'use_current_ruleset',
12220 'use_disable_multiple_dns_tcp_request',
12221 'use_enable_accel_resp_before_threat_protection',
12222 'use_enable_nat_rules', 'use_events_per_second_per_rule',
12223 'use_outbound_settings']
12224 _search_for_update_fields = []
12225 _updateable_search_fields = ['current_ruleset', 'profile']
12226 _all_searchable_fields = ['comment', 'current_ruleset', 'hardware_model',
12227 'hardware_type', 'host_name', 'ipv4address',
12228 'ipv6address', 'profile']
12229 _return_fields = []
12230 _remap = {}
12231 _shadow_fields = ['_ref']
12232
12233 _custom_field_processing = {
12234 'nat_rules': ThreatprotectionNatrule.from_dict,
12235 }
12236
12237
12238 class Memberdfp(InfobloxObject):
12239 """ Memberdfp: Memberdfp object.
12240 Corresponds to WAPI object 'memberdfp'
12241
12242 This object represnts DFP fields at member level
12243
12244 Attributes:
12245 dfp_forward_first: Option to resolve DNS query if resolution
12246 over Active Trust Cloud failed.
12247 extattrs: Extensible attributes associated with the object.For
12248 valid values for extensible attributes, see the following
12249 information.
12250 host_name: Host name of the parent Member
12251 is_dfp_override: DFP override lock'.
12252 """
12253 _infoblox_type = 'memberdfp'
12254 _fields = ['dfp_forward_first', 'extattrs', 'host_name', 'is_dfp_override']
12255 _search_for_update_fields = []
12256 _updateable_search_fields = []
12257 _all_searchable_fields = []
12258 _return_fields = ['extattrs']
12259 _remap = {}
12260 _shadow_fields = ['_ref']
12261
12262
12263 class Msserver(InfobloxObject):
12264 """ Msserver: Microsoft Server object.
12265 Corresponds to WAPI object 'msserver'
12266
12267 This object represents the Microsoft Server.
12268
12269 Attributes:
12270 ad_domain: The Active Directory domain to which this server
12271 belongs (if applicable).
12272 ad_sites: The Active Directory Sites information
12273 ad_user: The Active Directory User synchronization information.
12274 address: The address or FQDN of the server.
12275 comment: User comments for this Microsoft Server
12276 connection_status: Result of the last RPC connection attempt
12277 made
12278 connection_status_detail: Detail of the last connection attempt
12279 made
12280 dhcp_server: RW fields needed for DHCP purposes at Microsoft
12281 Server level
12282 disabled: Allow/forbids usage of this Microsoft Server
12283 dns_server: Structure containing DNS information
12284 dns_view: Reference to the DNS view
12285 extattrs: Extensible attributes associated with the object.For
12286 valid values for extensible attributes, see the following
12287 information.
12288 grid_member: eference to the assigned grid member
12289 last_seen: Timestamp of the last message received
12290 log_destination: Directs logging of sync messages either to
12291 syslog or mslog
12292 log_level: Log level for this Microsoft Server
12293 login_name: Microsoft Server login name, with optional
12294 domainname
12295 login_password: Microsoft Server login password
12296 managing_member: Hostname of grid member managing this Microsoft
12297 Server
12298 ms_max_connection: Maximum number of connections to MS server
12299 ms_rpc_timeout_in_seconds: Timeout in seconds of RPC connections
12300 for this MS Server
12301 network_view: Reference to the network view
12302 read_only: Enable read-only management for this Microsoft Server
12303 root_ad_domain: The root Active Directory domain to which this
12304 server belongs (if applicable).
12305 server_name: Gives the server name as reported by itself
12306 synchronization_min_delay: Minimum number of minutes between two
12307 synchronizations
12308 synchronization_status: Synchronization status summary
12309 synchronization_status_detail: Detail status if
12310 synchronization_status is ERROR
12311 use_log_destination: Override log_destination inherited from
12312 grid level
12313 use_ms_max_connection: Override grid ms_max_connection setting
12314 use_ms_rpc_timeout_in_seconds: Flag to override cluster RPC
12315 timeout
12316 version: Version of the Microsoft Server
12317 """
12318 _infoblox_type = 'msserver'
12319 _fields = ['ad_domain', 'ad_sites', 'ad_user', 'address', 'comment',
12320 'connection_status', 'connection_status_detail', 'dhcp_server',
12321 'disabled', 'dns_server', 'dns_view', 'extattrs', 'grid_member',
12322 'last_seen', 'log_destination', 'log_level', 'login_name',
12323 'login_password', 'managing_member', 'ms_max_connection',
12324 'ms_rpc_timeout_in_seconds', 'network_view', 'read_only',
12325 'root_ad_domain', 'server_name', 'synchronization_min_delay',
12326 'synchronization_status', 'synchronization_status_detail',
12327 'use_log_destination', 'use_ms_max_connection',
12328 'use_ms_rpc_timeout_in_seconds', 'version']
12329 _search_for_update_fields = ['address']
12330 _updateable_search_fields = ['address', 'grid_member']
12331 _all_searchable_fields = ['address', 'grid_member']
12332 _return_fields = ['address', 'extattrs']
12333 _remap = {}
12334 _shadow_fields = ['_ref']
12335
12336
12337 class MsserverAdsitesDomain(InfobloxObject):
12338 """ MsserverAdsitesDomain: Active Directory Domain object.
12339 Corresponds to WAPI object 'msserver:adsites:domain'
12340
12341 The object provides information about the Active Directory Domain.
12342
12343 Attributes:
12344 ea_definition: The name of the Extensible Attribute Definition
12345 object that is linked to the Active Directory Sites Domain.
12346 ms_sync_master_name: The IP address or FQDN of the managing
12347 master for the MS server, if applicable.
12348 name: The name of the Active Directory Domain properties object.
12349 netbios: The NetBIOS name of the Active Directory Domain
12350 properties object.
12351 network_view: The name of the network view in which the Active
12352 Directory Domain resides.
12353 read_only: Determines whether the Active Directory Domain
12354 properties object is a read-only object.
12355 """
12356 _infoblox_type = 'msserver:adsites:domain'
12357 _fields = ['ea_definition', 'ms_sync_master_name', 'name', 'netbios',
12358 'network_view', 'read_only']
12359 _search_for_update_fields = ['name', 'netbios', 'network_view']
12360 _updateable_search_fields = []
12361 _all_searchable_fields = ['ea_definition', 'name', 'netbios',
12362 'network_view']
12363 _return_fields = ['name', 'netbios', 'network_view']
12364 _remap = {}
12365 _shadow_fields = ['_ref']
12366
12367
12368 class MsserverAdsitesSite(InfobloxObject):
12369 """ MsserverAdsitesSite: Active Directory Site object.
12370 Corresponds to WAPI object 'msserver:adsites:site'
12371
12372 This object provides information about the Active Directory Site.
12373
12374 Attributes:
12375 domain: The reference to the Active Directory Domain to which
12376 the site belongs.
12377 name: The name of the site properties object for the Active
12378 Directory Sites.
12379 networks: The list of networks to which the device interfaces
12380 belong.
12381 """
12382 _infoblox_type = 'msserver:adsites:site'
12383 _fields = ['domain', 'name', 'networks']
12384 _search_for_update_fields = ['domain', 'name']
12385 _updateable_search_fields = ['domain', 'name']
12386 _all_searchable_fields = ['domain', 'name']
12387 _return_fields = ['domain', 'name']
12388 _remap = {}
12389 _shadow_fields = ['_ref']
12390
12391 def move_subnets(self, *args, **kwargs):
12392 return self._call_func("move_subnets", *args, **kwargs)
12393
12394
12395 class MsserverDhcp(InfobloxObject):
12396 """ MsserverDhcp: Microsoft Server DHCP properties object.
12397 Corresponds to WAPI object 'msserver:dhcp'
12398
12399 This object represents a subset of the Microsoft Server DHCP
12400 properties.
12401
12402 Attributes:
12403 address: The address or FQDN of the DHCP Microsoft Server.
12404 comment: Comment from Microsoft Server
12405 dhcp_utilization: The percentage of the total DHCP utilization
12406 of DHCP objects belonging to the DHCP Microsoft Server
12407 multiplied by 1000. This is the percentage of the total
12408 number of available IP addresses from all the DHCP objects
12409 belonging to the DHCP Microsoft Server versus the total
12410 number of all IP addresses in all of the DHCP objects on the
12411 DHCP Microsoft Server.
12412 dhcp_utilization_status: A string describing the utilization
12413 level of DHCP objects that belong to the DHCP Microsoft
12414 Server.
12415 dynamic_hosts: The total number of DHCP leases issued for the
12416 DHCP objects on the DHCP Microsoft Server.
12417 last_sync_ts: Timestamp of the last synchronization attempt
12418 login_name: The login name of the DHCP Microsoft Server.
12419 login_password: The login password of the DHCP Microsoft Server.
12420 network_view: Network view to update
12421 next_sync_control: Defines what control to apply on the DHCP
12422 server
12423 read_only: Whether Microsoft server is read only
12424 server_name: Microsoft server address
12425 static_hosts: The number of static DHCP addresses configured in
12426 DHCP objects that belong to the DHCP Microsoft Server.
12427 status: Status of the Microsoft DHCP Service
12428 status_detail: Detailed status of the DHCP status
12429 status_last_updated: Timestamp of the last update
12430 supports_failover: Flag indicating if the DHCP supports Failover
12431 synchronization_interval: The minimum number of minutes between
12432 two synchronizations.
12433 total_hosts: The total number of DHCP addresses configured in
12434 DHCP objects that belong to the DHCP Microsoft Server.
12435 use_login: Use flag for: login_name , login_password
12436 use_synchronization_interval: Use flag for:
12437 synchronization_interval
12438 """
12439 _infoblox_type = 'msserver:dhcp'
12440 _fields = ['address', 'comment', 'dhcp_utilization',
12441 'dhcp_utilization_status', 'dynamic_hosts', 'last_sync_ts',
12442 'login_name', 'login_password', 'network_view',
12443 'next_sync_control', 'read_only', 'server_name', 'static_hosts',
12444 'status', 'status_detail', 'status_last_updated',
12445 'supports_failover', 'synchronization_interval', 'total_hosts',
12446 'use_login', 'use_synchronization_interval']
12447 _search_for_update_fields = ['address']
12448 _updateable_search_fields = []
12449 _all_searchable_fields = ['address']
12450 _return_fields = ['address']
12451 _remap = {}
12452 _shadow_fields = ['_ref']
12453
12454
12455 class MsserverDns(InfobloxObject):
12456 """ MsserverDns: Microsoft Server DNS properties object.
12457 Corresponds to WAPI object 'msserver:dns'
12458
12459 This object represents a subset of the Microsoft Server DNS
12460 properties.
12461
12462 Attributes:
12463 address: The address or FQDN of the DNS Microsoft Server.
12464 enable_dns_reports_sync: Determines if synchronization of DNS
12465 reporting data from the Microsoft server is enabled or not.
12466 login_name: The login name of the DNS Microsoft Server.
12467 login_password: The login password of the DNS Microsoft Server.
12468 synchronization_interval: The minimum number of minutes between
12469 two synchronizations.
12470 use_enable_dns_reports_sync: Use flag for:
12471 enable_dns_reports_sync
12472 use_login: Use flag for: login_name , login_password
12473 use_synchronization_interval: Use flag for:
12474 synchronization_interval
12475 """
12476 _infoblox_type = 'msserver:dns'
12477 _fields = ['address', 'enable_dns_reports_sync', 'login_name',
12478 'login_password', 'synchronization_interval',
12479 'use_enable_dns_reports_sync', 'use_login',
12480 'use_synchronization_interval']
12481 _search_for_update_fields = ['address']
12482 _updateable_search_fields = []
12483 _all_searchable_fields = ['address']
12484 _return_fields = ['address']
12485 _remap = {}
12486 _shadow_fields = ['_ref']
12487
12488
12489 class Mssuperscope(InfobloxObject):
12490 """ Mssuperscope: Microsoft DHCP superscope object.
12491 Corresponds to WAPI object 'mssuperscope'
12492
12493 This object represents a superscope feature of Microsoft DHCP
12494 server. You can use a superscope to group and activate multiple
12495 ranges via a single object.
12496
12497 Attributes:
12498 comment: The superscope descriptive comment.
12499 dhcp_utilization: The percentage of the total DHCP usage of the
12500 ranges in the superscope.
12501 dhcp_utilization_status: Utilization level of the DHCP range
12502 objects that belong to the superscope.
12503 disable: Determines whether the superscope is disabled.
12504 dynamic_hosts: The total number of DHCP leases issued for the
12505 DHCP range objects that belong to the superscope.
12506 extattrs: Extensible attributes associated with the object.For
12507 valid values for extensible attributes, see the following
12508 information.
12509 high_water_mark: The percentage value for DHCP range usage after
12510 which an alarm will be active.
12511 high_water_mark_reset: The percentage value for DHCP range usage
12512 after which an alarm will be reset.
12513 low_water_mark: The percentage value for DHCP range usage below
12514 which an alarm will be active.
12515 low_water_mark_reset: The percentage value for DHCP range usage
12516 below which an alarm will be reset.
12517 name: The name of the Microsoft DHCP superscope.
12518 network_view: The name of the network view in which the
12519 superscope resides.
12520 ranges: The list of DHCP ranges that are associated with the
12521 superscope.
12522 static_hosts: The number of static DHCP addresses configured in
12523 DHCP range objects that belong to the superscope.
12524 total_hosts: The total number of DHCP addresses configured in
12525 DHCP range objects that belong to the superscope.
12526 """
12527 _infoblox_type = 'mssuperscope'
12528 _fields = ['comment', 'dhcp_utilization', 'dhcp_utilization_status',
12529 'disable', 'dynamic_hosts', 'extattrs', 'high_water_mark',
12530 'high_water_mark_reset', 'low_water_mark',
12531 'low_water_mark_reset', 'name', 'network_view', 'ranges',
12532 'static_hosts', 'total_hosts']
12533 _search_for_update_fields = ['name', 'network_view']
12534 _updateable_search_fields = ['comment', 'name', 'network_view']
12535 _all_searchable_fields = ['comment', 'name', 'network_view']
12536 _return_fields = ['disable', 'extattrs', 'name', 'network_view']
12537 _remap = {}
12538 _shadow_fields = ['_ref']
12539
12540
12541 class Namedacl(InfobloxObject):
12542 """ Namedacl: Named ACL object.
12543 Corresponds to WAPI object 'namedacl'
12544
12545 A named ACL (Access Control List) is a list of IPv4/IPv6 addresses,
12546 networks, TSIG-based anonymous access controls, and other named
12547 ACLs, to which you can grant or deny permission for operations such
12548 as dynamic DNS updates or zone transfers.
12549
12550 Attributes:
12551 access_list: The access control list of IPv4/IPv6 addresses,
12552 networks, TSIG-based anonymous access controls, and other
12553 named ACLs.
12554 comment: Comment for the named ACL; maximum 256 characters.
12555 exploded_access_list: The exploded access list for the named
12556 ACL. This list displays all the access control entries in a
12557 named ACL and its nested named ACLs, if applicable.
12558 extattrs: Extensible attributes associated with the object.For
12559 valid values for extensible attributes, see the following
12560 information.
12561 name: The name of the named ACL.
12562 """
12563 _infoblox_type = 'namedacl'
12564 _fields = ['access_list', 'comment', 'exploded_access_list', 'extattrs',
12565 'name']
12566 _search_for_update_fields = ['name']
12567 _updateable_search_fields = ['comment', 'name']
12568 _all_searchable_fields = ['comment', 'name']
12569 _return_fields = ['comment', 'extattrs', 'name']
12570 _remap = {}
12571 _shadow_fields = ['_ref']
12572
12573 _custom_field_processing = {
12574 'access_list': Addressac.from_dict,
12575 'exploded_access_list': Addressac.from_dict,
12576 }
12577
12578 def validate_acl_items(self, *args, **kwargs):
12579 return self._call_func("validate_acl_items", *args, **kwargs)
12580
12581
12582 class Natgroup(InfobloxObject):
12583 """ Natgroup: Network Address Translation group object.
12584 Corresponds to WAPI object 'natgroup'
12585
12586 NAT groups are necessary if the Grid master is behind a NAT device
12587 and there are members behind both side of the NAT device. Any member
12588 on the same side as the master goes into the same NAT group as the
12589 master and uses its interface address for Grid communication. Grid
12590 members on the other side of that NAT device do not go into the same
12591 NAT group as the master and use the master's NAT address for Grid
12592 communication.
12593
12594 Attributes:
12595 comment: The NAT group descriptive comment.
12596 name: The name of a NAT group object.
12597 """
12598 _infoblox_type = 'natgroup'
12599 _fields = ['comment', 'name']
12600 _search_for_update_fields = ['name']
12601 _updateable_search_fields = ['comment', 'name']
12602 _all_searchable_fields = ['comment', 'name']
12603 _return_fields = ['comment', 'name']
12604 _remap = {}
12605 _shadow_fields = ['_ref']
12606
12607
12608 class NetworkDiscovery(InfobloxObject):
12609 """ NetworkDiscovery: Network discovery object.
12610 Corresponds to WAPI object 'network_discovery'
12611
12612 This object can be used to control the network discovery process.
12613
12614 Attributes:
12615 """
12616 _infoblox_type = 'network_discovery'
12617 _fields = []
12618 _search_for_update_fields = []
12619 _updateable_search_fields = []
12620 _all_searchable_fields = []
12621 _return_fields = []
12622 _remap = {}
12623 _shadow_fields = ['_ref']
12624
12625 def clear_discovery_data(self, *args, **kwargs):
12626 return self._call_func("clear_discovery_data", *args, **kwargs)
12627
12628
12629 class Networkuser(InfobloxObject):
12630 """ Networkuser: Network User object.
12631 Corresponds to WAPI object 'networkuser'
12632
12633 The DHCP Network User object provides information about Active
12634 Directory users such as user session for a specific IP address,
12635 domain, login and logout timestamps.
12636
12637 Attributes:
12638 address: The IPv4 Address or IPv6 Address of the Network User.
12639 address_object: The reference of the IPAM IPv4Address or
12640 IPv6Address object describing the address of the Network
12641 User.
12642 data_source: The Network User data source.
12643 data_source_ip: The Network User data source IPv4 Address or
12644 IPv6 Address or FQDN address.
12645 domainname: The domain name of the Network User.
12646 first_seen_time: The first seen timestamp of the Network User.
12647 guid: The group identifier of the Network User.
12648 last_seen_time: The last seen timestamp of the Network User.
12649 last_updated_time: The last updated timestamp of the Network
12650 User.
12651 logon_id: The logon identifier of the Network User.
12652 logout_time: The logout timestamp of the Network User.
12653 name: The name of the Network User.
12654 network: The reference to the network to which the Network User
12655 belongs.
12656 network_view: The name of the network view in which this Network
12657 User resides.
12658 user_status: The status of the Network User.
12659 """
12660 _infoblox_type = 'networkuser'
12661 _fields = ['address', 'address_object', 'data_source', 'data_source_ip',
12662 'domainname', 'first_seen_time', 'guid', 'last_seen_time',
12663 'last_updated_time', 'logon_id', 'logout_time', 'name',
12664 'network', 'network_view', 'user_status']
12665 _search_for_update_fields = ['address', 'domainname', 'name',
12666 'network_view', 'user_status']
12667 _updateable_search_fields = ['address', 'domainname', 'guid', 'logon_id',
12668 'name', 'network_view']
12669 _all_searchable_fields = ['address', 'domainname', 'guid', 'logon_id',
12670 'name', 'network_view', 'user_status']
12671 _return_fields = ['address', 'domainname', 'name', 'network_view',
12672 'user_status']
12673 _remap = {}
12674 _shadow_fields = ['_ref']
12675
12676
12677 class NetworkView(InfobloxObject):
12678 """ NetworkView: DHCP NetworkView object.
12679 Corresponds to WAPI object 'networkview'
12680
12681 A network view is a single routing domain with its own networks and
12682 shared networks. A network view can contain both IPv4 and IPv6
12683 networks. All networks must belong to a network view.
12684
12685 Attributes:
12686 associated_dns_views: The list of DNS views associated with this
12687 network view.
12688 associated_members: The list of members associated with a
12689 network view.
12690 cloud_info: Structure containing all cloud API related
12691 information for this object.
12692 comment: Comment for the network view; maximum 256 characters.
12693 ddns_dns_view: DNS views that will receive the updates if you
12694 enable the appliance to send updates to Grid members.
12695 ddns_zone_primaries: An array of Ddns Zone Primary structs that
12696 lists the information of primary zone to wich DDNS updates
12697 should be sent.
12698 extattrs: Extensible attributes associated with the object.For
12699 valid values for extensible attributes, see the following
12700 information.
12701 internal_forward_zones: The list of linked authoritative DNS
12702 zones.
12703 is_default: The NIOS appliance provides one default network
12704 view. You can rename the default view and change its
12705 settings, but you cannot delete it. There must always be at
12706 least one network view in the appliance.
12707 mgm_private: This field controls whether this object is
12708 synchronized with the Multi-Grid Master. If this field is
12709 set to True, objects are not synchronized.
12710 ms_ad_user_data: The Microsoft Active Directory user related
12711 information.
12712 name: Name of the network view.
12713 remote_forward_zones: The list of forward-mapping zones to which
12714 the DHCP server sends the updates.
12715 remote_reverse_zones: The list of reverse-mapping zones to which
12716 the DHCP server sends the updates.
12717 """
12718 _infoblox_type = 'networkview'
12719 _fields = ['associated_dns_views', 'associated_members', 'cloud_info',
12720 'comment', 'ddns_dns_view', 'ddns_zone_primaries', 'extattrs',
12721 'internal_forward_zones', 'is_default', 'mgm_private',
12722 'ms_ad_user_data', 'name', 'remote_forward_zones',
12723 'remote_reverse_zones']
12724 _search_for_update_fields = ['is_default', 'name']
12725 _updateable_search_fields = ['comment', 'name']
12726 _all_searchable_fields = ['comment', 'is_default', 'name']
12727 _return_fields = ['comment', 'extattrs', 'is_default', 'name']
12728 _remap = {}
12729 _shadow_fields = ['_ref']
12730
12731 _custom_field_processing = {
12732 'associated_members': NetworkviewAssocmember.from_dict,
12733 'ddns_zone_primaries': Dhcpddns.from_dict,
12734 'remote_forward_zones': Remoteddnszone.from_dict,
12735 'remote_reverse_zones': Remoteddnszone.from_dict,
12736 }
12737
12738
12739 class NotificationRestEndpoint(InfobloxObject):
12740 """ NotificationRestEndpoint: The notification RESTful endpoint
12741 object.
12742 Corresponds to WAPI object 'notification:rest:endpoint'
12743
12744 The notification REST endpoint object represents settings of
12745 particular REST API endpoint.
12746
12747 Attributes:
12748 client_certificate_subject: The client certificate subject of a
12749 notification REST endpoint.
12750 client_certificate_token: The token returned by the uploadinit
12751 function call in object fileop for a notification REST
12752 endpoit client certificate.
12753 client_certificate_valid_from: The timestamp when client
12754 certificate for a notification REST endpoint was created.
12755 client_certificate_valid_to: The timestamp when client
12756 certificate for a notification REST endpoint expires.
12757 comment: The comment of a notification REST endpoint.
12758 extattrs: Extensible attributes associated with the object.For
12759 valid values for extensible attributes, see the following
12760 information.
12761 log_level: The log level for a notification REST endpoint.
12762 name: The name of a notification REST endpoint.
12763 outbound_member_type: The outbound member which will generate an
12764 event.
12765 outbound_members: The list of members for outbound events.
12766 password: The password of the user that can log into a
12767 notification REST endpoint.
12768 server_cert_validation: The server certificate validation type.
12769 sync_disabled: Determines if the sync process is disabled for a
12770 notification REST endpoint.
12771 template_instance: The notification REST template instance. The
12772 parameters of REST API endpoint template instance are
12773 prohibited to change.
12774 timeout: The timeout of session management (in seconds).
12775 uri: The URI of a notification REST endpoint.
12776 username: The username of the user that can log into a
12777 notification REST endpoint.
12778 vendor_identifier: The vendor identifier.
12779 wapi_user_name: The user name for WAPI integration.
12780 wapi_user_password: The user password for WAPI integration.
12781 """
12782 _infoblox_type = 'notification:rest:endpoint'
12783 _fields = ['client_certificate_subject', 'client_certificate_token',
12784 'client_certificate_valid_from', 'client_certificate_valid_to',
12785 'comment', 'extattrs', 'log_level', 'name',
12786 'outbound_member_type', 'outbound_members', 'password',
12787 'server_cert_validation', 'sync_disabled', 'template_instance',
12788 'timeout', 'uri', 'username', 'vendor_identifier',
12789 'wapi_user_name', 'wapi_user_password']
12790 _search_for_update_fields = ['name', 'outbound_member_type', 'uri']
12791 _updateable_search_fields = ['log_level', 'name', 'outbound_member_type',
12792 'uri', 'vendor_identifier']
12793 _all_searchable_fields = ['log_level', 'name', 'outbound_member_type',
12794 'uri', 'vendor_identifier']
12795 _return_fields = ['extattrs', 'name', 'outbound_member_type', 'uri']
12796 _remap = {}
12797 _shadow_fields = ['_ref']
12798
12799 def clear_outbound_worker_log(self, *args, **kwargs):
12800 return self._call_func("clear_outbound_worker_log", *args, **kwargs)
12801
12802 def test_connection(self, *args, **kwargs):
12803 return self._call_func("test_connection", *args, **kwargs)
12804
12805
12806 class NotificationRestTemplate(InfobloxObject):
12807 """ NotificationRestTemplate: The notification REST template object.
12808 Corresponds to WAPI object 'notification:rest:template'
12809
12810 The notification REST template object represents settings of
12811 particular REST API template.
12812
12813 Attributes:
12814 action_name: The action name.
12815 added_on: The time stamp when a template was added.
12816 comment: The comment for this REST API template.
12817 content: The JSON formatted content of a template. The data
12818 passed by content creates parameters for a template.
12819 event_type: The event type.
12820 name: The name of a notification REST template.
12821 outbound_type: The outbound type for the template.
12822 parameters: The notification REST template parameters.
12823 template_type: The template type.
12824 vendor_identifier: The vendor identifier.
12825 """
12826 _infoblox_type = 'notification:rest:template'
12827 _fields = ['action_name', 'added_on', 'comment', 'content', 'event_type',
12828 'name', 'outbound_type', 'parameters', 'template_type',
12829 'vendor_identifier']
12830 _search_for_update_fields = ['name']
12831 _updateable_search_fields = ['name']
12832 _all_searchable_fields = ['name', 'outbound_type']
12833 _return_fields = ['content', 'name']
12834 _remap = {}
12835 _shadow_fields = ['_ref']
12836
12837 _custom_field_processing = {
12838 'parameters': NotificationRestTemplateparameter.from_dict,
12839 }
12840
12841
12842 class NotificationRule(InfobloxObject):
12843 """ NotificationRule: Notification rule object.
12844 Corresponds to WAPI object 'notification:rule'
12845
12846 Notification rule specifies the server to which this rule is
12847 applicable, certain conditions (i.e. triggers), and the action to be
12848 taken when the rule is hit. It also specifies where this rule engine
12849 is configured to be run.
12850
12851 Attributes:
12852 all_members: Determines whether the notification rule is applied
12853 on all members or not. When this is set to False, the
12854 notification rule is applied only on selected_members.
12855 comment: The notification rule descriptive comment.
12856 disable: Determines whether a notification rule is disabled or
12857 not. When this is set to False, the notification rule is
12858 enabled.
12859 enable_event_deduplication: Determines whether the notification
12860 rule for event deduplication is enabled. Note that to enable
12861 event deduplication, you must set at least one deduplication
12862 field.
12863 enable_event_deduplication_log: Determines whether the
12864 notification rule for the event deduplication syslog is
12865 enabled.
12866 event_deduplication_fields: The list of fields that must be used
12867 in the notification rule for event deduplication.
12868 event_deduplication_lookback_period: The lookback period for the
12869 notification rule for event deduplication.
12870 event_priority: Event priority.
12871 event_type: The notification rule event type.
12872 expression_list: The notification rule expression list.
12873 name: The notification rule name.
12874 notification_action: The notification rule action is applied if
12875 expression list evaluates to True.
12876 notification_target: The notification target.
12877 publish_settings: The publish settings.
12878 scheduled_event: Schedule setting that must be specified if
12879 event_type is SCHEDULE.
12880 selected_members: The list of the members on which the
12881 notification rule is applied.
12882 template_instance: The notification REST template instance.
12883 use_publish_settings: Use flag for: publish_settings
12884 """
12885 _infoblox_type = 'notification:rule'
12886 _fields = ['all_members', 'comment', 'disable',
12887 'enable_event_deduplication', 'enable_event_deduplication_log',
12888 'event_deduplication_fields',
12889 'event_deduplication_lookback_period', 'event_priority',
12890 'event_type', 'expression_list', 'name', 'notification_action',
12891 'notification_target', 'publish_settings', 'scheduled_event',
12892 'selected_members', 'template_instance', 'use_publish_settings']
12893 _search_for_update_fields = ['event_type', 'name', 'notification_action',
12894 'notification_target']
12895 _updateable_search_fields = ['comment', 'event_priority', 'event_type',
12896 'notification_action', 'notification_target']
12897 _all_searchable_fields = ['comment', 'event_priority', 'event_type',
12898 'name', 'notification_action',
12899 'notification_target']
12900 _return_fields = ['event_type', 'name', 'notification_action',
12901 'notification_target']
12902 _remap = {}
12903 _shadow_fields = ['_ref']
12904
12905 _custom_field_processing = {
12906 'expression_list': NotificationRuleexpressionop.from_dict,
12907 }
12908
12909 def trigger_outbound(self, *args, **kwargs):
12910 return self._call_func("trigger_outbound", *args, **kwargs)
12911
12912
12913 class Nsgroup(InfobloxObject):
12914 """ Nsgroup: DNS name server group object.
12915 Corresponds to WAPI object 'nsgroup'
12916
12917 A name server group is a collection of one or more primary DNS
12918 servers and one or more secondary DNS servers. Grouping a commonly
12919 used set of primary and secondary DNS servers together simplifies
12920 zone creation, allowing you to specify a single name server group
12921 instead of specifying multiple name servers individually.
12922
12923 Attributes:
12924 comment: Comment for the name server group; maximum 256
12925 characters.
12926 extattrs: Extensible attributes associated with the object.For
12927 valid values for extensible attributes, see the following
12928 information.
12929 external_primaries: The list of external primary servers.
12930 external_secondaries: The list of external secondary servers.
12931 grid_primary: The grid primary servers for this group.
12932 grid_secondaries: The list with Grid members that are secondary
12933 servers for this group.
12934 is_grid_default: Determines if this name server group is the
12935 Grid default.
12936 is_multimaster: Determines if the "multiple DNS primaries"
12937 feature is enabled for the group.
12938 name: The name of this name server group.
12939 use_external_primary: This flag controls whether the group is
12940 using an external primary. Note that modification of this
12941 field requires passing values for "grid_secondaries" and
12942 "external_primaries".
12943 """
12944 _infoblox_type = 'nsgroup'
12945 _fields = ['comment', 'extattrs', 'external_primaries',
12946 'external_secondaries', 'grid_primary', 'grid_secondaries',
12947 'is_grid_default', 'is_multimaster', 'name',
12948 'use_external_primary']
12949 _search_for_update_fields = ['name']
12950 _updateable_search_fields = ['comment', 'name']
12951 _all_searchable_fields = ['comment', 'name']
12952 _return_fields = ['comment', 'extattrs', 'name']
12953 _remap = {}
12954 _shadow_fields = ['_ref']
12955
12956 _custom_field_processing = {
12957 'external_primaries': Extserver.from_dict,
12958 'external_secondaries': Extserver.from_dict,
12959 'grid_primary': Memberserver.from_dict,
12960 'grid_secondaries': Memberserver.from_dict,
12961 }
12962
12963
12964 class NsgroupDelegation(InfobloxObject):
12965 """ NsgroupDelegation: NS group delegation object.
12966 Corresponds to WAPI object 'nsgroup:delegation'
12967
12968 The NS group delegation object provides delegation servers
12969 configuration for delegated zones. When you configure a name server
12970 group, you can now create a set of external name servers as a
12971 delegation name server group and assign it to delegated zones.
12972 Specifying a single delegation name server group instead of
12973 configuring multiple name servers individually for each delegated
12974 zones can significantly reduce configuration efforts.
12975
12976 Attributes:
12977 comment: The comment for the delegated NS group.
12978 delegate_to: The list of delegated servers for the delegated NS
12979 group.
12980 extattrs: Extensible attributes associated with the object.For
12981 valid values for extensible attributes, see the following
12982 information.
12983 name: The name of the delegated NS group.
12984 """
12985 _infoblox_type = 'nsgroup:delegation'
12986 _fields = ['comment', 'delegate_to', 'extattrs', 'name']
12987 _search_for_update_fields = ['name']
12988 _updateable_search_fields = ['comment', 'name']
12989 _all_searchable_fields = ['comment', 'name']
12990 _return_fields = ['delegate_to', 'extattrs', 'name']
12991 _remap = {}
12992 _shadow_fields = ['_ref']
12993
12994 _custom_field_processing = {
12995 'delegate_to': Extserver.from_dict,
12996 }
12997
12998
12999 class NsgroupForwardingmember(InfobloxObject):
13000 """ NsgroupForwardingmember: Forwarding Member Name Server Group
13001 object.
13002 Corresponds to WAPI object 'nsgroup:forwardingmember'
13003
13004 The Forwarding Member Name Server Group provides forwarding servers
13005 configuration for forward zones.
13006
13007 Attributes:
13008 comment: Comment for the Forwarding Member Name Server Group;
13009 maximum 256 characters.
13010 extattrs: Extensible attributes associated with the object.For
13011 valid values for extensible attributes, see the following
13012 information.
13013 forwarding_servers: The list of forwarding member servers.
13014 name: The name of the Forwarding Member Name Server Group.
13015 """
13016 _infoblox_type = 'nsgroup:forwardingmember'
13017 _fields = ['comment', 'extattrs', 'forwarding_servers', 'name']
13018 _search_for_update_fields = ['name']
13019 _updateable_search_fields = ['comment', 'name']
13020 _all_searchable_fields = ['comment', 'name']
13021 _return_fields = ['extattrs', 'forwarding_servers', 'name']
13022 _remap = {}
13023 _shadow_fields = ['_ref']
13024
13025 _custom_field_processing = {
13026 'forwarding_servers': Forwardingmemberserver.from_dict,
13027 }
13028
13029
13030 class NsgroupForwardstubserver(InfobloxObject):
13031 """ NsgroupForwardstubserver: Forward Stub Server Name Server Group
13032 object.
13033 Corresponds to WAPI object 'nsgroup:forwardstubserver'
13034
13035 The Forward Stub Server Name Server Group allows configuring
13036 external servers for Forward Zone and Stub Zone.
13037
13038 Attributes:
13039 comment: Comment for the Forward Stub Server Name Server Group;
13040 maximum 256 characters.
13041 extattrs: Extensible attributes associated with the object.For
13042 valid values for extensible attributes, see the following
13043 information.
13044 external_servers: The list of external servers.
13045 name: The name of this Forward Stub Server Name Server Group.
13046 """
13047 _infoblox_type = 'nsgroup:forwardstubserver'
13048 _fields = ['comment', 'extattrs', 'external_servers', 'name']
13049 _search_for_update_fields = ['name']
13050 _updateable_search_fields = ['comment', 'name']
13051 _all_searchable_fields = ['comment', 'name']
13052 _return_fields = ['extattrs', 'external_servers', 'name']
13053 _remap = {}
13054 _shadow_fields = ['_ref']
13055
13056 _custom_field_processing = {
13057 'external_servers': Extserver.from_dict,
13058 }
13059
13060
13061 class NsgroupStubmember(InfobloxObject):
13062 """ NsgroupStubmember: Stub Member Name Server Group object.
13063 Corresponds to WAPI object 'nsgroup:stubmember'
13064
13065 The Stub Member Name Server Group provides stub servers
13066 configuration for stub zones.
13067
13068 Attributes:
13069 comment: Comment for the Stub Member Name Server Group; maximum
13070 256 characters.
13071 extattrs: Extensible attributes associated with the object.For
13072 valid values for extensible attributes, see the following
13073 information.
13074 name: The name of the Stub Member Name Server Group.
13075 stub_members: The Grid member servers of this stub zone.Note
13076 that the lead/stealth/grid_replicate/
13077 preferred_primaries/override_preferred_primaries fields of
13078 the struct will be ignored when set in this field.
13079 """
13080 _infoblox_type = 'nsgroup:stubmember'
13081 _fields = ['comment', 'extattrs', 'name', 'stub_members']
13082 _search_for_update_fields = ['name']
13083 _updateable_search_fields = ['comment', 'name']
13084 _all_searchable_fields = ['comment', 'name']
13085 _return_fields = ['extattrs', 'name']
13086 _remap = {}
13087 _shadow_fields = ['_ref']
13088
13089 _custom_field_processing = {
13090 'stub_members': Memberserver.from_dict,
13091 }
13092
13093
13094 class Orderedranges(InfobloxObject):
13095 """ Orderedranges: Ordered DHCP ranges object.
13096 Corresponds to WAPI object 'orderedranges'
13097
13098 An ordered DHCP ranges object contains an ordered list of DHCP range
13099 objects that belong to a network.
13100
13101 Note that DHCP range object that have server association type set to
13102 'NONE' are excluded from ordered DHCP ranges object.
13103
13104 Attributes:
13105 network: The reference to the network that contains ranges.
13106 ranges: The ordered list of references to ranges.
13107 """
13108 _infoblox_type = 'orderedranges'
13109 _fields = ['network', 'ranges']
13110 _search_for_update_fields = ['network']
13111 _updateable_search_fields = []
13112 _all_searchable_fields = ['network']
13113 _return_fields = ['network', 'ranges']
13114 _remap = {}
13115 _shadow_fields = ['_ref']
13116
13117
13118 class Orderedresponsepolicyzones(InfobloxObject):
13119 """ Orderedresponsepolicyzones: Ordered Response Policy Zones
13120 object.
13121 Corresponds to WAPI object 'orderedresponsepolicyzones'
13122
13123 An ordered list of Response Policy Zones in a DNS view. Server will
13124 reject zones that are disabled or zones without primary name server
13125 assigned.
13126
13127 Attributes:
13128 rp_zones: An ordered list of Response Policy Zone names.
13129 view: The DNS View name.
13130 """
13131 _infoblox_type = 'orderedresponsepolicyzones'
13132 _fields = ['rp_zones', 'view']
13133 _search_for_update_fields = ['view']
13134 _updateable_search_fields = ['view']
13135 _all_searchable_fields = ['view']
13136 _return_fields = ['view']
13137 _remap = {}
13138 _shadow_fields = ['_ref']
13139
13140
13141 class OutboundCloudclient(InfobloxObject):
13142 """ OutboundCloudclient: OutBoundCloudClient object.
13143 Corresponds to WAPI object 'outbound:cloudclient'
13144
13145 You can use the outbound Cloud Client object to configure the
13146 detection and authentication of domains in the Cloud, and then apply
13147 them to on-premises DNS firewall RPZ zones within a configurable
13148 time frame.
13149
13150 Attributes:
13151 enable: Determines whether the OutBound Cloud Client is enabled.
13152 grid_member: The Grid member where our outbound is running.
13153 interval: The time interval (in seconds) for requesting newly
13154 detected domains by the Infoblox Outbound Cloud Client and
13155 applying them to the list of configured RPZs.
13156 outbound_cloud_client_events: List of event types to request
13157 """
13158 _infoblox_type = 'outbound:cloudclient'
13159 _fields = ['enable', 'grid_member', 'interval',
13160 'outbound_cloud_client_events']
13161 _search_for_update_fields = []
13162 _updateable_search_fields = ['grid_member']
13163 _all_searchable_fields = ['grid_member']
13164 _return_fields = ['enable', 'interval']
13165 _remap = {}
13166 _shadow_fields = ['_ref']
13167
13168 _custom_field_processing = {
13169 'outbound_cloud_client_events': OutboundCloudclientEvent.from_dict,
13170 }
13171
13172
13173 class ParentalcontrolAvp(InfobloxObject):
13174 """ ParentalcontrolAvp: The parental control AVP object.
13175 Corresponds to WAPI object 'parentalcontrol:avp'
13176
13177 The accounting attribute value pair object is used to extract
13178 accounting information from accounting protocols logs.
13179
13180 Attributes:
13181 comment: The comment for the AVP.
13182 domain_types: The list of domains applicable to AVP.
13183 is_restricted: Determines if AVP is restricted to domains.
13184 name: The name of AVP.
13185 type: The type of AVP as per RFC 2865/2866.
13186 user_defined: Determines if AVP was defined by user.
13187 value_type: The type of value.
13188 vendor_id: The vendor ID as per RFC 2865/2866.
13189 vendor_type: The vendor type as per RFC 2865/2866.
13190 """
13191 _infoblox_type = 'parentalcontrol:avp'
13192 _fields = ['comment', 'domain_types', 'is_restricted', 'name', 'type',
13193 'user_defined', 'value_type', 'vendor_id', 'vendor_type']
13194 _search_for_update_fields = ['name']
13195 _updateable_search_fields = ['comment', 'name', 'vendor_id', 'vendor_type']
13196 _all_searchable_fields = ['comment', 'name', 'vendor_id', 'vendor_type']
13197 _return_fields = ['name', 'type', 'value_type']
13198 _remap = {}
13199 _shadow_fields = ['_ref']
13200
13201
13202 class ParentalcontrolBlockingpolicy(InfobloxObject):
13203 """ ParentalcontrolBlockingpolicy: Parental control blocking policy
13204 object.
13205 Corresponds to WAPI object 'parentalcontrol:blockingpolicy'
13206
13207 This object represents a set of parental control properties for
13208 blocking policy.
13209
13210 Attributes:
13211 name: The name of the blocking policy.
13212 value: The 32 bit hex value of the blocking policy.
13213 """
13214 _infoblox_type = 'parentalcontrol:blockingpolicy'
13215 _fields = ['name', 'value']
13216 _search_for_update_fields = ['name', 'value']
13217 _updateable_search_fields = ['name', 'value']
13218 _all_searchable_fields = ['name', 'value']
13219 _return_fields = ['name', 'value']
13220 _remap = {}
13221 _shadow_fields = ['_ref']
13222
13223
13224 class ParentalcontrolSubscriber(InfobloxObject):
13225 """ ParentalcontrolSubscriber: The parental control subscriber
13226 object.
13227 Corresponds to WAPI object 'parentalcontrol:subscriber'
13228
13229 The parental control subscriber properties contains user defined
13230 RADIUS subscriber information which will be used by DNS/RPZ for
13231 reporting and logging violations.
13232
13233 Attributes:
13234 alt_subscriber_id: The name of AVP to be used as an alternate
13235 subscriber ID for fixed lines.
13236 alt_subscriber_id_regexp: A character string to control aspects
13237 of rewriting of the fields.
13238 alt_subscriber_id_subexpression: The subexpression indicates
13239 which subexpression to extract. If zero, then the text
13240 matching the entire regular expression is extracted. If non-
13241 zero, then the regex must contain at least that many sub-
13242 expression groups. It takes values from 0 to 8.
13243 ancillaries: The list of ordered AVP Ancillary Fields.
13244 cat_acctname: Category content account name using the
13245 categorization service.
13246 cat_password: Category content account password to access the
13247 categorization service.
13248 cat_update_frequency: Category content updates every number of
13249 hours.
13250 category_url: Category content vendor url to download category
13251 data from and upload feedback to, configure for parental
13252 control.
13253 enable_mgmt_only_nas: Determines if NAS RADIUS traffic is
13254 accepted over MGMT only.
13255 enable_parental_control: Determines if parental control is
13256 enabled.
13257 interim_accounting_interval: The time for collector to be fully
13258 populated.Valid values are from 1 to 65535.
13259 ip_anchors: The ordered list of IP Anchors AVPs. The list
13260 content cannot be changed, but the order of elements.
13261 ip_space_disc_regexp: A character string to control aspects of
13262 rewriting of the fields.
13263 ip_space_disc_subexpression: The subexpression indicates which
13264 subexpression to extract. If zero, then the text matching
13265 the entire regular expression is extracted. If non-zero,
13266 then the regex must contain at least that many sub-
13267 expression groups. It takes values from 0 to 8.
13268 ip_space_discriminator: The name of AVP to be used as IP address
13269 discriminator.
13270 local_id: The name of AVP to be used as local ID.
13271 local_id_regexp: A character string to control aspects of
13272 rewriting of the fields.
13273 local_id_subexpression: The subexpression indicates which
13274 subexpression to extract. If zero, then the text matching
13275 the entire regular expression is extracted. If non-zero,
13276 then the regex must contain at least that many sub-
13277 expression groups. It takes values from 0 to 8.
13278 log_guest_lookups:
13279 nas_context_info: NAS contextual information AVP.
13280 pc_zone_name: The SOA to store parental control records.
13281 proxy_password: Proxy server password used for authentication.
13282 proxy_url: Proxy url to download category data from and upload
13283 feedback to, configure for parental control. The default
13284 value 'None' is no longer valid as it match url regex
13285 pattern "^http|https://". The new default value does not get
13286 saved in database, but rather used for comparision with
13287 object created in unit test cases.
13288 proxy_username: Proxy server username used for authentication.
13289 subscriber_id: The name of AVP to be used as a subscriber.
13290 subscriber_id_regexp: A character string to control aspects of
13291 rewriting of the fields.
13292 subscriber_id_subexpression: The subexpression indicates which
13293 subexpression to extract. If zero, then the text matching
13294 the entire regular expression is extracted. If non-zero,
13295 then the regex must contain at least that many sub-
13296 expression groups. It takes values from 0 to 8.
13297 """
13298 _infoblox_type = 'parentalcontrol:subscriber'
13299 _fields = ['alt_subscriber_id', 'alt_subscriber_id_regexp',
13300 'alt_subscriber_id_subexpression', 'ancillaries',
13301 'cat_acctname', 'cat_password', 'cat_update_frequency',
13302 'category_url', 'enable_mgmt_only_nas',
13303 'enable_parental_control', 'interim_accounting_interval',
13304 'ip_anchors', 'ip_space_disc_regexp',
13305 'ip_space_disc_subexpression', 'ip_space_discriminator',
13306 'local_id', 'local_id_regexp', 'local_id_subexpression',
13307 'log_guest_lookups', 'nas_context_info', 'pc_zone_name',
13308 'proxy_password', 'proxy_url', 'proxy_username',
13309 'subscriber_id', 'subscriber_id_regexp',
13310 'subscriber_id_subexpression']
13311 _search_for_update_fields = ['alt_subscriber_id', 'local_id',
13312 'subscriber_id']
13313 _updateable_search_fields = ['alt_subscriber_id', 'local_id',
13314 'subscriber_id']
13315 _all_searchable_fields = ['alt_subscriber_id', 'local_id', 'subscriber_id']
13316 _return_fields = ['alt_subscriber_id', 'local_id', 'subscriber_id']
13317 _remap = {}
13318 _shadow_fields = ['_ref']
13319
13320
13321 class ParentalcontrolSubscriberrecord(InfobloxObject):
13322 """ ParentalcontrolSubscriberrecord: Parental control subscriber
13323 record object.
13324 Corresponds to WAPI object 'parentalcontrol:subscriberrecord'
13325
13326 This object represents a set of parental control properties for
13327 subscriber record.
13328
13329 Attributes:
13330 accounting_session_id: accounting_session_id
13331 alt_ip_addr: alt_ip_addr
13332 ans0: ans0
13333 ans1: ans1
13334 ans2: ans2
13335 ans3: ans3
13336 ans4: ans4
13337 black_list: black_list
13338 bwflag: bwflag
13339 dynamic_category_policy: dynamic_category_policy
13340 flags: flags
13341 ip_addr: ip_addr
13342 ipsd: ipsd
13343 localid: localid
13344 nas_contextual: nas_contextual
13345 parental_control_policy: parental_control_policy
13346 prefix: prefix
13347 proxy_all: proxy_all
13348 site: site
13349 subscriber_id: subscriber_id
13350 subscriber_secure_policy: subscriber_secure_policy
13351 unknown_category_policy: unknown_category_policy
13352 white_list: white_list
13353 wpc_category_policy: wpc_category_policy
13354 """
13355 _infoblox_type = 'parentalcontrol:subscriberrecord'
13356 _fields = ['accounting_session_id', 'alt_ip_addr', 'ans0', 'ans1', 'ans2',
13357 'ans3', 'ans4', 'black_list', 'bwflag',
13358 'dynamic_category_policy', 'flags', 'ip_addr', 'ipsd',
13359 'localid', 'nas_contextual', 'parental_control_policy',
13360 'prefix', 'proxy_all', 'site', 'subscriber_id',
13361 'subscriber_secure_policy', 'unknown_category_policy',
13362 'white_list', 'wpc_category_policy']
13363 _search_for_update_fields = ['ip_addr', 'ipsd', 'localid', 'prefix',
13364 'site', 'subscriber_id']
13365 _updateable_search_fields = ['ip_addr', 'ipsd', 'localid', 'prefix',
13366 'site', 'subscriber_id']
13367 _all_searchable_fields = ['ip_addr', 'ipsd', 'localid', 'prefix', 'site',
13368 'subscriber_id']
13369 _return_fields = ['accounting_session_id', 'ip_addr', 'ipsd', 'localid',
13370 'prefix', 'site', 'subscriber_id']
13371 _remap = {}
13372 _shadow_fields = ['_ref']
13373
13374
13375 class ParentalcontrolSubscribersite(InfobloxObject):
13376 """ ParentalcontrolSubscribersite: Subscriber site parental control
13377 properties object.
13378 Corresponds to WAPI object 'parentalcontrol:subscribersite'
13379
13380 This object represents a set of parental control properties for
13381 subscriber site.
13382
13383 Attributes:
13384 abss: The list of ABS for the site.
13385 block_size: The size of the Deterministic NAT block-size.
13386 blocking_ipv4_vip1: The IPv4 Address of the blocking server.
13387 blocking_ipv4_vip2: The IPv4 Address of the blocking server.
13388 blocking_ipv6_vip1: The IPv6 Address of the blocking server.
13389 blocking_ipv6_vip2: The IPv6 Address of the blocking server.
13390 comment: The human readable comment for the site.
13391 dca_sub_bw_list: Enable/disable the DCA subscriber B/W list
13392 support.
13393 dca_sub_query_count: Enable/disable the DCA subscriber query
13394 count.
13395 extattrs: Extensible attributes associated with the object.For
13396 valid values for extensible attributes, see the following
13397 information.
13398 first_port: The start of the first Deterministic block.
13399 maximum_subscribers: The max number of subscribers for the site.
13400 It is used to configure the cache size.
13401 members: The list of members for the site.
13402 msps: The list of MSP for the site.
13403 name: The name of the site.
13404 nas_gateways: The list of accounting log servers.
13405 nas_port: The port number to reach the collector.
13406 proxy_rpz_passthru: Enables Proxy RPZ PASSTGHRU.
13407 spms: The list of SPM for the site.
13408 stop_anycast: Stop the anycast service when the subscriber
13409 service is in the interim state.
13410 strict_nat: Restrict subscriber cache entries to NATed clients.
13411 """
13412 _infoblox_type = 'parentalcontrol:subscribersite'
13413 _fields = ['abss', 'block_size', 'blocking_ipv4_vip1',
13414 'blocking_ipv4_vip2', 'blocking_ipv6_vip1',
13415 'blocking_ipv6_vip2', 'comment', 'dca_sub_bw_list',
13416 'dca_sub_query_count', 'extattrs', 'first_port',
13417 'maximum_subscribers', 'members', 'msps', 'name',
13418 'nas_gateways', 'nas_port', 'proxy_rpz_passthru', 'spms',
13419 'stop_anycast', 'strict_nat']
13420 _search_for_update_fields = ['name']
13421 _updateable_search_fields = ['blocking_ipv4_vip1', 'blocking_ipv4_vip2',
13422 'blocking_ipv6_vip1', 'blocking_ipv6_vip2',
13423 'comment']
13424 _all_searchable_fields = ['blocking_ipv4_vip1', 'blocking_ipv4_vip2',
13425 'blocking_ipv6_vip1', 'blocking_ipv6_vip2',
13426 'comment', 'name']
13427 _return_fields = ['block_size', 'dca_sub_bw_list', 'dca_sub_query_count',
13428 'extattrs', 'first_port', 'name', 'stop_anycast',
13429 'strict_nat']
13430 _remap = {}
13431 _shadow_fields = ['_ref']
13432
13433 _custom_field_processing = {
13434 'abss': ParentalcontrolAbs.from_dict,
13435 'members': ParentalcontrolSitemember.from_dict,
13436 'msps': ParentalcontrolMsp.from_dict,
13437 'nas_gateways': ParentalcontrolNasgateway.from_dict,
13438 'spms': ParentalcontrolSpm.from_dict,
13439 }
13440
13441
13442 class Permission(InfobloxObject):
13443 """ Permission: Permissions object.
13444 Corresponds to WAPI object 'permission'
13445
13446 Limited-access admin groups can access certain DHCP resources only
13447 if their administrative permissions are defined. By default, the
13448 appliance denies access when a limited-access admin group does not
13449 have defined permissions. You can grant admin groups read-only or
13450 read/write permission, or deny access by using this object.
13451
13452 Attributes:
13453 group: The name of the admin group this permission applies to.
13454 object: A reference to a WAPI object, which will be the object
13455 this permission applies to.
13456 permission: The type of permission.
13457 resource_type: The type of resource this permission applies to.
13458 If 'object' is set, the permission is going to apply to
13459 child objects of the specified type, for example if 'object'
13460 was set to an authoritative zone reference and
13461 'resource_type' was set to 'A', the permission would apply
13462 to A Resource Records within the specified zone.
13463 role: The name of the role this permission applies to.
13464 """
13465 _infoblox_type = 'permission'
13466 _fields = ['group', 'object', 'permission', 'resource_type', 'role']
13467 _search_for_update_fields = ['group', 'permission', 'resource_type',
13468 'role']
13469 _updateable_search_fields = ['group', 'object', 'permission',
13470 'resource_type', 'role']
13471 _all_searchable_fields = ['group', 'object', 'permission', 'resource_type',
13472 'role']
13473 _return_fields = ['group', 'permission', 'resource_type', 'role']
13474 _remap = {}
13475 _shadow_fields = ['_ref']
13476
13477
13478 class PxgridEndpoint(InfobloxObject):
13479 """ PxgridEndpoint: The PXGrid endpoint object.
13480 Corresponds to WAPI object 'pxgrid:endpoint'
13481
13482 The pxgrid endpoint object represents the settings of a particular
13483 PXGRID endpoint.
13484
13485 Attributes:
13486 address: The pxgrid endpoint IPv4 Address or IPv6 Address or
13487 Fully-Qualified Domain Name (FQDN)
13488 client_certificate_subject: The Cisco ISE client certificate
13489 subject.
13490 client_certificate_token: The token returned by the uploadinit
13491 function call in object fileop for Cisco ISE client
13492 certificate.
13493 client_certificate_valid_from: The pxgrid endpoint client
13494 certificate valid from.
13495 client_certificate_valid_to: The pxgrid endpoint client
13496 certificate valid to.
13497 comment: The Cisco ISE endpoint descriptive comment.
13498 disable: Determines whether a Cisco ISE endpoint is disabled or
13499 not. When this is set to False, the Cisco ISE endpoint is
13500 enabled.
13501 extattrs: Extensible attributes associated with the object.For
13502 valid values for extensible attributes, see the following
13503 information.
13504 log_level: The log level for a notification pxgrid endpoint.
13505 name: The name of the pxgrid endpoint.
13506 network_view: The pxgrid network view name.
13507 outbound_member_type: The outbound member that will generate
13508 events.
13509 outbound_members: The list of members for outbound events.
13510 publish_settings: The Cisco ISE publish settings.
13511 subscribe_settings: The Cisco ISE subscribe settings.
13512 template_instance: The Pxgrid template instance. You cannot
13513 change the parameters of the pxgrid endpoint template
13514 instance.
13515 timeout: The timeout of session management (in seconds).
13516 vendor_identifier: The vendor identifier.
13517 wapi_user_name: The user name for WAPI integration.
13518 wapi_user_password: The user password for WAPI integration.
13519 """
13520 _infoblox_type = 'pxgrid:endpoint'
13521 _fields = ['address', 'client_certificate_subject',
13522 'client_certificate_token', 'client_certificate_valid_from',
13523 'client_certificate_valid_to', 'comment', 'disable', 'extattrs',
13524 'log_level', 'name', 'network_view', 'outbound_member_type',
13525 'outbound_members', 'publish_settings', 'subscribe_settings',
13526 'template_instance', 'timeout', 'vendor_identifier',
13527 'wapi_user_name', 'wapi_user_password']
13528 _search_for_update_fields = ['address', 'name', 'outbound_member_type']
13529 _updateable_search_fields = ['address', 'comment', 'log_level', 'name',
13530 'network_view', 'outbound_member_type',
13531 'vendor_identifier']
13532 _all_searchable_fields = ['address', 'comment', 'log_level', 'name',
13533 'network_view', 'outbound_member_type',
13534 'vendor_identifier']
13535 _return_fields = ['address', 'disable', 'extattrs', 'name',
13536 'outbound_member_type']
13537 _remap = {}
13538 _shadow_fields = ['_ref']
13539
13540 def test_connection(self, *args, **kwargs):
13541 return self._call_func("test_connection", *args, **kwargs)
13542
13543
13544 class RadiusAuthservice(InfobloxObject):
13545 """ RadiusAuthservice: The RADIUS authentication service object.
13546 Corresponds to WAPI object 'radius:authservice'
13547
13548 RADIUS provides authentication, accounting, and authorization
13549 functions.
13550
13551 The NIOS appliance supports authentication using the following
13552 RADIUS servers: FreeRADIUS, Microsoft, Cisco, and Funk.
13553
13554 When NIOS authenticates administrators against RADIUS servers, NIOS
13555 acts similarly to a network access server (NAS), which is a RADIUS
13556 client that sends authentication and accounting requests to a RADIUS
13557 server.
13558
13559 To configure NIOS to use one or more RADIUS server groups to
13560 authenticate administrators, do the following: 1. Configure at least
13561 one RADIUS authentication server group (authentication service) 2.
13562 Define admin groups for the admins that are authenticated by the
13563 RADIUS servers and specify their privileges and settings 3. Add the
13564 RADIUS server groups and the admin groups that match those on RADIUS
13565 server to authentication policy.
13566
13567 Attributes:
13568 acct_retries: The number of times to attempt to contact an
13569 accounting RADIUS server.
13570 acct_timeout: The number of seconds to wait for a response from
13571 the RADIUS server.
13572 auth_retries: The number of times to attempt to contact an
13573 authentication RADIUS server.
13574 auth_timeout: The number of seconds to wait for a response from
13575 the RADIUS server.
13576 cache_ttl: The TTL of cached authentication data in seconds.
13577 comment: The RADIUS descriptive comment.
13578 disable: Determines whether the RADIUS authentication service is
13579 disabled.
13580 enable_cache: Determines whether the authentication cache is
13581 enabled.
13582 mode: The way to contact the RADIUS server.
13583 name: The RADIUS authentication service name.
13584 recovery_interval: The time period to wait before retrying a
13585 server that has been marked as down.
13586 servers: The ordered list of RADIUS authentication servers.
13587 """
13588 _infoblox_type = 'radius:authservice'
13589 _fields = ['acct_retries', 'acct_timeout', 'auth_retries', 'auth_timeout',
13590 'cache_ttl', 'comment', 'disable', 'enable_cache', 'mode',
13591 'name', 'recovery_interval', 'servers']
13592 _search_for_update_fields = ['name']
13593 _updateable_search_fields = ['comment', 'mode', 'name']
13594 _all_searchable_fields = ['comment', 'mode', 'name']
13595 _return_fields = ['comment', 'disable', 'name']
13596 _remap = {}
13597 _shadow_fields = ['_ref']
13598
13599 _custom_field_processing = {
13600 'servers': RadiusServer.from_dict,
13601 }
13602
13603 def check_radius_server_settings(self, *args, **kwargs):
13604 return self._call_func("check_radius_server_settings", *args, **kwargs)
13605
13606
13607 class ARecordBase(InfobloxObject):
13608 @classmethod
13609 def get_v4_class(cls):
13610 return ARecord
13611
13612 @classmethod
13613 def get_v6_class(cls):
13614 return AAAARecord
13615
13616
13617 class ARecord(ARecordBase):
13618 """ ARecord: DNS A record object.
13619 Corresponds to WAPI object 'record:a'
13620
13621 An A (address) record maps a domain name to an IPv4 address. To
13622 define a specific name-to-address mapping, add an A record to a
13623 previously defined authoritative forward-mapping zone.
13624
13625 On DELETE request, the boolean argument remove_associated_ptr
13626 indicates whether the associated PTR records should be removed while
13627 deleting the specified A record. The PTR record will be removed only
13628 if "Enable PTR record removal for A/AAAA records" is enabled in Grid
13629 DNS properties.
13630
13631 Attributes:
13632 aws_rte53_record_info: Aws Route 53 record information.
13633 cloud_info: Structure containing all cloud API related
13634 information for this object.
13635 comment: Comment for the record; maximum 256 characters.
13636 creation_time: The time of the record creation in Epoch seconds
13637 format.
13638 creator: The record creator.Note that changing creator from or
13639 to 'SYSTEM' value is not allowed.
13640 ddns_principal: The GSS-TSIG principal that owns this record.
13641 ddns_protected: Determines if the DDNS updates for this record
13642 are allowed or not.
13643 disable: Determines if the record is disabled or not. False
13644 means that the record is enabled.
13645 discovered_data: The discovered data for this A record.
13646 dns_name: The name for an A record in punycode format.
13647 extattrs: Extensible attributes associated with the object.For
13648 valid values for extensible attributes, see the following
13649 information.
13650 forbid_reclamation: Determines if the reclamation is allowed for
13651 the record or not.
13652 ipv4addr: The IPv4 Address of the record.
13653 last_queried: The time of the last DNS query in Epoch seconds
13654 format.
13655 ms_ad_user_data: The Microsoft Active Directory user related
13656 information.
13657 name: Name for A record in FQDN format. This value can be in
13658 unicode format.
13659 reclaimable: Determines if the record is reclaimable or not.
13660 shared_record_group: The name of the shared record group in
13661 which the record resides. This field exists only on
13662 db_objects if this record is a shared record.
13663 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
13664 integer that represents the duration, in seconds, for which
13665 the record is valid (cached). Zero indicates that the record
13666 should not be cached.
13667 use_ttl: Use flag for: ttl
13668 view: The name of the DNS view in which the record resides.
13669 Example: "external".
13670 zone: The name of the zone in which the record resides. Example:
13671 "zone.com". If a view is not specified when searching by
13672 zone, the default view is used.
13673 """
13674 _infoblox_type = 'record:a'
13675 _fields = ['aws_rte53_record_info', 'cloud_info', 'comment',
13676 'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
13677 'disable', 'discovered_data', 'dns_name', 'extattrs',
13678 'forbid_reclamation', 'ipv4addr', 'last_queried',
13679 'ms_ad_user_data', 'name', 'reclaimable',
13680 'remove_associated_ptr', 'shared_record_group', 'ttl',
13681 'use_ttl', 'view', 'zone']
13682 _search_for_update_fields = ['ipv4addr', 'name', 'view']
13683 _updateable_search_fields = ['comment', 'creator', 'ddns_principal',
13684 'ipv4addr', 'name']
13685 _all_searchable_fields = ['comment', 'creator', 'ddns_principal',
13686 'ipv4addr', 'name', 'reclaimable', 'view',
13687 'zone']
13688 _return_fields = ['extattrs', 'ipv4addr', 'name', 'view']
13689 _remap = {'ip': 'ipv4addr'}
13690 _shadow_fields = ['_ref', 'ip']
13691 _ip_version = 4
13692
13693
13694 class AAAARecord(ARecordBase):
13695 """ AAAARecord: DNS AAAA record object.
13696 Corresponds to WAPI object 'record:aaaa'
13697
13698 An AAAA (address) record maps a domain name to an IPv6 address. To
13699 define a specific name-to-address mapping, add an AAAA record to a
13700 previously defined authoritative forward-mapping zone.
13701
13702 On DELETE request, the boolean argument remove_associated_ptr
13703 indicates whether the associated PTR records should be removed while
13704 deleting the specified AAAA record. The PTR record will be removed
13705 only if "Enable PTR record removal for A/AAAA records" is enabled in
13706 Grid DNS properties.
13707
13708 Attributes:
13709 aws_rte53_record_info: Aws Route 53 record information.
13710 cloud_info: Structure containing all cloud API related
13711 information for this object.
13712 comment: Comment for the record; maximum 256 characters.
13713 creation_time: The time of the record creation in Epoch seconds
13714 format.
13715 creator: The record creator.Note that changing creator from or
13716 to 'SYSTEM' value is not allowed.
13717 ddns_principal: The GSS-TSIG principal that owns this record.
13718 ddns_protected: Determines if the DDNS updates for this record
13719 are allowed or not.
13720 disable: Determines if the record is disabled or not. False
13721 means that the record is enabled.
13722 discovered_data: The discovered data for this AAAA record.
13723 dns_name: The name for an AAAA record in punycode format.
13724 extattrs: Extensible attributes associated with the object.For
13725 valid values for extensible attributes, see the following
13726 information.
13727 forbid_reclamation: Determines if the reclamation is allowed for
13728 the record or not.
13729 ipv6addr: The IPv6 Address of the record.
13730 last_queried: The time of the last DNS query in Epoch seconds
13731 format.
13732 ms_ad_user_data: The Microsoft Active Directory user related
13733 information.
13734 name: Name for the AAAA record in FQDN format. This value can be
13735 in unicode format.
13736 reclaimable: Determines if the record is reclaimable or not.
13737 shared_record_group: The name of the shared record group in
13738 which the record resides. This field exists only on
13739 db_objects if this record is a shared record.
13740 ttl: The Time To Live (TTL) value for the record. A 32-bit
13741 unsigned integer that represents the duration, in seconds,
13742 for which the record is valid (cached). Zero indicates that
13743 the record should not be cached.
13744 use_ttl: Use flag for: ttl
13745 view: The name of the DNS view in which the record resides.
13746 Example: "external".
13747 zone: The name of the zone in which the record resides. Example:
13748 "zone.com". If a view is not specified when searching by
13749 zone, the default view is used.
13750 """
13751 _infoblox_type = 'record:aaaa'
13752 _fields = ['aws_rte53_record_info', 'cloud_info', 'comment',
13753 'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
13754 'disable', 'discovered_data', 'dns_name', 'extattrs',
13755 'forbid_reclamation', 'ipv6addr', 'last_queried',
13756 'ms_ad_user_data', 'name', 'reclaimable',
13757 'remove_associated_ptr', 'shared_record_group', 'ttl',
13758 'use_ttl', 'view', 'zone']
13759 _search_for_update_fields = ['ipv6addr', 'name', 'view']
13760 _updateable_search_fields = ['comment', 'creator', 'ddns_principal',
13761 'ipv6addr', 'name']
13762 _all_searchable_fields = ['comment', 'creator', 'ddns_principal',
13763 'ipv6addr', 'name', 'reclaimable', 'view',
13764 'zone']
13765 _return_fields = ['extattrs', 'ipv6addr', 'name', 'view']
13766 _remap = {'ip': 'ipv6addr'}
13767 _shadow_fields = ['_ref', 'ip']
13768 _ip_version = 6
13769
13770
13771 class AliasRecord(InfobloxObject):
13772 """ AliasRecord: DNS Alias record object.
13773 Corresponds to WAPI object 'record:alias'
13774
13775 Alias resource record allows you to create typed aliases for
13776 standard DNS resource records which are resolved dynamically by an
13777 authoritative server. Unlike CNAME Alias can be created in the zone
13778 apex.
13779
13780 Attributes:
13781 aws_rte53_record_info: Aws Route 53 record information.
13782 cloud_info: Structure containing all cloud API related
13783 information for this object.
13784 comment: Comment for the record; maximum 256 characters.
13785 creator: The record creator.
13786 disable: Determines if the record is disabled or not. False
13787 means that the record is enabled.
13788 dns_name: The name for an Alias record in punycode format.
13789 dns_target_name: Target name in punycode format.
13790 extattrs: Extensible attributes associated with the object.For
13791 valid values for extensible attributes, see the following
13792 information.
13793 last_queried: The time of the last DNS query in Epoch seconds
13794 format.
13795 name: The name for an Alias record in FQDN format. This value
13796 can be in unicode format. Regular expression search is not
13797 supported for unicode values.
13798 target_name: Target name in FQDN format. This value can be in
13799 unicode format.
13800 target_type: Target type.
13801 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
13802 integer that represents the duration, in seconds, for which
13803 the record is valid (cached). Zero indicates that the record
13804 should not be cached.
13805 use_ttl: Use flag for: ttl
13806 view: The name of the DNS View in which the record resides.
13807 Example: "external".
13808 zone: The name of the zone in which the record resides. Example:
13809 "zone.com". If a view is not specified when searching by
13810 zone, the default view is used.
13811 """
13812 _infoblox_type = 'record:alias'
13813 _fields = ['aws_rte53_record_info', 'cloud_info', 'comment', 'creator',
13814 'disable', 'dns_name', 'dns_target_name', 'extattrs',
13815 'last_queried', 'name', 'target_name', 'target_type', 'ttl',
13816 'use_ttl', 'view', 'zone']
13817 _search_for_update_fields = ['name', 'target_name', 'target_type', 'view']
13818 _updateable_search_fields = ['comment', 'name', 'target_name',
13819 'target_type', 'view']
13820 _all_searchable_fields = ['comment', 'name', 'target_name', 'target_type',
13821 'view', 'zone']
13822 _return_fields = ['extattrs', 'name', 'target_name', 'target_type', 'view']
13823 _remap = {}
13824 _shadow_fields = ['_ref']
13825
13826
13827 class CaaRecord(InfobloxObject):
13828 """ CaaRecord: DNS CAA record object.
13829 Corresponds to WAPI object 'record:caa'
13830
13831 The Certification Authority Authorization (CAA) DNS resource record
13832 (RR) is used to specify which certificate authorities (CAs) are
13833 allowed to issue certificates for a domain. For further details see
13834 RFC-6844.
13835
13836 Attributes:
13837 ca_flag: Flag of CAA record.
13838 ca_tag: Tag of CAA record.
13839 ca_value: Value of CAA record
13840 cloud_info: Structure containing all cloud API related
13841 information for this object.
13842 comment: Comment for the record; maximum 256 characters.
13843 creation_time: The creation time of the record.
13844 creator: The record creator. Note that changing creator from or
13845 to 'SYSTEM' value is not allowed.
13846 ddns_principal: The GSS-TSIG principal that owns this record.
13847 ddns_protected: Determines if the DDNS updates for this record
13848 are allowed or not.
13849 disable: Determines if the record is disabled or not. False
13850 means that the record is enabled.
13851 dns_name: The name of the CAA record in punycode format.
13852 extattrs: Extensible attributes associated with the object.For
13853 valid values for extensible attributes, see the following
13854 information.
13855 forbid_reclamation: Determines if the reclamation is allowed for
13856 the record or not.
13857 last_queried: The time of the last DNS query in Epoch seconds
13858 format.
13859 name: The CAA record name in FQDN format. This value can be in
13860 unicode format.
13861 reclaimable: Determines if the record is reclaimable or not.
13862 ttl: The Time to Live (TTL) value for the record. A 32-bit
13863 unsigned integer that represents the duration, in seconds,
13864 for which the record is valid (cached). Zero indicates that
13865 the record should not be cached.
13866 use_ttl: Use flag for: ttl
13867 view: The name of the DNS view in which the record resides.
13868 Example: "external".
13869 zone: The name of the zone in which the record resides. Example:
13870 "zone.com". If a view is not specified when searching by
13871 zone, the default view is used.
13872 """
13873 _infoblox_type = 'record:caa'
13874 _fields = ['ca_flag', 'ca_tag', 'ca_value', 'cloud_info', 'comment',
13875 'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
13876 'disable', 'dns_name', 'extattrs', 'forbid_reclamation',
13877 'last_queried', 'name', 'reclaimable', 'ttl', 'use_ttl', 'view',
13878 'zone']
13879 _search_for_update_fields = ['name', 'view']
13880 _updateable_search_fields = ['ca_flag', 'ca_tag', 'ca_value', 'comment',
13881 'creator', 'ddns_principal', 'name', 'view']
13882 _all_searchable_fields = ['ca_flag', 'ca_tag', 'ca_value', 'comment',
13883 'creator', 'ddns_principal', 'name',
13884 'reclaimable', 'view', 'zone']
13885 _return_fields = ['extattrs', 'name', 'view']
13886 _remap = {}
13887 _shadow_fields = ['_ref']
13888
13889
13890 class CNAMERecord(InfobloxObject):
13891 """ CNAMERecord: DNS CNAME record object.
13892 Corresponds to WAPI object 'record:cname'
13893
13894 A CNAME record maps an alias to a canonical name. You can use CNAME
13895 records in both forward- and IPv4 reverse-mapping zones to serve two
13896 different purposes. (At this time, you cannot use CNAME records with
13897 IPv6 reverse-mapping zones.)
13898
13899 In a forward-mapping zone, a CNAME record maps an alias to a
13900 canonical (or official) name. CNAME records are often more
13901 convenient to use than canonical names because they can be shorter
13902 or more descriptive.
13903
13904 Attributes:
13905 aws_rte53_record_info: Aws Route 53 record information.
13906 canonical: Canonical name in FQDN format. This value can be in
13907 unicode format.
13908 cloud_info: Structure containing all cloud API related
13909 information for this object.
13910 comment: Comment for the record; maximum 256 characters.
13911 creation_time: The time of the record creation in Epoch seconds
13912 format.
13913 creator: The record creator.Note that changing creator from or
13914 to 'SYSTEM' value is not allowed.
13915 ddns_principal: The GSS-TSIG principal that owns this record.
13916 ddns_protected: Determines if the DDNS updates for this record
13917 are allowed or not.
13918 disable: Determines if the record is disabled or not. False
13919 means that the record is enabled.
13920 dns_canonical: Canonical name in punycode format.
13921 dns_name: The name for the CNAME record in punycode format.
13922 extattrs: Extensible attributes associated with the object.For
13923 valid values for extensible attributes, see the following
13924 information.
13925 forbid_reclamation: Determines if the reclamation is allowed for
13926 the record or not.
13927 last_queried: The time of the last DNS query in Epoch seconds
13928 format.
13929 name: The name for a CNAME record in FQDN format. This value can
13930 be in unicode format. Regular expression search is not
13931 supported for unicode values.
13932 reclaimable: Determines if the record is reclaimable or not.
13933 shared_record_group: The name of the shared record group in
13934 which the record resides. This field exists only on
13935 db_objects if this record is a shared record.
13936 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
13937 integer that represents the duration, in seconds, for which
13938 the record is valid (cached). Zero indicates that the record
13939 should not be cached.
13940 use_ttl: Use flag for: ttl
13941 view: The name of the DNS view in which the record resides.
13942 Example: "external".
13943 zone: The name of the zone in which the record resides. Example:
13944 "zone.com". If a view is not specified when searching by
13945 zone, the default view is used.
13946 """
13947 _infoblox_type = 'record:cname'
13948 _fields = ['aws_rte53_record_info', 'canonical', 'cloud_info', 'comment',
13949 'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
13950 'disable', 'dns_canonical', 'dns_name', 'extattrs',
13951 'forbid_reclamation', 'last_queried', 'name', 'reclaimable',
13952 'shared_record_group', 'ttl', 'use_ttl', 'view', 'zone']
13953 _search_for_update_fields = ['canonical', 'name', 'view']
13954 _updateable_search_fields = ['canonical', 'comment', 'creator',
13955 'ddns_principal', 'name', 'view']
13956 _all_searchable_fields = ['canonical', 'comment', 'creator',
13957 'ddns_principal', 'name', 'reclaimable', 'view',
13958 'zone']
13959 _return_fields = ['canonical', 'extattrs', 'name', 'view']
13960 _remap = {}
13961 _shadow_fields = ['_ref']
13962
13963
13964 class DhcidRecord(InfobloxObject):
13965 """ DhcidRecord: DNS DHCID record object.
13966 Corresponds to WAPI object 'record:dhcid'
13967
13968 The DHCID DNS resource record (RR) is used to associate the DNS
13969 domain names with the DHCP clients using the domain names.
13970
13971 Attributes:
13972 creation_time: The creation time of the record.
13973 creator: The record creator.
13974 dhcid: The Base64 encoded DHCP client information.
13975 dns_name: The name for the DHCID record in punycode format.
13976 name: The name of the DHCID record in FQDN format.
13977 ttl: The Time To Live (TTL) value for the record. A 32-bit
13978 unsigned integer that represents the duration, in seconds,
13979 for which the record is valid (cached). Zero indicates that
13980 the record should not be cached.
13981 use_ttl: Use flag for: ttl
13982 view: The name of the DNS view in which the record resides.
13983 Example: "external".
13984 zone: The name of the zone in which the record resides. Example:
13985 "zone.com". If a view is not specified when searching by
13986 zone, the default view is used.
13987 """
13988 _infoblox_type = 'record:dhcid'
13989 _fields = ['creation_time', 'creator', 'dhcid', 'dns_name', 'name', 'ttl',
13990 'use_ttl', 'view', 'zone']
13991 _search_for_update_fields = ['name', 'view']
13992 _updateable_search_fields = []
13993 _all_searchable_fields = ['creator', 'dhcid', 'name', 'view', 'zone']
13994 _return_fields = ['name', 'view']
13995 _remap = {}
13996 _shadow_fields = ['_ref']
13997
13998
13999 class DnameRecord(InfobloxObject):
14000 """ DnameRecord: DNS DNAME record object.
14001 Corresponds to WAPI object 'record:dname'
14002
14003 A DNAME record maps all the names in one domain to those in another
14004 domain, essentially substituting one domain name suffix with the
14005 other.
14006
14007 Attributes:
14008 cloud_info: The structure containing all cloud API related
14009 information for this object.
14010 comment: The comment for the record.
14011 creation_time: The time of the record creation in Epoch seconds
14012 format.
14013 creator: The record creator.
14014 ddns_principal: The GSS-TSIG principal that owns this record.
14015 ddns_protected: Determines if the DDNS updates for this record
14016 are allowed.
14017 disable: Determines if the record is disabled.
14018 dns_name: Name of a DNS DNAME record in punycode format.
14019 dns_target: The target domain name of the DNS DNAME record in
14020 punycode format.
14021 extattrs: Extensible attributes associated with the object.For
14022 valid values for extensible attributes, see the following
14023 information.
14024 forbid_reclamation: Determines if reclamation is allowed for the
14025 record.
14026 last_queried: The time of the last DNS query in Epoch seconds
14027 format.
14028 name: The name of the DNS DNAME record in FQDN format.
14029 reclaimable: Determines if the record is reclaimable.
14030 shared_record_group: The name of the shared record group in
14031 which the record resides. This field exists only on
14032 db_objects if this record is a shared record.
14033 target: The target domain name of the DNS DNAME record in FQDN
14034 format.
14035 ttl: Time To Live (TTL) value for the record. A 32-bit unsigned
14036 integer that represents the duration, in seconds, that the
14037 record is valid (cached). Zero indicates that the record
14038 should not be cached.
14039 use_ttl: Use flag for: ttl
14040 view: The name of the DNS View in which the record resides, for
14041 example "external".
14042 zone: The name of the zone in which the record resides. For
14043 example: "zone.com". If a view is not specified when
14044 searching by zone, the default view is used.
14045 """
14046 _infoblox_type = 'record:dname'
14047 _fields = ['cloud_info', 'comment', 'creation_time', 'creator',
14048 'ddns_principal', 'ddns_protected', 'disable', 'dns_name',
14049 'dns_target', 'extattrs', 'forbid_reclamation', 'last_queried',
14050 'name', 'reclaimable', 'shared_record_group', 'target', 'ttl',
14051 'use_ttl', 'view', 'zone']
14052 _search_for_update_fields = ['name', 'target', 'view']
14053 _updateable_search_fields = ['comment', 'creator', 'ddns_principal',
14054 'name', 'target']
14055 _all_searchable_fields = ['comment', 'creator', 'ddns_principal', 'name',
14056 'reclaimable', 'target', 'view', 'zone']
14057 _return_fields = ['extattrs', 'name', 'target', 'view']
14058 _remap = {}
14059 _shadow_fields = ['_ref']
14060
14061
14062 class DnskeyRecord(InfobloxObject):
14063 """ DnskeyRecord: DNS DNSKEY record object.
14064 Corresponds to WAPI object 'record:dnskey'
14065
14066 The DNSKEY resource record stores public keys for the DNSSEC
14067 authentication process. The DNSKEY records are generated
14068 automatically when the corresponding authoritative zone is signed.
14069 The DNSKEY resource record object is read-only.
14070
14071 The DNSKEY resource record is defined in RFC 4034.
14072
14073 Attributes:
14074 algorithm: The public key encryption algorithm of a DNSKEY
14075 Record object.
14076 comment: The comment for the record.
14077 creation_time: The creation time of the record.
14078 creator: The record creator.
14079 dns_name: Name of a DNSKEY record in punycode format.
14080 flags: The flags field is a 16-bit unsigned integer. Currently,
14081 only two bits of this value are used: the least significant
14082 bit and bit 7. The other bits are reserved for future use
14083 and must be zero. If bit 7 is set to 1, the key is a DNS
14084 zone key. Otherwise, the key is not a zone key and cannot be
14085 used to verify zone data. The least significant bit
14086 indicates "secure entry point property". If it is not zero,
14087 the key is a key signing key (KSK type). Otherwise, the key
14088 type is ZSK.
14089 key_tag: The key tag identifying the public key of a DNSKEY
14090 Record object.
14091 last_queried: The time of the last DNS query in Epoch seconds
14092 format.
14093 name: The name of the DNSKEY record in FQDN format. It has to be
14094 the same as the zone, where the record resides.
14095 public_key: The public key. The format of the returned value
14096 depends on the key algorithm.
14097 ttl: The Time To Live (TTL) value for the record. A 32-bit
14098 unsigned integer that represents the duration, in seconds,
14099 for which the record is valid (cached). Zero indicates that
14100 the record should not be cached.
14101 use_ttl: Use flag for: ttl
14102 view: The name of the DNS View in which the record resides.
14103 Example: "external".
14104 zone: The name of the zone in which the record resides. Example:
14105 "zone.com". If a view is not specified when searching by
14106 zone, the default view is used.
14107 """
14108 _infoblox_type = 'record:dnskey'
14109 _fields = ['algorithm', 'comment', 'creation_time', 'creator', 'dns_name',
14110 'flags', 'key_tag', 'last_queried', 'name', 'public_key', 'ttl',
14111 'use_ttl', 'view', 'zone']
14112 _search_for_update_fields = ['name', 'view']
14113 _updateable_search_fields = []
14114 _all_searchable_fields = ['algorithm', 'comment', 'creator', 'flags',
14115 'key_tag', 'name', 'public_key', 'view', 'zone']
14116 _return_fields = ['name', 'view']
14117 _remap = {}
14118 _shadow_fields = ['_ref']
14119
14120
14121 class DsRecord(InfobloxObject):
14122 """ DsRecord: DNS DS record object.
14123 Corresponds to WAPI object 'record:ds'
14124
14125 The DS key record is a part of the DNS security extension records.
14126 The DS RR contains a hash of a child zone's KSK and can be used as a
14127 trust anchor in some security-aware resolvers and to create a secure
14128 delegation point for a signed subzone in DNS servers. It is used to
14129 authorize the DNSKEY records of the child zone and thus to establish
14130 the DNSSEC chain of trust.
14131
14132 The DS resource record is defined in RFC 4034.
14133
14134 The DS resource records are automatically generated upon the signing
14135 of the child zone of an authoritative zone residing on the
14136 appliance.
14137
14138 Attributes:
14139 algorithm: The algorithm of the DNSKEY RR to which this DS RR
14140 refers. It uses the same algorithm values and types as the
14141 corresponding DNSKEY RR.
14142 cloud_info: Structure containing all cloud API related
14143 information for this object.
14144 comment: The comment for the record.
14145 creation_time: The creation time of the record.
14146 creator: Creator of the record.
14147 digest: The digest of the DNSKEY resource record that is stored
14148 in a DS Record object.
14149 digest_type: The algorithm used to construct the digest.
14150 dns_name: The name for the DS record in punycode format.
14151 key_tag: The key tag value that is used to determine which key
14152 to use to verify signatures.
14153 last_queried: The time of the last DNS query in Epoch seconds
14154 format.
14155 name: The name of the DNS DS record in FQDN format.
14156 ttl: The Time To Live (TTL) value for the record. A 32-bit
14157 unsigned integer that represents the duration, in seconds,
14158 for which the record is valid (cached). Zero indicates that
14159 the record should not be cached.
14160 use_ttl: Use flag for: ttl
14161 view: The name of the DNS View in which the record resides.
14162 Example: "external".
14163 zone: The name of the zone in which the record resides. Example:
14164 "zone.com". If a view is not specified when searching by
14165 zone, the default view is used.
14166 """
14167 _infoblox_type = 'record:ds'
14168 _fields = ['algorithm', 'cloud_info', 'comment', 'creation_time',
14169 'creator', 'digest', 'digest_type', 'dns_name', 'key_tag',
14170 'last_queried', 'name', 'ttl', 'use_ttl', 'view', 'zone']
14171 _search_for_update_fields = ['name', 'view']
14172 _updateable_search_fields = []
14173 _all_searchable_fields = ['algorithm', 'comment', 'creator', 'digest_type',
14174 'key_tag', 'name', 'view', 'zone']
14175 _return_fields = ['name', 'view']
14176 _remap = {}
14177 _shadow_fields = ['_ref']
14178
14179
14180 class DtclbdnRecord(InfobloxObject):
14181 """ DtclbdnRecord: DTC LBDN object.
14182 Corresponds to WAPI object 'record:dtclbdn'
14183
14184 Load Balanced Domain Name (LBDN) is a Load balanced domain name
14185 record type, which is served by Infoblox Name Servers. LBDN is a
14186 qualified domain name associated with a specific service such as
14187 ftp.abc.com or www.abc.com. A LBDN record must be associated to a
14188 zone for which Infoblox is authoritative for. User may assign
14189 multiple "Resource Pools" to a LBDN record. User may also assign one
14190 or more DNS Distribution (Load balancing) methods an LBDN record.
14191 User must not be able to create multiple LBDNs for the same name.
14192
14193 Attributes:
14194 comment: The comment for the DTC LBDN record object; maximum 256
14195 characters.
14196 disable: Determines whether the DTC LBDN is disabled or not.
14197 extattrs: Extensible attributes associated with the object.For
14198 valid values for extensible attributes, see the following
14199 information.
14200 last_queried: The time of the last DNS query in Epoch seconds
14201 format.
14202 lbdn: The DTC LBDN object.
14203 name: The display name of the DTC LBDN record.
14204 pattern: An FQDN pattern, LBDN wildcards can be used.
14205 view: The name of the DNS View in which the record resides.
14206 zone: The name of the zone in which the record resides.
14207 """
14208 _infoblox_type = 'record:dtclbdn'
14209 _fields = ['comment', 'disable', 'extattrs', 'last_queried', 'lbdn',
14210 'name', 'pattern', 'view', 'zone']
14211 _search_for_update_fields = ['name', 'view', 'zone']
14212 _updateable_search_fields = []
14213 _all_searchable_fields = ['comment', 'disable', 'name', 'pattern', 'view',
14214 'zone']
14215 _return_fields = ['comment', 'extattrs', 'name', 'view', 'zone']
14216 _remap = {}
14217 _shadow_fields = ['_ref']
14218
14219
14220 class HostRecord(InfobloxObject):
14221 @classmethod
14222 def get_v4_class(cls):
14223 return HostRecordV4
14224
14225 @classmethod
14226 def get_v6_class(cls):
14227 return HostRecordV6
14228
14229
14230 class HostRecordV4(HostRecord):
14231 """ HostRecordV4: DNS Host record object.
14232 Corresponds to WAPI object 'record:host'
14233
14234 A host record defines attributes for a node, such as the name-to-
14235 address and address-to-name mapping. This alleviates having to
14236 specify an A record and a PTR record separately for the same node. A
14237 host can also define aliases and DHCP fixed address nodes. The zone
14238 must be created first before adding a host record for the zone.
14239
14240 Attributes:
14241 aliases: This is a list of aliases for the host. The aliases
14242 must be in FQDN format. This value can be in unicode format.
14243 allow_telnet: This field controls whether the credential is used
14244 for both the Telnet and SSH credentials. If set to False,
14245 the credential is used only for SSH.
14246 cli_credentials: The CLI credentials for the host record.
14247 cloud_info: Structure containing all cloud API related
14248 information for this object.
14249 comment: Comment for the record; maximum 256 characters.
14250 configure_for_dns: When configure_for_dns is false, the host
14251 does not have parent zone information.
14252 creation_time: The time of the record creation in Epoch seconds
14253 format.
14254 ddns_protected: Determines if the DDNS updates for this record
14255 are allowed or not.
14256 device_description: The description of the device.
14257 device_location: The location of the device.
14258 device_type: The type of the device.
14259 device_vendor: The vendor of the device.
14260 disable: Determines if the record is disabled or not. False
14261 means that the record is enabled.
14262 disable_discovery: Determines if the discovery for the record is
14263 disabled or not. False means that the discovery is enabled.
14264 dns_aliases: The list of aliases for the host in punycode
14265 format.
14266 dns_name: The name for a host record in punycode format.
14267 enable_immediate_discovery: Determines if the discovery for the
14268 record should be immediately enabled.
14269 extattrs: Extensible attributes associated with the object.For
14270 valid values for extensible attributes, see the following
14271 information.
14272 ipv4addrs: This is a list of IPv4 Addresses for the host.
14273 ipv6addrs: This is a list of IPv6 Addresses for the host.
14274 last_queried: The time of the last DNS query in Epoch seconds
14275 format.
14276 ms_ad_user_data: The Microsoft Active Directory user related
14277 information.
14278 name: The host name in FQDN format This value can be in unicode
14279 format. Regular expression search is not supported for
14280 unicode values.
14281 network_view: The name of the network view in which the host
14282 record resides.
14283 restart_if_needed: Restarts the member service.
14284 rrset_order: The value of this field specifies the order in
14285 which resource record sets are returned.The possible values
14286 are "cyclic", "random" and "fixed".
14287 snmp3_credential: The SNMPv3 credential for a host record.
14288 snmp_credential: The SNMPv1 or SNMPv2 credential for a host
14289 record.
14290 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
14291 integer that represents the duration, in seconds, for which
14292 the record is valid (cached). Zero indicates that the record
14293 should not be cached.
14294 use_cli_credentials: If set to true, the CLI credential will
14295 override member-level settings.
14296 use_snmp3_credential: Determines if the SNMPv3 credential should
14297 be used for the record.
14298 use_snmp_credential: If set to true, the SNMP credential will
14299 override member-level settings.
14300 use_ttl: Use flag for: ttl
14301 view: The name of the DNS view in which the record resides.
14302 Example: "external".
14303 zone: The name of the zone in which the record resides. Example:
14304 "zone.com". If a view is not specified when searching by
14305 zone, the default view is used.
14306 """
14307 _infoblox_type = 'record:host'
14308 _fields = ['aliases', 'allow_telnet', 'cli_credentials', 'cloud_info',
14309 'comment', 'configure_for_dns', 'creation_time',
14310 'ddns_protected', 'device_description', 'device_location',
14311 'device_type', 'device_vendor', 'disable', 'disable_discovery',
14312 'dns_aliases', 'dns_name', 'enable_immediate_discovery',
14313 'extattrs', 'ipv4addrs', 'last_queried', 'ms_ad_user_data',
14314 'name', 'network_view', 'restart_if_needed', 'rrset_order',
14315 'snmp3_credential', 'snmp_credential', 'ttl',
14316 'use_cli_credentials', 'use_snmp3_credential',
14317 'use_snmp_credential', 'use_ttl', 'view', 'zone', 'mac']
14318 _search_for_update_fields = ['name', 'view', 'mac', 'ipv4addr']
14319 _updateable_search_fields = ['comment', 'device_description',
14320 'device_location', 'device_type',
14321 'device_vendor', 'name', 'view']
14322 _all_searchable_fields = ['comment', 'device_description',
14323 'device_location', 'device_type',
14324 'device_vendor', 'name', 'network_view', 'view',
14325 'zone', 'mac', 'ipv4addr']
14326 _return_fields = ['extattrs', 'ipv4addrs', 'name', 'view', 'aliases']
14327 _remap = {'ip': 'ipv4addrs', 'ips': 'ipv4addrs'}
14328 _shadow_fields = ['_ref', 'ipv4addr']
14329 _ip_version = 4
14330
14331 def _ip_setter(self, ipaddr_name, ipaddrs_name, ips):
14332 """Setter for ip fields
14333
14334 Accept as input string or list of IP instances.
14335 String case:
14336 only ipvXaddr is going to be filled, that is enough to perform
14337 host record search using ip
14338 List of IP instances case:
14339 ipvXaddrs is going to be filled with ips content,
14340 so create can be issues, since fully prepared IP objects in place.
14341 ipXaddr is also filled to be able perform search on NIOS
14342 and verify that no such host record exists yet.
14343 """
14344 if isinstance(ips, six.string_types):
14345 setattr(self, ipaddr_name, ips)
14346 elif isinstance(ips, (list, tuple)) and isinstance(ips[0], IP):
14347 setattr(self, ipaddr_name, ips[0].ip)
14348 setattr(self, ipaddrs_name, ips)
14349 elif isinstance(ips, IP):
14350 setattr(self, ipaddr_name, ips.ip)
14351 setattr(self, ipaddrs_name, [ips])
14352 elif ips is None:
14353 setattr(self, ipaddr_name, None)
14354 setattr(self, ipaddrs_name, None)
14355 else:
14356 raise ValueError(
14357 "Invalid format of ip passed in: %s."
14358 "Should be string or list of NIOS IP objects." % ips)
14359
14360 @property
14361 def ipv4addrs(self):
14362 """:meta private:"""
14363 return self._ipv4addrs
14364
14365 @ipv4addrs.setter
14366 def ipv4addrs(self, ips):
14367 """Setter for ipv4addrs/ipv4addr"""
14368 self._ip_setter('ipv4addr', '_ipv4addrs', ips)
14369
14370 @staticmethod
14371 def _build_ip(ips):
14372 if not ips:
14373 raise ib_ex.HostRecordNotPresent()
14374 ip = ips[0]['ipv4addr']
14375 if not ib_utils.is_valid_ip(ip):
14376 raise ib_ex.InfobloxInvalidIp(ip=ip)
14377 return [IPv4.from_dict(ip_addr) for ip_addr in ips]
14378
14379 _custom_field_processing = {
14380 'cli_credentials': DiscoveryClicredential.from_dict,
14381 'ipv4addrs': _build_ip.__func__,
14382 }
14383
14384
14385 class HostRecordV6(HostRecord):
14386 """ HostRecordV6: DNS Host record object.
14387 Corresponds to WAPI object 'record:host'
14388
14389 A host record defines attributes for a node, such as the name-to-
14390 address and address-to-name mapping. This alleviates having to
14391 specify an A record and a PTR record separately for the same node. A
14392 host can also define aliases and DHCP fixed address nodes. The zone
14393 must be created first before adding a host record for the zone.
14394
14395 Attributes:
14396 aliases: This is a list of aliases for the host. The aliases
14397 must be in FQDN format. This value can be in unicode format.
14398 allow_telnet: This field controls whether the credential is used
14399 for both the Telnet and SSH credentials. If set to False,
14400 the credential is used only for SSH.
14401 cli_credentials: The CLI credentials for the host record.
14402 cloud_info: Structure containing all cloud API related
14403 information for this object.
14404 comment: Comment for the record; maximum 256 characters.
14405 configure_for_dns: When configure_for_dns is false, the host
14406 does not have parent zone information.
14407 creation_time: The time of the record creation in Epoch seconds
14408 format.
14409 ddns_protected: Determines if the DDNS updates for this record
14410 are allowed or not.
14411 device_description: The description of the device.
14412 device_location: The location of the device.
14413 device_type: The type of the device.
14414 device_vendor: The vendor of the device.
14415 disable: Determines if the record is disabled or not. False
14416 means that the record is enabled.
14417 disable_discovery: Determines if the discovery for the record is
14418 disabled or not. False means that the discovery is enabled.
14419 dns_aliases: The list of aliases for the host in punycode
14420 format.
14421 dns_name: The name for a host record in punycode format.
14422 enable_immediate_discovery: Determines if the discovery for the
14423 record should be immediately enabled.
14424 extattrs: Extensible attributes associated with the object.For
14425 valid values for extensible attributes, see the following
14426 information.
14427 ipv4addrs: This is a list of IPv4 Addresses for the host.
14428 ipv6addrs: This is a list of IPv6 Addresses for the host.
14429 last_queried: The time of the last DNS query in Epoch seconds
14430 format.
14431 ms_ad_user_data: The Microsoft Active Directory user related
14432 information.
14433 name: The host name in FQDN format This value can be in unicode
14434 format. Regular expression search is not supported for
14435 unicode values.
14436 network_view: The name of the network view in which the host
14437 record resides.
14438 restart_if_needed: Restarts the member service.
14439 rrset_order: The value of this field specifies the order in
14440 which resource record sets are returned.The possible values
14441 are "cyclic", "random" and "fixed".
14442 snmp3_credential: The SNMPv3 credential for a host record.
14443 snmp_credential: The SNMPv1 or SNMPv2 credential for a host
14444 record.
14445 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
14446 integer that represents the duration, in seconds, for which
14447 the record is valid (cached). Zero indicates that the record
14448 should not be cached.
14449 use_cli_credentials: If set to true, the CLI credential will
14450 override member-level settings.
14451 use_snmp3_credential: Determines if the SNMPv3 credential should
14452 be used for the record.
14453 use_snmp_credential: If set to true, the SNMP credential will
14454 override member-level settings.
14455 use_ttl: Use flag for: ttl
14456 view: The name of the DNS view in which the record resides.
14457 Example: "external".
14458 zone: The name of the zone in which the record resides. Example:
14459 "zone.com". If a view is not specified when searching by
14460 zone, the default view is used.
14461 """
14462 _infoblox_type = 'record:host'
14463 _fields = ['aliases', 'allow_telnet', 'cli_credentials', 'cloud_info',
14464 'comment', 'configure_for_dns', 'creation_time',
14465 'ddns_protected', 'device_description', 'device_location',
14466 'device_type', 'device_vendor', 'disable', 'disable_discovery',
14467 'dns_aliases', 'dns_name', 'enable_immediate_discovery',
14468 'extattrs', 'ipv6addrs', 'last_queried', 'ms_ad_user_data',
14469 'name', 'network_view', 'restart_if_needed', 'rrset_order',
14470 'snmp3_credential', 'snmp_credential', 'ttl',
14471 'use_cli_credentials', 'use_snmp3_credential',
14472 'use_snmp_credential', 'use_ttl', 'view', 'zone', 'mac']
14473 _search_for_update_fields = ['name', 'view', 'mac', 'ipv6addr']
14474 _updateable_search_fields = ['comment', 'device_description',
14475 'device_location', 'device_type',
14476 'device_vendor', 'name', 'view']
14477 _all_searchable_fields = ['comment', 'device_description',
14478 'device_location', 'device_type',
14479 'device_vendor', 'name', 'network_view', 'view',
14480 'zone', 'mac', 'ipv6addr']
14481 _return_fields = ['extattrs', 'ipv6addrs', 'name', 'view', 'aliases']
14482 _remap = {'ip': 'ipv6addrs', 'ips': 'ipv6addrs'}
14483 _shadow_fields = ['_ref', 'ipv6addr']
14484 _ip_version = 6
14485
14486 def _ip_setter(self, ipaddr_name, ipaddrs_name, ips):
14487 """Setter for ip fields
14488
14489 Accept as input string or list of IP instances.
14490 String case:
14491 only ipvXaddr is going to be filled, that is enough to perform
14492 host record search using ip
14493 List of IP instances case:
14494 ipvXaddrs is going to be filled with ips content,
14495 so create can be issues, since fully prepared IP objects in place.
14496 ipXaddr is also filled to be able perform search on NIOS
14497 and verify that no such host record exists yet.
14498 """
14499 if isinstance(ips, six.string_types):
14500 setattr(self, ipaddr_name, ips)
14501 elif isinstance(ips, (list, tuple)) and isinstance(ips[0], IP):
14502 setattr(self, ipaddr_name, ips[0].ip)
14503 setattr(self, ipaddrs_name, ips)
14504 elif isinstance(ips, IP):
14505 setattr(self, ipaddr_name, ips.ip)
14506 setattr(self, ipaddrs_name, [ips])
14507 elif ips is None:
14508 setattr(self, ipaddr_name, None)
14509 setattr(self, ipaddrs_name, None)
14510 else:
14511 raise ValueError(
14512 "Invalid format of ip passed in: %s."
14513 "Should be string or list of NIOS IP objects." % ips)
14514
14515 @property
14516 def ipv6addrs(self):
14517 """:meta private:"""
14518 return self._ipv6addrs
14519
14520 @ipv6addrs.setter
14521 def ipv6addrs(self, ips):
14522 """Setter for ipv6addrs/ipv6addr"""
14523 self._ip_setter('ipv6addr', '_ipv6addrs', ips)
14524
14525 @staticmethod
14526 def _build_ip(ips):
14527 if not ips:
14528 raise ib_ex.HostRecordNotPresent()
14529 ip = ips[0]['ipv6addr']
14530 if not ib_utils.is_valid_ip(ip):
14531 raise ib_ex.InfobloxInvalidIp(ip=ip)
14532 return [IPv6.from_dict(ip_addr) for ip_addr in ips]
14533
14534 _custom_field_processing = {
14535 'cli_credentials': DiscoveryClicredential.from_dict,
14536 'ipv6addrs': _build_ip.__func__,
14537 }
14538
14539
14540 class IPv4HostAddress(InfobloxObject):
14541 """ IPv4HostAddress: IPv4 Host address object.
14542 Corresponds to WAPI object 'record:host_ipv4addr'
14543
14544 A Host Address is an object used to specify addresses in the
14545 record.host object .
14546
14547 Fields other than ipv4addr, host and configure_for_dhcp are returned
14548 only when configure_for_dhcp is true.
14549
14550 Attributes:
14551 bootfile: The name of the boot file the client must download.
14552 bootserver: The IP address or hostname of the boot file server
14553 where the boot file is stored.
14554 configure_for_dhcp: Set this to True to enable the DHCP
14555 configuration for this host address.
14556 deny_bootp: Set this to True to disable the BOOTP settings and
14557 deny BOOTP boot requests.
14558 discover_now_status: The discovery status of this Host Address.
14559 discovered_data: The discovered data for this Host Address.
14560 enable_pxe_lease_time: Set this to True if you want the DHCP
14561 server to use a different lease time for PXE clients. You
14562 can specify the duration of time it takes a host to connect
14563 to a boot server, such as a TFTP server, and download the
14564 file it needs to boot. For example, set a longer lease time
14565 if the client downloads an OS (operating system) or
14566 configuration file, or set a shorter lease time if the
14567 client downloads only configuration changes. Enter the lease
14568 time for the preboot execution environment for hosts to boot
14569 remotely from a server.
14570 host: The host to which the host address belongs, in FQDN
14571 format. It is only present when the host address object is
14572 not returned as part of a host.
14573 ignore_client_requested_options: If this field is set to false,
14574 the appliance returns all DHCP options the client is
14575 eligible to receive, rather than only the list of options
14576 the client has requested.
14577 ipv4addr: The IPv4 Address of the host.
14578 is_invalid_mac: This flag reflects whether the MAC address for
14579 this host address is invalid.
14580 last_queried: The time of the last DNS query in Epoch seconds
14581 format.
14582 logic_filter_rules: This field contains the logic filters to be
14583 applied on the this host address.This list corresponds to
14584 the match rules that are written to the dhcpd configuration
14585 file.
14586 mac: The MAC address for this host address.
14587 match_client: Set this to 'MAC_ADDRESS' to assign the IP address
14588 to the selected host, provided that the MAC address of the
14589 requesting host matches the MAC address that you specify in
14590 the field.Set this to 'RESERVED' to reserve this particular
14591 IP address for future use, or if the IP address is
14592 statically configured on a system (the Infoblox server does
14593 not assign the address from a DHCP request).
14594 ms_ad_user_data: The Microsoft Active Directory user related
14595 information.
14596 network: The network of the host address, in FQDN/CIDR format.
14597 network_view: The name of the network view in which the host
14598 address resides.
14599 nextserver: The name in FQDN format and/or IPv4 Address of the
14600 next server that the host needs to boot.
14601 options: An array of DHCP option structs that lists the DHCP
14602 options associated with the object.
14603 pxe_lease_time: The lease time for PXE clients, see
14604 enable_pxe_lease_time for more information.
14605 reserved_interface: The reference to the reserved interface to
14606 which the device belongs.
14607 use_bootfile: Use flag for: bootfile
14608 use_bootserver: Use flag for: bootserver
14609 use_deny_bootp: Use flag for: deny_bootp
14610 use_for_ea_inheritance: Set this to True when using this host
14611 address for EA inheritance.
14612 use_ignore_client_requested_options: Use flag for:
14613 ignore_client_requested_options
14614 use_logic_filter_rules: Use flag for: logic_filter_rules
14615 use_nextserver: Use flag for: nextserver
14616 use_options: Use flag for: options
14617 use_pxe_lease_time: Use flag for: pxe_lease_time
14618 """
14619 _infoblox_type = 'record:host_ipv4addr'
14620 _fields = ['bootfile', 'bootserver', 'configure_for_dhcp', 'deny_bootp',
14621 'discover_now_status', 'discovered_data',
14622 'enable_pxe_lease_time', 'host',
14623 'ignore_client_requested_options', 'ipv4addr', 'is_invalid_mac',
14624 'last_queried', 'logic_filter_rules', 'mac', 'match_client',
14625 'ms_ad_user_data', 'network', 'network_view', 'nextserver',
14626 'options', 'pxe_lease_time', 'reserved_interface',
14627 'use_bootfile', 'use_bootserver', 'use_deny_bootp',
14628 'use_for_ea_inheritance', 'use_ignore_client_requested_options',
14629 'use_logic_filter_rules', 'use_nextserver', 'use_options',
14630 'use_pxe_lease_time']
14631 _search_for_update_fields = ['ipv4addr', 'mac']
14632 _updateable_search_fields = ['ipv4addr', 'mac']
14633 _all_searchable_fields = ['ipv4addr', 'mac', 'network_view']
14634 _return_fields = ['configure_for_dhcp', 'host', 'ipv4addr', 'mac']
14635 _remap = {'ip': 'ipv4addr'}
14636 _shadow_fields = ['_ref', 'ip']
14637
14638 _custom_field_processing = {
14639 'logic_filter_rules': Logicfilterrule.from_dict,
14640 'options': DhcpOption.from_dict,
14641 }
14642
14643
14644 class IPv6HostAddress(InfobloxObject):
14645 """ IPv6HostAddress: IPv6 Host address object.
14646 Corresponds to WAPI object 'record:host_ipv6addr'
14647
14648 An IPv6 host address is an object used to specify addresses in the
14649 record.host object .
14650
14651 Fields other than ipv6addr, host and configure_for_dhcp are returned
14652 only when configure_for_dhcp is set to True.
14653
14654 Attributes:
14655 address_type: Type of the DHCP IPv6 Host Address object.
14656 configure_for_dhcp: Set this to True to enable the DHCP
14657 configuration for this IPv6 host address.
14658 discover_now_status: The discovery status of this IPv6 Host
14659 Address.
14660 discovered_data: The discovered data for this host address.
14661 domain_name: Use this method to set or retrieve the domain_name
14662 value of the DHCP IPv6 Host Address object.
14663 domain_name_servers: The IPv6 addresses of DNS recursive name
14664 servers to which the DHCP client can send name resolution
14665 requests. The DHCP server includes this information in the
14666 DNS Recursive Name Server option in Advertise, Rebind,
14667 Information-Request, and Reply messages.
14668 duid: DHCPv6 Unique Identifier (DUID) of the address object.
14669 host: The host to which the IPv6 host address belongs, in FQDN
14670 format. It is only present when the host address object is
14671 not returned as part of a host.
14672 ipv6addr: The IPv6 Address prefix of the DHCP IPv6 Host Address
14673 object.
14674 ipv6prefix: The IPv6 Address prefix of the DHCP IPv6 Host
14675 Address object.
14676 ipv6prefix_bits: Prefix bits of the DHCP IPv6 Host Address
14677 object.
14678 last_queried: The time of the last DNS query in Epoch seconds
14679 format.
14680 logic_filter_rules: This field contains the logic filters to be
14681 applied on the this host address.This list corresponds to
14682 the match rules that are written to the dhcpd configuration
14683 file.
14684 match_client: Set this to 'DUID' to assign the IP address to the
14685 selected host, provided that the DUID of the requesting host
14686 matches the DUID that you specify in the field.Set this to
14687 'RESERVED' to reserve this particular IP address for future
14688 use, or if the IP address is statically configured on a
14689 system (the Infoblox server does not assign the address from
14690 a DHCP request).
14691 ms_ad_user_data: The Microsoft Active Directory user related
14692 information.
14693 network: The network of the host address, in FQDN/CIDR format.
14694 network_view: The name of the network view in which the host
14695 address resides.
14696 options: An array of DHCP option structs that lists the DHCP
14697 options associated with the object.
14698 preferred_lifetime: Use this method to set or retrieve the
14699 preferred lifetime value of the DHCP IPv6 Host Address
14700 object.
14701 reserved_interface: The reference to the reserved interface to
14702 which the device belongs.
14703 use_domain_name: Use flag for: domain_name
14704 use_domain_name_servers: Use flag for: domain_name_servers
14705 use_for_ea_inheritance: Set this to True when using this host
14706 address for EA inheritance.
14707 use_logic_filter_rules: Use flag for: logic_filter_rules
14708 use_options: Use flag for: options
14709 use_preferred_lifetime: Use flag for: preferred_lifetime
14710 use_valid_lifetime: Use flag for: valid_lifetime
14711 valid_lifetime: Use this method to set or retrieve the valid
14712 lifetime value of the DHCP IPv6 Host Address object.
14713 """
14714 _infoblox_type = 'record:host_ipv6addr'
14715 _fields = ['address_type', 'configure_for_dhcp', 'discover_now_status',
14716 'discovered_data', 'domain_name', 'domain_name_servers', 'duid',
14717 'host', 'ipv6addr', 'ipv6prefix', 'ipv6prefix_bits',
14718 'last_queried', 'logic_filter_rules', 'match_client',
14719 'ms_ad_user_data', 'network', 'network_view', 'options',
14720 'preferred_lifetime', 'reserved_interface', 'use_domain_name',
14721 'use_domain_name_servers', 'use_for_ea_inheritance',
14722 'use_logic_filter_rules', 'use_options',
14723 'use_preferred_lifetime', 'use_valid_lifetime',
14724 'valid_lifetime']
14725 _search_for_update_fields = ['duid', 'ipv6addr']
14726 _updateable_search_fields = ['duid', 'ipv6addr', 'ipv6prefix',
14727 'ipv6prefix_bits']
14728 _all_searchable_fields = ['duid', 'ipv6addr', 'ipv6prefix',
14729 'ipv6prefix_bits', 'network_view']
14730 _return_fields = ['configure_for_dhcp', 'duid', 'host', 'ipv6addr']
14731 _remap = {'ip': 'ipv6addr'}
14732 _shadow_fields = ['_ref', 'ip']
14733
14734 _custom_field_processing = {
14735 'logic_filter_rules': Logicfilterrule.from_dict,
14736 'options': DhcpOption.from_dict,
14737 }
14738
14739
14740 class MXRecord(InfobloxObject):
14741 """ MXRecord: DNS MX record object.
14742 Corresponds to WAPI object 'record:mx'
14743
14744 An MX (mail exchanger) record maps a domain name to a mail
14745 exchanger. A mail exchanger is a server that either delivers or
14746 forwards mail. You can specify one or more mail exchangers for a
14747 zone, as well as the preference for using each mail exchanger. A
14748 standard MX record applies to a particular domain or subdomain.
14749
14750 Attributes:
14751 aws_rte53_record_info: Aws Route 53 record information.
14752 cloud_info: Structure containing all cloud API related
14753 information for this object.
14754 comment: Comment for the record; maximum 256 characters.
14755 creation_time: The time of the record creation in Epoch seconds
14756 format.
14757 creator: The record creator.Note that changing creator from or
14758 to 'SYSTEM' value is not allowed.
14759 ddns_principal: The GSS-TSIG principal that owns this record.
14760 ddns_protected: Determines if the DDNS updates for this record
14761 are allowed or not.
14762 disable: Determines if the record is disabled or not. False
14763 means that the record is enabled.
14764 dns_mail_exchanger: The Mail exchanger name in punycode format.
14765 dns_name: The name for a MX record in punycode format.
14766 extattrs: Extensible attributes associated with the object.For
14767 valid values for extensible attributes, see the following
14768 information.
14769 forbid_reclamation: Determines if the reclamation is allowed for
14770 the record or not.
14771 last_queried: The time of the last DNS query in Epoch seconds
14772 format.
14773 mail_exchanger: Mail exchanger name in FQDN format. This value
14774 can be in unicode format.
14775 name: Name for the MX record in FQDN format. This value can be
14776 in unicode format.
14777 preference: Preference value, 0 to 65535 (inclusive) in 32-bit
14778 unsigned integer format.
14779 reclaimable: Determines if the record is reclaimable or not.
14780 shared_record_group: The name of the shared record group in
14781 which the record resides. This field exists only on
14782 db_objects if this record is a shared record.
14783 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
14784 integer that represents the duration, in seconds, for which
14785 the record is valid (cached). Zero indicates that the record
14786 should not be cached.
14787 use_ttl: Use flag for: ttl
14788 view: The name of the DNS view in which the record resides.
14789 Example: "external".
14790 zone: The name of the zone in which the record resides. Example:
14791 "zone.com". If a view is not specified when searching by
14792 zone, the default view is used.
14793 """
14794 _infoblox_type = 'record:mx'
14795 _fields = ['aws_rte53_record_info', 'cloud_info', 'comment',
14796 'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
14797 'disable', 'dns_mail_exchanger', 'dns_name', 'extattrs',
14798 'forbid_reclamation', 'last_queried', 'mail_exchanger', 'name',
14799 'preference', 'reclaimable', 'shared_record_group', 'ttl',
14800 'use_ttl', 'view', 'zone']
14801 _search_for_update_fields = ['mail_exchanger', 'name', 'preference',
14802 'view']
14803 _updateable_search_fields = ['comment', 'creator', 'ddns_principal',
14804 'mail_exchanger', 'name', 'preference',
14805 'view']
14806 _all_searchable_fields = ['comment', 'creator', 'ddns_principal',
14807 'mail_exchanger', 'name', 'preference',
14808 'reclaimable', 'view', 'zone']
14809 _return_fields = ['extattrs', 'mail_exchanger', 'name', 'preference',
14810 'view']
14811 _remap = {}
14812 _shadow_fields = ['_ref']
14813
14814
14815 class NaptrRecord(InfobloxObject):
14816 """ NaptrRecord: DNS NAPTR record object.
14817 Corresponds to WAPI object 'record:naptr'
14818
14819 A DNS NAPTR object represents a Naming Authority Pointer (NAPTR)
14820 resource record. This resource record specifies a regular
14821 expression-based rewrite rule that, when applied to an existing
14822 string, produces a new domain name or URI.
14823
14824 Attributes:
14825 cloud_info: Structure containing all cloud API related
14826 information for this object.
14827 comment: Comment for the record; maximum 256 characters.
14828 creation_time: The time of the record creation in Epoch seconds
14829 format.
14830 creator: The record creator.Note that changing creator from or
14831 to 'SYSTEM' value is not allowed.
14832 ddns_principal: The GSS-TSIG principal that owns this record.
14833 ddns_protected: Determines if the DDNS updates for this record
14834 are allowed or not.
14835 disable: Determines if the record is disabled or not. False
14836 means that the record is enabled.
14837 dns_name: The name of the NAPTR record in punycode format.
14838 dns_replacement: The replacement field of the NAPTR record in
14839 punycode format.
14840 extattrs: Extensible attributes associated with the object.For
14841 valid values for extensible attributes, see the following
14842 information.
14843 flags: The flags used to control the interpretation of the
14844 fields for an NAPTR record object. Supported values for the
14845 flags field are "U", "S", "P" and "A".
14846 forbid_reclamation: Determines if the reclamation is allowed for
14847 the record or not.
14848 last_queried: The time of the last DNS query in Epoch seconds
14849 format.
14850 name: The name of the NAPTR record in FQDN format. This value
14851 can be in unicode format.
14852 order: The order parameter of the NAPTR records. This parameter
14853 specifies the order in which the NAPTR rules are applied
14854 when multiple rules are present. Valid values are from 0 to
14855 65535 (inclusive), in 32-bit unsigned integer format.
14856 preference: The preference of the NAPTR record. The preference
14857 field determines the order NAPTR records are processed when
14858 multiple records with the same order parameter are present.
14859 Valid values are from 0 to 65535 (inclusive), in 32-bit
14860 unsigned integer format.
14861 reclaimable: Determines if the record is reclaimable or not.
14862 regexp: The regular expression-based rewriting rule of the NAPTR
14863 record. This should be a POSIX compliant regular expression,
14864 including the substitution rule and flags. Refer to RFC 2915
14865 for the field syntax details.
14866 replacement: The replacement field of the NAPTR record object.
14867 For nonterminal NAPTR records, this field specifies the next
14868 domain name to look up. This value can be in unicode format.
14869 services: The services field of the NAPTR record object; maximum
14870 128 characters. The services field contains protocol and
14871 service identifiers, such as "http+E2U" or "SIPS+D2T".
14872 ttl: The Time to Live (TTL) value for the NAPTR record. A 32-bit
14873 unsigned integer that represents the duration, in seconds,
14874 for which the record is valid (cached). Zero indicates that
14875 the record should not be cached.
14876 use_ttl: Use flag for: ttl
14877 view: The name of the DNS view in which the record resides.
14878 Example: "external".
14879 zone: The name of the zone in which the record resides. Example:
14880 "zone.com". If a view is not specified when searching by
14881 zone, the default view is used.
14882 """
14883 _infoblox_type = 'record:naptr'
14884 _fields = ['cloud_info', 'comment', 'creation_time', 'creator',
14885 'ddns_principal', 'ddns_protected', 'disable', 'dns_name',
14886 'dns_replacement', 'extattrs', 'flags', 'forbid_reclamation',
14887 'last_queried', 'name', 'order', 'preference', 'reclaimable',
14888 'regexp', 'replacement', 'services', 'ttl', 'use_ttl', 'view',
14889 'zone']
14890 _search_for_update_fields = ['name', 'order', 'preference', 'replacement',
14891 'services', 'view']
14892 _updateable_search_fields = ['comment', 'creator', 'ddns_principal',
14893 'flags', 'name', 'order', 'preference',
14894 'replacement', 'services']
14895 _all_searchable_fields = ['comment', 'creator', 'ddns_principal', 'flags',
14896 'name', 'order', 'preference', 'reclaimable',
14897 'replacement', 'services', 'view', 'zone']
14898 _return_fields = ['extattrs', 'name', 'order', 'preference', 'regexp',
14899 'replacement', 'services', 'view']
14900 _remap = {}
14901 _shadow_fields = ['_ref']
14902
14903
14904 class NsRecord(InfobloxObject):
14905 """ NsRecord: DNS NS record object.
14906 Corresponds to WAPI object 'record:ns'
14907
14908 A DNS NS record identifies an authoritative DNS server for a domain.
14909 Each authoritative DNS server must have an NS record. The appliance
14910 automatically creates an NS record when you assign a grid member as
14911 the primary server for a zone. You can manually create NS records
14912 for other zones.
14913
14914 Attributes:
14915 addresses: The list of zone name servers.
14916 cloud_info: Structure containing all cloud API related
14917 information for this object.
14918 creator: The record creator.
14919 dns_name: The name of the NS record in punycode format.
14920 last_queried: The time of the last DNS query in Epoch seconds
14921 format.
14922 ms_delegation_name: The MS delegation point name.
14923 name: The name of the NS record in FQDN format. This value can
14924 be in unicode format.
14925 nameserver: The domain name of an authoritative server for the
14926 redirected zone.
14927 policy: The host name policy for the record.
14928 view: The name of the DNS view in which the record resides.
14929 Example: "external".
14930 zone: The name of the zone in which the record resides. Example:
14931 "zone.com". If a view is not specified when searching by
14932 zone, the default view is used.
14933 """
14934 _infoblox_type = 'record:ns'
14935 _fields = ['addresses', 'cloud_info', 'creator', 'dns_name',
14936 'last_queried', 'ms_delegation_name', 'name', 'nameserver',
14937 'policy', 'view', 'zone']
14938 _search_for_update_fields = ['name', 'nameserver', 'view']
14939 _updateable_search_fields = ['nameserver']
14940 _all_searchable_fields = ['creator', 'name', 'nameserver', 'view', 'zone']
14941 _return_fields = ['name', 'nameserver', 'view']
14942 _remap = {}
14943 _shadow_fields = ['_ref']
14944
14945 _custom_field_processing = {
14946 'addresses': Zonenameserver.from_dict,
14947 }
14948
14949
14950 class NsecRecord(InfobloxObject):
14951 """ NsecRecord: DNS NSEC record object.
14952 Corresponds to WAPI object 'record:nsec'
14953
14954 NSEC resource record is one of the resource records included in the
14955 DNS security extension mechanism (DNSSEC). This record is used to
14956 provide authenticated denial of existence of a resource record in
14957 response to a resolver query.
14958
14959 NSEC resource records are defined in RFC 4034.
14960
14961 NSEC records are automatically generated upon the signing of an
14962 authoritative zone.
14963
14964 The name part of a DNS NSEC object reference has the following
14965 components:
14966
14967 The name of the record.
14968
14969 The name of the view.
14970
14971 Example: record:nsec/ZG5zLmJpsaG9zdA:us.example.com/default.external
14972
14973 Attributes:
14974 cloud_info: Structure containing all cloud API related
14975 information for this object.
14976 creation_time: Time that the record was created.
14977 creator: Creator of the record.
14978 dns_name: Name for an NSEC record in punycode format.
14979 dns_next_owner_name: Name of the next owner in punycode format.
14980 last_queried: The time of the last DNS query in Epoch seconds
14981 format.
14982 name: The name of the NSEC record in FQDN format.
14983 next_owner_name: Name of the next owner that has authoritative
14984 data or that contains a delegation point NS record.
14985 rrset_types: The RRSet types that exist at the original owner
14986 name of the NSEC RR.
14987 ttl: The Time To Live (TTL) value for the record. A 32-bit
14988 unsigned integer that represents the duration, in seconds,
14989 for which the record is valid (cached). Zero indicates that
14990 the record should not be cached.
14991 use_ttl: Use flag for: ttl
14992 view: The name of the DNS View in which the record resides.
14993 Example: "external".
14994 zone: The name of the zone in which the record resides. Example:
14995 "zone.com". If a view is not specified when searching by
14996 zone, the default view is used.
14997 """
14998 _infoblox_type = 'record:nsec'
14999 _fields = ['cloud_info', 'creation_time', 'creator', 'dns_name',
15000 'dns_next_owner_name', 'last_queried', 'name',
15001 'next_owner_name', 'rrset_types', 'ttl', 'use_ttl', 'view',
15002 'zone']
15003 _search_for_update_fields = ['name', 'view']
15004 _updateable_search_fields = []
15005 _all_searchable_fields = ['creator', 'name', 'next_owner_name', 'view',
15006 'zone']
15007 _return_fields = ['name', 'view']
15008 _remap = {}
15009 _shadow_fields = ['_ref']
15010
15011
15012 class Nsec3Record(InfobloxObject):
15013 """ Nsec3Record: DNS NSEC3 record object.
15014 Corresponds to WAPI object 'record:nsec3'
15015
15016 When a name server receives a request for a domain name that does
15017 not exist in a zone, the name server sends an authenticated negative
15018 response in the form of an NSEC or NSEC3 RR. NSEC and NSEC3 records
15019 contain the next secure domain name in a zone and list the RR types
15020 present at the NSEC or NSEC3 RR's owner name. The difference between
15021 an NSEC and NSEC3 RRs is that the owner name in an NSEC3 RR is a
15022 cryptographic hash of the original owner name prepended to the name
15023 of the zone. NSEC3 RRs protect against zone enumeration.
15024
15025 NSEC3 resource record is desribed in RFC 5155.
15026
15027 NSEC3 records are automatically generated during signing of the
15028 corresponding zone.
15029
15030 The name part of a DNS NSEC3 object reference has the following
15031 components:
15032
15033 The name of the record.
15034
15035 The name of the view.
15036
15037 Example:
15038 record:nsec3/ZG5zLmJpsaG9zdA:us.example.com/default.external
15039
15040 Attributes:
15041 algorithm: The hash algorithm that was used.
15042 cloud_info: Structure containing all cloud API related
15043 information for this object.
15044 creation_time: The creation time of the record.
15045 creator: Creator of the record.
15046 dns_name: Name for an NSEC3 record in punycode format.
15047 flags: The set of 8 one-bit flags, of which only one flag, the
15048 Opt-Out flag, is defined by RFC 5155. The Opt-Out flag
15049 indicates whether the NSEC3 record covers unsigned
15050 delegations.
15051 iterations: The number of times the hash function was performed.
15052 last_queried: The time of the last DNS query in Epoch seconds
15053 format.
15054 name: The name of the NSEC3 record in FQDN format.
15055 next_owner_name: The hashed next owner name that has
15056 authoritative data or that contains a delegation point NS
15057 record.
15058 rrset_types: The RRSet types that exist at the original owner
15059 name of the NSEC3 RR.
15060 salt: A series of case-insensitive hexadecimal digits. It is
15061 appended to the original owner name as protection against
15062 pre-calculated dictionary attacks. A new salt value is
15063 generated when ZSK rolls over. You can control the period of
15064 the rollover. For random salt values, the selected length is
15065 between one and 15 octets.
15066 ttl: The Time To Live (TTL) value for the record. A 32-bit
15067 unsigned integer that represents the duration, in seconds,
15068 for which the record is valid (cached). Zero indicates that
15069 the record should not be cached.
15070 use_ttl: Use flag for: ttl
15071 view: The name of the DNS View in which the record resides.
15072 Example: "external".
15073 zone: The name of the zone in which the record resides. Example:
15074 "zone.com". If a view is not specified when searching by
15075 zone, the default view is used.
15076 """
15077 _infoblox_type = 'record:nsec3'
15078 _fields = ['algorithm', 'cloud_info', 'creation_time', 'creator',
15079 'dns_name', 'flags', 'iterations', 'last_queried', 'name',
15080 'next_owner_name', 'rrset_types', 'salt', 'ttl', 'use_ttl',
15081 'view', 'zone']
15082 _search_for_update_fields = ['name', 'view']
15083 _updateable_search_fields = []
15084 _all_searchable_fields = ['algorithm', 'creator', 'flags', 'iterations',
15085 'name', 'view', 'zone']
15086 _return_fields = ['name', 'view']
15087 _remap = {}
15088 _shadow_fields = ['_ref']
15089
15090
15091 class Nsec3ParamRecord(InfobloxObject):
15092 """ Nsec3ParamRecord: DNS NSEC3 record object.
15093 Corresponds to WAPI object 'record:nsec3param'
15094
15095 An authoritative DNS server uses NSEC3PARAM RRs to determine which
15096 NSEC3 records it includes in its negative responses. An NSEC3PARAM
15097 RR contains the parameters that an authoritative server needs to
15098 calculate hashed owner names. As stated in RFC 5155, the presence of
15099 an NSEC3PARAM RR at a zone apex indicates that the specified
15100 parameters may be used by authoritative servers to choose an
15101 appropriate set of NSEC3 RRs for negative responses.
15102
15103 The NSEC3PARAM resource record is desribed in RFC 5155.
15104
15105 The NSEC3PARAM record is generated automatically upon the signing of
15106 the corresponding zone.
15107
15108 The name part of a DNS NSEC3PARAM object reference has the following
15109 components:
15110
15111 The name of the record.
15112
15113 The name of the view.
15114
15115 Example:
15116 record:nsec3param/ZG5zLmJpsaG9zdA:us.example.com/default.external
15117
15118 Attributes:
15119 algorithm: The hash algorithm that was used.
15120 cloud_info: Structure containing all cloud API related
15121 information for this object.
15122 creation_time: The creation time of the record.
15123 creator: Creator of the record.
15124 dns_name: Name for an NSEC3PARAM record in punycode format.
15125 flags: The set of 8 one-bit flags, of which only one flag, the
15126 Opt-Out flag, is defined by RFC 5155. The Opt-Out flag
15127 indicates whether the NSEC3 record covers unsigned
15128 delegations.
15129 iterations: The number of times the hash function was performed.
15130 last_queried: The time of the last DNS query in Epoch seconds
15131 format.
15132 name: The name of the NSEC3PARAM record in FQDN format. It has
15133 to be the same as the zone, where the record resides.
15134 salt: A series of case-insensitive hexadecimal digits. It is
15135 appended to the original owner name as protection against
15136 pre-calculated dictionary attacks. A new salt value is
15137 generated when the ZSK rolls over, for which the user can
15138 control the period. For a random salt value, the selected
15139 length is between one and 15 octets.
15140 ttl: The Time To Live (TTL) value for the record. A 32-bit
15141 unsigned integer that represents the duration, in seconds,
15142 for which the record is valid (cached). Zero indicates that
15143 the record should not be cached.
15144 use_ttl: Use flag for: ttl
15145 view: The name of the DNS View in which the record resides.
15146 Example: "external".
15147 zone: The name of the zone in which the record resides. Example:
15148 "zone.com". If a view is not specified when searching by
15149 zone, the default view is used.
15150 """
15151 _infoblox_type = 'record:nsec3param'
15152 _fields = ['algorithm', 'cloud_info', 'creation_time', 'creator',
15153 'dns_name', 'flags', 'iterations', 'last_queried', 'name',
15154 'salt', 'ttl', 'use_ttl', 'view', 'zone']
15155 _search_for_update_fields = ['name', 'view']
15156 _updateable_search_fields = []
15157 _all_searchable_fields = ['algorithm', 'creator', 'flags', 'iterations',
15158 'name', 'view', 'zone']
15159 _return_fields = ['name', 'view']
15160 _remap = {}
15161 _shadow_fields = ['_ref']
15162
15163
15164 class PtrRecord(InfobloxObject):
15165 @classmethod
15166 def get_v4_class(cls):
15167 return PtrRecordV4
15168
15169 @classmethod
15170 def get_v6_class(cls):
15171 return PtrRecordV6
15172
15173
15174 class PtrRecordV4(PtrRecord):
15175 """ PtrRecordV4: DNS PTR record object.
15176 Corresponds to WAPI object 'record:ptr'
15177
15178 In a forward-mapping zone, a PTR (pointer) record maps a domain name
15179 to another domain name. In a reverse-mapping zone, a PTR (pointer)
15180 record maps an address to a domain name. To define a specific
15181 address-to-name mapping, add a PTR record to a previously defined
15182 authoritative reverse-mapping zone.
15183
15184 Attributes:
15185 aws_rte53_record_info: Aws Route 53 record information.
15186 cloud_info: Structure containing all cloud API related
15187 information for this object.
15188 comment: Comment for the record; maximum 256 characters.
15189 creation_time: The time of the record creation in Epoch seconds
15190 format.
15191 creator: The record creator.Note that changing creator from or
15192 to 'SYSTEM' value is not allowed.
15193 ddns_principal: The GSS-TSIG principal that owns this record.
15194 ddns_protected: Determines if the DDNS updates for this record
15195 are allowed or not.
15196 disable: Determines if the record is disabled or not. False
15197 means that the record is enabled.
15198 discovered_data: The discovered data for this PTR record.
15199 dns_name: The name for a DNS PTR record in punycode format.
15200 dns_ptrdname: The domain name of the DNS PTR record in punycode
15201 format.
15202 extattrs: Extensible attributes associated with the object.For
15203 valid values for extensible attributes, see the following
15204 information.
15205 forbid_reclamation: Determines if the reclamation is allowed for
15206 the record or not.
15207 ipv4addr: The IPv4 Address of the record.
15208 ipv6addr: The IPv6 Address of the record.
15209 last_queried: The time of the last DNS query in Epoch seconds
15210 format.
15211 ms_ad_user_data: The Microsoft Active Directory user related
15212 information.
15213 name: The name of the DNS PTR record in FQDN format.
15214 ptrdname: The domain name of the DNS PTR record in FQDN format.
15215 reclaimable: Determines if the record is reclaimable or not.
15216 shared_record_group: The name of the shared record group in
15217 which the record resides. This field exists only on
15218 db_objects if this record is a shared record.
15219 ttl: Time To Live (TTL) value for the record. A 32-bit unsigned
15220 integer that represents the duration, in seconds, that the
15221 record is valid (cached). Zero indicates that the record
15222 should not be cached.
15223 use_ttl: Use flag for: ttl
15224 view: Name of the DNS View in which the record resides, for
15225 example "external".
15226 zone: The name of the zone in which the record resides. For
15227 example: "zone.com".If a view is not specified when
15228 searching by zone, the default view is used.
15229 """
15230 _infoblox_type = 'record:ptr'
15231 _fields = ['aws_rte53_record_info', 'cloud_info', 'comment',
15232 'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
15233 'disable', 'discovered_data', 'dns_name', 'dns_ptrdname',
15234 'extattrs', 'forbid_reclamation', 'ipv4addr', 'last_queried',
15235 'ms_ad_user_data', 'name', 'ptrdname', 'reclaimable',
15236 'shared_record_group', 'ttl', 'use_ttl', 'view', 'zone']
15237 _search_for_update_fields = ['ptrdname', 'view', 'ipv4addr']
15238 _updateable_search_fields = ['comment', 'creator', 'ddns_principal',
15239 'ipv4addr', 'name', 'ptrdname']
15240 _all_searchable_fields = ['comment', 'creator', 'ddns_principal',
15241 'ipv4addr', 'name', 'ptrdname', 'reclaimable',
15242 'view', 'zone']
15243 _return_fields = ['extattrs', 'ptrdname', 'view', 'ipv4addr']
15244 _remap = {'ip': 'ipv4addr'}
15245 _shadow_fields = ['_ref', 'ipv4addr']
15246 _ip_version = 4
15247
15248
15249 class PtrRecordV6(PtrRecord):
15250 """ PtrRecordV6: DNS PTR record object.
15251 Corresponds to WAPI object 'record:ptr'
15252
15253 In a forward-mapping zone, a PTR (pointer) record maps a domain name
15254 to another domain name. In a reverse-mapping zone, a PTR (pointer)
15255 record maps an address to a domain name. To define a specific
15256 address-to-name mapping, add a PTR record to a previously defined
15257 authoritative reverse-mapping zone.
15258
15259 Attributes:
15260 aws_rte53_record_info: Aws Route 53 record information.
15261 cloud_info: Structure containing all cloud API related
15262 information for this object.
15263 comment: Comment for the record; maximum 256 characters.
15264 creation_time: The time of the record creation in Epoch seconds
15265 format.
15266 creator: The record creator.Note that changing creator from or
15267 to 'SYSTEM' value is not allowed.
15268 ddns_principal: The GSS-TSIG principal that owns this record.
15269 ddns_protected: Determines if the DDNS updates for this record
15270 are allowed or not.
15271 disable: Determines if the record is disabled or not. False
15272 means that the record is enabled.
15273 discovered_data: The discovered data for this PTR record.
15274 dns_name: The name for a DNS PTR record in punycode format.
15275 dns_ptrdname: The domain name of the DNS PTR record in punycode
15276 format.
15277 extattrs: Extensible attributes associated with the object.For
15278 valid values for extensible attributes, see the following
15279 information.
15280 forbid_reclamation: Determines if the reclamation is allowed for
15281 the record or not.
15282 ipv4addr: The IPv4 Address of the record.
15283 ipv6addr: The IPv6 Address of the record.
15284 last_queried: The time of the last DNS query in Epoch seconds
15285 format.
15286 ms_ad_user_data: The Microsoft Active Directory user related
15287 information.
15288 name: The name of the DNS PTR record in FQDN format.
15289 ptrdname: The domain name of the DNS PTR record in FQDN format.
15290 reclaimable: Determines if the record is reclaimable or not.
15291 shared_record_group: The name of the shared record group in
15292 which the record resides. This field exists only on
15293 db_objects if this record is a shared record.
15294 ttl: Time To Live (TTL) value for the record. A 32-bit unsigned
15295 integer that represents the duration, in seconds, that the
15296 record is valid (cached). Zero indicates that the record
15297 should not be cached.
15298 use_ttl: Use flag for: ttl
15299 view: Name of the DNS View in which the record resides, for
15300 example "external".
15301 zone: The name of the zone in which the record resides. For
15302 example: "zone.com".If a view is not specified when
15303 searching by zone, the default view is used.
15304 """
15305 _infoblox_type = 'record:ptr'
15306 _fields = ['aws_rte53_record_info', 'cloud_info', 'comment',
15307 'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
15308 'disable', 'discovered_data', 'dns_name', 'dns_ptrdname',
15309 'extattrs', 'forbid_reclamation', 'ipv6addr', 'last_queried',
15310 'ms_ad_user_data', 'name', 'ptrdname', 'reclaimable',
15311 'shared_record_group', 'ttl', 'use_ttl', 'view', 'zone']
15312 _search_for_update_fields = ['ptrdname', 'view', 'ipv6addr']
15313 _updateable_search_fields = ['comment', 'creator', 'ddns_principal',
15314 'ipv6addr', 'name', 'ptrdname']
15315 _all_searchable_fields = ['comment', 'creator', 'ddns_principal',
15316 'ipv6addr', 'name', 'ptrdname', 'reclaimable',
15317 'view', 'zone']
15318 _return_fields = ['extattrs', 'ptrdname', 'view', 'ipv6addr']
15319 _remap = {'ip': 'ipv6addr'}
15320 _shadow_fields = ['_ref', 'ipv6addr']
15321 _ip_version = 6
15322
15323
15324 class RpzARecord(InfobloxObject):
15325 """ RpzARecord: Response Policy Zone Substitute A Record Rule
15326 object.
15327 Corresponds to WAPI object 'record:rpz:a'
15328
15329 An RPZ Substitute (A Record) Rule maps a domain name to a substitute
15330 IPv4 address. To define a specific name-to-address mapping, add an
15331 Substitute (A Record) Rule to a previously defined Response Policy
15332 Zone.
15333
15334 This record represents the substitution rule for DNS A records.
15335
15336 Attributes:
15337 comment: The comment for the record; maximum 256 characters.
15338 disable: Determines if the record is disabled or not. False
15339 means that the record is enabled.
15340 extattrs: Extensible attributes associated with the object.For
15341 valid values for extensible attributes, see the following
15342 information.
15343 ipv4addr: The IPv4 Address of the substitute rule.
15344 name: The name for a record in FQDN format. This value cannot be
15345 in unicode format.
15346 rp_zone: The name of a response policy zone in which the record
15347 resides.
15348 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
15349 integer that represents the duration, in seconds, for which
15350 the record is valid (cached). Zero indicates that the record
15351 should not be cached.
15352 use_ttl: Use flag for: ttl
15353 view: The name of the DNS View in which the record resides.
15354 Example: "external".
15355 zone: The name of the zone in which the record resides. Example:
15356 "zone.com". If a view is not specified when searching by
15357 zone, the default view is used.
15358 """
15359 _infoblox_type = 'record:rpz:a'
15360 _fields = ['comment', 'disable', 'extattrs', 'ipv4addr', 'name', 'rp_zone',
15361 'ttl', 'use_ttl', 'view', 'zone']
15362 _search_for_update_fields = ['ipv4addr', 'name', 'view']
15363 _updateable_search_fields = ['comment', 'ipv4addr', 'name', 'view']
15364 _all_searchable_fields = ['comment', 'ipv4addr', 'name', 'view', 'zone']
15365 _return_fields = ['extattrs', 'ipv4addr', 'name', 'view']
15366 _remap = {}
15367 _shadow_fields = ['_ref']
15368
15369
15370 class RpzAIpaddressRecord(InfobloxObject):
15371 """ RpzAIpaddressRecord: Response Policy Zone Substitute IPv4
15372 Address Rule object.
15373 Corresponds to WAPI object 'record:rpz:a:ipaddress'
15374
15375 An RPZ AIpAddress is an Substitute (IPv4 Address) Rule that maps an
15376 IP address represented by a host name to a substitute IPv4 address.
15377 To define a specific address-to-address mapping, add an Substitute
15378 (IPv4 Address) Rule to a previously defined Response Policy Zone.
15379
15380 This record represents the substitution rule for IP trigger policy.
15381 It matches IP addresses that would otherwise appear in A record in
15382 the "answer" section of DNS response.
15383
15384 You should use this object to create IP address substitution rules
15385 instead usage CNAMEIpAddress object.
15386
15387 Attributes:
15388 comment: The comment for the record; maximum 256 characters.
15389 disable: Determines if the record is disabled or not. False
15390 means that the record is enabled.
15391 extattrs: Extensible attributes associated with the object.For
15392 valid values for extensible attributes, see the following
15393 information.
15394 ipv4addr: The IPv4 Address of the substitute rule.
15395 name: The name for a record in FQDN format. This value cannot be
15396 in unicode format.
15397 rp_zone: The name of a response policy zone in which the record
15398 resides.
15399 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
15400 integer that represents the duration, in seconds, for which
15401 the record is valid (cached). Zero indicates that the record
15402 should not be cached.
15403 use_ttl: Use flag for: ttl
15404 view: The name of the DNS View in which the record resides.
15405 Example: "external".
15406 zone: The name of the zone in which the record resides. Example:
15407 "zone.com". If a view is not specified when searching by
15408 zone, the default view is used.
15409 """
15410 _infoblox_type = 'record:rpz:a:ipaddress'
15411 _fields = ['comment', 'disable', 'extattrs', 'ipv4addr', 'name', 'rp_zone',
15412 'ttl', 'use_ttl', 'view', 'zone']
15413 _search_for_update_fields = ['ipv4addr', 'name', 'view']
15414 _updateable_search_fields = ['comment', 'ipv4addr', 'name', 'view']
15415 _all_searchable_fields = ['comment', 'ipv4addr', 'name', 'view', 'zone']
15416 _return_fields = ['extattrs', 'ipv4addr', 'name', 'view']
15417 _remap = {}
15418 _shadow_fields = ['_ref']
15419
15420
15421 class RpzAaaaRecord(InfobloxObject):
15422 """ RpzAaaaRecord: Response Policy Zone Substitute AAAA Record Rule
15423 object.
15424 Corresponds to WAPI object 'record:rpz:aaaa'
15425
15426 An RPZ Substitute (AAAA Record) Rule, maps a domain name to a
15427 substitute IPv6 address. To define a specific name-to-address
15428 mapping, add an Substitute (AAAA Record) Rule to a previously
15429 defined Response Policy Zone.
15430
15431 This record represents the substitution rule for DNS AAAA records.
15432
15433 Attributes:
15434 comment: The comment for the record; maximum 256 characters.
15435 disable: Determines if the record is disabled or not. False
15436 means that the record is enabled.
15437 extattrs: Extensible attributes associated with the object.For
15438 valid values for extensible attributes, see the following
15439 information.
15440 ipv6addr: The IPv6 Address of the substitute rule.
15441 name: The name for a record in FQDN format. This value cannot be
15442 in unicode format.
15443 rp_zone: The name of a response policy zone in which the record
15444 resides.
15445 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
15446 integer that represents the duration, in seconds, for which
15447 the record is valid (cached). Zero indicates that the record
15448 should not be cached.
15449 use_ttl: Use flag for: ttl
15450 view: The name of the DNS View in which the record resides.
15451 Example: "external".
15452 zone: The name of the zone in which the record resides. Example:
15453 "zone.com". If a view is not specified when searching by
15454 zone, the default view is used.
15455 """
15456 _infoblox_type = 'record:rpz:aaaa'
15457 _fields = ['comment', 'disable', 'extattrs', 'ipv6addr', 'name', 'rp_zone',
15458 'ttl', 'use_ttl', 'view', 'zone']
15459 _search_for_update_fields = ['ipv6addr', 'name', 'view']
15460 _updateable_search_fields = ['comment', 'ipv6addr', 'name', 'view']
15461 _all_searchable_fields = ['comment', 'ipv6addr', 'name', 'view', 'zone']
15462 _return_fields = ['extattrs', 'ipv6addr', 'name', 'view']
15463 _remap = {}
15464 _shadow_fields = ['_ref']
15465
15466
15467 class RpzAaaaIpaddressRecord(InfobloxObject):
15468 """ RpzAaaaIpaddressRecord: Response Policy Zone Substitute IPv6
15469 Address Rule object.
15470 Corresponds to WAPI object 'record:rpz:aaaa:ipaddress'
15471
15472 An RPZ Substitute (IPv6 Address) Rule maps an IP address represented
15473 by a host name to a substitute IPv6 address. To define a specific
15474 address-to-address mapping, add an RPZ Substitute (IPv6 Address)
15475 Rule to a previously defined Response Policy Zone.
15476
15477 This record represents the substitution rule for IP trigger policy.
15478 It matches IP addresses that would otherwise appear in AAAA record
15479 in the "answer" section of DNS response.
15480
15481 You should use this object to create IP address substitution rules
15482 instead usage CNAMEIpAddress object.
15483
15484 Attributes:
15485 comment: The comment for the record; maximum 256 characters.
15486 disable: Determines if the record is disabled or not. False
15487 means that the record is enabled.
15488 extattrs: Extensible attributes associated with the object.For
15489 valid values for extensible attributes, see the following
15490 information.
15491 ipv6addr: The IPv6 Address of the substitute rule.
15492 name: The name for a record in FQDN format. This value cannot be
15493 in unicode format.
15494 rp_zone: The name of a response policy zone in which the record
15495 resides.
15496 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
15497 integer that represents the duration, in seconds, for which
15498 the record is valid (cached). Zero indicates that the record
15499 should not be cached.
15500 use_ttl: Use flag for: ttl
15501 view: The name of the DNS View in which the record resides.
15502 Example: "external".
15503 zone: The name of the zone in which the record resides. Example:
15504 "zone.com". If a view is not specified when searching by
15505 zone, the default view is used.
15506 """
15507 _infoblox_type = 'record:rpz:aaaa:ipaddress'
15508 _fields = ['comment', 'disable', 'extattrs', 'ipv6addr', 'name', 'rp_zone',
15509 'ttl', 'use_ttl', 'view', 'zone']
15510 _search_for_update_fields = ['ipv6addr', 'name', 'view']
15511 _updateable_search_fields = ['comment', 'ipv6addr', 'name', 'view']
15512 _all_searchable_fields = ['comment', 'ipv6addr', 'name', 'view', 'zone']
15513 _return_fields = ['extattrs', 'ipv6addr', 'name', 'view']
15514 _remap = {}
15515 _shadow_fields = ['_ref']
15516
15517
15518 class RpzCnameRecord(InfobloxObject):
15519 """ RpzCnameRecord: DNS Response Policy Zone CNAME record object.
15520 Corresponds to WAPI object 'record:rpz:cname'
15521
15522 An RPZ CNAME record represents different RPZ rules, depending on the
15523 value of the canonical name. The intention of this object is to
15524 support QNAME Trigger policy. The QNAME policy trigger applies to
15525 requested domain names (QNAME). This record represents Passthru
15526 Domain Name Rule, Block Domain Name (No Such Domain) Rule, Block
15527 Domain Name (No Data) Rule and Substitute (Domain Name) Rule.
15528
15529 If canonical name is empty, it is a Block Domain Name (No Such
15530 Domain) Rule.
15531
15532 If canonical name is asterisk, it is a Block Domain Name (No Data)
15533 Rule.
15534
15535 If canonical name is the same as record name, it is a Passthru
15536 Domain Name Rule. If name of object starts with wildcard you must
15537 specify special value 'infoblox-passthru' in canonical name in order
15538 to create Wildcard Passthru Domain Name Rule, for more details
15539 please see the Infoblox Administrator Guide.
15540
15541 If canonical name is not Block Domain Name (No Such Domain) Rule,
15542 Block Domain Name (No Data) Rule, or Passthru Domain Name Rule, it
15543 is a substitution rule.
15544
15545 Attributes:
15546 canonical: The canonical name in FQDN format. This value can be
15547 in unicode format.
15548 comment: The comment for the record; maximum 256 characters.
15549 disable: Determines if the record is disabled or not. False
15550 means that the record is enabled.
15551 extattrs: Extensible attributes associated with the object.For
15552 valid values for extensible attributes, see the following
15553 information.
15554 name: The name for a record in FQDN format. This value cannot be
15555 in unicode format.
15556 rp_zone: The name of a response policy zone in which the record
15557 resides.
15558 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
15559 integer that represents the duration, in seconds, for which
15560 the record is valid (cached). Zero indicates that the record
15561 should not be cached.
15562 use_ttl: Use flag for: ttl
15563 view: The name of the DNS View in which the record resides.
15564 Example: "external".
15565 zone: The name of the zone in which the record resides. Example:
15566 "zone.com". If a view is not specified when searching by
15567 zone, the default view is used.
15568 """
15569 _infoblox_type = 'record:rpz:cname'
15570 _fields = ['canonical', 'comment', 'disable', 'extattrs', 'name',
15571 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
15572 _search_for_update_fields = ['canonical', 'name', 'view']
15573 _updateable_search_fields = ['canonical', 'comment', 'name', 'view']
15574 _all_searchable_fields = ['canonical', 'comment', 'name', 'view', 'zone']
15575 _return_fields = ['canonical', 'extattrs', 'name', 'view']
15576 _remap = {}
15577 _shadow_fields = ['_ref']
15578
15579
15580 class RpzCnameClientipaddressRecord(InfobloxObject):
15581 """ RpzCnameClientipaddressRecord: DNS RPZ CNAMEClientIpAddress
15582 record object.
15583 Corresponds to WAPI object 'record:rpz:cname:clientipaddress'
15584
15585 A DNS RPZ CNAMEClientIpAddress record represents different RPZ
15586 rules, depending on the value of the canonical name. This record
15587 represents Passthru IP Address Rule, Block IP Address (No Such
15588 Domain) Rule, Block IP Address (No Data) Rule.
15589
15590 This record represents the IP trigger policy. It matches IP
15591 addresses that would otherwise appear in A and AAAA records in the
15592 "answer" section of a DNS response.
15593
15594 If canonical name is empty, it is a Block IP Address (No Such
15595 Domain) Rule.
15596
15597 If canonical name is an asterisk, it is a Block IP Address (No Data)
15598 Rule.
15599
15600 If canonical name is equal to 'rpz-passthru', it is a Passthru IP
15601 Address Rule.
15602
15603 You cannot create Substitute (IPv4/IPv6 Address) Rule for this
15604 record see the record.rpz.a.ipaddress object or the
15605 record.rpz.aaaa.ipaddress object for details.
15606
15607 Attributes:
15608 canonical: The canonical name in FQDN format. This value can be
15609 in unicode format.
15610 comment: The comment for the record; maximum 256 characters.
15611 disable: Determines if the record is disabled or not. False
15612 means that the record is enabled.
15613 extattrs: Extensible attributes associated with the object.For
15614 valid values for extensible attributes, see the following
15615 information.
15616 is_ipv4: Indicates whether the record is an IPv4 record. If the
15617 return value is "true", it is an IPv4 record. Ohterwise, it
15618 is an IPv6 record.
15619 name: The name for a record in FQDN format. This value cannot be
15620 in unicode format.
15621 rp_zone: The name of a response policy zone in which the record
15622 resides.
15623 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
15624 integer that represents the duration, in seconds, for which
15625 the record is valid (cached). Zero indicates that the record
15626 should not be cached.
15627 use_ttl: Use flag for: ttl
15628 view: The name of the DNS View in which the record resides.
15629 Example: "external".
15630 zone: The name of the zone in which the record resides. Example:
15631 "zone.com". If a view is not specified when searching by
15632 zone, the default view is used.
15633 """
15634 _infoblox_type = 'record:rpz:cname:clientipaddress'
15635 _fields = ['canonical', 'comment', 'disable', 'extattrs', 'is_ipv4',
15636 'name', 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
15637 _search_for_update_fields = ['canonical', 'name', 'view']
15638 _updateable_search_fields = ['canonical', 'comment', 'name', 'view']
15639 _all_searchable_fields = ['canonical', 'comment', 'name', 'view', 'zone']
15640 _return_fields = ['canonical', 'extattrs', 'name', 'view']
15641 _remap = {}
15642 _shadow_fields = ['_ref']
15643
15644
15645 class RpzCnameClientipaddressdnRecord(InfobloxObject):
15646 """ RpzCnameClientipaddressdnRecord: Substitute Domain Name Based on
15647 Client IP Address rule object.
15648 Corresponds to WAPI object 'record:rpz:cname:clientipaddressdn'
15649
15650 A DNS Substitute Domain Name (Based on Client IP Address) rule
15651 represents different Response Policy Zone (RPZ) rules, depending on
15652 the value of the canonical name.
15653
15654 This rule represents Substitute (Domain Name) Rule.
15655
15656 Attributes:
15657 canonical: The canonical name in FQDN format. This value can be
15658 in unicode format.
15659 comment: The comment for the record; maximum 256 characters.
15660 disable: Determines if the record is disabled or not. False
15661 means that the record is enabled.
15662 extattrs: Extensible attributes associated with the object.For
15663 valid values for extensible attributes, see the following
15664 information.
15665 is_ipv4: Indicates whether the record is an IPv4 record. If the
15666 return value is "true", it is an IPv4 record. Ohterwise, it
15667 is an IPv6 record.
15668 name: The name for a record in FQDN format. This value cannot be
15669 in unicode format.
15670 rp_zone: The name of a response policy zone in which the record
15671 resides.
15672 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
15673 integer that represents the duration, in seconds, for which
15674 the record is valid (cached). Zero indicates that the record
15675 should not be cached.
15676 use_ttl: Use flag for: ttl
15677 view: The name of the DNS View in which the record resides.
15678 Example: "external".
15679 zone: The name of the zone in which the record resides. Example:
15680 "zone.com". If a view is not specified when searching by
15681 zone, the default view is used.
15682 """
15683 _infoblox_type = 'record:rpz:cname:clientipaddressdn'
15684 _fields = ['canonical', 'comment', 'disable', 'extattrs', 'is_ipv4',
15685 'name', 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
15686 _search_for_update_fields = ['canonical', 'name', 'view']
15687 _updateable_search_fields = ['canonical', 'comment', 'name', 'view']
15688 _all_searchable_fields = ['canonical', 'comment', 'name', 'view', 'zone']
15689 _return_fields = ['canonical', 'extattrs', 'name', 'view']
15690 _remap = {}
15691 _shadow_fields = ['_ref']
15692
15693
15694 class RpzCnameIpaddressRecord(InfobloxObject):
15695 """ RpzCnameIpaddressRecord: DNS RPZ CNAMEIpAddress record object.
15696 Corresponds to WAPI object 'record:rpz:cname:ipaddress'
15697
15698 A DNS RPZ CNAMEIpAddress record represents different RPZ rules,
15699 depending on the value of the canonical name. This record represents
15700 Passthru IP Address Rule, Block IP Address (No Such Domain) Rule,
15701 Block IP Address (No Data) Rule.
15702
15703 This record represents IP trigger policy. It matches IP addresses
15704 that would otherwise appear in A and AAAA records in the "answer"
15705 section of DNS response.
15706
15707 If canonical name is empty, it is a Block IP Address (No Such
15708 Domain) Rule.
15709
15710 If canonical name is an asterisk, it is a Block IP Address (No Data)
15711 Rule.
15712
15713 If canonical name is the same as host name, it is a Passthru IP
15714 Address Rule.
15715
15716 You cannot create Substitute (IPv4/IPv6 Address) Rule for this
15717 record see AIpAddress or AAAAIpAddress for details.
15718
15719 Attributes:
15720 canonical: The canonical name in FQDN format. This value can be
15721 in unicode format.
15722 comment: The comment for the record; maximum 256 characters.
15723 disable: Determines if the record is disabled or not. False
15724 means that the record is enabled.
15725 extattrs: Extensible attributes associated with the object.For
15726 valid values for extensible attributes, see the following
15727 information.
15728 is_ipv4: Indicates whether the record is an IPv4 record. If the
15729 return value is "true", it is an IPv4 record. Ohterwise, it
15730 is an IPv6 record.
15731 name: The name for a record in FQDN format. This value cannot be
15732 in unicode format.
15733 rp_zone: The name of a response policy zone in which the record
15734 resides.
15735 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
15736 integer that represents the duration, in seconds, for which
15737 the record is valid (cached). Zero indicates that the record
15738 should not be cached.
15739 use_ttl: Use flag for: ttl
15740 view: The name of the DNS View in which the record resides.
15741 Example: "external".
15742 zone: The name of the zone in which the record resides. Example:
15743 "zone.com". If a view is not specified when searching by
15744 zone, the default view is used.
15745 """
15746 _infoblox_type = 'record:rpz:cname:ipaddress'
15747 _fields = ['canonical', 'comment', 'disable', 'extattrs', 'is_ipv4',
15748 'name', 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
15749 _search_for_update_fields = ['canonical', 'name', 'view']
15750 _updateable_search_fields = ['canonical', 'comment', 'name', 'view']
15751 _all_searchable_fields = ['canonical', 'comment', 'name', 'view', 'zone']
15752 _return_fields = ['canonical', 'extattrs', 'name', 'view']
15753 _remap = {}
15754 _shadow_fields = ['_ref']
15755
15756
15757 class RpzCnameIpaddressdnRecord(InfobloxObject):
15758 """ RpzCnameIpaddressdnRecord: Substitute Domain Name Based on IP
15759 Address rule object.
15760 Corresponds to WAPI object 'record:rpz:cname:ipaddressdn'
15761
15762 A DNS Substitute Domain Name (Based on IP Address) rule represents
15763 different Response Policy Zone (RPZ) rules, depending on the value
15764 of the canonical name.
15765
15766 This rule represents Substitute (Domain Name) Rule.
15767
15768 Attributes:
15769 canonical: The canonical name in FQDN format. This value can be
15770 in unicode format.
15771 comment: The comment for the record; maximum 256 characters.
15772 disable: Determines if the record is disabled or not. False
15773 means that the record is enabled.
15774 extattrs: Extensible attributes associated with the object.For
15775 valid values for extensible attributes, see the following
15776 information.
15777 is_ipv4: Indicates whether the record is an IPv4 record. If the
15778 return value is "true", it is an IPv4 record. Ohterwise, it
15779 is an IPv6 record.
15780 name: The name for a record in FQDN format. This value cannot be
15781 in unicode format.
15782 rp_zone: The name of a response policy zone in which the record
15783 resides.
15784 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
15785 integer that represents the duration, in seconds, for which
15786 the record is valid (cached). Zero indicates that the record
15787 should not be cached.
15788 use_ttl: Use flag for: ttl
15789 view: The name of the DNS View in which the record resides.
15790 Example: "external".
15791 zone: The name of the zone in which the record resides. Example:
15792 "zone.com". If a view is not specified when searching by
15793 zone, the default view is used.
15794 """
15795 _infoblox_type = 'record:rpz:cname:ipaddressdn'
15796 _fields = ['canonical', 'comment', 'disable', 'extattrs', 'is_ipv4',
15797 'name', 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
15798 _search_for_update_fields = ['canonical', 'name', 'view']
15799 _updateable_search_fields = ['canonical', 'comment', 'name', 'view']
15800 _all_searchable_fields = ['canonical', 'comment', 'name', 'view', 'zone']
15801 _return_fields = ['canonical', 'extattrs', 'name', 'view']
15802 _remap = {}
15803 _shadow_fields = ['_ref']
15804
15805
15806 class RpzMxRecord(InfobloxObject):
15807 """ RpzMxRecord: Response Policy Zone Substitute MX Record Rule
15808 object.
15809 Corresponds to WAPI object 'record:rpz:mx'
15810
15811 An RPZ Substitute (MX Record) Rule maps a domain name to a mail
15812 exchanger. A mail exchanger is a server that either delivers or
15813 forwards mail.
15814
15815 This record represents the substitution rule for DNS MX records.
15816
15817 Attributes:
15818 comment: The comment for the record; maximum 256 characters.
15819 disable: Determines if the record is disabled or not. False
15820 means that the record is enabled.
15821 extattrs: Extensible attributes associated with the object.For
15822 valid values for extensible attributes, see the following
15823 information.
15824 mail_exchanger: Mail exchanger name in FQDN format. This value
15825 can be in unicode format.
15826 name: The name for a record in FQDN format. This value cannot be
15827 in unicode format.
15828 preference: Preference value, 0 to 65535 (inclusive) in 32-bit
15829 unsigned integer format.
15830 rp_zone: The name of a response policy zone in which the record
15831 resides.
15832 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
15833 integer that represents the duration, in seconds, for which
15834 the record is valid (cached). Zero indicates that the record
15835 should not be cached.
15836 use_ttl: Use flag for: ttl
15837 view: The name of the DNS View in which the record resides.
15838 Example: "external".
15839 zone: The name of the zone in which the record resides. Example:
15840 "zone.com". If a view is not specified when searching by
15841 zone, the default view is used.
15842 """
15843 _infoblox_type = 'record:rpz:mx'
15844 _fields = ['comment', 'disable', 'extattrs', 'mail_exchanger', 'name',
15845 'preference', 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
15846 _search_for_update_fields = ['mail_exchanger', 'name', 'preference',
15847 'view']
15848 _updateable_search_fields = ['comment', 'mail_exchanger', 'name',
15849 'preference', 'view']
15850 _all_searchable_fields = ['comment', 'mail_exchanger', 'name',
15851 'preference', 'view', 'zone']
15852 _return_fields = ['extattrs', 'mail_exchanger', 'name', 'preference',
15853 'view']
15854 _remap = {}
15855 _shadow_fields = ['_ref']
15856
15857
15858 class RpzNaptrRecord(InfobloxObject):
15859 """ RpzNaptrRecord: Response Policy Zone Substitute NAPTR Record
15860 Rule object.
15861 Corresponds to WAPI object 'record:rpz:naptr'
15862
15863 An RPZ Substitute (NAPTR Record) Rule object represents the
15864 substitution rule for DNS Naming Authority Pointer (NAPTR) records.
15865 This rule specifies a regular expression-based rewrite rule that,
15866 when applied to an existing string, produces a new domain name or
15867 URI.
15868
15869 Attributes:
15870 comment: The comment for the record; maximum 256 characters.
15871 disable: Determines if the record is disabled or not. False
15872 means that the record is enabled.
15873 extattrs: Extensible attributes associated with the object.For
15874 valid values for extensible attributes, see the following
15875 information.
15876 flags: The flags used to control the interpretation of the
15877 fields for a Substitute (NAPTR Record) Rule object.
15878 Supported values for the flags field are "U", "S", "P" and
15879 "A".
15880 last_queried: The time of the last DNS query in Epoch seconds
15881 format.
15882 name: The name for a record in FQDN format. This value cannot be
15883 in unicode format.
15884 order: The order parameter of the Substitute (NAPTR Record) Rule
15885 records. This parameter specifies the order in which the
15886 NAPTR rules are applied when multiple rules are present.
15887 Valid values are from 0 to 65535 (inclusive), in 32-bit
15888 unsigned integer format.
15889 preference: The preference of the Substitute (NAPTR Record) Rule
15890 record. The preference field determines the order NAPTR
15891 records are processed when multiple records with the same
15892 order parameter are present. Valid values are from 0 to
15893 65535 (inclusive), in 32-bit unsigned integer format.
15894 regexp: The regular expression-based rewriting rule of the
15895 Substitute (NAPTR Record) Rule record. This should be a
15896 POSIX compliant regular expression, including the
15897 substitution rule and flags. Refer to RFC 2915 for the field
15898 syntax details.
15899 replacement: The replacement field of the Substitute (NAPTR
15900 Record) Rule object. For nonterminal NAPTR records, this
15901 field specifies the next domain name to look up. This value
15902 can be in unicode format.
15903 rp_zone: The name of a response policy zone in which the record
15904 resides.
15905 services: The services field of the Substitute (NAPTR Record)
15906 Rule object; maximum 128 characters. The services field
15907 contains protocol and service identifiers, such as
15908 "http+E2U" or "SIPS+D2T".
15909 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
15910 integer that represents the duration, in seconds, for which
15911 the record is valid (cached). Zero indicates that the record
15912 should not be cached.
15913 use_ttl: Use flag for: ttl
15914 view: The name of the DNS View in which the record resides.
15915 Example: "external".
15916 zone: The name of the zone in which the record resides. Example:
15917 "zone.com". If a view is not specified when searching by
15918 zone, the default view is used.
15919 """
15920 _infoblox_type = 'record:rpz:naptr'
15921 _fields = ['comment', 'disable', 'extattrs', 'flags', 'last_queried',
15922 'name', 'order', 'preference', 'regexp', 'replacement',
15923 'rp_zone', 'services', 'ttl', 'use_ttl', 'view', 'zone']
15924 _search_for_update_fields = ['name', 'order', 'preference', 'replacement',
15925 'services', 'view']
15926 _updateable_search_fields = ['comment', 'flags', 'name', 'order',
15927 'preference', 'replacement', 'services',
15928 'view']
15929 _all_searchable_fields = ['comment', 'flags', 'name', 'order',
15930 'preference', 'replacement', 'services', 'view',
15931 'zone']
15932 _return_fields = ['extattrs', 'name', 'order', 'preference', 'regexp',
15933 'replacement', 'services', 'view']
15934 _remap = {}
15935 _shadow_fields = ['_ref']
15936
15937
15938 class RpzPtrRecord(InfobloxObject):
15939 @classmethod
15940 def get_v4_class(cls):
15941 return RpzPtrRecordV4
15942
15943 @classmethod
15944 def get_v6_class(cls):
15945 return RpzPtrRecordV6
15946
15947
15948 class RpzPtrRecordV4(RpzPtrRecord):
15949 """ RpzPtrRecordV4: Response Policy Zone Substitute PTR Record Rule
15950 object.
15951 Corresponds to WAPI object 'record:rpz:ptr'
15952
15953 An RPZ Substitute (PTR Record) Rule object represents a Pointer
15954 (PTR) resource record. To define a specific address-to-name mapping,
15955 add an RPZ Substitute (PTR Record) Rule to a previously defined
15956 Response Policy Zone.
15957
15958 This record represents the substitution rule for DNS PTR records.
15959
15960 Attributes:
15961 comment: The comment for the record; maximum 256 characters.
15962 disable: Determines if the record is disabled or not. False
15963 means that the record is enabled.
15964 extattrs: Extensible attributes associated with the object.For
15965 valid values for extensible attributes, see the following
15966 information.
15967 ipv4addr: The IPv4 Address of the substitute rule.
15968 ipv6addr: The IPv6 Address of the substitute rule.
15969 name: The name of the RPZ Substitute (PTR Record) Rule object in
15970 FQDN format.
15971 ptrdname: The domain name of the RPZ Substitute (PTR Record)
15972 Rule object in FQDN format.
15973 rp_zone: The name of a response policy zone in which the record
15974 resides.
15975 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
15976 integer that represents the duration, in seconds, for which
15977 the record is valid (cached). Zero indicates that the record
15978 should not be cached.
15979 use_ttl: Use flag for: ttl
15980 view: The name of the DNS View in which the record resides.
15981 Example: "external".
15982 zone: The name of the zone in which the record resides. Example:
15983 "zone.com". If a view is not specified when searching by
15984 zone, the default view is used.
15985 """
15986 _infoblox_type = 'record:rpz:ptr'
15987 _fields = ['comment', 'disable', 'extattrs', 'ipv4addr', 'name',
15988 'ptrdname', 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
15989 _search_for_update_fields = ['ptrdname', 'view', 'ipv4addr']
15990 _updateable_search_fields = ['comment', 'ipv4addr', 'name', 'ptrdname',
15991 'view']
15992 _all_searchable_fields = ['comment', 'ipv4addr', 'name', 'ptrdname',
15993 'view', 'zone']
15994 _return_fields = ['extattrs', 'ptrdname', 'view', 'ipv4addr']
15995 _remap = {'ip': 'ipv4addr'}
15996 _shadow_fields = ['_ref', 'ipv4addr']
15997 _ip_version = 4
15998
15999
16000 class RpzPtrRecordV6(RpzPtrRecord):
16001 """ RpzPtrRecordV6: Response Policy Zone Substitute PTR Record Rule
16002 object.
16003 Corresponds to WAPI object 'record:rpz:ptr'
16004
16005 An RPZ Substitute (PTR Record) Rule object represents a Pointer
16006 (PTR) resource record. To define a specific address-to-name mapping,
16007 add an RPZ Substitute (PTR Record) Rule to a previously defined
16008 Response Policy Zone.
16009
16010 This record represents the substitution rule for DNS PTR records.
16011
16012 Attributes:
16013 comment: The comment for the record; maximum 256 characters.
16014 disable: Determines if the record is disabled or not. False
16015 means that the record is enabled.
16016 extattrs: Extensible attributes associated with the object.For
16017 valid values for extensible attributes, see the following
16018 information.
16019 ipv4addr: The IPv4 Address of the substitute rule.
16020 ipv6addr: The IPv6 Address of the substitute rule.
16021 name: The name of the RPZ Substitute (PTR Record) Rule object in
16022 FQDN format.
16023 ptrdname: The domain name of the RPZ Substitute (PTR Record)
16024 Rule object in FQDN format.
16025 rp_zone: The name of a response policy zone in which the record
16026 resides.
16027 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
16028 integer that represents the duration, in seconds, for which
16029 the record is valid (cached). Zero indicates that the record
16030 should not be cached.
16031 use_ttl: Use flag for: ttl
16032 view: The name of the DNS View in which the record resides.
16033 Example: "external".
16034 zone: The name of the zone in which the record resides. Example:
16035 "zone.com". If a view is not specified when searching by
16036 zone, the default view is used.
16037 """
16038 _infoblox_type = 'record:rpz:ptr'
16039 _fields = ['comment', 'disable', 'extattrs', 'ipv6addr', 'name',
16040 'ptrdname', 'rp_zone', 'ttl', 'use_ttl', 'view', 'zone']
16041 _search_for_update_fields = ['ptrdname', 'view', 'ipv6addr']
16042 _updateable_search_fields = ['comment', 'ipv6addr', 'name', 'ptrdname',
16043 'view']
16044 _all_searchable_fields = ['comment', 'ipv6addr', 'name', 'ptrdname',
16045 'view', 'zone']
16046 _return_fields = ['extattrs', 'ptrdname', 'view', 'ipv6addr']
16047 _remap = {'ip': 'ipv6addr'}
16048 _shadow_fields = ['_ref', 'ipv6addr']
16049 _ip_version = 6
16050
16051
16052 class RpzSrvRecord(InfobloxObject):
16053 """ RpzSrvRecord: Response Policy Zone Substitute SRV Record Rule
16054 object.
16055 Corresponds to WAPI object 'record:rpz:srv'
16056
16057 An RPZ Substitute (SRV Record) Rule object represents the
16058 substitution rule for DNS SRV records.
16059
16060 Attributes:
16061 comment: The comment for the record; maximum 256 characters.
16062 disable: Determines if the record is disabled or not. False
16063 means that the record is enabled.
16064 extattrs: Extensible attributes associated with the object.For
16065 valid values for extensible attributes, see the following
16066 information.
16067 name: The name for a record in FQDN format. This value cannot be
16068 in unicode format.
16069 port: The port of the Substitute (SRV Record) Rule. Valid values
16070 are from 0 to 65535 (inclusive), in 32-bit unsigned integer
16071 format.
16072 priority: The priority of the Substitute (SRV Record) Rule.
16073 Valid values are from 0 to 65535 (inclusive), in 32-bit
16074 unsigned integer format.
16075 rp_zone: The name of a response policy zone in which the record
16076 resides.
16077 target: The target of the Substitute (SRV Record) Rule in FQDN
16078 format. This value can be in unicode format.
16079 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
16080 integer that represents the duration, in seconds, for which
16081 the record is valid (cached). Zero indicates that the record
16082 should not be cached.
16083 use_ttl: Use flag for: ttl
16084 view: The name of the DNS View in which the record resides.
16085 Example: "external".
16086 weight: The weight of the Substitute (SRV Record) Rule. Valid
16087 values are from 0 to 65535 (inclusive), in 32-bit unsigned
16088 integer format.
16089 zone: The name of the zone in which the record resides. Example:
16090 "zone.com". If a view is not specified when searching by
16091 zone, the default view is used.
16092 """
16093 _infoblox_type = 'record:rpz:srv'
16094 _fields = ['comment', 'disable', 'extattrs', 'name', 'port', 'priority',
16095 'rp_zone', 'target', 'ttl', 'use_ttl', 'view', 'weight', 'zone']
16096 _search_for_update_fields = ['name', 'port', 'priority', 'target', 'view',
16097 'weight']
16098 _updateable_search_fields = ['comment', 'name', 'port', 'priority',
16099 'target', 'view', 'weight']
16100 _all_searchable_fields = ['comment', 'name', 'port', 'priority', 'target',
16101 'view', 'weight', 'zone']
16102 _return_fields = ['extattrs', 'name', 'port', 'priority', 'target', 'view',
16103 'weight']
16104 _remap = {}
16105 _shadow_fields = ['_ref']
16106
16107
16108 class RpzTxtRecord(InfobloxObject):
16109 """ RpzTxtRecord: Response Policy Zone Substitute TXT Record Rule
16110 object.
16111 Corresponds to WAPI object 'record:rpz:txt'
16112
16113 An RPZ Substitute (TXT Record) Rule object represents the
16114 substitution rule for DNS TXT records.
16115
16116 Attributes:
16117 comment: The comment for the record; maximum 256 characters.
16118 disable: Determines if the record is disabled or not. False
16119 means that the record is enabled.
16120 extattrs: Extensible attributes associated with the object.For
16121 valid values for extensible attributes, see the following
16122 information.
16123 name: The name for a record in FQDN format. This value cannot be
16124 in unicode format.
16125 rp_zone: The name of a response policy zone in which the record
16126 resides.
16127 text: Text associated with the record. It can contain up to 255
16128 bytes per substring, up to a total of 512 bytes. To enter
16129 leading, trailing, or embedded spaces in the text, add
16130 quotes around the text to preserve the spaces.
16131 ttl: The Time To Live (TTL) value for record. A 32-bit unsigned
16132 integer that represents the duration, in seconds, for which
16133 the record is valid (cached). Zero indicates that the record
16134 should not be cached.
16135 use_ttl: Use flag for: ttl
16136 view: The name of the DNS View in which the record resides.
16137 Example: "external".
16138 zone: The name of the zone in which the record resides. Example:
16139 "zone.com". If a view is not specified when searching by
16140 zone, the default view is used.
16141 """
16142 _infoblox_type = 'record:rpz:txt'
16143 _fields = ['comment', 'disable', 'extattrs', 'name', 'rp_zone', 'text',
16144 'ttl', 'use_ttl', 'view', 'zone']
16145 _search_for_update_fields = ['name', 'text', 'view']
16146 _updateable_search_fields = ['comment', 'name', 'text', 'view']
16147 _all_searchable_fields = ['comment', 'name', 'text', 'view', 'zone']
16148 _return_fields = ['extattrs', 'name', 'text', 'view']
16149 _remap = {}
16150 _shadow_fields = ['_ref']
16151
16152
16153 class RrsigRecord(InfobloxObject):
16154 """ RrsigRecord: DNS RRSIG record object.
16155 Corresponds to WAPI object 'record:rrsig'
16156
16157 RRSIG records are one of the resource records in DNSSEC. These
16158 records store digital signatures of resource record sets (RRsets).
16159 Digital signatures are used to authenticate data that is in the
16160 signed RRsets.
16161
16162 A signed zone has multiple RRsets, one for each record type and
16163 owner name. (The owner is the domain name of the RRset.) When an
16164 authoritative name server uses the private key of the ZSK pair to
16165 sign each RRset in a zone, the digital signature on each RRset is
16166 stored in an RRSIG record. Therefore, a signed zone contains an
16167 RRSIG record for each RRset.
16168
16169 RRSIG resource records are defined in RFC 4034.
16170
16171 RRSIG records are automatically generated upon the signing of an
16172 authoritative zone.
16173
16174 The name part of a DNS RRSIG object reference has the following
16175 components:
16176
16177 The name of the record.
16178
16179 The name of the view.
16180
16181 Example:
16182 record:rrsig/ZG5zLmJpsaG9zdA:us.example.com/default.external
16183
16184 Attributes:
16185 algorithm: The cryptographic algorithm that was used to create
16186 the signature. It uses the same algorithm types as the
16187 DNSKEY record indicated in the key tag field.
16188 cloud_info: Structure containing all cloud API related
16189 information for this object.
16190 creation_time: The creation time of the record.
16191 creator: The record creator.
16192 dns_name: Name for an RRSIG record in punycode format.
16193 dns_signer_name: The domain name, in punycode format, of the
16194 zone that contains the signed RRset.
16195 expiration_time: The expiry time of an RRSIG record in Epoch
16196 seconds format.
16197 inception_time: The inception time of an RRSIG record in Epoch
16198 seconds format.
16199 key_tag: The key tag value of the DNSKEY RR that validates the
16200 signature.
16201 labels: The number of labels in the name of the RRset signed
16202 with the RRSIG object.
16203 last_queried: The time of the last DNS query in Epoch seconds
16204 format.
16205 name: The name of the RRSIG record in FQDN format.
16206 original_ttl: The TTL value of the RRset covered by the RRSIG
16207 record.
16208 signature: The Base64 encoded cryptographic signature that
16209 covers the RRSIG RDATA of the RRSIG Record object.
16210 signer_name: The domain name of the zone in FQDN format that
16211 contains the signed RRset.
16212 ttl: The Time To Live (TTL) value for the record. A 32-bit
16213 unsigned integer that represents the duration, in seconds,
16214 for which the record is valid (cached). Zero indicates that
16215 the record should not be cached.
16216 type_covered: The RR type covered by the RRSIG record.
16217 use_ttl: Use flag for: ttl
16218 view: The name of the DNS View in which the record resides.
16219 Example: "external".
16220 zone: The name of the zone in which the record resides. Example:
16221 "zone.com". If a view is not specified when searching by
16222 zone, the default view is used.
16223 """
16224 _infoblox_type = 'record:rrsig'
16225 _fields = ['algorithm', 'cloud_info', 'creation_time', 'creator',
16226 'dns_name', 'dns_signer_name', 'expiration_time',
16227 'inception_time', 'key_tag', 'labels', 'last_queried', 'name',
16228 'original_ttl', 'signature', 'signer_name', 'ttl',
16229 'type_covered', 'use_ttl', 'view', 'zone']
16230 _search_for_update_fields = ['name', 'view']
16231 _updateable_search_fields = []
16232 _all_searchable_fields = ['algorithm', 'creator', 'key_tag', 'labels',
16233 'name', 'original_ttl', 'signer_name',
16234 'type_covered', 'view', 'zone']
16235 _return_fields = ['name', 'view']
16236 _remap = {}
16237 _shadow_fields = ['_ref']
16238
16239
16240 class SRVRecord(InfobloxObject):
16241 """ SRVRecord: DNS SRV record object.
16242 Corresponds to WAPI object 'record:srv'
16243
16244 A DNS SRV object represents an SRV resource record, which is also
16245 known as a service record. An SRV record provides information on
16246 available services.
16247
16248 Attributes:
16249 aws_rte53_record_info: Aws Route 53 record information.
16250 cloud_info: Structure containing all cloud API related
16251 information for this object.
16252 comment: Comment for the record; maximum 256 characters.
16253 creation_time: The time of the record creation in Epoch seconds
16254 format.
16255 creator: The record creator.Note that changing creator from or
16256 to 'SYSTEM' value is not allowed.
16257 ddns_principal: The GSS-TSIG principal that owns this record.
16258 ddns_protected: Determines if the DDNS updates for this record
16259 are allowed or not.
16260 disable: Determines if the record is disabled or not. False
16261 means that the record is enabled.
16262 dns_name: The name for an SRV record in punycode format.
16263 dns_target: The name for a SRV record in punycode format.
16264 extattrs: Extensible attributes associated with the object.For
16265 valid values for extensible attributes, see the following
16266 information.
16267 forbid_reclamation: Determines if the reclamation is allowed for
16268 the record or not.
16269 last_queried: The time of the last DNS query in Epoch seconds
16270 format.
16271 name: A name in FQDN format. This value can be in unicode
16272 format.
16273 port: The port of the SRV record. Valid values are from 0 to
16274 65535 (inclusive), in 32-bit unsigned integer format.
16275 priority: The priority of the SRV record. Valid values are from
16276 0 to 65535 (inclusive), in 32-bit unsigned integer format.
16277 reclaimable: Determines if the record is reclaimable or not.
16278 shared_record_group: The name of the shared record group in
16279 which the record resides. This field exists only on
16280 db_objects if this record is a shared record.
16281 target: The target of the SRV record in FQDN format. This value
16282 can be in unicode format.
16283 ttl: The Time to Live (TTL) value for the record. A 32-bit
16284 unsigned integer that represents the duration, in seconds,
16285 for which the record is valid (cached). Zero indicates that
16286 the record should not be cached.
16287 use_ttl: Use flag for: ttl
16288 view: The name of the DNS view in which the record resides.
16289 Example: "external".
16290 weight: The weight of the SRV record. Valid values are from 0 to
16291 65535 (inclusive), in 32-bit unsigned integer format.
16292 zone: The name of the zone in which the record resides. Example:
16293 "zone.com". If a view is not specified when searching by
16294 zone, the default view is used.
16295 """
16296 _infoblox_type = 'record:srv'
16297 _fields = ['aws_rte53_record_info', 'cloud_info', 'comment',
16298 'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
16299 'disable', 'dns_name', 'dns_target', 'extattrs',
16300 'forbid_reclamation', 'last_queried', 'name', 'port',
16301 'priority', 'reclaimable', 'shared_record_group', 'target',
16302 'ttl', 'use_ttl', 'view', 'weight', 'zone']
16303 _search_for_update_fields = ['name', 'port', 'priority', 'target', 'view',
16304 'weight']
16305 _updateable_search_fields = ['comment', 'creator', 'ddns_principal',
16306 'name', 'port', 'priority', 'target',
16307 'weight']
16308 _all_searchable_fields = ['comment', 'creator', 'ddns_principal', 'name',
16309 'port', 'priority', 'reclaimable', 'target',
16310 'view', 'weight', 'zone']
16311 _return_fields = ['extattrs', 'name', 'port', 'priority', 'target', 'view',
16312 'weight']
16313 _remap = {}
16314 _shadow_fields = ['_ref']
16315
16316
16317 class TlsaRecord(InfobloxObject):
16318 """ TlsaRecord: DNS TLSA record object.
16319 Corresponds to WAPI object 'record:tlsa'
16320
16321 The TLSA DNS resource record (RR) is used to associate a TLS server
16322 certificate or public key with the domain name where the record is
16323 found, thus forming a 'TLSA certificate association'. For further
16324 details see RFC-6698. Note that you must specify only one view for
16325 the attribute 'views'.
16326
16327 Attributes:
16328 certificate_data: Hex dump of either raw data for matching type
16329 0, or the hash of the raw data for matching types 1 and 2.
16330 certificate_usage: Specifies the provided association that will
16331 be used to match the certificate presented in the TLS
16332 handshake. Based on RFC-6698.
16333 cloud_info: Structure containing all cloud API related
16334 information for this object.
16335 comment: Comment for the record; maximum 256 characters.
16336 creator: The record creator. Note that changing creator from or
16337 to 'SYSTEM' value is not allowed.
16338 disable: Determines if the record is disabled or not. False
16339 means that the record is enabled.
16340 dns_name: The name of the TLSA record in punycode format.
16341 extattrs: Extensible attributes associated with the object.For
16342 valid values for extensible attributes, see the following
16343 information.
16344 last_queried: The time of the last DNS query in Epoch seconds
16345 format.
16346 matched_type: Specifies how the certificate association is
16347 presented. Based on RFC-6698.
16348 name: The TLSA record name in FQDN format. This value can be in
16349 unicode format.
16350 selector: Specifies which part of the TLS certificate presented
16351 by the server will be matched against the association data.
16352 Based on RFC-6698.
16353 ttl: The Time to Live (TTL) value for the record. A 32-bit
16354 unsigned integer that represents the duration, in seconds,
16355 for which the record is valid (cached). Zero indicates that
16356 the record should not be cached.
16357 use_ttl: Use flag for: ttl
16358 view: The name of the DNS view in which the record resides.
16359 Example: "external".
16360 zone: The name of the zone in which the record resides. Example:
16361 "zone.com". If a view is not specified when searching by
16362 zone, the default view is used.
16363 """
16364 _infoblox_type = 'record:tlsa'
16365 _fields = ['certificate_data', 'certificate_usage', 'cloud_info',
16366 'comment', 'creator', 'disable', 'dns_name', 'extattrs',
16367 'last_queried', 'matched_type', 'name', 'selector', 'ttl',
16368 'use_ttl', 'view', 'zone']
16369 _search_for_update_fields = ['name', 'view']
16370 _updateable_search_fields = ['comment', 'creator', 'name', 'view']
16371 _all_searchable_fields = ['comment', 'creator', 'name', 'view', 'zone']
16372 _return_fields = ['extattrs', 'name', 'view']
16373 _remap = {}
16374 _shadow_fields = ['_ref']
16375
16376
16377 class TXTRecord(InfobloxObject):
16378 """ TXTRecord: DNS TXT record object.
16379 Corresponds to WAPI object 'record:txt'
16380
16381 A TXT (text record) record contains supplemental information for a
16382 host. For example, if you have a sales server that serves only North
16383 America, you can create a text record stating this fact. You can
16384 create more than one text record for a domain name.
16385
16386 Attributes:
16387 aws_rte53_record_info: Aws Route 53 record information.
16388 cloud_info: Structure containing all cloud API related
16389 information for this object.
16390 comment: Comment for the record; maximum 256 characters.
16391 creation_time: The time of the record creation in Epoch seconds
16392 format.
16393 creator: The record creator.Note that changing creator from or
16394 to 'SYSTEM' value is not allowed.
16395 ddns_principal: The GSS-TSIG principal that owns this record.
16396 ddns_protected: Determines if the DDNS updates for this record
16397 are allowed or not.
16398 disable: Determines if the record is disabled or not. False
16399 means that the record is enabled.
16400 dns_name: The name for a TXT record in punycode format.
16401 extattrs: Extensible attributes associated with the object.For
16402 valid values for extensible attributes, see the following
16403 information.
16404 forbid_reclamation: Determines if the reclamation is allowed for
16405 the record or not.
16406 last_queried: The time of the last DNS query in Epoch seconds
16407 format.
16408 name: Name for the TXT record in FQDN format. This value can be
16409 in unicode format.
16410 reclaimable: Determines if the record is reclaimable or not.
16411 shared_record_group: The name of the shared record group in
16412 which the record resides. This field exists only on
16413 db_objects if this record is a shared record.
16414 text: Text associated with the record. It can contain up to 255
16415 bytes per substring, up to a total of 512 bytes. To enter
16416 leading, trailing, or embedded spaces in the text, add
16417 quotes around the text to preserve the spaces.
16418 ttl: The Time To Live (TTL) value for the record. A 32-bit
16419 unsigned integer that represents the duration, in seconds,
16420 for which the record is valid (cached). Zero indicates that
16421 the record should not be cached.
16422 use_ttl: Use flag for: ttl
16423 view: The name of the DNS view in which the record resides.
16424 Example: "external".
16425 zone: The name of the zone in which the record resides. Example:
16426 "zone.com". If a view is not specified when searching by
16427 zone, the default view is used.
16428 """
16429 _infoblox_type = 'record:txt'
16430 _fields = ['aws_rte53_record_info', 'cloud_info', 'comment',
16431 'creation_time', 'creator', 'ddns_principal', 'ddns_protected',
16432 'disable', 'dns_name', 'extattrs', 'forbid_reclamation',
16433 'last_queried', 'name', 'reclaimable', 'shared_record_group',
16434 'text', 'ttl', 'use_ttl', 'view', 'zone']
16435 _search_for_update_fields = ['name', 'view']
16436 _updateable_search_fields = ['comment', 'creator', 'ddns_principal',
16437 'name', 'text', 'view']
16438 _all_searchable_fields = ['comment', 'creator', 'ddns_principal', 'name',
16439 'reclaimable', 'text', 'view', 'zone']
16440 _return_fields = ['extattrs', 'name', 'text', 'view']
16441 _remap = {}
16442 _shadow_fields = ['_ref']
16443
16444
16445 class UnknownRecord(InfobloxObject):
16446 """ UnknownRecord: DNS UNKNOWN record object.
16447 Corresponds to WAPI object 'record:unknown'
16448
16449 An "RR of unknown type" is an RR whose RDATA format is not known to
16450 the DNS implementation at hand, and whose type is not an assigned
16451 QTYPE or Meta-TYPE as specified in 2929] nor within the range
16452 reserved in that section for assignment only to QTYPEs and Meta-
16453 TYPEs. The purpose of the Unknown resource record is to allow future
16454 DNS implementations to handle new RR types transparently. For
16455 further details see RFC-3597.
16456
16457 Attributes:
16458 cloud_info: Structure containing all cloud API related
16459 information for this object.
16460 comment: Comment for the record; maximum 256 characters.
16461 creator: The record creator. Note that changing creator from or
16462 to 'SYSTEM' value is not allowed.
16463 disable: Determines if the record is disabled or not. False
16464 means that the record is enabled.
16465 display_rdata: Standard textual representation of the RDATA.
16466 dns_name: The name of the unknown record in punycode format.
16467 enable_host_name_policy: Determines if host name policy is
16468 applicable for the record.
16469 extattrs: Extensible attributes associated with the object.For
16470 valid values for extensible attributes, see the following
16471 information.
16472 last_queried: The time of the last DNS query in Epoch seconds
16473 format.
16474 name: The Unknown record name in FQDN format. This value can be
16475 in unicode format.
16476 policy: The host name policy for the record.
16477 record_type: Specifies type of unknown resource record.
16478 subfield_values: The list of rdata subfield values of unknown
16479 resource record.
16480 ttl: The Time to Live (TTL) value for the record. A 32-bit
16481 unsigned integer that represents the duration, in seconds,
16482 for which the record is valid (cached). Zero indicates that
16483 the record should not be cached.
16484 use_ttl: Use flag for: ttl
16485 view: The name of the DNS view in which the record resides.
16486 Example: "external".
16487 zone: The name of the zone in which the record resides. Example:
16488 "zone.com". If a view is not specified when searching by
16489 zone, the default view is used.
16490 """
16491 _infoblox_type = 'record:unknown'
16492 _fields = ['cloud_info', 'comment', 'creator', 'disable', 'display_rdata',
16493 'dns_name', 'enable_host_name_policy', 'extattrs',
16494 'last_queried', 'name', 'policy', 'record_type',
16495 'subfield_values', 'ttl', 'use_ttl', 'view', 'zone']
16496 _search_for_update_fields = ['name', 'view']
16497 _updateable_search_fields = ['comment', 'creator', 'name', 'record_type',
16498 'subfield_values', 'view']
16499 _all_searchable_fields = ['comment', 'creator', 'display_rdata', 'name',
16500 'record_type', 'subfield_values', 'view', 'zone']
16501 _return_fields = ['extattrs', 'name', 'view']
16502 _remap = {}
16503 _shadow_fields = ['_ref']
16504
16505 _custom_field_processing = {
16506 'subfield_values': Rdatasubfield.from_dict,
16507 }
16508
16509
16510 class Recordnamepolicy(InfobloxObject):
16511 """ Recordnamepolicy: Record name policy object.
16512 Corresponds to WAPI object 'recordnamepolicy'
16513
16514 You can enforce naming policy for the hostnames of A, AAAA, Host,
16515 MX, NS and bulk host records based on user-defined or default
16516 patterns. For MX and NS records, the hostname restrictions apply to
16517 the text in the RDATA field of the resource record name. Records
16518 that you created before you enabled the hostname checking policy
16519 need not to comply with the hostname restriction that you specify.
16520
16521 The record name policy object contains configuration of the regular
16522 expression hostnames should comply with.
16523
16524 Attributes:
16525 is_default: Determines whether the record name policy is Grid
16526 default.
16527 name: The name of the record name policy object.
16528 pre_defined: Determines whether the record name policy is a
16529 predefined one.
16530 regex: The POSIX regular expression the record names should
16531 match in order to comply with the record name policy.
16532 """
16533 _infoblox_type = 'recordnamepolicy'
16534 _fields = ['is_default', 'name', 'pre_defined', 'regex']
16535 _search_for_update_fields = ['name']
16536 _updateable_search_fields = ['name']
16537 _all_searchable_fields = ['name']
16538 _return_fields = ['is_default', 'name', 'regex']
16539 _remap = {}
16540 _shadow_fields = ['_ref']
16541
16542
16543 class Restartservicestatus(InfobloxObject):
16544 """ Restartservicestatus: Restart service status object.
16545 Corresponds to WAPI object 'restartservicestatus'
16546
16547 This object represents the service status. Use the the
16548 requestrestartservicestatus function call in object grid or the
16549 requestrestartservicestatus function call in object member to
16550 refresh the status.
16551
16552 Attributes:
16553 dhcp_status: The status of the DHCP service.
16554 dns_status: The status of the DNS service.
16555 member: The name of this Grid member in FQDN format.
16556 reporting_status: The status of the reporting service.
16557 """
16558 _infoblox_type = 'restartservicestatus'
16559 _fields = ['dhcp_status', 'dns_status', 'member', 'reporting_status']
16560 _search_for_update_fields = ['member']
16561 _updateable_search_fields = []
16562 _all_searchable_fields = ['member']
16563 _return_fields = ['dhcp_status', 'dns_status', 'member',
16564 'reporting_status']
16565 _remap = {}
16566 _shadow_fields = ['_ref']
16567
16568
16569 class Rir(InfobloxObject):
16570 """ Rir: Regional Internet Registry object.
16571 Corresponds to WAPI object 'rir'
16572
16573 An RIR is an entity that manages the Internet number resources,
16574 which include IP addresses and autonomous system numbers, within a
16575 specific region of the world. RIRs use SWIP (Shared WHOIS Project)
16576 or RWhois (Referral WHOIS) servers to provide address allocation
16577 information for IP address blocks. Typically, an RIR determines the
16578 address blocks to be allocated for specific organizations (typically
16579 ISPs), while an ISP manages the allocated address blocks, associated
16580 organizations and corresponding RIR registrations. An organization
16581 can determine when to request for more address data with their RIRs
16582 every few months.
16583
16584 The RIR object is used to configure Infoblox Grid communication
16585 settings to send registration update to RIPE (Reseaux IP Europeens)
16586 database as often as RIR data is updated on NIOS.
16587
16588 Attributes:
16589 communication_mode: The communication mode for RIR.
16590 email: The e-mail address for RIR.
16591 name: The name of RIR.
16592 url: The WebAPI URL for RIR.
16593 use_email: Use flag for: email
16594 use_url: Use flag for: url
16595 """
16596 _infoblox_type = 'rir'
16597 _fields = ['communication_mode', 'email', 'name', 'url', 'use_email',
16598 'use_url']
16599 _search_for_update_fields = ['name']
16600 _updateable_search_fields = ['name']
16601 _all_searchable_fields = ['name']
16602 _return_fields = ['communication_mode', 'email', 'name', 'url']
16603 _remap = {}
16604 _shadow_fields = ['_ref']
16605
16606
16607 class RirOrganization(InfobloxObject):
16608 """ RirOrganization: Regional Internet Registry organization object.
16609 Corresponds to WAPI object 'rir:organization'
16610
16611 An RIR organization provides information about an entity that has
16612 registered a network resource in the RIPE database. This entity can
16613 be a company (such as an ISP), a nonprofit group, or an individual.
16614 You can add RIR organizations defined in the RIPE database and start
16615 managing their data through NIOS.
16616
16617 Attributes:
16618 extattrs: Extensible attributes associated with the object.For
16619 valid values for extensible attributes, see the following
16620 information.
16621 id: The RIR organization identifier.
16622 maintainer: The RIR organization maintainer.
16623 name: The RIR organization name.
16624 password: The password for the maintainer of RIR organization.
16625 rir: The RIR associated with RIR organization.
16626 sender_email: The sender e-mail address for RIR organization.
16627 """
16628 _infoblox_type = 'rir:organization'
16629 _fields = ['extattrs', 'id', 'maintainer', 'name', 'password', 'rir',
16630 'sender_email']
16631 _search_for_update_fields = ['id', 'maintainer', 'name', 'rir',
16632 'sender_email']
16633 _updateable_search_fields = ['id', 'maintainer', 'name', 'rir',
16634 'sender_email']
16635 _all_searchable_fields = ['id', 'maintainer', 'name', 'rir',
16636 'sender_email']
16637 _return_fields = ['extattrs', 'id', 'maintainer', 'name', 'rir',
16638 'sender_email']
16639 _remap = {}
16640 _shadow_fields = ['_ref']
16641
16642
16643 class DHCPRoamingHost(InfobloxObject):
16644 """ DHCPRoamingHost: DHCP Roaming Host object.
16645 Corresponds to WAPI object 'roaminghost'
16646
16647 A roaming host is a specific host that a DHCP server always assigns
16648 when a lease request comes from a particular MAC address of the
16649 client.
16650
16651 Attributes:
16652 address_type: The address type for this roaming host.
16653 bootfile: The bootfile name for the roaming host. You can
16654 configure the DHCP server to support clients that use the
16655 boot file name option in their DHCPREQUEST messages.
16656 bootserver: The boot server address for the roaming host. You
16657 can specify the name and/or IP address of the boot server
16658 that the host needs to boot.The boot server IPv4 Address or
16659 name in FQDN format.
16660 client_identifier_prepend_zero: This field controls whether
16661 there is a prepend for the dhcp-client-identifier of a
16662 roaming host.
16663 comment: Comment for the roaming host; maximum 256 characters.
16664 ddns_domainname: The DDNS domain name for this roaming host.
16665 ddns_hostname: The DDNS host name for this roaming host.
16666 deny_bootp: If set to true, BOOTP settings are disabled and
16667 BOOTP requests will be denied.
16668 dhcp_client_identifier: The DHCP client ID for the roaming host.
16669 disable: Determines whether a roaming host is disabled or not.
16670 When this is set to False, the roaming host is enabled.
16671 enable_ddns: The dynamic DNS updates flag of the roaming host
16672 object. If set to True, the DHCP server sends DDNS updates
16673 to DNS servers in the same Grid, and to external DNS
16674 servers.
16675 enable_pxe_lease_time: Set this to True if you want the DHCP
16676 server to use a different lease time for PXE clients.
16677 extattrs: Extensible attributes associated with the object.For
16678 valid values for extensible attributes, see the following
16679 information.
16680 force_roaming_hostname: Set this to True to use the roaming host
16681 name as its ddns_hostname.
16682 ignore_dhcp_option_list_request: If this field is set to False,
16683 the appliance returns all the DHCP options the client is
16684 eligible to receive, rather than only the list of options
16685 the client has requested.
16686 ipv6_client_hostname: The client hostname of a DHCP roaming host
16687 object. This field specifies the host name that the DHCP
16688 client sends to the Infoblox appliance using DHCP option 12.
16689 ipv6_ddns_domainname: The IPv6 DDNS domain name for this roaming
16690 host.
16691 ipv6_ddns_hostname: The IPv6 DDNS host name for this roaming
16692 host.
16693 ipv6_domain_name: The IPv6 domain name for this roaming host.
16694 ipv6_domain_name_servers: The IPv6 addresses of DNS recursive
16695 name servers to which the DHCP client can send name
16696 resolution requests. The DHCP server includes this
16697 information in the DNS Recursive Name Server option in
16698 Advertise, Rebind, Information-Request, and Reply messages.
16699 ipv6_duid: The DUID value for this roaming host.
16700 ipv6_enable_ddns: Set this to True to enable IPv6 DDNS.
16701 ipv6_force_roaming_hostname: Set this to True to use the roaming
16702 host name as its ddns_hostname.
16703 ipv6_match_option: The identification method for an IPv6 or
16704 mixed IPv4/IPv6 roaming host. Currently, the only supported
16705 value for this field is "DUID", which corresponds to
16706 identification by DHCPv6 unique ID.
16707 ipv6_options: An array of DHCP option structs that lists the
16708 DHCP options associated with the object.
16709 ipv6_template: If set on creation, the roaming host will be
16710 created according to the values specified in the named IPv6
16711 roaming host template.
16712 mac: The MAC address for this roaming host.
16713 match_client: The match-client value for this roaming host.
16714 Valid values are:"MAC_ADDRESS": The fixed IP address is
16715 leased to the matching MAC address."CLIENT_ID": The fixed IP
16716 address is leased to the matching DHCP client identifier.
16717 name: The name of this roaming host.
16718 network_view: The name of the network view in which this roaming
16719 host resides.
16720 nextserver: The name in FQDN and/or IPv4 Address format of the
16721 next server that the host needs to boot.
16722 options: An array of DHCP option structs that lists the DHCP
16723 options associated with the object.
16724 preferred_lifetime: The preferred lifetime value for this
16725 roaming host object.
16726 pxe_lease_time: The PXE lease time value for this roaming host
16727 object. Some hosts use PXE (Preboot Execution Environment)
16728 to boot remotely from a server. To better manage your IP
16729 resources, set a different lease time for PXE boot requests.
16730 You can configure the DHCP server to allocate an IP address
16731 with a shorter lease time to hosts that send PXE boot
16732 requests, so IP addresses are not leased longer than
16733 necessary.A 32-bit unsigned integer that represents the
16734 duration, in seconds, for which the update is cached. Zero
16735 indicates that the update is not cached.
16736 template: If set on creation, the roaming host will be created
16737 according to the values specified in the named template.
16738 use_bootfile: Use flag for: bootfile
16739 use_bootserver: Use flag for: bootserver
16740 use_ddns_domainname: Use flag for: ddns_domainname
16741 use_deny_bootp: Use flag for: deny_bootp
16742 use_enable_ddns: Use flag for: enable_ddns
16743 use_ignore_dhcp_option_list_request: Use flag for:
16744 ignore_dhcp_option_list_request
16745 use_ipv6_ddns_domainname: Use flag for: ipv6_ddns_domainname
16746 use_ipv6_domain_name: Use flag for: ipv6_domain_name
16747 use_ipv6_domain_name_servers: Use flag for:
16748 ipv6_domain_name_servers
16749 use_ipv6_enable_ddns: Use flag for: ipv6_enable_ddns
16750 use_ipv6_options: Use flag for: ipv6_options
16751 use_nextserver: Use flag for: nextserver
16752 use_options: Use flag for: options
16753 use_preferred_lifetime: Use flag for: preferred_lifetime
16754 use_pxe_lease_time: Use flag for: pxe_lease_time
16755 use_valid_lifetime: Use flag for: valid_lifetime
16756 valid_lifetime: The valid lifetime value for this roaming host
16757 object.
16758 """
16759 _infoblox_type = 'roaminghost'
16760 _fields = ['address_type', 'bootfile', 'bootserver',
16761 'client_identifier_prepend_zero', 'comment', 'ddns_domainname',
16762 'ddns_hostname', 'deny_bootp', 'dhcp_client_identifier',
16763 'disable', 'enable_ddns', 'enable_pxe_lease_time', 'extattrs',
16764 'force_roaming_hostname', 'ignore_dhcp_option_list_request',
16765 'ipv6_client_hostname', 'ipv6_ddns_domainname',
16766 'ipv6_ddns_hostname', 'ipv6_domain_name',
16767 'ipv6_domain_name_servers', 'ipv6_duid', 'ipv6_enable_ddns',
16768 'ipv6_force_roaming_hostname', 'ipv6_match_option',
16769 'ipv6_options', 'ipv6_template', 'mac', 'match_client', 'name',
16770 'network_view', 'nextserver', 'options', 'preferred_lifetime',
16771 'pxe_lease_time', 'template', 'use_bootfile', 'use_bootserver',
16772 'use_ddns_domainname', 'use_deny_bootp', 'use_enable_ddns',
16773 'use_ignore_dhcp_option_list_request',
16774 'use_ipv6_ddns_domainname', 'use_ipv6_domain_name',
16775 'use_ipv6_domain_name_servers', 'use_ipv6_enable_ddns',
16776 'use_ipv6_options', 'use_nextserver', 'use_options',
16777 'use_preferred_lifetime', 'use_pxe_lease_time',
16778 'use_valid_lifetime', 'valid_lifetime']
16779 _search_for_update_fields = ['address_type', 'name', 'network_view']
16780 _updateable_search_fields = ['address_type', 'comment',
16781 'dhcp_client_identifier', 'ipv6_duid',
16782 'ipv6_match_option', 'mac', 'match_client',
16783 'name', 'network_view']
16784 _all_searchable_fields = ['address_type', 'comment',
16785 'dhcp_client_identifier', 'ipv6_duid',
16786 'ipv6_match_option', 'mac', 'match_client',
16787 'name', 'network_view']
16788 _return_fields = ['address_type', 'extattrs', 'name', 'network_view']
16789 _remap = {}
16790 _shadow_fields = ['_ref']
16791
16792 _custom_field_processing = {
16793 'ipv6_options': DhcpOption.from_dict,
16794 'options': DhcpOption.from_dict,
16795 }
16796
16797
16798 class Ruleset(InfobloxObject):
16799 """ Ruleset: DNS Ruleset object.
16800 Corresponds to WAPI object 'ruleset'
16801
16802 Represents a Ruleset object, which is a collection of rules that is
16803 used to match domain names.
16804
16805 Attributes:
16806 comment: Descriptive comment about the Ruleset object.
16807 disabled: The flag that indicates if the Ruleset object is
16808 disabled.
16809 name: The name of this Ruleset object.
16810 nxdomain_rules: The list of Rules assigned to this Ruleset
16811 object. Rules can be set only when the Ruleset type is set
16812 to "NXDOMAIN".
16813 type: The type of this Ruleset object.
16814 """
16815 _infoblox_type = 'ruleset'
16816 _fields = ['comment', 'disabled', 'name', 'nxdomain_rules', 'type']
16817 _search_for_update_fields = ['disabled', 'name', 'type']
16818 _updateable_search_fields = ['comment', 'disabled', 'name', 'type']
16819 _all_searchable_fields = ['comment', 'disabled', 'name', 'type']
16820 _return_fields = ['comment', 'disabled', 'name', 'type']
16821 _remap = {}
16822 _shadow_fields = ['_ref']
16823
16824 _custom_field_processing = {
16825 'nxdomain_rules': Nxdomainrule.from_dict,
16826 }
16827
16828
16829 class SamlAuthservice(InfobloxObject):
16830 """ SamlAuthservice: SAML authentication service object.
16831 Corresponds to WAPI object 'saml:authservice'
16832
16833 This object represents SAML authentication service.
16834
16835 Attributes:
16836 comment: The descriptive comment for the SAML authentication
16837 service.
16838 idp: The SAML Identity Provider to use for authentication.
16839 name: The name of the SAML authentication service.
16840 session_timeout: The session timeout in seconds.
16841 """
16842 _infoblox_type = 'saml:authservice'
16843 _fields = ['comment', 'idp', 'name', 'session_timeout']
16844 _search_for_update_fields = ['name']
16845 _updateable_search_fields = ['comment', 'name']
16846 _all_searchable_fields = ['comment', 'name']
16847 _return_fields = ['name']
16848 _remap = {}
16849 _shadow_fields = ['_ref']
16850
16851
16852 class Scavengingtask(InfobloxObject):
16853 """ Scavengingtask: DNS scavenging task object.
16854 Corresponds to WAPI object 'scavengingtask'
16855
16856 The DNS scavenging task object provides information on scavenging
16857 process state.
16858
16859 Attributes:
16860 action: The scavenging action.
16861 associated_object: The reference to the object associated with
16862 the scavenging task.
16863 end_time: The scavenging process end time.
16864 processed_records: The number of processed during scavenging
16865 resource records.
16866 reclaimable_records: The number of resource records that are
16867 allowed to be reclaimed during the scavenging process.
16868 reclaimed_records: The number of reclaimed during the scavenging
16869 process resource records.
16870 start_time: The scavenging process start time.
16871 status: The scavenging process status. This is a read-only
16872 attribute.
16873 """
16874 _infoblox_type = 'scavengingtask'
16875 _fields = ['action', 'associated_object', 'end_time', 'processed_records',
16876 'reclaimable_records', 'reclaimed_records', 'start_time',
16877 'status']
16878 _search_for_update_fields = ['action', 'associated_object', 'status']
16879 _updateable_search_fields = []
16880 _all_searchable_fields = ['action', 'associated_object', 'status']
16881 _return_fields = ['action', 'associated_object', 'status']
16882 _remap = {}
16883 _shadow_fields = ['_ref']
16884
16885
16886 class Scheduledtask(InfobloxObject):
16887 """ Scheduledtask: Scheduled Task object.
16888 Corresponds to WAPI object 'scheduledtask'
16889
16890 This object represents a scheduled task.
16891
16892 Attributes:
16893 approval_status: The approval status of the task.
16894 approver: The approver of the task.
16895 approver_comment: The comment specified by the approver of the
16896 task.
16897 automatic_restart: Indicates whether there will be an automatic
16898 restart when the appliance executes the task.
16899 changed_objects: A list of objects that are affected by the
16900 task.
16901 dependent_tasks: If this scheduled task has dependent tasks,
16902 their references will be returned in this field.
16903 execute_now: If this field is set to True the specified task
16904 will be executed immediately.
16905 execution_details: Messages generated by the execution of the
16906 scheduled task after its completion.
16907 execution_details_type: The type of details generated by the
16908 execution of the scheduled task after its completion.
16909 execution_status: The execution status of the task.
16910 execution_time: The time when the appliance executed the task.
16911 is_network_insight_task: Indicates whether this is a Network
16912 Insight scheduled task.
16913 member: The member where this task was created.
16914 predecessor_task: If this scheduled task has a predecessor task
16915 set, its reference will be returned in this field.
16916 re_execute_task: If set to True, if the scheduled task is a
16917 Network Insight task and it failed, a new task will be
16918 cloned from this task and re-executed.
16919 scheduled_time: The time when the task is scheduled to occur.
16920 submit_time: The time when the task was submitted.
16921 submitter: The submitter of the task.
16922 submitter_comment: The comment specified by the submitter of the
16923 task.
16924 task_id: The task ID.
16925 task_type: The task type.
16926 ticket_number: The task ticket number.
16927 """
16928 _infoblox_type = 'scheduledtask'
16929 _fields = ['approval_status', 'approver', 'approver_comment',
16930 'automatic_restart', 'changed_objects', 'dependent_tasks',
16931 'execute_now', 'execution_details', 'execution_details_type',
16932 'execution_status', 'execution_time', 'is_network_insight_task',
16933 'member', 'predecessor_task', 're_execute_task',
16934 'scheduled_time', 'submit_time', 'submitter',
16935 'submitter_comment', 'task_id', 'task_type', 'ticket_number']
16936 _search_for_update_fields = ['approval_status', 'execution_status',
16937 'task_id']
16938 _updateable_search_fields = ['approval_status', 'scheduled_time']
16939 _all_searchable_fields = ['approval_status', 'approver',
16940 'execution_status', 'execution_time', 'member',
16941 'scheduled_time', 'submit_time', 'submitter',
16942 'task_id']
16943 _return_fields = ['approval_status', 'execution_status', 'task_id']
16944 _remap = {}
16945 _shadow_fields = ['_ref']
16946
16947 _custom_field_processing = {
16948 'changed_objects': Changedobject.from_dict,
16949 }
16950
16951
16952 class Search(InfobloxObject):
16953 """ Search: Search object.
16954 Corresponds to WAPI object 'search'
16955
16956 The search object is used to perform global searches for multiple
16957 object types in the database. This object contains only search
16958 parameters and returns objects that match the search criteria. The
16959 returned objects are base objects for the respective object types.
16960
16961 Search is the only allowed operation for search objects.
16962
16963 NOTE: Only one of the following can be used each time: 'address',
16964 'mac_address', 'duid' or 'fqdn'.
16965
16966 Attributes:
16967 """
16968 _infoblox_type = 'search'
16969 _fields = []
16970 _search_for_update_fields = []
16971 _updateable_search_fields = []
16972 _all_searchable_fields = []
16973 _return_fields = []
16974 _remap = {}
16975 _shadow_fields = ['_ref']
16976
16977
16978 class ASharedRecordBase(InfobloxObject):
16979 @classmethod
16980 def get_v4_class(cls):
16981 return ASharedRecord
16982
16983 @classmethod
16984 def get_v6_class(cls):
16985 return AAAASharedRecord
16986
16987
16988 class ASharedRecord(ASharedRecordBase):
16989 """ ASharedRecord: DNS Shared A record object.
16990 Corresponds to WAPI object 'sharedrecord:a'
16991
16992 A shared A (address) record is similar to a regular A record. It
16993 maps a domain name to an IPv4 address. The difference is that a
16994 shared A record should be added to a shared record group. If the
16995 shared record group is associated with other zones, the shared A
16996 record is shared among these zones.
16997
16998 Attributes:
16999 comment: Comment for this shared record; maximum 256 characters.
17000 disable: Determines if this shared record is disabled or not.
17001 False means that the record is enabled.
17002 dns_name: The name for this shared record in punycode format.
17003 extattrs: Extensible attributes associated with the object.For
17004 valid values for extensible attributes, see the following
17005 information.
17006 ipv4addr: The IPv4 Address of the shared record.
17007 name: Name for this shared record. This value can be in unicode
17008 format.
17009 shared_record_group: The name of the shared record group in
17010 which the record resides.
17011 ttl: The Time To Live (TTL) value for this shared record. A
17012 32-bit unsigned integer that represents the duration, in
17013 seconds, for which the shared record is valid (cached). Zero
17014 indicates that the shared record should not be cached.
17015 use_ttl: Use flag for: ttl
17016 """
17017 _infoblox_type = 'sharedrecord:a'
17018 _fields = ['comment', 'disable', 'dns_name', 'extattrs', 'ipv4addr',
17019 'name', 'shared_record_group', 'ttl', 'use_ttl']
17020 _search_for_update_fields = ['ipv4addr', 'name']
17021 _updateable_search_fields = ['comment', 'ipv4addr', 'name']
17022 _all_searchable_fields = ['comment', 'ipv4addr', 'name']
17023 _return_fields = ['extattrs', 'ipv4addr', 'name', 'shared_record_group']
17024 _remap = {}
17025 _shadow_fields = ['_ref']
17026 _ip_version = 4
17027
17028
17029 class AAAASharedRecord(ASharedRecordBase):
17030 """ AAAASharedRecord: DNS Shared AAAA record object.
17031 Corresponds to WAPI object 'sharedrecord:aaaa'
17032
17033 A shared AAAA (address) record is similar to a regular AAAA record.
17034 It maps a domain name to an IPv6 address. The difference is that a
17035 shared AAAA record should be added to a shared record group. If the
17036 shared record group is associated with other zones, the shared AAAA
17037 record is shared among these zones.
17038
17039 Attributes:
17040 comment: Comment for this shared record; maximum 256 characters.
17041 disable: Determines if this shared record is disabled or not.
17042 False means that the record is enabled.
17043 dns_name: The name for this shared record in punycode format.
17044 extattrs: Extensible attributes associated with the object.For
17045 valid values for extensible attributes, see the following
17046 information.
17047 ipv6addr: The IPv6 Address of the shared record.
17048 name: Name for this shared record. This value can be in unicode
17049 format.
17050 shared_record_group: The name of the shared record group in
17051 which the record resides.
17052 ttl: The Time To Live (TTL) value for this shared record. A
17053 32-bit unsigned integer that represents the duration, in
17054 seconds, for which the shared record is valid (cached). Zero
17055 indicates that the shared record should not be cached.
17056 use_ttl: Use flag for: ttl
17057 """
17058 _infoblox_type = 'sharedrecord:aaaa'
17059 _fields = ['comment', 'disable', 'dns_name', 'extattrs', 'ipv6addr',
17060 'name', 'shared_record_group', 'ttl', 'use_ttl']
17061 _search_for_update_fields = ['ipv6addr', 'name']
17062 _updateable_search_fields = ['comment', 'ipv6addr', 'name']
17063 _all_searchable_fields = ['comment', 'ipv6addr', 'name']
17064 _return_fields = ['extattrs', 'ipv6addr', 'name', 'shared_record_group']
17065 _remap = {}
17066 _shadow_fields = ['_ref']
17067 _ip_version = 6
17068
17069
17070 class CNAMESharedRecord(InfobloxObject):
17071 """ CNAMESharedRecord: DNS Shared CNAME record object.
17072 Corresponds to WAPI object 'sharedrecord:cname'
17073
17074 A shared CNAME (canonical name) record is similar to a regular CNAME
17075 record. The difference is that a shared CNAME record should be added
17076 to a shared record group. If the shared record group is associated
17077 with other zones, the shared CNAME record is shared among these
17078 zones.
17079
17080 Attributes:
17081 canonical: Canonical name in FQDN format. This value can be in
17082 unicode format.
17083 comment: Comment for this shared record; maximum 256 characters.
17084 disable: Determines if this shared record is disabled or not.
17085 False means that the record is enabled.
17086 dns_canonical: Canonical name in punycode format.
17087 dns_name: The name for this shared record in punycode format.
17088 extattrs: Extensible attributes associated with the object.For
17089 valid values for extensible attributes, see the following
17090 information.
17091 name: Name for this shared record. This value can be in unicode
17092 format.
17093 shared_record_group: The name of the shared record group in
17094 which the record resides.
17095 ttl: The Time To Live (TTL) value for this shared record. A
17096 32-bit unsigned integer that represents the duration, in
17097 seconds, for which the shared record is valid (cached). Zero
17098 indicates that the shared record should not be cached.
17099 use_ttl: Use flag for: ttl
17100 """
17101 _infoblox_type = 'sharedrecord:cname'
17102 _fields = ['canonical', 'comment', 'disable', 'dns_canonical', 'dns_name',
17103 'extattrs', 'name', 'shared_record_group', 'ttl', 'use_ttl']
17104 _search_for_update_fields = ['canonical', 'name']
17105 _updateable_search_fields = ['canonical', 'comment', 'name']
17106 _all_searchable_fields = ['canonical', 'comment', 'name']
17107 _return_fields = ['canonical', 'extattrs', 'name', 'shared_record_group']
17108 _remap = {}
17109 _shadow_fields = ['_ref']
17110
17111
17112 class MXSharedRecord(InfobloxObject):
17113 """ MXSharedRecord: DNS Shared MX record object.
17114 Corresponds to WAPI object 'sharedrecord:mx'
17115
17116 A shared MX (mail exchanger) record is similar to a regular MX
17117 record. It maps a domain name to a mail exchanger. The difference is
17118 that a shared MX record should be added to a shared record group. If
17119 the shared record group is associated with other zones, the shared
17120 MX record is shared among these zones.
17121
17122 Attributes:
17123 comment: Comment for this shared record; maximum 256 characters.
17124 disable: Determines if this shared record is disabled or not.
17125 False means that the record is enabled.
17126 dns_mail_exchanger: The name of the mail exchanger in punycode
17127 format.
17128 dns_name: The name for this shared record in punycode format.
17129 extattrs: Extensible attributes associated with the object.For
17130 valid values for extensible attributes, see the following
17131 information.
17132 mail_exchanger: The name of the mail exchanger in FQDN format.
17133 This value can be in unicode format.
17134 name: Name for this shared record. This value can be in unicode
17135 format.
17136 preference: The preference value. Valid values are from 0 to
17137 65535 (inclusive), in 32-bit unsigned integer format.
17138 shared_record_group: The name of the shared record group in
17139 which the record resides.
17140 ttl: The Time To Live (TTL) value for this shared record. A
17141 32-bit unsigned integer that represents the duration, in
17142 seconds, for which the shared record is valid (cached). Zero
17143 indicates that the shared record should not be cached.
17144 use_ttl: Use flag for: ttl
17145 """
17146 _infoblox_type = 'sharedrecord:mx'
17147 _fields = ['comment', 'disable', 'dns_mail_exchanger', 'dns_name',
17148 'extattrs', 'mail_exchanger', 'name', 'preference',
17149 'shared_record_group', 'ttl', 'use_ttl']
17150 _search_for_update_fields = ['mail_exchanger', 'name', 'preference']
17151 _updateable_search_fields = ['comment', 'mail_exchanger', 'name',
17152 'preference']
17153 _all_searchable_fields = ['comment', 'mail_exchanger', 'name',
17154 'preference']
17155 _return_fields = ['extattrs', 'mail_exchanger', 'name', 'preference',
17156 'shared_record_group']
17157 _remap = {}
17158 _shadow_fields = ['_ref']
17159
17160
17161 class SRVSharedRecord(InfobloxObject):
17162 """ SRVSharedRecord: DNS Shared SRV record object.
17163 Corresponds to WAPI object 'sharedrecord:srv'
17164
17165 A shared SRV (service) record is similar to a regular SRV record. It
17166 provides information about available services. The difference is
17167 that a shared SRV record should be added to a shared record group.
17168 If the shared record group is associated with other zones, the
17169 shared SRV record is shared among these zones.
17170
17171 Attributes:
17172 comment: Comment for this shared record; maximum 256 characters.
17173 disable: Determines if this shared record is disabled or not.
17174 False means that the record is enabled.
17175 dns_name: The name for this shared record in punycode format.
17176 dns_target: The name for a shared SRV record in punycode format.
17177 extattrs: Extensible attributes associated with the object.For
17178 valid values for extensible attributes, see the following
17179 information.
17180 name: Name for this shared record. This value can be in unicode
17181 format.
17182 port: The port of the shared SRV record. Valid values are from 0
17183 to 65535 (inclusive), in 32-bit unsigned integer format.
17184 priority: The priority of the shared SRV record. Valid values
17185 are from 0 to 65535 (inclusive), in 32-bit unsigned integer
17186 format.
17187 shared_record_group: The name of the shared record group in
17188 which the record resides.
17189 target: The target of the shared SRV record in FQDN format. This
17190 value can be in unicode format.
17191 ttl: The Time To Live (TTL) value for this shared record. A
17192 32-bit unsigned integer that represents the duration, in
17193 seconds, for which the shared record is valid (cached). Zero
17194 indicates that the shared record should not be cached.
17195 use_ttl: Use flag for: ttl
17196 weight: The weight of the shared SRV record. Valid values are
17197 from 0 to 65535 (inclusive), in 32-bit unsigned integer
17198 format.
17199 """
17200 _infoblox_type = 'sharedrecord:srv'
17201 _fields = ['comment', 'disable', 'dns_name', 'dns_target', 'extattrs',
17202 'name', 'port', 'priority', 'shared_record_group', 'target',
17203 'ttl', 'use_ttl', 'weight']
17204 _search_for_update_fields = ['name', 'port', 'priority', 'target',
17205 'weight']
17206 _updateable_search_fields = ['comment', 'name', 'port', 'priority',
17207 'target', 'weight']
17208 _all_searchable_fields = ['comment', 'name', 'port', 'priority', 'target',
17209 'weight']
17210 _return_fields = ['extattrs', 'name', 'port', 'priority',
17211 'shared_record_group', 'target', 'weight']
17212 _remap = {}
17213 _shadow_fields = ['_ref']
17214
17215
17216 class TXTSharedRecord(InfobloxObject):
17217 """ TXTSharedRecord: DNS Shared TXT record object.
17218 Corresponds to WAPI object 'sharedrecord:txt'
17219
17220 A shared TXT (text) record is similar to a regular TXT record. It
17221 contains supplemental information for a host. SPF (Sender Policy
17222 Framework) records are specialized TXT records that identify the
17223 servers that send mail from a domain. The difference is that a
17224 shared TXT record should be added to a shared record group. If the
17225 shared record group is associated with other zones, the shared TXT
17226 record is shared among these zones.
17227
17228 Attributes:
17229 comment: Comment for this shared record; maximum 256 characters.
17230 disable: Determines if this shared record is disabled or not.
17231 False means that the record is enabled.
17232 dns_name: The name for this shared record in punycode format.
17233 extattrs: Extensible attributes associated with the object.For
17234 valid values for extensible attributes, see the following
17235 information.
17236 name: Name for this shared record. This value can be in unicode
17237 format.
17238 shared_record_group: The name of the shared record group in
17239 which the record resides.
17240 text: Text associated with the shared record. It can contain up
17241 to 255 bytes per substring and up a total of 512 bytes. To
17242 enter leading, trailing or embedded spaces in the text, add
17243 quotes (" ") around the text to preserve the spaces.
17244 ttl: The Time To Live (TTL) value for this shared record. A
17245 32-bit unsigned integer that represents the duration, in
17246 seconds, for which the shared record is valid (cached). Zero
17247 indicates that the shared record should not be cached.
17248 use_ttl: Use flag for: ttl
17249 """
17250 _infoblox_type = 'sharedrecord:txt'
17251 _fields = ['comment', 'disable', 'dns_name', 'extattrs', 'name',
17252 'shared_record_group', 'text', 'ttl', 'use_ttl']
17253 _search_for_update_fields = ['name', 'text']
17254 _updateable_search_fields = ['comment', 'name', 'text']
17255 _all_searchable_fields = ['comment', 'name', 'text']
17256 _return_fields = ['extattrs', 'name', 'shared_record_group', 'text']
17257 _remap = {}
17258 _shadow_fields = ['_ref']
17259
17260
17261 class Sharedrecordgroup(InfobloxObject):
17262 """ Sharedrecordgroup: DNS Shared Record Group object.
17263 Corresponds to WAPI object 'sharedrecordgroup'
17264
17265 A shared record group (SRG) is created to contain DNS shared records
17266 and share them between different zones. For example, if a group of
17267 DNS records needs to be in three different zones, you can include
17268 the records in a shared record group and assign the group to the
17269 three zones. For more information about shared record groups and
17270 shared records, please refer to Infoblox Administrator Guide.
17271
17272 Attributes:
17273 comment: The descriptive comment of this shared record group.
17274 extattrs: Extensible attributes associated with the object.For
17275 valid values for extensible attributes, see the following
17276 information.
17277 name: The name of this shared record group.
17278 record_name_policy: The record name policy of this shared record
17279 group.
17280 use_record_name_policy: Use flag for: record_name_policy
17281 zone_associations: The list of zones associated with this shared
17282 record group.
17283 """
17284 _infoblox_type = 'sharedrecordgroup'
17285 _fields = ['comment', 'extattrs', 'name', 'record_name_policy',
17286 'use_record_name_policy', 'zone_associations']
17287 _search_for_update_fields = ['name']
17288 _updateable_search_fields = ['comment', 'name']
17289 _all_searchable_fields = ['comment', 'name']
17290 _return_fields = ['comment', 'extattrs', 'name']
17291 _remap = {}
17292 _shadow_fields = ['_ref']
17293
17294
17295 class SmartfolderChildren(InfobloxObject):
17296 """ SmartfolderChildren: Smart Folder children object.
17297 Corresponds to WAPI object 'smartfolder:children'
17298
17299 The Smart Folder children object is used to read the objects that
17300 are associated with either a Smart Folder (global or personal) or a
17301 set of queries that users can make without saving a Smart Folder
17302 object on the appliance.
17303
17304 The Smart Folder children object can be used for both "filtering"
17305 and "grouping" the results of Smart Folder associated objects.
17306
17307 Attributes:
17308 resource: The object retuned by the Smart Folder query.
17309 value: The value returned by the Smart Folder query.
17310 value_type: The type of the returned value.
17311 """
17312 _infoblox_type = 'smartfolder:children'
17313 _fields = ['resource', 'value', 'value_type']
17314 _search_for_update_fields = []
17315 _updateable_search_fields = []
17316 _all_searchable_fields = []
17317 _return_fields = ['resource', 'value', 'value_type']
17318 _remap = {}
17319 _shadow_fields = ['_ref']
17320
17321
17322 class SmartfolderGlobal(InfobloxObject):
17323 """ SmartfolderGlobal: Global Smart Folder object.
17324 Corresponds to WAPI object 'smartfolder:global'
17325
17326 Smart Folders are used to organize your core network services data.
17327 Depending on your administrative roles and business needs, you can
17328 filter your data object types, names, extensible attributes and
17329 discovered data and then place the filtered results in a Smart
17330 Folder.
17331
17332 The global Smart Folders are created to be shared among
17333 administrators.
17334
17335 Attributes:
17336 comment: The global Smart Folder descriptive comment.
17337 group_bys: Global Smart Folder grouping rules.
17338 name: The global Smart Folder name.
17339 query_items: The global Smart Folder filter queries.
17340 """
17341 _infoblox_type = 'smartfolder:global'
17342 _fields = ['comment', 'group_bys', 'name', 'query_items']
17343 _search_for_update_fields = ['name']
17344 _updateable_search_fields = ['comment', 'name']
17345 _all_searchable_fields = ['comment', 'name']
17346 _return_fields = ['comment', 'name']
17347 _remap = {}
17348 _shadow_fields = ['_ref']
17349
17350 _custom_field_processing = {
17351 'group_bys': SmartfolderGroupby.from_dict,
17352 'query_items': SmartfolderQueryitem.from_dict,
17353 }
17354
17355 def save_as(self, *args, **kwargs):
17356 return self._call_func("save_as", *args, **kwargs)
17357
17358
17359 class SmartfolderPersonal(InfobloxObject):
17360 """ SmartfolderPersonal: Personal Smart Folder object.
17361 Corresponds to WAPI object 'smartfolder:personal'
17362
17363 Smart Folders are used to organize your core network services data.
17364 Depending on your administrative roles and business needs, you can
17365 filter your data object types, names, extensible attributes and
17366 discovered data and then place the filtered results in a Smart
17367 Folder.
17368
17369 The personal Smart Folder is used to Smart Folders available only to
17370 a administrator that have created the Smart Folder.
17371
17372 Attributes:
17373 comment: The personal Smart Folder descriptive comment.
17374 group_bys: The personal Smart Folder groupping rules.
17375 is_shortcut: Determines whether the personal Smart Folder is a
17376 shortcut.
17377 name: The personal Smart Folder name.
17378 query_items: The personal Smart Folder filter queries.
17379 """
17380 _infoblox_type = 'smartfolder:personal'
17381 _fields = ['comment', 'group_bys', 'is_shortcut', 'name', 'query_items']
17382 _search_for_update_fields = ['is_shortcut', 'name']
17383 _updateable_search_fields = ['comment', 'name']
17384 _all_searchable_fields = ['comment', 'is_shortcut', 'name']
17385 _return_fields = ['comment', 'is_shortcut', 'name']
17386 _remap = {}
17387 _shadow_fields = ['_ref']
17388
17389 _custom_field_processing = {
17390 'group_bys': SmartfolderGroupby.from_dict,
17391 'query_items': SmartfolderQueryitem.from_dict,
17392 }
17393
17394 def save_as(self, *args, **kwargs):
17395 return self._call_func("save_as", *args, **kwargs)
17396
17397
17398 class Snmpuser(InfobloxObject):
17399 """ Snmpuser: SNMP user object.
17400 Corresponds to WAPI object 'snmpuser'
17401
17402 This object contains information related to SNMPv3 users.
17403
17404 Attributes:
17405 authentication_password: Determines an authentication password
17406 for the user. This is a write-only attribute.
17407 authentication_protocol: The authentication protocol to be used
17408 for this user.
17409 comment: A descriptive comment for the SNMPv3 User.
17410 disable: Determines if SNMPv3 user is disabled or not.
17411 extattrs: Extensible attributes associated with the object.For
17412 valid values for extensible attributes, see the following
17413 information.
17414 name: The name of the user.
17415 privacy_password: Determines a password for the privacy
17416 protocol.
17417 privacy_protocol: The privacy protocol to be used for this user.
17418 """
17419 _infoblox_type = 'snmpuser'
17420 _fields = ['authentication_password', 'authentication_protocol', 'comment',
17421 'disable', 'extattrs', 'name', 'privacy_password',
17422 'privacy_protocol']
17423 _search_for_update_fields = ['name']
17424 _updateable_search_fields = ['comment', 'name']
17425 _all_searchable_fields = ['comment', 'name']
17426 _return_fields = ['comment', 'extattrs', 'name']
17427 _remap = {}
17428 _shadow_fields = ['_ref']
17429
17430
17431 class Superhost(InfobloxObject):
17432 """ Superhost: SuperHost object.
17433 Corresponds to WAPI object 'superhost'
17434
17435 The collection of correlated IPAM records which is related to single
17436 device.
17437
17438 Attributes:
17439 comment: The comment for Super Host.
17440 delete_associated_objects: True if we have to delete all
17441 DNS/DHCP associated objects with Super Host, false by
17442 default.
17443 dhcp_associated_objects: A list of DHCP objects refs which are
17444 associated with Super Host.
17445 disabled: Disable all DNS/DHCP associated objects with Super
17446 Host if True, False by default.
17447 dns_associated_objects: A list of object refs of the DNS
17448 resource records which are associated with Super Host.
17449 extattrs: Extensible attributes associated with the object.For
17450 valid values for extensible attributes, see the following
17451 information.
17452 name: Name of the Superhost.
17453 """
17454 _infoblox_type = 'superhost'
17455 _fields = ['comment', 'delete_associated_objects',
17456 'dhcp_associated_objects', 'disabled', 'dns_associated_objects',
17457 'extattrs', 'name']
17458 _search_for_update_fields = ['name']
17459 _updateable_search_fields = ['comment', 'disabled', 'name']
17460 _all_searchable_fields = ['comment', 'disabled', 'name']
17461 _return_fields = ['comment', 'extattrs', 'name']
17462 _remap = {}
17463 _shadow_fields = ['_ref']
17464
17465
17466 class Superhostchild(InfobloxObject):
17467 """ Superhostchild: Super Host Child object.
17468 Corresponds to WAPI object 'superhostchild'
17469
17470 The superhostchild object is a read-only synthetic object used to
17471 retrieve records assigned to superhost.
17472
17473 Since this is a synthetic object, it supports reading only by
17474 specifying search parameters, not by reference.
17475
17476 Attributes:
17477 associated_object: The record object, if supported by the WAPI.
17478 Otherwise, the value is "None".
17479 comment: The record comment.
17480 creation_timestamp: Time at which DNS RR was created.
17481 data: Specific data of DNS/DHCP records.
17482 disabled: True if the child DNS/DHCP object is disabled.
17483 name: Name of the associated DNS/DHCP object.
17484 network_view: The name of the network view in which this network
17485 record resides.
17486 parent: Name of the Super Host object in which record resides.
17487 record_parent: Name of a parent zone/network.
17488 type: The record type. When searching for an unspecified record
17489 type, the search is performed for all records.
17490 view: Name of the DNS View in which the record resides.
17491 """
17492 _infoblox_type = 'superhostchild'
17493 _fields = ['associated_object', 'comment', 'creation_timestamp', 'data',
17494 'disabled', 'name', 'network_view', 'parent', 'record_parent',
17495 'type', 'view']
17496 _search_for_update_fields = ['data', 'name', 'network_view', 'parent',
17497 'record_parent', 'type', 'view']
17498 _updateable_search_fields = []
17499 _all_searchable_fields = ['comment', 'creation_timestamp', 'data', 'name',
17500 'network_view', 'parent', 'record_parent',
17501 'type', 'view']
17502 _return_fields = ['comment', 'data', 'name', 'network_view', 'parent',
17503 'record_parent', 'type', 'view']
17504 _remap = {}
17505 _shadow_fields = ['_ref']
17506
17507
17508 class SyslogEndpoint(InfobloxObject):
17509 """ SyslogEndpoint: The syslog endpoint object.
17510 Corresponds to WAPI object 'syslog:endpoint'
17511
17512 The name part of the syslog:endpoint object reference has the
17513 following components:
17514
17515 The name of an endpoint.
17516
17517 Example: syslog:endpoint/b25lLmVuZHBvaW50JDMzOQ:wintermute
17518
17519 Attributes:
17520 extattrs: Extensible attributes associated with the object.For
17521 valid values for extensible attributes, see the following
17522 information.
17523 log_level: The log level for a notification REST endpoint.
17524 name: The name of a Syslog endpoint.
17525 outbound_member_type: The outbound member that will generate
17526 events.
17527 outbound_members: The list of members for outbound events.
17528 syslog_servers: List of syslog servers
17529 template_instance: The Syslog template instance. You cannot
17530 change the parameters of the Syslog endpoint template
17531 instance.
17532 timeout: The timeout of session management (in seconds).
17533 vendor_identifier: The vendor identifier.
17534 wapi_user_name: The user name for WAPI integration.
17535 wapi_user_password: The user password for WAPI integration.
17536 """
17537 _infoblox_type = 'syslog:endpoint'
17538 _fields = ['extattrs', 'log_level', 'name', 'outbound_member_type',
17539 'outbound_members', 'syslog_servers', 'template_instance',
17540 'timeout', 'vendor_identifier', 'wapi_user_name',
17541 'wapi_user_password']
17542 _search_for_update_fields = ['name', 'outbound_member_type']
17543 _updateable_search_fields = ['log_level', 'name', 'outbound_member_type',
17544 'vendor_identifier']
17545 _all_searchable_fields = ['log_level', 'name', 'outbound_member_type',
17546 'vendor_identifier']
17547 _return_fields = ['extattrs', 'name', 'outbound_member_type']
17548 _remap = {}
17549 _shadow_fields = ['_ref']
17550
17551 _custom_field_processing = {
17552 'syslog_servers': SyslogEndpointServers.from_dict,
17553 }
17554
17555 def test_syslog_connection(self, *args, **kwargs):
17556 return self._call_func("test_syslog_connection", *args, **kwargs)
17557
17558
17559 class TacacsplusAuthservice(InfobloxObject):
17560 """ TacacsplusAuthservice: The TACACS+ authentication service
17561 object.
17562 Corresponds to WAPI object 'tacacsplus:authservice'
17563
17564 This object is used to supply configuration for TACACS+
17565 authentication service.
17566
17567 Attributes:
17568 acct_retries: The number of the accounting retries before giving
17569 up and moving on to the next server.
17570 acct_timeout: The accounting retry period in milliseconds.
17571 auth_retries: The number of the authentication/authorization
17572 retries before giving up and moving on to the next server.
17573 auth_timeout: The authentication/authorization timeout period in
17574 milliseconds.
17575 comment: The TACACS+ authentication service descriptive comment.
17576 disable: Determines whether the TACACS+ authentication service
17577 object is disabled.
17578 name: The TACACS+ authentication service name.
17579 servers: The list of the TACACS+ servers used for
17580 authentication.
17581 """
17582 _infoblox_type = 'tacacsplus:authservice'
17583 _fields = ['acct_retries', 'acct_timeout', 'auth_retries', 'auth_timeout',
17584 'comment', 'disable', 'name', 'servers']
17585 _search_for_update_fields = ['name']
17586 _updateable_search_fields = ['comment', 'name']
17587 _all_searchable_fields = ['comment', 'name']
17588 _return_fields = ['comment', 'disable', 'name']
17589 _remap = {}
17590 _shadow_fields = ['_ref']
17591
17592 _custom_field_processing = {
17593 'servers': TacacsplusServer.from_dict,
17594 }
17595
17596 def check_tacacsplus_server_settings(self, *args, **kwargs):
17597 return self._call_func("check_tacacsplus_server_settings", *args,
17598 **kwargs)
17599
17600
17601 class Taxii(InfobloxObject):
17602 """ Taxii: Taxii Member object.
17603 Corresponds to WAPI object 'taxii'
17604
17605 The Taxii Member object provides information about Taxii service
17606 configuration such as the start/stop flag and RPZ (Response Policy
17607 Zone) configuration.
17608
17609 Attributes:
17610 enable_service: Indicates whether the Taxii service is running
17611 on the given member or not.
17612 ipv4addr: The IPv4 Address of the Grid member.
17613 ipv6addr: The IPv6 Address of the Grid member.
17614 name: The name of the Taxii Member.
17615 taxii_rpz_config: Taxii service RPZ configuration list.
17616 """
17617 _infoblox_type = 'taxii'
17618 _fields = ['enable_service', 'ipv4addr', 'ipv6addr', 'name',
17619 'taxii_rpz_config']
17620 _search_for_update_fields = ['ipv4addr', 'ipv6addr', 'name']
17621 _updateable_search_fields = []
17622 _all_searchable_fields = ['ipv4addr', 'ipv6addr', 'name']
17623 _return_fields = ['ipv4addr', 'ipv6addr', 'name']
17624 _remap = {}
17625 _shadow_fields = ['_ref', 'ip']
17626
17627 @property
17628 def ip(self):
17629 if hasattr(self, '_ip'):
17630 return str(self._ip)
17631
17632 # This object represents both ipv4 and ipv6 objects, so it doesn't need
17633 # versioned object for that. Just set v4 or v6 field in addition
17634 # to setting shadow field 'ip' itself.
17635 @ip.setter
17636 def ip(self, ip):
17637 self._ip = ip
17638 if ib_utils.determine_ip_version(ip) == 6:
17639 if 'ipv6addr' not in self._fields:
17640 raise ib_ex.InfobloxInvalidIp(ip=ip)
17641 self.ipv6addr = ip
17642 else:
17643 if 'ipv4addr' not in self._fields:
17644 raise ib_ex.InfobloxInvalidIp(ip=ip)
17645 self.ipv4addr = ip
17646
17647 _custom_field_processing = {
17648 'taxii_rpz_config': TaxiiRpzconfig.from_dict,
17649 }
17650
17651
17652 class Tftpfiledir(InfobloxObject):
17653 """ Tftpfiledir: TFTP file or directory object.
17654 Corresponds to WAPI object 'tftpfiledir'
17655
17656 The TFTP file/directory object provides facilities for creating a
17657 directory structure for file distribution, modifying the directory
17658 name and permission, creating virtual TFTP root directories, and
17659 browsing the contents of the directories.
17660
17661 Attributes:
17662 directory: The path to the directory that contains file or
17663 subdirectory.
17664 is_synced_to_gm: Determines whether the TFTP entity is
17665 synchronized to Grid Master.
17666 last_modify: The time when the file or directory was last
17667 modified.
17668 name: The TFTP directory or file name.
17669 type: The type of TFTP file system entity (directory or file).
17670 vtftp_dir_members: The replication members with TFTP client
17671 addresses where this virtual folder is applicable.
17672 """
17673 _infoblox_type = 'tftpfiledir'
17674 _fields = ['directory', 'is_synced_to_gm', 'last_modify', 'name', 'type',
17675 'vtftp_dir_members']
17676 _search_for_update_fields = ['directory', 'name', 'type']
17677 _updateable_search_fields = ['name']
17678 _all_searchable_fields = ['directory', 'name', 'type']
17679 _return_fields = ['directory', 'name', 'type']
17680 _remap = {}
17681 _shadow_fields = ['_ref']
17682
17683 _custom_field_processing = {
17684 'vtftp_dir_members': Vtftpdirmember.from_dict,
17685 }
17686
17687
17688 class ThreatanalyticsAnalyticsWhitelist(InfobloxObject):
17689 """ ThreatanalyticsAnalyticsWhitelist: Threat analytics whitelist
17690 object.
17691 Corresponds to WAPI object 'threatanalytics:analytics_whitelist'
17692
17693 The threat analytics whitelist object contains trusted domains on
17694 which NIOS allows DNS traffic.
17695
17696 Attributes:
17697 version: Whitelist version string.
17698 """
17699 _infoblox_type = 'threatanalytics:analytics_whitelist'
17700 _fields = ['version']
17701 _search_for_update_fields = ['version']
17702 _updateable_search_fields = []
17703 _all_searchable_fields = ['version']
17704 _return_fields = ['version']
17705 _remap = {}
17706 _shadow_fields = ['_ref']
17707
17708
17709 class ThreatanalyticsModuleset(InfobloxObject):
17710 """ ThreatanalyticsModuleset: Threat analytics module set object.
17711 Corresponds to WAPI object 'threatanalytics:moduleset'
17712
17713 The threat analytics module set represents the installation or
17714 update of module information.
17715
17716 Attributes:
17717 version: The version number of the threat analytics module set.
17718 """
17719 _infoblox_type = 'threatanalytics:moduleset'
17720 _fields = ['version']
17721 _search_for_update_fields = ['version']
17722 _updateable_search_fields = []
17723 _all_searchable_fields = ['version']
17724 _return_fields = ['version']
17725 _remap = {}
17726 _shadow_fields = ['_ref']
17727
17728
17729 class ThreatanalyticsWhitelist(InfobloxObject):
17730 """ ThreatanalyticsWhitelist: Threat analytics whitelist object.
17731 Corresponds to WAPI object 'threatanalytics:whitelist'
17732
17733 The threat analytics whitelist object contains trusted domains on
17734 which NIOS allows DNS traffic.
17735
17736 Attributes:
17737 comment: The descriptive comment for the threat analytics
17738 whitelist.
17739 disable: Determines whether the threat analytics whitelist is
17740 disabled.
17741 fqdn: The FQDN of the threat analytics whitelist.
17742 type: The type of the threat analytics whitelist.
17743 """
17744 _infoblox_type = 'threatanalytics:whitelist'
17745 _fields = ['comment', 'disable', 'fqdn', 'type']
17746 _search_for_update_fields = ['fqdn']
17747 _updateable_search_fields = ['comment', 'fqdn']
17748 _all_searchable_fields = ['comment', 'fqdn', 'type']
17749 _return_fields = ['comment', 'disable', 'fqdn']
17750 _remap = {}
17751 _shadow_fields = ['_ref']
17752
17753
17754 class ThreatinsightCloudclient(InfobloxObject):
17755 """ ThreatinsightCloudclient: Threat Insight Cloud Client object.
17756 Corresponds to WAPI object 'threatinsight:cloudclient'
17757
17758 You can use the Threat Insight Cloud Client object to configure the
17759 detection and authentication of domains in the Cloud, and then apply
17760 them to on-premises DNS firewall RPZ zones within a configurable
17761 time frame.
17762
17763 Attributes:
17764 blacklist_rpz_list: The RPZs to which you apply newly detected
17765 domains through the Infoblox Threat Insight Cloud Client.
17766 enable: Determines whether the Threat Insight in Cloud Client is
17767 enabled.
17768 force_refresh: Force a refresh if at least one RPZ is
17769 configured.
17770 interval: The time interval (in seconds) for requesting newly
17771 detected domains by the Infoblox Threat Insight Cloud Client
17772 and applying them to the list of configured RPZs.
17773 """
17774 _infoblox_type = 'threatinsight:cloudclient'
17775 _fields = ['blacklist_rpz_list', 'enable', 'force_refresh', 'interval']
17776 _search_for_update_fields = []
17777 _updateable_search_fields = []
17778 _all_searchable_fields = []
17779 _return_fields = ['enable', 'interval']
17780 _remap = {}
17781 _shadow_fields = ['_ref']
17782
17783
17784 class ThreatprotectionGridRule(InfobloxObject):
17785 """ ThreatprotectionGridRule: Threat protection custom rule object.
17786 Corresponds to WAPI object 'threatprotection:grid:rule'
17787
17788 This object provides information about the threat protection custom
17789 rule settings.
17790
17791 Attributes:
17792 allowed_actions: The list of allowed actions of the custom rule.
17793 category: The rule category the custom rule assigned to.
17794 comment: The human readable comment for the custom rule.
17795 config: The rule config of the template.
17796 description: The description of the custom rule.
17797 disabled: Determines if the custom rule is disabled.
17798 is_factory_reset_enabled: Determines if factory reset is enabled
17799 for the custom rule.
17800 name: The name of the rule custom rule concatenated with its
17801 rule config parameters.
17802 ruleset: The version of the ruleset the custom rule assigned to.
17803 sid: The Rule ID.
17804 template: The threat protection rule template used to create
17805 this rule.
17806 type: The type of the custom rule.
17807 """
17808 _infoblox_type = 'threatprotection:grid:rule'
17809 _fields = ['allowed_actions', 'category', 'comment', 'config',
17810 'description', 'disabled', 'is_factory_reset_enabled', 'name',
17811 'ruleset', 'sid', 'template', 'type']
17812 _search_for_update_fields = ['name', 'ruleset', 'sid']
17813 _updateable_search_fields = ['comment', 'template']
17814 _all_searchable_fields = ['category', 'comment', 'description', 'name',
17815 'ruleset', 'sid', 'template', 'type']
17816 _return_fields = ['name', 'ruleset', 'sid']
17817 _remap = {}
17818 _shadow_fields = ['_ref']
17819
17820
17821 class ThreatprotectionProfile(InfobloxObject):
17822 """ ThreatprotectionProfile: The Threat Protection profile object.
17823 Corresponds to WAPI object 'threatprotection:profile'
17824
17825 The Threat Protection profile object facilitates configuring groups
17826 of Threat Protection members that have similar traffic properties. A
17827 member can be either associated with a Threat Protection profile or
17828 inherit the ruleset from the Grid or override the ruleset
17829 individually at the member level.
17830
17831 Attributes:
17832 comment: The comment for the Threat Protection profile.
17833 current_ruleset: The current Threat Protection profile ruleset.
17834 disable_multiple_dns_tcp_request: Determines if multiple BIND
17835 responses via TCP connection are disabled.
17836 events_per_second_per_rule: The number of events logged per
17837 second per rule.
17838 extattrs: Extensible attributes associated with the object.For
17839 valid values for extensible attributes, see the following
17840 information.
17841 members: The list of members that are associated with the
17842 profile.
17843 name: The name of the Threat Protection profile.
17844 source_member: The source member. It can be used only during the
17845 create operation for cloning a profile from an existing
17846 member.
17847 source_profile: The source profile. It can be used only during
17848 the create operation for cloning a profile from an existing
17849 profile.
17850 use_current_ruleset: Use flag for: current_ruleset
17851 use_disable_multiple_dns_tcp_request: Use flag for:
17852 disable_multiple_dns_tcp_request
17853 use_events_per_second_per_rule: Use flag for:
17854 events_per_second_per_rule
17855 """
17856 _infoblox_type = 'threatprotection:profile'
17857 _fields = ['comment', 'current_ruleset',
17858 'disable_multiple_dns_tcp_request',
17859 'events_per_second_per_rule', 'extattrs', 'members', 'name',
17860 'source_member', 'source_profile', 'use_current_ruleset',
17861 'use_disable_multiple_dns_tcp_request',
17862 'use_events_per_second_per_rule']
17863 _search_for_update_fields = ['name']
17864 _updateable_search_fields = ['comment', 'current_ruleset',
17865 'disable_multiple_dns_tcp_request',
17866 'events_per_second_per_rule', 'name']
17867 _all_searchable_fields = ['comment', 'current_ruleset',
17868 'disable_multiple_dns_tcp_request',
17869 'events_per_second_per_rule', 'name']
17870 _return_fields = ['comment', 'extattrs', 'name']
17871 _remap = {}
17872 _shadow_fields = ['_ref']
17873
17874
17875 class ThreatprotectionProfileRule(InfobloxObject):
17876 """ ThreatprotectionProfileRule: Threat Protection Profile Rule
17877 object.
17878 Corresponds to WAPI object 'threatprotection:profile:rule'
17879
17880 This object provides information about the Threat protection profile
17881 rule settings.
17882
17883 Attributes:
17884 config: The threat protection rule configuration.
17885 disable: Determines if the rule is enabled or not for the
17886 profile.
17887 profile: The name of the Threat protection profile.
17888 rule: The rule object name.
17889 sid: The snort rule ID.
17890 use_config: Use flag for: config
17891 use_disable: Use flag for: disable
17892 """
17893 _infoblox_type = 'threatprotection:profile:rule'
17894 _fields = ['config', 'disable', 'profile', 'rule', 'sid', 'use_config',
17895 'use_disable']
17896 _search_for_update_fields = ['profile', 'rule']
17897 _updateable_search_fields = []
17898 _all_searchable_fields = ['profile', 'rule', 'sid']
17899 _return_fields = ['profile', 'rule']
17900 _remap = {}
17901 _shadow_fields = ['_ref']
17902
17903
17904 class ThreatprotectionRule(InfobloxObject):
17905 """ ThreatprotectionRule: Member Threat Protection Rule object.
17906 Corresponds to WAPI object 'threatprotection:rule'
17907
17908 This object provides information about the member Threat protection
17909 rule settings.
17910
17911 Attributes:
17912 config: The threat protection rule configuration.
17913 disable: Determines if the rule is enabled or not for the
17914 member.
17915 member: The name of the Threat protection member.
17916 rule: The rule object name.
17917 sid: The Rule ID.
17918 use_config: Use flag for: config
17919 use_disable: Use flag for: disable
17920 """
17921 _infoblox_type = 'threatprotection:rule'
17922 _fields = ['config', 'disable', 'member', 'rule', 'sid', 'use_config',
17923 'use_disable']
17924 _search_for_update_fields = ['member', 'rule']
17925 _updateable_search_fields = []
17926 _all_searchable_fields = ['member', 'rule', 'sid']
17927 _return_fields = ['member', 'rule']
17928 _remap = {}
17929 _shadow_fields = ['_ref']
17930
17931
17932 class ThreatprotectionRulecategory(InfobloxObject):
17933 """ ThreatprotectionRulecategory: Threat protection rule category
17934 object.
17935 Corresponds to WAPI object 'threatprotection:rulecategory'
17936
17937 This object provides information about the threat protection rule
17938 category settings.
17939
17940 Attributes:
17941 is_factory_reset_enabled: Determines if factory reset is enabled
17942 for this rule category.
17943 name: The name of the rule category.
17944 ruleset: The version of the ruleset the category assigned to.
17945 """
17946 _infoblox_type = 'threatprotection:rulecategory'
17947 _fields = ['is_factory_reset_enabled', 'name', 'ruleset']
17948 _search_for_update_fields = ['name', 'ruleset']
17949 _updateable_search_fields = []
17950 _all_searchable_fields = ['name', 'ruleset']
17951 _return_fields = ['name', 'ruleset']
17952 _remap = {}
17953 _shadow_fields = ['_ref']
17954
17955
17956 class ThreatprotectionRuleset(InfobloxObject):
17957 """ ThreatprotectionRuleset: The Grid threat protection ruleset
17958 object.
17959 Corresponds to WAPI object 'threatprotection:ruleset'
17960
17961 This object represent the Grid protection ruleset information.
17962
17963 Attributes:
17964 add_type: Determines the way the ruleset was added.
17965 added_time: The time when the ruleset was added.
17966 comment: The human readable comment for the ruleset.
17967 do_not_delete: Determines if the ruleset will not be deleted
17968 during upgrade.
17969 is_factory_reset_enabled: Determines if factory reset is enabled
17970 for this ruleset.
17971 used_by: The users of the ruleset.
17972 version: The ruleset version.
17973 """
17974 _infoblox_type = 'threatprotection:ruleset'
17975 _fields = ['add_type', 'added_time', 'comment', 'do_not_delete',
17976 'is_factory_reset_enabled', 'used_by', 'version']
17977 _search_for_update_fields = ['add_type', 'version']
17978 _updateable_search_fields = ['comment']
17979 _all_searchable_fields = ['add_type', 'comment', 'version']
17980 _return_fields = ['add_type', 'version']
17981 _remap = {}
17982 _shadow_fields = ['_ref']
17983
17984
17985 class ThreatprotectionRuletemplate(InfobloxObject):
17986 """ ThreatprotectionRuletemplate: Threat protection rule template
17987 object.
17988 Corresponds to WAPI object 'threatprotection:ruletemplate'
17989
17990 This object provides information about the threat protection rule
17991 template settings.
17992
17993 Attributes:
17994 allowed_actions: The list of allowed actions of rhe rule
17995 template.
17996 category: The rule category this template assigned to.
17997 default_config: The rule config of this template.
17998 description: The description of the rule template.
17999 name: The name of the rule template.
18000 ruleset: The version of the ruleset the template assigned to.
18001 sid: The Rule ID.
18002 """
18003 _infoblox_type = 'threatprotection:ruletemplate'
18004 _fields = ['allowed_actions', 'category', 'default_config', 'description',
18005 'name', 'ruleset', 'sid']
18006 _search_for_update_fields = ['name', 'ruleset', 'sid']
18007 _updateable_search_fields = []
18008 _all_searchable_fields = ['category', 'description', 'name', 'ruleset',
18009 'sid']
18010 _return_fields = ['name', 'ruleset', 'sid']
18011 _remap = {}
18012 _shadow_fields = ['_ref']
18013
18014
18015 class ThreatprotectionStatistics(InfobloxObject):
18016 """ ThreatprotectionStatistics: Threat protection statistics object.
18017 Corresponds to WAPI object 'threatprotection:statistics'
18018
18019 This object provides information about the threat protection
18020 statistics.
18021
18022 Attributes:
18023 member: The Grid member name to get threat protection
18024 statistics. If nothing is specified then event statistics is
18025 returned for the Grid.
18026 stat_infos: The list of event statistical information for the
18027 Grid or particular members.
18028 """
18029 _infoblox_type = 'threatprotection:statistics'
18030 _fields = ['member', 'stat_infos']
18031 _search_for_update_fields = ['member']
18032 _updateable_search_fields = []
18033 _all_searchable_fields = ['member']
18034 _return_fields = ['member', 'stat_infos']
18035 _remap = {}
18036 _shadow_fields = ['_ref']
18037
18038 _custom_field_processing = {
18039 'stat_infos': ThreatprotectionStatinfo.from_dict,
18040 }
18041
18042
18043 class Upgradegroup(InfobloxObject):
18044 """ Upgradegroup: Upgrade group object.
18045 Corresponds to WAPI object 'upgradegroup'
18046
18047 To minimize the impact of Grid upgrades on system operations, you
18048 can organize members into upgrade groups and schedule their software
18049 distributions. The upgrade group object provides configuration of
18050 upgrade and software distribution for members included in the
18051 upgrade group.
18052
18053 Attributes:
18054 comment: The upgrade group descriptive comment.
18055 distribution_dependent_group: The distribution dependent group
18056 name.
18057 distribution_policy: The distribution scheduling policy.
18058 distribution_time: The time of the next scheduled distribution.
18059 members: The upgrade group members.
18060 name: The upgrade group name.
18061 time_zone: The time zone for scheduling operations.
18062 upgrade_dependent_group: The upgrade dependent group name.
18063 upgrade_policy: The upgrade scheduling policy.
18064 upgrade_time: The time of the next scheduled upgrade.
18065 """
18066 _infoblox_type = 'upgradegroup'
18067 _fields = ['comment', 'distribution_dependent_group',
18068 'distribution_policy', 'distribution_time', 'members', 'name',
18069 'time_zone', 'upgrade_dependent_group', 'upgrade_policy',
18070 'upgrade_time']
18071 _search_for_update_fields = ['name']
18072 _updateable_search_fields = ['comment', 'name']
18073 _all_searchable_fields = ['comment', 'name']
18074 _return_fields = ['comment', 'name']
18075 _remap = {}
18076 _shadow_fields = ['_ref']
18077
18078 _custom_field_processing = {
18079 'members': UpgradegroupMember.from_dict,
18080 }
18081
18082
18083 class Upgradeschedule(InfobloxObject):
18084 """ Upgradeschedule: Upgrade schedule object.
18085 Corresponds to WAPI object 'upgradeschedule'
18086
18087 You can schedule lite and full upgrades for certain NIOS versions.
18088 When you schedule an upgrade, you schedule the upgrade for the Grid
18089 Master and the upgrade groups, including the Default group. The Grid
18090 Master must always upgrade before the upgrade groups.
18091
18092 The upgrade schedule object provides configuration of the scheduled
18093 upgrade, activation of the latest upgrade, as well as date and time
18094 settings for the upgrade.
18095
18096 Attributes:
18097 active: Determines whether the upgrade schedule is active.
18098 start_time: The start time of the upgrade.
18099 time_zone: The time zone for upgrade start time.
18100 upgrade_groups: The upgrade groups scheduling settings.
18101 """
18102 _infoblox_type = 'upgradeschedule'
18103 _fields = ['active', 'start_time', 'time_zone', 'upgrade_groups']
18104 _search_for_update_fields = []
18105 _updateable_search_fields = []
18106 _all_searchable_fields = []
18107 _return_fields = ['active', 'start_time', 'time_zone']
18108 _remap = {}
18109 _shadow_fields = ['_ref']
18110
18111 _custom_field_processing = {
18112 'upgrade_groups': UpgradegroupSchedule.from_dict,
18113 }
18114
18115
18116 class Upgradestatus(InfobloxObject):
18117 """ Upgradestatus: The upgrade status object.
18118 Corresponds to WAPI object 'upgradestatus'
18119
18120 The Upgrade Status object is used to view the upgrade status of
18121 Infoblox Grid elements.
18122
18123 Attributes:
18124 allow_distribution: Determines if distribution is allowed for
18125 the Grid.
18126 allow_distribution_scheduling: Determines if distribution
18127 scheduling is allowed.
18128 allow_upgrade: Determines if upgrade is allowed for the Grid.
18129 allow_upgrade_cancel: Determines if the Grid is allowed to
18130 cancel an upgrade.
18131 allow_upgrade_pause: Determines if the Grid is allowed to pause
18132 an upgrade.
18133 allow_upgrade_resume: Determines if the Grid is allowed to
18134 resume an upgrade.
18135 allow_upgrade_scheduling: Determine if the Grid is allowed to
18136 schedule an upgrade.
18137 allow_upgrade_test: Determines if the Grid is allowed to test an
18138 upgrade.
18139 allow_upload: Determine if the Grid is allowed to upload a
18140 build.
18141 alternate_version: The alternative version.
18142 comment: Comment in readable format for an upgrade group a or
18143 virtual node.
18144 current_version: The current version.
18145 current_version_summary: Current version summary for the 'type'
18146 requested. This field can be requested for the Grid, a
18147 certain group that has virtual nodes as subelements, or for
18148 the overall group status.
18149 distribution_schedule_active: Determines if the distribution
18150 schedule is active for the Grid.
18151 distribution_schedule_time: The Grid master distribution
18152 schedule time.
18153 distribution_state: The current state of distribution process.
18154 distribution_version: The version that is distributed.
18155 distribution_version_summary: Distribution version summary for
18156 the 'type' requested. This field can be requested for the
18157 Grid, a certain group that has virtual nodes as subelements,
18158 or for the overall group status.
18159 element_status: The status of a certain element with regards to
18160 the type requested.
18161 grid_state: The state of the Grid.
18162 group_state: The state of a group.
18163 ha_status: Status of the HA pair.
18164 hotfixes: The list of hotfixes.
18165 ipv4_address: The IPv4 Address of virtual node or physical one.
18166 ipv6_address: The IPv6 Address of virtual node or physical one.
18167 member: Member that participates in the upgrade process.
18168 message: The Grid message.
18169 pnode_role: Status of the physical node in the HA pair.
18170 reverted: Determines if the upgrade process is reverted.
18171 status_time: The status time.
18172 status_value: Status of a certain group, virtual node or
18173 physical node.
18174 status_value_update_time: Timestamp of when the status was
18175 updated.
18176 steps: The list of upgrade process steps.
18177 steps_completed: The number of steps done.
18178 steps_total: Total number steps in the upgrade process.
18179 subelement_type: The type of subelements to be requested. If
18180 'type' is 'GROUP', or 'VNODE', then 'upgrade_group' or
18181 'member' should have proper values for an operation to
18182 return data specific for the values passed. Otherwise,
18183 overall data is returned for every group or physical node.
18184 subelements_completed: Number of subelements that have
18185 accomplished an upgrade.
18186 subelements_status: The upgrade process information of
18187 subelements.
18188 subelements_total: Number of subelements number in a certain
18189 group, virtual node, or the Grid.
18190 type: The type of upper level elements to be requested.
18191 upgrade_group: Upgrade group that participates in the upgrade
18192 process.
18193 upgrade_schedule_active: Determines if the upgrade schedule is
18194 active.
18195 upgrade_state: The upgrade state of the Grid.
18196 upgrade_test_status: The upgrade test status of the Grid.
18197 upload_version: The version that is uploaded.
18198 upload_version_summary: Upload version summary for the 'type'
18199 requested. This field can be requested for the Grid, a
18200 certain group that has virtual nodes as subelements, or
18201 overall group status.
18202 """
18203 _infoblox_type = 'upgradestatus'
18204 _fields = ['allow_distribution', 'allow_distribution_scheduling',
18205 'allow_upgrade', 'allow_upgrade_cancel', 'allow_upgrade_pause',
18206 'allow_upgrade_resume', 'allow_upgrade_scheduling',
18207 'allow_upgrade_test', 'allow_upload', 'alternate_version',
18208 'comment', 'current_version', 'current_version_summary',
18209 'distribution_schedule_active', 'distribution_schedule_time',
18210 'distribution_state', 'distribution_version',
18211 'distribution_version_summary', 'element_status', 'grid_state',
18212 'group_state', 'ha_status', 'hotfixes', 'ipv4_address',
18213 'ipv6_address', 'member', 'message', 'pnode_role', 'reverted',
18214 'status_time', 'status_value', 'status_value_update_time',
18215 'steps', 'steps_completed', 'steps_total', 'subelement_type',
18216 'subelements_completed', 'subelements_status',
18217 'subelements_total', 'type', 'upgrade_group',
18218 'upgrade_schedule_active', 'upgrade_state',
18219 'upgrade_test_status', 'upload_version',
18220 'upload_version_summary']
18221 _search_for_update_fields = ['member', 'type', 'upgrade_group']
18222 _updateable_search_fields = []
18223 _all_searchable_fields = ['member', 'subelement_type', 'type',
18224 'upgrade_group']
18225 _return_fields = ['alternate_version', 'comment', 'current_version',
18226 'distribution_version', 'element_status', 'grid_state',
18227 'group_state', 'ha_status', 'hotfixes', 'ipv4_address',
18228 'ipv6_address', 'member', 'message', 'pnode_role',
18229 'reverted', 'status_value', 'status_value_update_time',
18230 'steps', 'steps_completed', 'steps_total', 'type',
18231 'upgrade_group', 'upgrade_state', 'upgrade_test_status',
18232 'upload_version']
18233 _remap = {}
18234 _shadow_fields = ['_ref']
18235
18236 _custom_field_processing = {
18237 'hotfixes': Hotfix.from_dict,
18238 'steps': Upgradestep.from_dict,
18239 }
18240
18241
18242 class Userprofile(InfobloxObject):
18243 """ Userprofile: User profile object.
18244 Corresponds to WAPI object 'userprofile'
18245
18246 The user profile of the admin who has logged in.
18247
18248 Attributes:
18249 active_dashboard_type: Determines the active dashboard type.
18250 admin_group: The Admin Group object to which the admin belongs.
18251 An admin user can belong to only one admin group at a time.
18252 days_to_expire: The number of days left before the admin's
18253 password expires.
18254 email: The email address of the admin.
18255 global_search_on_ea: Determines if extensible attribute values
18256 will be returned by global search or not.
18257 global_search_on_ni_data: Determines if global search will
18258 search for network insight devices and interfaces or not.
18259 grid_admin_groups: List of Admin Group objects that the current
18260 user is mapped to.
18261 last_login: The timestamp when the admin last logged in.
18262 lb_tree_nodes_at_gen_level: Determines how many nodes are
18263 displayed at generation levels.
18264 lb_tree_nodes_at_last_level: Determines how many nodes are
18265 displayed at the last level.
18266 max_count_widgets: The maximum count of widgets that can be
18267 added to one dashboard.
18268 name: The admin name.
18269 old_password: The current password that will be replaced by a
18270 new password. To change a password in the database, you must
18271 provide both the current and new password values. This is a
18272 write-only attribute.
18273 password: The new password of the admin. To change a password in
18274 the database, you must provide both the current and new
18275 password values. This is a write-only attribute.
18276 table_size: The number of lines of data a table or a single list
18277 view can contain.
18278 time_zone: The time zone of the admin user.
18279 use_time_zone: Use flag for: time_zone
18280 user_type: The admin type.
18281 """
18282 _infoblox_type = 'userprofile'
18283 _fields = ['active_dashboard_type', 'admin_group', 'days_to_expire',
18284 'email', 'global_search_on_ea', 'global_search_on_ni_data',
18285 'grid_admin_groups', 'last_login', 'lb_tree_nodes_at_gen_level',
18286 'lb_tree_nodes_at_last_level', 'max_count_widgets', 'name',
18287 'old_password', 'password', 'table_size', 'time_zone',
18288 'use_time_zone', 'user_type']
18289 _search_for_update_fields = []
18290 _updateable_search_fields = []
18291 _all_searchable_fields = []
18292 _return_fields = ['name']
18293 _remap = {}
18294 _shadow_fields = ['_ref']
18295
18296
18297 class Vdiscoverytask(InfobloxObject):
18298 """ Vdiscoverytask: Discovery task object.
18299 Corresponds to WAPI object 'vdiscoverytask'
18300
18301 This object represents vDiscovery Task.
18302
18303 Attributes:
18304 allow_unsecured_connection: Allow unsecured connection over
18305 HTTPS and bypass validation of the remote SSL certificate.
18306 auto_consolidate_cloud_ea: Whether to insert or update cloud EAs
18307 with discovery data.
18308 auto_consolidate_managed_tenant: Whether to replace managed
18309 tenant with discovery tenant data.
18310 auto_consolidate_managed_vm: Whether to replace managed virtual
18311 machine with discovery vm data.
18312 auto_create_dns_hostname_template: Template string used to
18313 generate host name.
18314 auto_create_dns_record: Control whether to create or update DNS
18315 record using discovered data.
18316 auto_create_dns_record_type: Indicates the type of record to
18317 create if the auto create DNS record is enabled.
18318 comment: Comment on the task.
18319 credentials_type: Credentials type used for connecting to the
18320 cloud management platform.
18321 dns_view_private_ip: The DNS view name for private IPs.
18322 dns_view_public_ip: The DNS view name for public IPs.
18323 domain_name: The name of the domain to use with keystone v3.
18324 driver_type: Type of discovery driver.
18325 enabled: Whether to enabled the cloud discovery or not.
18326 fqdn_or_ip: FQDN or IP of the cloud management platform.
18327 identity_version: Identity service version.
18328 last_run: Timestamp of last run.
18329 member: Member on which cloud discovery will be run.
18330 merge_data: Whether to replace the old data with new or not.
18331 name: Name of this cloud discovery task. Uniquely identify a
18332 task.
18333 password: Password used for connecting to the cloud management
18334 platform.
18335 port: Connection port used for connecting to the cloud
18336 management platform.
18337 private_network_view: Network view for private IPs.
18338 private_network_view_mapping_policy: Mapping policy for the
18339 network view for private IPs in discovery data.
18340 protocol: Connection protocol used for connecting to the cloud
18341 management platform.
18342 public_network_view: Network view for public IPs.
18343 public_network_view_mapping_policy: Mapping policy for the
18344 network view for public IPs in discovery data.
18345 scheduled_run: Schedule setting for cloud discovery task.
18346 service_account_file: The service_account_file for GCP.
18347 state: Current state of this task.
18348 state_msg: State message of the complete discovery process.
18349 update_dns_view_private_ip: If set to true, the appliance uses a
18350 specific DNS view for private IPs.
18351 update_dns_view_public_ip: If set to true, the appliance uses a
18352 specific DNS view for public IPs.
18353 update_metadata: Whether to update metadata as a result of this
18354 network discovery.
18355 use_identity: If set true, all keystone connection will use
18356 "/identity" endpoint and port value will be ignored.
18357 username: Username used for connecting to the cloud management
18358 platform.
18359 """
18360 _infoblox_type = 'vdiscoverytask'
18361 _fields = ['allow_unsecured_connection', 'auto_consolidate_cloud_ea',
18362 'auto_consolidate_managed_tenant',
18363 'auto_consolidate_managed_vm',
18364 'auto_create_dns_hostname_template', 'auto_create_dns_record',
18365 'auto_create_dns_record_type', 'comment', 'credentials_type',
18366 'dns_view_private_ip', 'dns_view_public_ip', 'domain_name',
18367 'driver_type', 'enabled', 'fqdn_or_ip', 'identity_version',
18368 'last_run', 'member', 'merge_data', 'name', 'password', 'port',
18369 'private_network_view', 'private_network_view_mapping_policy',
18370 'protocol', 'public_network_view',
18371 'public_network_view_mapping_policy', 'scheduled_run',
18372 'service_account_file', 'state', 'state_msg',
18373 'update_dns_view_private_ip', 'update_dns_view_public_ip',
18374 'update_metadata', 'use_identity', 'username']
18375 _search_for_update_fields = ['name', 'state']
18376 _updateable_search_fields = ['dns_view_private_ip', 'dns_view_public_ip',
18377 'domain_name', 'driver_type', 'enabled',
18378 'fqdn_or_ip', 'identity_version', 'member',
18379 'name', 'port', 'private_network_view',
18380 'private_network_view_mapping_policy',
18381 'protocol', 'public_network_view',
18382 'public_network_view_mapping_policy',
18383 'service_account_file',
18384 'update_dns_view_private_ip',
18385 'update_dns_view_public_ip', 'use_identity',
18386 'username']
18387 _all_searchable_fields = ['dns_view_private_ip', 'dns_view_public_ip',
18388 'domain_name', 'driver_type', 'enabled',
18389 'fqdn_or_ip', 'identity_version', 'member',
18390 'name', 'port', 'private_network_view',
18391 'private_network_view_mapping_policy',
18392 'protocol', 'public_network_view',
18393 'public_network_view_mapping_policy',
18394 'service_account_file', 'state',
18395 'update_dns_view_private_ip',
18396 'update_dns_view_public_ip', 'use_identity',
18397 'username']
18398 _return_fields = ['name', 'state']
18399 _remap = {}
18400 _shadow_fields = ['_ref']
18401
18402 def vdiscovery_control(self, *args, **kwargs):
18403 return self._call_func("vdiscovery_control", *args, **kwargs)
18404
18405
18406 class DNSView(InfobloxObject):
18407 """ DNSView: DNS View object.
18408 Corresponds to WAPI object 'view'
18409
18410 DNS views provide the ability to serve one version of DNS data to
18411 one set of clients and another version to another set of clients.
18412 With DNS views, the appliance can provide a different answer to the
18413 same query, depending on the source of the query.
18414
18415 Attributes:
18416 blacklist_action: The action to perform when a domain name
18417 matches the pattern defined in a rule that is specified by
18418 the blacklist_ruleset method. Valid values are "REDIRECT" or
18419 "REFUSE". The default value is "REFUSE".
18420 blacklist_log_query: The flag that indicates whether blacklist
18421 redirection queries are logged. Specify "true" to enable
18422 logging, or "false" to disable it. The default value is
18423 "false".
18424 blacklist_redirect_addresses: The array of IP addresses the
18425 appliance includes in the response it sends in place of a
18426 blacklisted IP address.
18427 blacklist_redirect_ttl: The Time To Live (TTL) value of the
18428 synthetic DNS responses resulted from blacklist redirection.
18429 The TTL value is a 32-bit unsigned integer that represents
18430 the TTL in seconds.
18431 blacklist_rulesets: The name of the Ruleset object assigned at
18432 the Grid level for blacklist redirection.
18433 cloud_info: Structure containing all cloud API related
18434 information for this object.
18435 comment: Comment for the DNS view; maximum 64 characters.
18436 custom_root_name_servers: The list of customized root name
18437 servers. You can either select and use Internet root name
18438 servers or specify custom root name servers by providing a
18439 host name and IP address to which the Infoblox appliance can
18440 send queries. Include the specified parameter to set the
18441 attribute value. Omit the parameter to retrieve the
18442 attribute value.
18443 ddns_force_creation_timestamp_update: Defines whether creation
18444 timestamp of RR should be updated ' when DDNS update happens
18445 even if there is no change to ' the RR.
18446 ddns_principal_group: The DDNS Principal cluster group name.
18447 ddns_principal_tracking: The flag that indicates whether the
18448 DDNS principal track is enabled or disabled.
18449 ddns_restrict_patterns: The flag that indicates whether an
18450 option to restrict DDNS update request based on FQDN
18451 patterns is enabled or disabled.
18452 ddns_restrict_patterns_list: The unordered list of restriction
18453 patterns for an option of to restrict DDNS updates based on
18454 FQDN patterns.
18455 ddns_restrict_protected: The flag that indicates whether an
18456 option to restrict DDNS update request to protected resource
18457 records is enabled or disabled.
18458 ddns_restrict_secure: The flag that indicates whether DDNS
18459 update request for principal other than target resource
18460 record's principal is restricted.
18461 ddns_restrict_static: The flag that indicates whether an option
18462 to restrict DDNS update request to resource records which
18463 are marked as 'STATIC' is enabled or disabled.
18464 disable: Determines if the DNS view is disabled or not. When
18465 this is set to False, the DNS view is enabled.
18466 dns64_enabled: Determines if the DNS64 s enabled or not.
18467 dns64_groups: The list of DNS64 synthesis groups associated with
18468 this DNS view.
18469 dnssec_enabled: Determines if the DNS security extension is
18470 enabled or not.
18471 dnssec_expired_signatures_enabled: Determines if the DNS
18472 security extension accepts expired signatures or not.
18473 dnssec_negative_trust_anchors: A list of zones for which the
18474 server does not perform DNSSEC validation.
18475 dnssec_trusted_keys: The list of trusted keys for the DNS
18476 security extension.
18477 dnssec_validation_enabled: Determines if the DNS security
18478 validation is enabled or not.
18479 edns_udp_size: Advertises the EDNS0 buffer size to the upstream
18480 server. The value should be between 512 and 4096 bytes. The
18481 recommended value is between 512 and 1220 bytes.
18482 enable_blacklist: Determines if the blacklist in a DNS view is
18483 enabled or not.
18484 enable_fixed_rrset_order_fqdns: Determines if the fixed RRset
18485 order FQDN is enabled or not.
18486 enable_match_recursive_only: Determines if the 'match-recursive-
18487 only' option in a DNS view is enabled or not.
18488 extattrs: Extensible attributes associated with the object.For
18489 valid values for extensible attributes, see the following
18490 information.
18491 filter_aaaa: The type of AAAA filtering for this DNS view
18492 object.
18493 filter_aaaa_list: Applies AAAA filtering to a named ACL, or to a
18494 list of IPv4/IPv6 addresses and networks from which queries
18495 are received. This field does not allow TSIG keys.
18496 fixed_rrset_order_fqdns: The fixed RRset order FQDN. If this
18497 field does not contain an empty value, the appliance will
18498 automatically set the enable_fixed_rrset_order_fqdns field
18499 to 'true', unless the same request sets the enable field to
18500 'false'.
18501 forward_only: Determines if this DNS view sends queries to
18502 forwarders only or not. When the value is True, queries are
18503 sent to forwarders only, and not to other internal or
18504 Internet root servers.
18505 forwarders: The list of forwarders for the DNS view. A forwarder
18506 is a name server to which other name servers first send
18507 their off-site queries. The forwarder builds up a cache of
18508 information, avoiding the need for other name servers to
18509 send queries off-site.
18510 is_default: The NIOS appliance provides one default DNS view.
18511 You can rename the default view and change its settings, but
18512 you cannot delete it. There must always be at least one DNS
18513 view in the appliance.
18514 lame_ttl: The number of seconds to cache lame delegations or
18515 lame servers.
18516 last_queried_acl: Determines last queried ACL for the specified
18517 IPv4 or IPv6 addresses and networks in scavenging settings.
18518 match_clients: A list of forwarders for the match clients. This
18519 list specifies a named ACL, or a list of IPv4/IPv6
18520 addresses, networks, TSIG keys of clients that are allowed
18521 or denied access to the DNS view.
18522 match_destinations: A list of forwarders for the match
18523 destinations. This list specifies a name ACL, or a list of
18524 IPv4/IPv6 addresses, networks, TSIG keys of clients that are
18525 allowed or denied access to the DNS view.
18526 max_cache_ttl: The maximum number of seconds to cache ordinary
18527 (positive) answers.
18528 max_ncache_ttl: The maximum number of seconds to cache negative
18529 (NXDOMAIN) answers.
18530 max_udp_size: The value is used by authoritative DNS servers to
18531 never send DNS responses larger than the configured value.
18532 The value should be between 512 and 4096 bytes. The
18533 recommended value is between 512 and 1220 bytes.
18534 name: Name of the DNS view.
18535 network_view: The name of the network view object associated
18536 with this DNS view.
18537 notify_delay: The number of seconds of delay the notify messages
18538 are sent to secondaries.
18539 nxdomain_log_query: The flag that indicates whether NXDOMAIN
18540 redirection queries are logged. Specify "true" to enable
18541 logging, or "false" to disable it. The default value is
18542 "false".
18543 nxdomain_redirect: Determines if NXDOMAIN redirection in a DNS
18544 view is enabled or not.
18545 nxdomain_redirect_addresses: The array with IPv4 addresses the
18546 appliance includes in the response it sends in place of an
18547 NXDOMAIN response.
18548 nxdomain_redirect_addresses_v6: The array with IPv6 addresses
18549 the appliance includes in the response it sends in place of
18550 an NXDOMAIN response.
18551 nxdomain_redirect_ttl: The Time To Live (TTL) value of the
18552 synthetic DNS responses resulted from NXDOMAIN redirection.
18553 The TTL value is a 32-bit unsigned integer that represents
18554 the TTL in seconds.
18555 nxdomain_rulesets: The names of the Ruleset objects assigned at
18556 the grid level for NXDOMAIN redirection.
18557 recursion: Determines if recursion is enabled or not.
18558 response_rate_limiting: The response rate limiting settings for
18559 the DNS View.
18560 root_name_server_type: Determines the type of root name servers.
18561 rpz_drop_ip_rule_enabled: Enables the appliance to ignore RPZ-IP
18562 triggers with prefix lengths less than the specified minimum
18563 prefix length.
18564 rpz_drop_ip_rule_min_prefix_length_ipv4: The minimum prefix
18565 length for IPv4 RPZ-IP triggers. The appliance ignores RPZ-
18566 IP triggers with prefix lengths less than the specified
18567 minimum IPv4 prefix length.
18568 rpz_drop_ip_rule_min_prefix_length_ipv6: The minimum prefix
18569 length for IPv6 RPZ-IP triggers. The appliance ignores RPZ-
18570 IP triggers with prefix lengths less than the specified
18571 minimum IPv6 prefix length.
18572 rpz_qname_wait_recurse: The flag that indicates whether
18573 recursive RPZ lookups are enabled.
18574 scavenging_settings: The scavenging settings.
18575 sortlist: A sort list that determines the order of IP addresses
18576 in responses sent to DNS queries.
18577 use_blacklist: Use flag for: blacklist_action ,
18578 blacklist_log_query, blacklist_redirect_addresses,
18579 blacklist_redirect_ttl, blacklist_rulesets, enable_blacklist
18580 use_ddns_force_creation_timestamp_update: Use flag for:
18581 ddns_force_creation_timestamp_update
18582 use_ddns_patterns_restriction: Use flag for:
18583 ddns_restrict_patterns_list , ddns_restrict_patterns
18584 use_ddns_principal_security: Use flag for: ddns_restrict_secure
18585 , ddns_principal_tracking, ddns_principal_group
18586 use_ddns_restrict_protected: Use flag for:
18587 ddns_restrict_protected
18588 use_ddns_restrict_static: Use flag for: ddns_restrict_static
18589 use_dns64: Use flag for: dns64_enabled , dns64_groups
18590 use_dnssec: Use flag for: dnssec_enabled ,
18591 dnssec_expired_signatures_enabled,
18592 dnssec_validation_enabled, dnssec_trusted_keys
18593 use_edns_udp_size: Use flag for: edns_udp_size
18594 use_filter_aaaa: Use flag for: filter_aaaa , filter_aaaa_list
18595 use_fixed_rrset_order_fqdns: Use flag for:
18596 fixed_rrset_order_fqdns , enable_fixed_rrset_order_fqdns
18597 use_forwarders: Use flag for: forwarders , forward_only
18598 use_lame_ttl: Use flag for: lame_ttl
18599 use_max_cache_ttl: Use flag for: max_cache_ttl
18600 use_max_ncache_ttl: Use flag for: max_ncache_ttl
18601 use_max_udp_size: Use flag for: max_udp_size
18602 use_nxdomain_redirect: Use flag for: nxdomain_redirect ,
18603 nxdomain_redirect_addresses, nxdomain_redirect_addresses_v6,
18604 nxdomain_redirect_ttl, nxdomain_log_query, nxdomain_rulesets
18605 use_recursion: Use flag for: recursion
18606 use_response_rate_limiting: Use flag for: response_rate_limiting
18607 use_root_name_server: Use flag for: custom_root_name_servers ,
18608 root_name_server_type
18609 use_rpz_drop_ip_rule: Use flag for: rpz_drop_ip_rule_enabled ,
18610 rpz_drop_ip_rule_min_prefix_length_ipv4,
18611 rpz_drop_ip_rule_min_prefix_length_ipv6
18612 use_rpz_qname_wait_recurse: Use flag for: rpz_qname_wait_recurse
18613 use_scavenging_settings: Use flag for: scavenging_settings ,
18614 last_queried_acl
18615 use_sortlist: Use flag for: sortlist
18616 """
18617 _infoblox_type = 'view'
18618 _fields = ['blacklist_action', 'blacklist_log_query',
18619 'blacklist_redirect_addresses', 'blacklist_redirect_ttl',
18620 'blacklist_rulesets', 'cloud_info', 'comment',
18621 'custom_root_name_servers',
18622 'ddns_force_creation_timestamp_update', 'ddns_principal_group',
18623 'ddns_principal_tracking', 'ddns_restrict_patterns',
18624 'ddns_restrict_patterns_list', 'ddns_restrict_protected',
18625 'ddns_restrict_secure', 'ddns_restrict_static', 'disable',
18626 'dns64_enabled', 'dns64_groups', 'dnssec_enabled',
18627 'dnssec_expired_signatures_enabled',
18628 'dnssec_negative_trust_anchors', 'dnssec_trusted_keys',
18629 'dnssec_validation_enabled', 'edns_udp_size',
18630 'enable_blacklist', 'enable_fixed_rrset_order_fqdns',
18631 'enable_match_recursive_only', 'extattrs', 'filter_aaaa',
18632 'filter_aaaa_list', 'fixed_rrset_order_fqdns', 'forward_only',
18633 'forwarders', 'is_default', 'lame_ttl', 'last_queried_acl',
18634 'match_clients', 'match_destinations', 'max_cache_ttl',
18635 'max_ncache_ttl', 'max_udp_size', 'name', 'network_view',
18636 'notify_delay', 'nxdomain_log_query', 'nxdomain_redirect',
18637 'nxdomain_redirect_addresses', 'nxdomain_redirect_addresses_v6',
18638 'nxdomain_redirect_ttl', 'nxdomain_rulesets', 'recursion',
18639 'response_rate_limiting', 'root_name_server_type',
18640 'rpz_drop_ip_rule_enabled',
18641 'rpz_drop_ip_rule_min_prefix_length_ipv4',
18642 'rpz_drop_ip_rule_min_prefix_length_ipv6',
18643 'rpz_qname_wait_recurse', 'scavenging_settings', 'sortlist',
18644 'use_blacklist', 'use_ddns_force_creation_timestamp_update',
18645 'use_ddns_patterns_restriction', 'use_ddns_principal_security',
18646 'use_ddns_restrict_protected', 'use_ddns_restrict_static',
18647 'use_dns64', 'use_dnssec', 'use_edns_udp_size',
18648 'use_filter_aaaa', 'use_fixed_rrset_order_fqdns',
18649 'use_forwarders', 'use_lame_ttl', 'use_max_cache_ttl',
18650 'use_max_ncache_ttl', 'use_max_udp_size',
18651 'use_nxdomain_redirect', 'use_recursion',
18652 'use_response_rate_limiting', 'use_root_name_server',
18653 'use_rpz_drop_ip_rule', 'use_rpz_qname_wait_recurse',
18654 'use_scavenging_settings', 'use_sortlist']
18655 _search_for_update_fields = ['is_default', 'name', 'network_view']
18656 _updateable_search_fields = ['blacklist_action', 'blacklist_log_query',
18657 'comment', 'dns64_enabled', 'dnssec_enabled',
18658 'dnssec_expired_signatures_enabled',
18659 'dnssec_validation_enabled',
18660 'enable_blacklist', 'filter_aaaa',
18661 'forward_only', 'name', 'network_view',
18662 'nxdomain_log_query', 'nxdomain_redirect',
18663 'recursion', 'root_name_server_type']
18664 _all_searchable_fields = ['blacklist_action', 'blacklist_log_query',
18665 'comment', 'dns64_enabled', 'dnssec_enabled',
18666 'dnssec_expired_signatures_enabled',
18667 'dnssec_validation_enabled', 'enable_blacklist',
18668 'filter_aaaa', 'forward_only', 'is_default',
18669 'name', 'network_view', 'nxdomain_log_query',
18670 'nxdomain_redirect', 'recursion',
18671 'root_name_server_type']
18672 _return_fields = ['comment', 'extattrs', 'is_default', 'name']
18673 _remap = {}
18674 _shadow_fields = ['_ref']
18675
18676 _custom_field_processing = {
18677 'custom_root_name_servers': Extserver.from_dict,
18678 'dnssec_trusted_keys': Dnssectrustedkey.from_dict,
18679 'filter_aaaa_list': Addressac.from_dict,
18680 'fixed_rrset_order_fqdns': GridDnsFixedrrsetorderfqdn.from_dict,
18681 'last_queried_acl': Addressac.from_dict,
18682 'match_clients': Addressac.from_dict,
18683 'match_destinations': Addressac.from_dict,
18684 'sortlist': Sortlist.from_dict,
18685 }
18686
18687 def run_scavenging(self, *args, **kwargs):
18688 return self._call_func("run_scavenging", *args, **kwargs)
18689
18690
18691 class Vlan(InfobloxObject):
18692 """ Vlan: VLAN object.
18693 Corresponds to WAPI object 'vlan'
18694
18695 Attributes:
18696 assigned_to: List of objects VLAN is assigned to.
18697 comment: A descriptive comment for this VLAN.
18698 contact: Contact information for person/team managing or using
18699 VLAN.
18700 department: Department where VLAN is used.
18701 description: Description for the VLAN object, may be potentially
18702 used for longer VLAN names.
18703 extattrs: Extensible attributes associated with the object.For
18704 valid values for extensible attributes, see the following
18705 information.
18706 id: VLAN ID value.
18707 name: Name of the VLAN.
18708 parent: The VLAN View or VLAN Range to which this VLAN belongs.
18709 reserved: When set VLAN can only be assigned to IPAM object
18710 manually.
18711 status: Status of VLAN object. Can be Assigned, Unassigned,
18712 Reserved.
18713 """
18714 _infoblox_type = 'vlan'
18715 _fields = ['assigned_to', 'comment', 'contact', 'department',
18716 'description', 'extattrs', 'id', 'name', 'parent', 'reserved',
18717 'status']
18718 _search_for_update_fields = ['id', 'name', 'parent']
18719 _updateable_search_fields = ['comment', 'contact', 'department',
18720 'description', 'id', 'name', 'parent',
18721 'reserved']
18722 _all_searchable_fields = ['assigned_to', 'comment', 'contact',
18723 'department', 'description', 'id', 'name',
18724 'parent', 'reserved', 'status']
18725 _return_fields = ['extattrs', 'id', 'name', 'parent']
18726 _remap = {}
18727 _shadow_fields = ['_ref']
18728
18729
18730 class Vlanrange(InfobloxObject):
18731 """ Vlanrange: VLAN Range object.
18732 Corresponds to WAPI object 'vlanrange'
18733
18734 Attributes:
18735 comment: A descriptive comment for this VLAN Range.
18736 end_vlan_id: End ID for VLAN Range.
18737 extattrs: Extensible attributes associated with the object.For
18738 valid values for extensible attributes, see the following
18739 information.
18740 name: Name of the VLAN Range.
18741 pre_create_vlan: If set on creation VLAN objects will be created
18742 once VLAN Range created.
18743 start_vlan_id: Start ID for VLAN Range.
18744 vlan_name_prefix: If set on creation prefix string will be used
18745 for VLAN name.
18746 vlan_view: The VLAN View to which this VLAN Range belongs.
18747 """
18748 _infoblox_type = 'vlanrange'
18749 _fields = ['comment', 'delete_vlans', 'end_vlan_id', 'extattrs', 'name',
18750 'pre_create_vlan', 'start_vlan_id', 'vlan_name_prefix',
18751 'vlan_view']
18752 _search_for_update_fields = ['end_vlan_id', 'name', 'start_vlan_id',
18753 'vlan_view']
18754 _updateable_search_fields = ['comment', 'end_vlan_id', 'name',
18755 'start_vlan_id', 'vlan_view']
18756 _all_searchable_fields = ['comment', 'end_vlan_id', 'name',
18757 'start_vlan_id', 'vlan_view']
18758 _return_fields = ['end_vlan_id', 'extattrs', 'name', 'start_vlan_id',
18759 'vlan_view']
18760 _remap = {}
18761 _shadow_fields = ['_ref']
18762
18763 def next_available_vlan_id(self, *args, **kwargs):
18764 return self._call_func("next_available_vlan_id", *args, **kwargs)
18765
18766
18767 class Vlanview(InfobloxObject):
18768 """ Vlanview: VLAN View object.
18769 Corresponds to WAPI object 'vlanview'
18770
18771 Attributes:
18772 allow_range_overlapping: When set to true VLAN Ranges under VLAN
18773 View can have overlapping ID.
18774 comment: A descriptive comment for this VLAN View.
18775 end_vlan_id: End ID for VLAN View.
18776 extattrs: Extensible attributes associated with the object.For
18777 valid values for extensible attributes, see the following
18778 information.
18779 name: Name of the VLAN View.
18780 pre_create_vlan: If set on creation VLAN objects will be created
18781 once VLAN View created.
18782 start_vlan_id: Start ID for VLAN View.
18783 vlan_name_prefix: If set on creation prefix string will be used
18784 for VLAN name.
18785 """
18786 _infoblox_type = 'vlanview'
18787 _fields = ['allow_range_overlapping', 'comment', 'end_vlan_id', 'extattrs',
18788 'name', 'pre_create_vlan', 'start_vlan_id', 'vlan_name_prefix']
18789 _search_for_update_fields = ['end_vlan_id', 'name', 'start_vlan_id']
18790 _updateable_search_fields = ['allow_range_overlapping', 'comment',
18791 'end_vlan_id', 'name', 'start_vlan_id']
18792 _all_searchable_fields = ['allow_range_overlapping', 'comment',
18793 'end_vlan_id', 'name', 'start_vlan_id']
18794 _return_fields = ['end_vlan_id', 'extattrs', 'name', 'start_vlan_id']
18795 _remap = {}
18796 _shadow_fields = ['_ref']
18797
18798 def next_available_vlan_id(self, *args, **kwargs):
18799 return self._call_func("next_available_vlan_id", *args, **kwargs)
18800
18801
18802 class DNSZone(InfobloxObject):
18803 """ DNSZone: DNS Authoritative Zone object.
18804 Corresponds to WAPI object 'zone_auth'
18805
18806 An authoritative zone is a zone for which the local (primary or
18807 secondary) server references its own data when responding to
18808 queries. The local server is authoritative for the data in this zone
18809 and responds to queries for this data without referencing another
18810 server.
18811
18812 If operating in a Cloud API environment and if the zone is in a
18813 delegated network view, grid_primary is a required field.
18814
18815 There are two types of authoritative zones:
18816
18817 Forwarding-mapping: An authoritative forward-mapping zone is an area
18818 of domain name space for which one or more name servers have the
18819 responsibility to respond authoritatively to name-to-address
18820 queries.
18821
18822 Reverse-mapping: A reverse-mapping zone is an area or network space
18823 for which one or more name servers have the responsibility to
18824 respond to address-to-name queries.
18825
18826 Attributes:
18827 address: The IP address of the server that is serving this zone.
18828 allow_active_dir: This field allows the zone to receive GSS-TSIG
18829 authenticated DDNS updates from DHCP clients and servers in
18830 an AD domain.Note that addresses specified in this field
18831 ignore the permission set in the struct which will be set to
18832 'ALLOW'.
18833 allow_fixed_rrset_order: The flag that allows to enable or
18834 disable fixed RRset ordering for authoritative forward-
18835 mapping zones.
18836 allow_gss_tsig_for_underscore_zone: The flag that allows DHCP
18837 clients to perform GSS-TSIG signed updates for underscore
18838 zones.
18839 allow_gss_tsig_zone_updates: The flag that enables or disables
18840 the zone for GSS-TSIG updates.
18841 allow_query: Determines whether DNS queries are allowed from a
18842 named ACL, or from a list of IPv4/IPv6 addresses, networks,
18843 and TSIG keys for the hosts.
18844 allow_transfer: Determines whether zone transfers are allowed
18845 from a named ACL, or from a list of IPv4/IPv6 addresses,
18846 networks, and TSIG keys for the hosts.
18847 allow_update: Determines whether dynamic DNS updates are allowed
18848 from a named ACL, or from a list of IPv4/IPv6 addresses,
18849 networks, and TSIG keys for the hosts.
18850 allow_update_forwarding: The list with IP addresses, networks or
18851 TSIG keys for clients, from which forwarded dynamic updates
18852 are allowed.
18853 aws_rte53_zone_info: Additional information for Route53 zone.
18854 cloud_info: Structure containing all cloud API related
18855 information for this object.
18856 comment: Comment for the zone; maximum 256 characters.
18857 copy_xfer_to_notify: If this flag is set to True then copy
18858 allowed IPs from Allow Transfer to Also Notify.
18859 create_ptr_for_bulk_hosts: Determines if PTR records are created
18860 for hosts automatically, if necessary, when the zone data is
18861 imported. This field is meaningful only when import_from is
18862 set.
18863 create_ptr_for_hosts: Determines if PTR records are created for
18864 hosts automatically, if necessary, when the zone data is
18865 imported. This field is meaningful only when import_from is
18866 set.
18867 create_underscore_zones: Determines whether automatic creation
18868 of subzones is enabled or not.
18869 ddns_force_creation_timestamp_update: Defines whether creation
18870 timestamp of RR should be updated ' when DDNS update happens
18871 even if there is no change to ' the RR.
18872 ddns_principal_group: The DDNS Principal cluster group name.
18873 ddns_principal_tracking: The flag that indicates whether the
18874 DDNS principal track is enabled or disabled.
18875 ddns_restrict_patterns: The flag that indicates whether an
18876 option to restrict DDNS update request based on FQDN
18877 patterns is enabled or disabled.
18878 ddns_restrict_patterns_list: The unordered list of restriction
18879 patterns for an option of to restrict DDNS updates based on
18880 FQDN patterns.
18881 ddns_restrict_protected: The flag that indicates whether an
18882 option to restrict DDNS update request to protected resource
18883 records is enabled or disabled.
18884 ddns_restrict_secure: The flag that indicates whether DDNS
18885 update request for principal other than target resource
18886 record's principal is restricted.
18887 ddns_restrict_static: The flag that indicates whether an option
18888 to restrict DDNS update request to resource records which
18889 are marked as 'STATIC' is enabled or disabled.
18890 disable: Determines whether a zone is disabled or not. When this
18891 is set to False, the zone is enabled.
18892 disable_forwarding: Determines whether the name servers that
18893 host the zone should forward queries (ended with the domain
18894 name of the zone) to any configured forwarders.
18895 display_domain: The displayed name of the DNS zone.
18896 dns_fqdn: The name of this DNS zone in punycode format. For a
18897 reverse zone, this is in "address/cidr" format. For other
18898 zones, this is in FQDN format in punycode format.
18899 dns_integrity_enable: If this is set to True, DNS integrity
18900 check is enabled for this zone.
18901 dns_integrity_frequency: The frequency, in seconds, of DNS
18902 integrity checks for this zone.
18903 dns_integrity_member: The Grid member that performs DNS
18904 integrity checks for this zone.
18905 dns_integrity_verbose_logging: If this is set to True, more
18906 information is logged for DNS integrity checks for this
18907 zone.
18908 dns_soa_email: The SOA email for the zone in punycode format.
18909 dnssec_key_params: This structure contains the DNSSEC key
18910 parameters for this zone.
18911 dnssec_keys: A list of DNSSEC keys for the zone.
18912 dnssec_ksk_rollover_date: The rollover date for the Key Signing
18913 Key.
18914 dnssec_zsk_rollover_date: The rollover date for the Zone Signing
18915 Key.
18916 do_host_abstraction: Determines if hosts and bulk hosts are
18917 automatically created when the zone data is imported. This
18918 field is meaningful only when import_from is set.
18919 effective_check_names_policy: The value of the check names
18920 policy, which indicates the action the appliance takes when
18921 it encounters host names that do not comply with the Strict
18922 Hostname Checking policy. This value applies only if the
18923 host name restriction policy is set to "Strict Hostname
18924 Checking".
18925 effective_record_name_policy: The selected hostname policy for
18926 records under this zone.
18927 extattrs: Extensible attributes associated with the object.For
18928 valid values for extensible attributes, see the following
18929 information.
18930 external_primaries: The list of external primary servers.
18931 external_secondaries: The list of external secondary servers.
18932 fqdn: The name of this DNS zone. For a reverse zone, this is in
18933 "address/cidr" format. For other zones, this is in FQDN
18934 format. This value can be in unicode format.Note that for a
18935 reverse zone, the corresponding zone_format value should be
18936 set.
18937 grid_primary: The grid primary servers for this zone.
18938 grid_primary_shared_with_ms_parent_delegation: Determines if the
18939 server is duplicated with parent delegation.
18940 grid_secondaries: The list with Grid members that are secondary
18941 servers for this zone.
18942 import_from: The IP address of the Infoblox appliance from which
18943 zone data is imported. Setting this address to
18944 '255.255.255.255' and do_host_abstraction to 'true' will
18945 create Host records from A records in this zone without
18946 importing zone data.
18947 is_dnssec_enabled: This flag is set to True if DNSSEC is enabled
18948 for the zone.
18949 is_dnssec_signed: Determines if the zone is DNSSEC signed.
18950 is_multimaster: Determines if multi-master DNS is enabled for
18951 the zone.
18952 last_queried: The time the zone was last queried on.
18953 last_queried_acl: Determines last queried ACL for the specified
18954 IPv4 or IPv6 addresses and networks in scavenging settings.
18955 locked: If you enable this flag, other administrators cannot
18956 make conflicting changes. This is for administration
18957 purposes only. The zone will continue to serve DNS data even
18958 when it is locked.
18959 locked_by: The name of a superuser or the administrator who
18960 locked this zone.
18961 mask_prefix: IPv4 Netmask or IPv6 prefix for this zone.
18962 member_soa_mnames: The list of per-member SOA MNAME information.
18963 member_soa_serials: The list of per-member SOA serial
18964 information.
18965 ms_ad_integrated: The flag that determines whether Active
18966 Directory is integrated or not. This field is valid only
18967 when ms_managed is "STUB", "AUTH_PRIMARY", or "AUTH_BOTH".
18968 ms_allow_transfer: The list of DNS clients that are allowed to
18969 perform zone transfers from a Microsoft DNS server.This
18970 setting applies only to zones with Microsoft DNS servers
18971 that are either primary or secondary servers. This setting
18972 does not inherit any value from the Grid or from any member
18973 that defines an allow_transfer value. This setting does not
18974 apply to any grid member. Use the allow_transfer field to
18975 control which DNS clients are allowed to perform zone
18976 transfers on Grid members.
18977 ms_allow_transfer_mode: Determines which DNS clients are allowed
18978 to perform zone transfers from a Microsoft DNS server.Valid
18979 values are:"ADDRESS_AC", to use ms_allow_transfer field for
18980 specifying IP addresses, networks and Transaction Signature
18981 (TSIG) keys for clients that are allowed to do zone
18982 transfers."ANY", to allow any client."ANY_NS", to allow only
18983 the nameservers listed in this zone."NONE", to deny all zone
18984 transfer requests.
18985 ms_dc_ns_record_creation: The list of domain controllers that
18986 are allowed to create NS records for authoritative zones.
18987 ms_ddns_mode: Determines whether an Active Directory-integrated
18988 zone with a Microsoft DNS server as primary allows dynamic
18989 updates. Valid values are:"SECURE" if the zone allows secure
18990 updates only."NONE" if the zone forbids dynamic
18991 updates."ANY" if the zone accepts both secure and nonsecure
18992 updates.This field is valid only if ms_managed is either
18993 "AUTH_PRIMARY" or "AUTH_BOTH". If the flag ms_ad_integrated
18994 is false, the value "SECURE" is not allowed.
18995 ms_managed: The flag that indicates whether the zone is assigned
18996 to a Microsoft DNS server. This flag returns the
18997 authoritative name server type of the Microsoft DNS server.
18998 Valid values are:"NONE" if the zone is not assigned to any
18999 Microsoft DNS server."STUB" if the zone is assigned to a
19000 Microsoft DNS server as a stub zone."AUTH_PRIMARY" if only
19001 the primary server of the zone is a Microsoft DNS
19002 server."AUTH_SECONDARY" if only the secondary server of the
19003 zone is a Microsoft DNS server."AUTH_BOTH" if both the
19004 primary and secondary servers of the zone are Microsoft DNS
19005 servers.
19006 ms_primaries: The list with the Microsoft DNS servers that are
19007 primary servers for the zone. Although a zone typically has
19008 just one primary name server, you can specify up to ten
19009 independent servers for a single zone.
19010 ms_read_only: Determines if a Grid member manages the zone
19011 served by a Microsoft DNS server in read-only mode. This
19012 flag is true when a Grid member manages the zone in read-
19013 only mode, false otherwise.When the zone has the
19014 ms_read_only flag set to True, no changes can be made to
19015 this zone.
19016 ms_secondaries: The list with the Microsoft DNS servers that are
19017 secondary servers for the zone.
19018 ms_sync_disabled: This flag controls whether this zone is
19019 synchronized with Microsoft DNS servers.
19020 ms_sync_master_name: The name of MS synchronization master for
19021 this zone.
19022 network_associations: The list with the associated
19023 network/network container information.
19024 network_view: The name of the network view in which this zone
19025 resides.
19026 notify_delay: The number of seconds in delay with which notify
19027 messages are sent to secondaries.
19028 ns_group: The name server group that serves DNS for this zone.
19029 parent: The parent zone of this zone.Note that when searching
19030 for reverse zones, the "in-addr.arpa" notation should be
19031 used.
19032 prefix: The RFC2317 prefix value of this DNS zone.Use this field
19033 only when the netmask is greater than 24 bits; that is, for
19034 a mask between 25 and 31 bits. Enter a prefix, such as the
19035 name of the allocated address block. The prefix can be
19036 alphanumeric characters, such as 128/26 , 128-189 , or
19037 sub-B.
19038 primary_type: The type of the primary server.
19039 record_name_policy: The hostname policy for records under this
19040 zone.
19041 records_monitored: Determines if this zone is also monitoring
19042 resource records.
19043 restart_if_needed: Restarts the member service.
19044 rr_not_queried_enabled_time: The time data collection for Not
19045 Queried Resource Record was enabled for this zone.
19046 scavenging_settings: The scavenging settings.
19047 set_soa_serial_number: The serial number in the SOA record
19048 incrementally changes every time the record is modified. The
19049 Infoblox appliance allows you to change the serial number
19050 (in the SOA record) for the primary server so it is higher
19051 than the secondary server, thereby ensuring zone transfers
19052 come from the primary server (as they should). To change the
19053 serial number you need to set a new value at
19054 "soa_serial_number" and pass "set_soa_serial_number" as
19055 True.
19056 soa_default_ttl: The Time to Live (TTL) value of the SOA record
19057 of this zone. This value is the number of seconds that data
19058 is cached.
19059 soa_email: The SOA email value for this zone. This value can be
19060 in unicode format.
19061 soa_expire: This setting defines the amount of time, in seconds,
19062 after which the secondary server stops giving out answers
19063 about the zone because the zone data is too old to be
19064 useful. The default is one week.
19065 soa_negative_ttl: The negative Time to Live (TTL) value of the
19066 SOA of the zone indicates how long a secondary server can
19067 cache data for "Does Not Respond" responses.
19068 soa_refresh: This indicates the interval at which a secondary
19069 server sends a message to the primary server for a zone to
19070 check that its data is current, and retrieve fresh data if
19071 it is not.
19072 soa_retry: This indicates how long a secondary server must wait
19073 before attempting to recontact the primary server after a
19074 connection failure between the two servers occurs.
19075 soa_serial_number: The serial number in the SOA record
19076 incrementally changes every time the record is modified. The
19077 Infoblox appliance allows you to change the serial number
19078 (in the SOA record) for the primary server so it is higher
19079 than the secondary server, thereby ensuring zone transfers
19080 come from the primary server (as they should). To change the
19081 serial number you need to set a new value at
19082 "soa_serial_number" and pass "set_soa_serial_number" as
19083 True.
19084 srgs: The associated shared record groups of a DNS zone.If a
19085 shared record group is associated with a zone, then all
19086 shared records in a shared record group will be shared in
19087 the zone.
19088 update_forwarding: Use this field to allow or deny dynamic DNS
19089 updates that are forwarded from specific IPv4/IPv6
19090 addresses, networks, or a named ACL. You can also provide
19091 TSIG keys for clients that are allowed or denied to perform
19092 zone updates. This setting overrides the member-level
19093 setting.
19094 use_allow_active_dir: Use flag for: allow_active_dir
19095 use_allow_query: Use flag for: allow_query
19096 use_allow_transfer: Use flag for: allow_transfer
19097 use_allow_update: Use flag for: allow_update
19098 use_allow_update_forwarding: Use flag for:
19099 allow_update_forwarding
19100 use_check_names_policy: Apply policy to dynamic updates and
19101 inbound zone transfers (This value applies only if the host
19102 name restriction policy is set to "Strict Hostname
19103 Checking".)
19104 use_copy_xfer_to_notify: Use flag for: copy_xfer_to_notify
19105 use_ddns_force_creation_timestamp_update: Use flag for:
19106 ddns_force_creation_timestamp_update
19107 use_ddns_patterns_restriction: Use flag for:
19108 ddns_restrict_patterns_list , ddns_restrict_patterns
19109 use_ddns_principal_security: Use flag for: ddns_restrict_secure
19110 , ddns_principal_tracking, ddns_principal_group
19111 use_ddns_restrict_protected: Use flag for:
19112 ddns_restrict_protected
19113 use_ddns_restrict_static: Use flag for: ddns_restrict_static
19114 use_dnssec_key_params: Use flag for: dnssec_key_params
19115 use_external_primary: This flag controls whether the zone is
19116 using an external primary.
19117 use_grid_zone_timer: Use flag for: soa_default_ttl , soa_expire,
19118 soa_negative_ttl, soa_refresh, soa_retry
19119 use_import_from: Use flag for: import_from
19120 use_notify_delay: Use flag for: notify_delay
19121 use_record_name_policy: Use flag for: record_name_policy
19122 use_scavenging_settings: Use flag for: scavenging_settings ,
19123 last_queried_acl
19124 use_soa_email: Use flag for: soa_email
19125 using_srg_associations: This is true if the zone is associated
19126 with a shared record group.
19127 view: The name of the DNS view in which the zone resides.
19128 Example "external".
19129 zone_format: Determines the format of this zone.
19130 zone_not_queried_enabled_time: The time when "DNS Zones Last
19131 Queried" was turned on for this zone.
19132 """
19133 _infoblox_type = 'zone_auth'
19134 _fields = ['address', 'allow_active_dir', 'allow_fixed_rrset_order',
19135 'allow_gss_tsig_for_underscore_zone',
19136 'allow_gss_tsig_zone_updates', 'allow_query', 'allow_transfer',
19137 'allow_update', 'allow_update_forwarding',
19138 'aws_rte53_zone_info', 'cloud_info', 'comment',
19139 'copy_xfer_to_notify', 'create_ptr_for_bulk_hosts',
19140 'create_ptr_for_hosts', 'create_underscore_zones',
19141 'ddns_force_creation_timestamp_update', 'ddns_principal_group',
19142 'ddns_principal_tracking', 'ddns_restrict_patterns',
19143 'ddns_restrict_patterns_list', 'ddns_restrict_protected',
19144 'ddns_restrict_secure', 'ddns_restrict_static', 'disable',
19145 'disable_forwarding', 'display_domain', 'dns_fqdn',
19146 'dns_integrity_enable', 'dns_integrity_frequency',
19147 'dns_integrity_member', 'dns_integrity_verbose_logging',
19148 'dns_soa_email', 'dnssec_key_params', 'dnssec_keys',
19149 'dnssec_ksk_rollover_date', 'dnssec_zsk_rollover_date',
19150 'do_host_abstraction', 'effective_check_names_policy',
19151 'effective_record_name_policy', 'extattrs',
19152 'external_primaries', 'external_secondaries', 'fqdn',
19153 'grid_primary', 'grid_primary_shared_with_ms_parent_delegation',
19154 'grid_secondaries', 'import_from', 'is_dnssec_enabled',
19155 'is_dnssec_signed', 'is_multimaster', 'last_queried',
19156 'last_queried_acl', 'locked', 'locked_by', 'mask_prefix',
19157 'member_soa_mnames', 'member_soa_serials', 'ms_ad_integrated',
19158 'ms_allow_transfer', 'ms_allow_transfer_mode',
19159 'ms_dc_ns_record_creation', 'ms_ddns_mode', 'ms_managed',
19160 'ms_primaries', 'ms_read_only', 'ms_secondaries',
19161 'ms_sync_disabled', 'ms_sync_master_name',
19162 'network_associations', 'network_view', 'notify_delay',
19163 'ns_group', 'parent', 'prefix', 'primary_type',
19164 'record_name_policy', 'records_monitored', 'restart_if_needed',
19165 'rr_not_queried_enabled_time', 'scavenging_settings',
19166 'set_soa_serial_number', 'soa_default_ttl', 'soa_email',
19167 'soa_expire', 'soa_negative_ttl', 'soa_refresh', 'soa_retry',
19168 'soa_serial_number', 'srgs', 'update_forwarding',
19169 'use_allow_active_dir', 'use_allow_query', 'use_allow_transfer',
19170 'use_allow_update', 'use_allow_update_forwarding',
19171 'use_check_names_policy', 'use_copy_xfer_to_notify',
19172 'use_ddns_force_creation_timestamp_update',
19173 'use_ddns_patterns_restriction', 'use_ddns_principal_security',
19174 'use_ddns_restrict_protected', 'use_ddns_restrict_static',
19175 'use_dnssec_key_params', 'use_external_primary',
19176 'use_grid_zone_timer', 'use_import_from', 'use_notify_delay',
19177 'use_record_name_policy', 'use_scavenging_settings',
19178 'use_soa_email', 'using_srg_associations', 'view',
19179 'zone_format', 'zone_not_queried_enabled_time']
19180 _search_for_update_fields = ['fqdn', 'view']
19181 _updateable_search_fields = ['comment', 'view']
19182 _all_searchable_fields = ['comment', 'dnssec_ksk_rollover_date',
19183 'dnssec_zsk_rollover_date', 'fqdn', 'parent',
19184 'view', 'zone_format']
19185 _return_fields = ['extattrs', 'fqdn', 'view', 'ns_group', 'prefix',
19186 'grid_primary', 'grid_secondaries']
19187 _remap = {}
19188 _shadow_fields = ['_ref']
19189
19190 _custom_field_processing = {
19191 'allow_active_dir': Addressac.from_dict,
19192 'allow_query': Addressac.from_dict,
19193 'allow_transfer': Addressac.from_dict,
19194 'allow_update': Addressac.from_dict,
19195 'dnssec_keys': Dnsseckey.from_dict,
19196 'external_primaries': Extserver.from_dict,
19197 'external_secondaries': Extserver.from_dict,
19198 'grid_primary': Memberserver.from_dict,
19199 'grid_secondaries': Memberserver.from_dict,
19200 'last_queried_acl': Addressac.from_dict,
19201 'member_soa_mnames': GridmemberSoamname.from_dict,
19202 'member_soa_serials': GridmemberSoaserial.from_dict,
19203 'ms_allow_transfer': Addressac.from_dict,
19204 'ms_dc_ns_record_creation': MsserverDcnsrecordcreation.from_dict,
19205 'ms_primaries': Msdnsserver.from_dict,
19206 'ms_secondaries': Msdnsserver.from_dict,
19207 'update_forwarding': Addressac.from_dict,
19208 }
19209
19210 def copyzonerecords(self, *args, **kwargs):
19211 return self._call_func("copyzonerecords", *args, **kwargs)
19212
19213 def dnssec_export(self, *args, **kwargs):
19214 return self._call_func("dnssec_export", *args, **kwargs)
19215
19216 def dnssec_get_zone_keys(self, *args, **kwargs):
19217 return self._call_func("dnssec_get_zone_keys", *args, **kwargs)
19218
19219 def dnssec_operation(self, *args, **kwargs):
19220 return self._call_func("dnssec_operation", *args, **kwargs)
19221
19222 def dnssec_set_zone_keys(self, *args, **kwargs):
19223 return self._call_func("dnssec_set_zone_keys", *args, **kwargs)
19224
19225 def dnssecgetkskrollover(self, *args, **kwargs):
19226 return self._call_func("dnssecgetkskrollover", *args, **kwargs)
19227
19228 def execute_dns_parent_check(self, *args, **kwargs):
19229 return self._call_func("execute_dns_parent_check", *args, **kwargs)
19230
19231 def lock_unlock_zone(self, *args, **kwargs):
19232 return self._call_func("lock_unlock_zone", *args, **kwargs)
19233
19234 def run_scavenging(self, *args, **kwargs):
19235 return self._call_func("run_scavenging", *args, **kwargs)
19236
19237
19238 class ZoneAuthDiscrepancy(InfobloxObject):
19239 """ ZoneAuthDiscrepancy: Zone discrepancy information object.
19240 Corresponds to WAPI object 'zone_auth_discrepancy'
19241
19242 This object contains information about discrepancies found when
19243 performing a DNS integrity check for a zone.
19244
19245 Attributes:
19246 description: Information about the discrepancy.
19247 severity: The severity of the discrepancy reported.
19248 timestamp: The time when the DNS integrity check was last run
19249 for this zone.
19250 zone: The reference of the zone during a search. Otherwise, this
19251 is the zone object of the zone to which the discrepancy
19252 refers.
19253 """
19254 _infoblox_type = 'zone_auth_discrepancy'
19255 _fields = ['description', 'severity', 'timestamp', 'zone']
19256 _search_for_update_fields = ['severity', 'zone']
19257 _updateable_search_fields = []
19258 _all_searchable_fields = ['severity', 'zone']
19259 _return_fields = ['description', 'severity', 'timestamp', 'zone']
19260 _remap = {}
19261 _shadow_fields = ['_ref']
19262
19263
19264 class DNSZoneDelegated(InfobloxObject):
19265 """ DNSZoneDelegated: DNS Delegated Zone object.
19266 Corresponds to WAPI object 'zone_delegated'
19267
19268 Instead of a local name server, remote name servers (which the local
19269 server knows) maintain delegated zone data. When the local name
19270 server receives a query for a delegated zone, it either responds
19271 with the NS record for the delegated zone server (if recursion is
19272 disabled on the local server) or it queries the delegated zone
19273 server on behalf of the resolver (if recursion is enabled).
19274
19275 You can delegate a zone to one or more remote name servers, which
19276 are typically the authoritative primary and secondary servers for
19277 the zone. If recursion is enabled on the local name server, it
19278 queries multiple delegated name servers based on their round-trip
19279 times.
19280
19281 Attributes:
19282 address: The IP address of the server that is serving this zone.
19283 comment: Comment for the zone; maximum 256 characters.
19284 delegate_to: This provides information for the remote name
19285 server that maintains data for the delegated zone. The
19286 Infoblox appliance redirects queries for data for the
19287 delegated zone to this remote name server.
19288 delegated_ttl: You can specify the Time to Live (TTL) values of
19289 auto-generated NS and glue records for a delegated zone.
19290 This value is the number of seconds that data is cached.
19291 disable: Determines whether a zone is disabled or not. When this
19292 is set to False, the zone is enabled.
19293 display_domain: The displayed name of the DNS zone.
19294 dns_fqdn: The name of this DNS zone in punycode format. For a
19295 reverse zone, this is in "address/cidr" format. For other
19296 zones, this is in FQDN format in punycode format.
19297 enable_rfc2317_exclusion: This flag controls whether automatic
19298 generation of RFC 2317 CNAMEs for delegated reverse zones
19299 overwrite existing PTR records. The default behavior is to
19300 overwrite all the existing records in the range; this
19301 corresponds to "allow_ptr_creation_in_parent" set to False.
19302 However, when this flag is set to True the existing PTR
19303 records are not overwritten.
19304 extattrs: Extensible attributes associated with the object.For
19305 valid values for extensible attributes, see the following
19306 information.
19307 fqdn: The name of this DNS zone. For a reverse zone, this is in
19308 "address/cidr" format. For other zones, this is in FQDN
19309 format. This value can be in unicode format.Note that for a
19310 reverse zone, the corresponding zone_format value should be
19311 set.
19312 locked: If you enable this flag, other administrators cannot
19313 make conflicting changes. This is for administration
19314 purposes only. The zone will continue to serve DNS data even
19315 when it is locked.
19316 locked_by: The name of a superuser or the administrator who
19317 locked this zone.
19318 mask_prefix: IPv4 Netmask or IPv6 prefix for this zone.
19319 ms_ad_integrated: The flag that determines whether Active
19320 Directory is integrated or not. This field is valid only
19321 when ms_managed is "STUB", "AUTH_PRIMARY", or "AUTH_BOTH".
19322 ms_ddns_mode: Determines whether an Active Directory-integrated
19323 zone with a Microsoft DNS server as primary allows dynamic
19324 updates. Valid values are:"SECURE" if the zone allows secure
19325 updates only."NONE" if the zone forbids dynamic
19326 updates."ANY" if the zone accepts both secure and nonsecure
19327 updates.This field is valid only if ms_managed is either
19328 "AUTH_PRIMARY" or "AUTH_BOTH". If the flag ms_ad_integrated
19329 is false, the value "SECURE" is not allowed.
19330 ms_managed: The flag that indicates whether the zone is assigned
19331 to a Microsoft DNS server. This flag returns the
19332 authoritative name server type of the Microsoft DNS server.
19333 Valid values are:"NONE" if the zone is not assigned to any
19334 Microsoft DNS server."STUB" if the zone is assigned to a
19335 Microsoft DNS server as a stub zone."AUTH_PRIMARY" if only
19336 the primary server of the zone is a Microsoft DNS
19337 server."AUTH_SECONDARY" if only the secondary server of the
19338 zone is a Microsoft DNS server."AUTH_BOTH" if both the
19339 primary and secondary servers of the zone are Microsoft DNS
19340 servers.
19341 ms_read_only: Determines if a Grid member manages the zone
19342 served by a Microsoft DNS server in read-only mode. This
19343 flag is true when a Grid member manages the zone in read-
19344 only mode, false otherwise.When the zone has the
19345 ms_read_only flag set to True, no changes can be made to
19346 this zone.
19347 ms_sync_master_name: The name of MS synchronization master for
19348 this zone.
19349 ns_group: The delegation NS group bound with delegated zone.
19350 parent: The parent zone of this zone.Note that when searching
19351 for reverse zones, the "in-addr.arpa" notation should be
19352 used.
19353 prefix: The RFC2317 prefix value of this DNS zone.Use this field
19354 only when the netmask is greater than 24 bits; that is, for
19355 a mask between 25 and 31 bits. Enter a prefix, such as the
19356 name of the allocated address block. The prefix can be
19357 alphanumeric characters, such as 128/26 , 128-189 , or
19358 sub-B.
19359 use_delegated_ttl: Use flag for: delegated_ttl
19360 using_srg_associations: This is true if the zone is associated
19361 with a shared record group.
19362 view: The name of the DNS view in which the zone resides.
19363 Example "external".
19364 zone_format: Determines the format of this zone.
19365 """
19366 _infoblox_type = 'zone_delegated'
19367 _fields = ['address', 'comment', 'delegate_to', 'delegated_ttl', 'disable',
19368 'display_domain', 'dns_fqdn', 'enable_rfc2317_exclusion',
19369 'extattrs', 'fqdn', 'locked', 'locked_by', 'mask_prefix',
19370 'ms_ad_integrated', 'ms_ddns_mode', 'ms_managed',
19371 'ms_read_only', 'ms_sync_master_name', 'ns_group', 'parent',
19372 'prefix', 'use_delegated_ttl', 'using_srg_associations', 'view',
19373 'zone_format']
19374 _search_for_update_fields = ['fqdn', 'view']
19375 _updateable_search_fields = ['comment', 'view']
19376 _all_searchable_fields = ['comment', 'fqdn', 'parent', 'view',
19377 'zone_format']
19378 _return_fields = ['delegate_to', 'extattrs', 'fqdn', 'view']
19379 _remap = {}
19380 _shadow_fields = ['_ref']
19381
19382 _custom_field_processing = {
19383 'delegate_to': Extserver.from_dict,
19384 }
19385
19386 def lock_unlock_zone(self, *args, **kwargs):
19387 return self._call_func("lock_unlock_zone", *args, **kwargs)
19388
19389
19390 class DNSZoneForward(InfobloxObject):
19391 """ DNSZoneForward: DNS Forward Zone object.
19392 Corresponds to WAPI object 'zone_forward'
19393
19394 When you want to forward queries for data in a particular zone,
19395 define the zone as a forward zone and specify one or more name
19396 servers that can resolve queries for the zone. For example, define a
19397 forward zone so that the NIOS appliance forwards queries about a
19398 partners internal site to a name server, which the partner hosts,
19399 configured just for other partners to access.
19400
19401 Attributes:
19402 address: The IP address of the server that is serving this zone.
19403 comment: Comment for the zone; maximum 256 characters.
19404 disable: Determines whether a zone is disabled or not. When this
19405 is set to False, the zone is enabled.
19406 disable_ns_generation: Determines whether a auto-generation of
19407 NS records in parent zone is disabled or not. When this is
19408 set to False, the auto-generation is enabled.
19409 display_domain: The displayed name of the DNS zone.
19410 dns_fqdn: The name of this DNS zone in punycode format. For a
19411 reverse zone, this is in "address/cidr" format. For other
19412 zones, this is in FQDN format in punycode format.
19413 extattrs: Extensible attributes associated with the object.For
19414 valid values for extensible attributes, see the following
19415 information.
19416 external_ns_group: A forward stub server name server group.
19417 forward_to: The information for the remote name servers to which
19418 you want the Infoblox appliance to forward queries for a
19419 specified domain name.
19420 forwarders_only: Determines if the appliance sends queries to
19421 forwarders only, and not to other internal or Internet root
19422 servers.
19423 forwarding_servers: The information for the Grid members to
19424 which you want the Infoblox appliance to forward queries for
19425 a specified domain name.
19426 fqdn: The name of this DNS zone. For a reverse zone, this is in
19427 "address/cidr" format. For other zones, this is in FQDN
19428 format. This value can be in unicode format.Note that for a
19429 reverse zone, the corresponding zone_format value should be
19430 set.
19431 locked: If you enable this flag, other administrators cannot
19432 make conflicting changes. This is for administration
19433 purposes only. The zone will continue to serve DNS data even
19434 when it is locked.
19435 locked_by: The name of a superuser or the administrator who
19436 locked this zone.
19437 mask_prefix: IPv4 Netmask or IPv6 prefix for this zone.
19438 ms_ad_integrated: The flag that determines whether Active
19439 Directory is integrated or not. This field is valid only
19440 when ms_managed is "STUB", "AUTH_PRIMARY", or "AUTH_BOTH".
19441 ms_ddns_mode: Determines whether an Active Directory-integrated
19442 zone with a Microsoft DNS server as primary allows dynamic
19443 updates. Valid values are:"SECURE" if the zone allows secure
19444 updates only."NONE" if the zone forbids dynamic
19445 updates."ANY" if the zone accepts both secure and nonsecure
19446 updates.This field is valid only if ms_managed is either
19447 "AUTH_PRIMARY" or "AUTH_BOTH". If the flag ms_ad_integrated
19448 is false, the value "SECURE" is not allowed.
19449 ms_managed: The flag that indicates whether the zone is assigned
19450 to a Microsoft DNS server. This flag returns the
19451 authoritative name server type of the Microsoft DNS server.
19452 Valid values are:"NONE" if the zone is not assigned to any
19453 Microsoft DNS server."STUB" if the zone is assigned to a
19454 Microsoft DNS server as a stub zone."AUTH_PRIMARY" if only
19455 the primary server of the zone is a Microsoft DNS
19456 server."AUTH_SECONDARY" if only the secondary server of the
19457 zone is a Microsoft DNS server."AUTH_BOTH" if both the
19458 primary and secondary servers of the zone are Microsoft DNS
19459 servers.
19460 ms_read_only: Determines if a Grid member manages the zone
19461 served by a Microsoft DNS server in read-only mode. This
19462 flag is true when a Grid member manages the zone in read-
19463 only mode, false otherwise.When the zone has the
19464 ms_read_only flag set to True, no changes can be made to
19465 this zone.
19466 ms_sync_master_name: The name of MS synchronization master for
19467 this zone.
19468 ns_group: A forwarding member name server group.
19469 parent: The parent zone of this zone.Note that when searching
19470 for reverse zones, the "in-addr.arpa" notation should be
19471 used.
19472 prefix: The RFC2317 prefix value of this DNS zone.Use this field
19473 only when the netmask is greater than 24 bits; that is, for
19474 a mask between 25 and 31 bits. Enter a prefix, such as the
19475 name of the allocated address block. The prefix can be
19476 alphanumeric characters, such as 128/26 , 128-189 , or
19477 sub-B.
19478 using_srg_associations: This is true if the zone is associated
19479 with a shared record group.
19480 view: The name of the DNS view in which the zone resides.
19481 Example "external".
19482 zone_format: Determines the format of this zone.
19483 """
19484 _infoblox_type = 'zone_forward'
19485 _fields = ['address', 'comment', 'disable', 'disable_ns_generation',
19486 'display_domain', 'dns_fqdn', 'extattrs', 'external_ns_group',
19487 'forward_to', 'forwarders_only', 'forwarding_servers', 'fqdn',
19488 'locked', 'locked_by', 'mask_prefix', 'ms_ad_integrated',
19489 'ms_ddns_mode', 'ms_managed', 'ms_read_only',
19490 'ms_sync_master_name', 'ns_group', 'parent', 'prefix',
19491 'using_srg_associations', 'view', 'zone_format']
19492 _search_for_update_fields = ['fqdn', 'view']
19493 _updateable_search_fields = ['comment', 'view']
19494 _all_searchable_fields = ['comment', 'fqdn', 'parent', 'view',
19495 'zone_format']
19496 _return_fields = ['extattrs', 'forward_to', 'fqdn', 'view']
19497 _remap = {}
19498 _shadow_fields = ['_ref']
19499
19500 _custom_field_processing = {
19501 'forward_to': Extserver.from_dict,
19502 'forwarding_servers': Forwardingmemberserver.from_dict,
19503 }
19504
19505 def lock_unlock_zone(self, *args, **kwargs):
19506 return self._call_func("lock_unlock_zone", *args, **kwargs)
19507
19508
19509 class ZoneRp(InfobloxObject):
19510 """ ZoneRp: DNS Response Policy Zone object.
19511 Corresponds to WAPI object 'zone_rp'
19512
19513 DNS RPZs (Response Policy Zones), a technology developed by ISC
19514 (Internet System Consortium) for allowing reputable sources to
19515 dynamically communicate domain name reputation so you can implement
19516 policy controls for DNS lookups. You can configure RPZs and define
19517 RPZ rules to block DNS resolution for malicious or unauthorized
19518 domain names, or redirect clients to a walled garden by substituting
19519 responses. You can assign actions to RPZ rules. For example, abc.com
19520 can have an action of pass thru or substitute (domain) with the
19521 domain xyz.com. You can also configure a Grid member to act as a
19522 lead secondary that receives RPZ updates from external reputation
19523 sources and redistributes the updates to other Grid members.
19524
19525 Attributes:
19526 address: The IP address of the server that is serving this zone.
19527 comment: Comment for the zone; maximum 256 characters.
19528 disable: Determines whether a zone is disabled or not. When this
19529 is set to False, the zone is enabled.
19530 display_domain: The displayed name of the DNS zone.
19531 dns_soa_email: The SOA email for the zone in punycode format.
19532 extattrs: Extensible attributes associated with the object.For
19533 valid values for extensible attributes, see the following
19534 information.
19535 external_primaries: The list of external primary servers.
19536 external_secondaries: The list of external secondary servers.
19537 fireeye_rule_mapping: Rules to map fireeye alerts.
19538 fqdn: The name of this DNS zone in FQDN format.
19539 grid_primary: The grid primary servers for this zone.
19540 grid_secondaries: The list with Grid members that are secondary
19541 servers for this zone.
19542 locked: If you enable this flag, other administrators cannot
19543 make conflicting changes. This is for administration
19544 purposes only. The zone will continue to serve DNS data even
19545 when it is locked.
19546 locked_by: The name of a superuser or the administrator who
19547 locked this zone.
19548 log_rpz: Determines whether RPZ logging enabled or not at zone
19549 level. When this is set to False, the logging is disabled.
19550 mask_prefix: IPv4 Netmask or IPv6 prefix for this zone.
19551 member_soa_mnames: The list of per-member SOA MNAME information.
19552 member_soa_serials: The list of per-member SOA serial
19553 information.
19554 network_view: The name of the network view in which this zone
19555 resides.
19556 ns_group: The name server group that serves DNS for this zone.
19557 parent: The parent zone of this zone.Note that when searching
19558 for reverse zones, the "in-addr.arpa" notation should be
19559 used.
19560 prefix: The RFC2317 prefix value of this DNS zone.Use this field
19561 only when the netmask is greater than 24 bits; that is, for
19562 a mask between 25 and 31 bits. Enter a prefix, such as the
19563 name of the allocated address block. The prefix can be
19564 alphanumeric characters, such as 128/26 , 128-189 , or
19565 sub-B.
19566 primary_type: The type of the primary server.
19567 record_name_policy: The hostname policy for records under this
19568 zone.
19569 rpz_drop_ip_rule_enabled: Enables the appliance to ignore RPZ-IP
19570 triggers with prefix lengths less than the specified minimum
19571 prefix length.
19572 rpz_drop_ip_rule_min_prefix_length_ipv4: The minimum prefix
19573 length for IPv4 RPZ-IP triggers. The appliance ignores RPZ-
19574 IP triggers with prefix lengths less than the specified
19575 minimum IPv4 prefix length.
19576 rpz_drop_ip_rule_min_prefix_length_ipv6: The minimum prefix
19577 length for IPv6 RPZ-IP triggers. The appliance ignores RPZ-
19578 IP triggers with prefix lengths less than the specified
19579 minimum IPv6 prefix length.
19580 rpz_last_updated_time: The timestamp of the last update for zone
19581 data.
19582 rpz_policy: The response policy zone override policy.
19583 rpz_priority: The priority of this response policy zone.
19584 rpz_priority_end: This number is for UI to identify the end of
19585 qualified zone list.
19586 rpz_severity: The severity of this response policy zone.
19587 rpz_type: The type of rpz zone.
19588 set_soa_serial_number: The serial number in the SOA record
19589 incrementally changes every time the record is modified. The
19590 Infoblox appliance allows you to change the serial number
19591 (in the SOA record) for the primary server so it is higher
19592 than the secondary server, thereby ensuring zone transfers
19593 come from the primary server (as they should). To change the
19594 serial number you need to set a new value at
19595 "soa_serial_number" and pass "set_soa_serial_number" as
19596 True.
19597 soa_default_ttl: The Time to Live (TTL) value of the SOA record
19598 of this zone. This value is the number of seconds that data
19599 is cached.
19600 soa_email: The SOA email value for this zone. This value can be
19601 in unicode format.
19602 soa_expire: This setting defines the amount of time, in seconds,
19603 after which the secondary server stops giving out answers
19604 about the zone because the zone data is too old to be
19605 useful. The default is one week.
19606 soa_negative_ttl: The negative Time to Live (TTL) value of the
19607 SOA of the zone indicates how long a secondary server can
19608 cache data for "Does Not Respond" responses.
19609 soa_refresh: This indicates the interval at which a secondary
19610 server sends a message to the primary server for a zone to
19611 check that its data is current, and retrieve fresh data if
19612 it is not.
19613 soa_retry: This indicates how long a secondary server must wait
19614 before attempting to recontact the primary server after a
19615 connection failure between the two servers occurs.
19616 soa_serial_number: The serial number in the SOA record
19617 incrementally changes every time the record is modified. The
19618 Infoblox appliance allows you to change the serial number
19619 (in the SOA record) for the primary server so it is higher
19620 than the secondary server, thereby ensuring zone transfers
19621 come from the primary server (as they should). To change the
19622 serial number you need to set a new value at
19623 "soa_serial_number" and pass "set_soa_serial_number" as
19624 True.
19625 substitute_name: The canonical name of redirect target in
19626 substitute policy of response policy zone.
19627 use_external_primary: This flag controls whether the zone is
19628 using an external primary.
19629 use_grid_zone_timer: Use flag for: soa_default_ttl , soa_expire,
19630 soa_negative_ttl, soa_refresh, soa_retry
19631 use_log_rpz: Use flag for: log_rpz
19632 use_record_name_policy: Use flag for: record_name_policy
19633 use_rpz_drop_ip_rule: Use flag for: rpz_drop_ip_rule_enabled ,
19634 rpz_drop_ip_rule_min_prefix_length_ipv4,
19635 rpz_drop_ip_rule_min_prefix_length_ipv6
19636 use_soa_email: Use flag for: soa_email
19637 view: The name of the DNS view in which the zone resides.
19638 Example "external".
19639 """
19640 _infoblox_type = 'zone_rp'
19641 _fields = ['address', 'comment', 'disable', 'display_domain',
19642 'dns_soa_email', 'extattrs', 'external_primaries',
19643 'external_secondaries', 'fireeye_rule_mapping', 'fqdn',
19644 'grid_primary', 'grid_secondaries', 'locked', 'locked_by',
19645 'log_rpz', 'mask_prefix', 'member_soa_mnames',
19646 'member_soa_serials', 'network_view', 'ns_group', 'parent',
19647 'prefix', 'primary_type', 'record_name_policy',
19648 'rpz_drop_ip_rule_enabled',
19649 'rpz_drop_ip_rule_min_prefix_length_ipv4',
19650 'rpz_drop_ip_rule_min_prefix_length_ipv6',
19651 'rpz_last_updated_time', 'rpz_policy', 'rpz_priority',
19652 'rpz_priority_end', 'rpz_severity', 'rpz_type',
19653 'set_soa_serial_number', 'soa_default_ttl', 'soa_email',
19654 'soa_expire', 'soa_negative_ttl', 'soa_refresh', 'soa_retry',
19655 'soa_serial_number', 'substitute_name', 'use_external_primary',
19656 'use_grid_zone_timer', 'use_log_rpz', 'use_record_name_policy',
19657 'use_rpz_drop_ip_rule', 'use_soa_email', 'view']
19658 _search_for_update_fields = ['fqdn', 'view']
19659 _updateable_search_fields = ['comment', 'view']
19660 _all_searchable_fields = ['comment', 'fqdn', 'parent', 'view']
19661 _return_fields = ['extattrs', 'fqdn', 'view']
19662 _remap = {}
19663 _shadow_fields = ['_ref']
19664
19665 _custom_field_processing = {
19666 'external_primaries': Extserver.from_dict,
19667 'external_secondaries': Extserver.from_dict,
19668 'grid_primary': Memberserver.from_dict,
19669 'grid_secondaries': Memberserver.from_dict,
19670 'member_soa_mnames': GridmemberSoamname.from_dict,
19671 'member_soa_serials': GridmemberSoaserial.from_dict,
19672 }
19673
19674 def copy_rpz_records(self, *args, **kwargs):
19675 return self._call_func("copy_rpz_records", *args, **kwargs)
19676
19677 def lock_unlock_zone(self, *args, **kwargs):
19678 return self._call_func("lock_unlock_zone", *args, **kwargs)
19679
19680
19681 class ZoneStub(InfobloxObject):
19682 """ ZoneStub: DNS Stub Zone object.
19683 Corresponds to WAPI object 'zone_stub'
19684
19685 A stub zone contains records that identify the authoritative name
19686 servers in the zone. It does not contain resource records for
19687 resolving IP addresses to hosts in the zone. Instead, it contains
19688 the following records:
19689
19690 SOA (Start of Authority) record of the zone
19691
19692 NS (name server) records at the apex of the stub zone
19693
19694 A (Address) records that map the name servers to their IP addresses
19695
19696 Stub zones, like secondary zones, obtain their records from other
19697 name servers. Their records are read only; therefore, administrators
19698 do not manually add, remove, or modify the records.
19699
19700 Stub zone records are also periodically refreshed, just like
19701 secondary zone records. However, secondary name servers contain a
19702 complete copy of the zone data on the primary server. Therefore,
19703 zone transfers from a primary server to a secondary server, or
19704 between secondary servers, can increase CPU usage and consume
19705 excessive bandwidth. A name server hosting a stub zone maintains a
19706 much smaller set of records; therefore, updates are less CPU
19707 intensive and consume less bandwidth. When a name server hosting a
19708 stub zone receives a query for a domain name that it determines is
19709 in the stub zone, the name server uses the records in the stub zone
19710 to locate the correct name server to query, eliminating the need to
19711 query the root server.
19712
19713 Attributes:
19714 address: The IP address of the server that is serving this zone.
19715 comment: Comment for the zone; maximum 256 characters.
19716 disable: Determines whether a zone is disabled or not. When this
19717 is set to False, the zone is enabled.
19718 disable_forwarding: Determines if the name servers that host the
19719 zone should not forward queries that end with the domain
19720 name of the zone to any configured forwarders.
19721 display_domain: The displayed name of the DNS zone.
19722 dns_fqdn: The name of this DNS zone in punycode format. For a
19723 reverse zone, this is in "address/cidr" format. For other
19724 zones, this is in FQDN format in punycode format.
19725 extattrs: Extensible attributes associated with the object.For
19726 valid values for extensible attributes, see the following
19727 information.
19728 external_ns_group: A forward stub server name server group.
19729 fqdn: The name of this DNS zone. For a reverse zone, this is in
19730 "address/cidr" format. For other zones, this is in FQDN
19731 format. This value can be in unicode format.Note that for a
19732 reverse zone, the corresponding zone_format value should be
19733 set.
19734 locked: If you enable this flag, other administrators cannot
19735 make conflicting changes. This is for administration
19736 purposes only. The zone will continue to serve DNS data even
19737 when it is locked.
19738 locked_by: The name of a superuser or the administrator who
19739 locked this zone.
19740 mask_prefix: IPv4 Netmask or IPv6 prefix for this zone.
19741 ms_ad_integrated: The flag that determines whether Active
19742 Directory is integrated or not. This field is valid only
19743 when ms_managed is "STUB", "AUTH_PRIMARY", or "AUTH_BOTH".
19744 ms_ddns_mode: Determines whether an Active Directory-integrated
19745 zone with a Microsoft DNS server as primary allows dynamic
19746 updates. Valid values are:"SECURE" if the zone allows secure
19747 updates only."NONE" if the zone forbids dynamic
19748 updates."ANY" if the zone accepts both secure and nonsecure
19749 updates.This field is valid only if ms_managed is either
19750 "AUTH_PRIMARY" or "AUTH_BOTH". If the flag ms_ad_integrated
19751 is false, the value "SECURE" is not allowed.
19752 ms_managed: The flag that indicates whether the zone is assigned
19753 to a Microsoft DNS server. This flag returns the
19754 authoritative name server type of the Microsoft DNS server.
19755 Valid values are:"NONE" if the zone is not assigned to any
19756 Microsoft DNS server."STUB" if the zone is assigned to a
19757 Microsoft DNS server as a stub zone."AUTH_PRIMARY" if only
19758 the primary server of the zone is a Microsoft DNS
19759 server."AUTH_SECONDARY" if only the secondary server of the
19760 zone is a Microsoft DNS server."AUTH_BOTH" if both the
19761 primary and secondary servers of the zone are Microsoft DNS
19762 servers.
19763 ms_read_only: Determines if a Grid member manages the zone
19764 served by a Microsoft DNS server in read-only mode. This
19765 flag is true when a Grid member manages the zone in read-
19766 only mode, false otherwise.When the zone has the
19767 ms_read_only flag set to True, no changes can be made to
19768 this zone.
19769 ms_sync_master_name: The name of MS synchronization master for
19770 this zone.
19771 ns_group: A stub member name server group.
19772 parent: The parent zone of this zone.Note that when searching
19773 for reverse zones, the "in-addr.arpa" notation should be
19774 used.
19775 prefix: The RFC2317 prefix value of this DNS zone.Use this field
19776 only when the netmask is greater than 24 bits; that is, for
19777 a mask between 25 and 31 bits. Enter a prefix, such as the
19778 name of the allocated address block. The prefix can be
19779 alphanumeric characters, such as 128/26 , 128-189 , or
19780 sub-B.
19781 soa_email: The SOA email for the zone. This value can be in
19782 unicode format.
19783 soa_expire: This setting defines the amount of time, in seconds,
19784 after which the secondary server stops giving out answers
19785 about the zone because the zone data is too old to be
19786 useful.
19787 soa_mname: The SOA mname value for this zone. The Infoblox
19788 appliance allows you to change the name of the primary
19789 server on the SOA record that is automatically created when
19790 you initially configure a zone. Use this method to change
19791 the name of the primary server on the SOA record. For
19792 example, you may want to hide the primary server for a zone.
19793 If your device is named dns1.zone.tld, and for security
19794 reasons, you want to show a secondary server called
19795 dns2.zone.tld as the primary server. To do so, you would go
19796 to dns1.zone.tld zone (being the true primary) and change
19797 the primary server on the SOA to dns2.zone.tld to hide the
19798 true identity of the real primary server. This value can be
19799 in unicode format.
19800 soa_negative_ttl: The negative Time to Live (TTL) value of the
19801 SOA of the zone indicates how long a secondary server can
19802 cache data for "Does Not Respond" responses.
19803 soa_refresh: This indicates the interval at which a secondary
19804 server sends a message to the primary server for a zone to
19805 check that its data is current, and retrieve fresh data if
19806 it is not.
19807 soa_retry: This indicates how long a secondary server must wait
19808 before attempting to recontact the primary server after a
19809 connection failure between the two servers occurs.
19810 soa_serial_number: The serial number in the SOA record
19811 incrementally changes every time the record is modified. The
19812 Infoblox appliance allows you to change the serial number
19813 (in the SOA record) for the primary server so it is higher
19814 than the secondary server, thereby ensuring zone transfers
19815 come from the primary server.
19816 stub_from: The primary servers (masters) of this stub zone.
19817 stub_members: The Grid member servers of this stub zone.Note
19818 that the lead/stealth/grid_replicate/
19819 preferred_primaries/override_preferred_primaries fields of
19820 the struct will be ignored when set in this field.
19821 stub_msservers: The Microsoft DNS servers of this stub zone.Note
19822 that the stealth field of the struct will be ignored when
19823 set in this field.
19824 using_srg_associations: This is true if the zone is associated
19825 with a shared record group.
19826 view: The name of the DNS view in which the zone resides.
19827 Example "external".
19828 zone_format: Determines the format of this zone.
19829 """
19830 _infoblox_type = 'zone_stub'
19831 _fields = ['address', 'comment', 'disable', 'disable_forwarding',
19832 'display_domain', 'dns_fqdn', 'extattrs', 'external_ns_group',
19833 'fqdn', 'locked', 'locked_by', 'mask_prefix',
19834 'ms_ad_integrated', 'ms_ddns_mode', 'ms_managed',
19835 'ms_read_only', 'ms_sync_master_name', 'ns_group', 'parent',
19836 'prefix', 'soa_email', 'soa_expire', 'soa_mname',
19837 'soa_negative_ttl', 'soa_refresh', 'soa_retry',
19838 'soa_serial_number', 'stub_from', 'stub_members',
19839 'stub_msservers', 'using_srg_associations', 'view',
19840 'zone_format']
19841 _search_for_update_fields = ['fqdn', 'view']
19842 _updateable_search_fields = ['comment', 'view']
19843 _all_searchable_fields = ['comment', 'fqdn', 'parent', 'view',
19844 'zone_format']
19845 _return_fields = ['extattrs', 'fqdn', 'stub_from', 'view']
19846 _remap = {}
19847 _shadow_fields = ['_ref']
19848
19849 _custom_field_processing = {
19850 'stub_from': Extserver.from_dict,
19851 'stub_members': Memberserver.from_dict,
19852 'stub_msservers': Msdnsserver.from_dict,
19853 }
19854
19855 def lock_unlock_zone(self, *args, **kwargs):
19856 return self._call_func("lock_unlock_zone", *args, **kwargs)