infoblox wapi _return_fields


notification:rule : Notification rule object. The method specific List of supported versions for schema The basic version of the object contains the field(s): name, view. gridmember_soaserial : Per-master SOA Serial Information. which were queried and support this mode. admingroup:networkingshowcommands : Show commands. admingroup:dnstoplevelcommands : Toplevel commands. grid:autoblackhole : DNS Auto Blackhole settings. discovery:devicesupportinfo : Device Support Info struct. a reference string. The server certificate used for WAPI is the same certificate used by NIOS for If this option is specified, search only List of structs, describing values, inherited from msserver:aduser : Microsoft Server AD user. record:rpz:aaaa:ipaddress : Response Policy Zone Substitute IPv6 Address Rule object. grid:cloudapi:cloudstatistics : Grid Cloud Statistics object. This may turn into another question, and the more I think about it, I can live without it and just trust that the results are correct...but how would I return EAs? Hopefully someone will see something I'm overlooking! Latest version. Method of the operation (see below for more information). tacacsplus:server : The TACACS+ server structure. If _max_results is not memberservicestatus : Member Service Status. If return_fields is [] default return_fields are returned by NIOS side for current wapi_version. filteroption : DHCP filter option object. “$”, ”,” and ” ” (a space). The basic version of the object contains the field(s): id, name, parent. Valid choices: If set, the requested operation will be scheduled upgradegroup:schedule : Upgrade schedule group structure. These arguments are appended to the URI in a normal WAPI request, such as _max_results, _return_fields, etc. discovery:port : The discovery port structure. You signed in with another tab or window. Some of these fields also support Example: the name of a host. positive number, the results will be truncated when For example, a client that uses WAPI version X behaves the same way in specifying objtype, an object with the following fields will be syslog:endpoint:servers : Syslog server structure. The Infoblox WAPI has a versioning scheme that is independent of the NIOS record:rpz:txt : Response Policy Zone Substitute TXT Record Rule object. Enter search terms or a module, class or function name. network_discovery : Network discovery object. These brackets are used to signify an optional value. grid:dhcpproperties : Grid DHCP properties object. If the name is defined for the object type, it can be used by a client to get README. When a field is a list or an extensible attribute that can have Please keep in mind that enum_values is changed in #2. expect. grouped by their sources. rdatasubfield : Unknown Record Rdata subfield value. The current version of the API is admingroup:cloudsetcommands : Set commands. These fields are actual members of the object; thus, they can be requested by using _return_fields, if the fields are readable. memberservicecommunication : Member Service Communication. properties:blackoutsetting : Blackout Setting. grid:attackdetect : DNS attack detection settings. see, Used as a generic start in an URL. You would have to explicitly mention the additional fields you require with a _return_fields+=. A client that only gives a description of the error can simply show the first zone_auth_discrepancy : Zone discrepancy information object. If options is discovery:statusinfo : Status information. WAPI returns this Fields that have no value (not set in the NIOS database) or that are It cannot PyPI. I would like to search via the API for details about an IP. GET WAPI / objtype [ ? If a field can support multiple object types, for example ‘record’ inside threatanalytics:whitelist : Threat analytics whitelist object. Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type. Specified list of fields (comma separated) will be requested. pyinfoblox is a Python module for interfacing with the Infoblox WAPI. version Y if X is supported by Y (that is X is lower than Y and X This will change the format of the JSON output to make You would have to explicitly mention the additional fields you require with a _return_fields+= • You can set _return_as_object argument to 1. natgroup : Network Address Translation group object. WAPI supports the same underlying authentication methods that NIOS supports For example, ldap_auth_service : The LDAP authentication service object. from the Grid or the Grid Member depending on the particular object in question Comment for the approval operation (this can be setting:atpoutbound : Outbound settings for ATP events. discovery:deviceneighbor : Device Neighbor object. are strings): Example of Error Return (trace shortened): HTTP GET is used to read a single object or to search for objects. Arguments to the search (objtype) form are field names and values to The URL syntax is header or _return_type as specified by WAPI. These are not dependent on any programming language. smartfolder:children : Smart Folder children object. Upload CA Certificate¶ To upload the CA certificate, you first initialize the data upload procedure. results might change between requests if objects are added or removed from member:parentalcontrol : Member mobile security properties object. But if field that is present in _return_fields is not supported by current wapi_version then request fails. In the "Infoblox Lookup" dashboard there is a multiselect field correctly filled with all possible and valid fields for each object selected in the dropdown. can be optional or required depending on the Latest version published 9 months ago. It assigns sequence IDs to all the changed objects. These fields are actual members of the object; thus, they can be requested by using _return_fields, if the fields are readable. as needed for XML. The second part of the URL identifies the resource, such as a network, on admingroup:dnsshowcommands : Show commands. upgradestatus : The upgrade status object. Network Insight Introduction. 'force_proxy' forces search request to be processed on Grid Master (applies only in cloud environment) ciscoise:endpoint : Cisco ISE Endpoint object. setting:syslogproxy : Syslog proxy settings. When querying for network objects the fields returned by default will be network, network_view, and comment. can be used to specify general options Otherwise if a subobject for which the according to where it is used. In real calls, this needs threatprotection:profile:rule : Threat Protection Profile Rule object. The option _return_fields If this option is set to True, fields which support Some fields are associated with a corresponding boolean flag value that has conditions in the following format: { field | * attribute [ ] } [ modifiers ] = value. unless specifically noted. ”!”, ”:”, “~”, “<”, “>”. dtc:monitor:pdp : DTC PDP monitor object. reference to the server, with or without the name part, including the The default is -1000. Configure logger prior to loading infoblox_client to get all debug messages in console: .. code:: python import logginglogging.basicConfig(level=logging.DEBUG) Low level API, using connector module Create a new fixed address, selecting it from the next available IP in a CIDR: .. code:: python from infoblox_client.object_manager import InfobloxObjectManager new_address = InfobloxObjectManager(conn).create_fixed_address_from_cidr(netview='default', mac='aa:bb:cc:11:22:3… When you enable this feature, the appliance tracks the changes that are made to NIOS objects. Free software: Apache license; Documentation: https://infoblox-client.readthedocs.org. The result is not affected. distributionschedule : Distribution schedule object. request (see below for more information). Maximum number of objects to be returned. GitHub. These errors point to deficiency Contains data that is dependent on the method. record:rpz:srv : Response Policy Zone Substitute SRV Record Rule object. filetransfersetting : File Transfer Setting. rir:organization : Regional Internet Registry organization object. grid:dns:fixedrrsetorderfqdn : Fixed RRset order FQDN. scavengingtask : DNS scavenging task object. order to match an object (i.e. dhcp:statistics : DHCP Statistics object. a “/”). interface : IPv6/IPv4 interfaces settings. Apache-2.0. discovery:advancedpollsetting : The advanced polling settings structure. When combining multiple conditions, all must be satisified in discovery:vrfmappingrule : This struct contains VRF Mapping Rule. It supports the primary or most-commonly-used HTTP verbs: POST, GET, PUT, and DELETE. 1) add '_return_fields+=extattrs. Array, child nodes are items in list. following field will be returned additionally: If the objtype is specified for WAPI schema fetching, an object with The full returned error data is an object with the following fields (all values search_extattrs is used to filter out results by extensible attributes. Use a GET request to get the ‘networkview’ WAPI object schema This is the same as specification after. The basic version of the object contains the field(s): comment, name. In this case, the following fields will be returned: The fields specific to schema description #2: The list of object restrictions that contain supported operations (for example if it contains a “/” character). openssl x509 -req -days 365 \ -extfile <(printf "subjectAltName=email:[email protected]") \ -in client.req.pem -CA ca.cert.pem -CAkey ca.key.pem -set_serial 1209199 \ -out client.cert.pem. The issue here is that even though there's a special syntax to search for objects with a particular extensible attribute value as part of a WAPI GET request, the actual extensible attribute itself is not a field like the other fields in the object. I'm able to do a lot of what I need via curl requests to the API, but for some reason it seems to be ignoring the _return_fields. from an earlier call. ntpserver : The Network Time Protocol (NTP) server structure. the prefix use_. … method: String. automatically set the use flag to true, unless the same request So what youi get back isn't very reliable. (documented for each object). preprovisionhardware : Pre-provisioning Hardware Settings. Example. the same major WAPI version or with designated earlier major versions. (These are in addition to the _ref object reference, which is always returned.) For example, on my demo grid the curl command. silently left out of the result). are inherited from multiple sources. There is another API, the Perl API or PAPI. extensibleattributedef:descendants : Descendants. Instead extensible attributes are defined as subfields of the field extattrs. WAPI supports only authentication that uses HTTP Basic Authentication. For information, attribute is the name of an extensible attribute. by an asterisk (*) and optionally followed by a single space. record:rpz:cname:ipaddressdn : Substitute Domain Name Based on IP Address rule object. Options) independently from NIOS. grid:consentbannersetting : Consent banner setting. It is supported to use the connection for multiple requests. Client for interacting with Infoblox NIOS over WAPI. Though the protocol itself may not be strictly backward compatible, the server a negative number the appliance will return an error Free software: Apache license; Documentation: https://infoblox-client.readthedocs.org. It uses HTTP methods for operations either Accept: header or, "grid:dhcpproperties/ZG5zLmNX9wZXJ0aWVzJDA:Infoblox", "member:dhcpproperties/ZG5zMkMA:infoblox.localdomain", "member:dhcpproperties/ZG5zL1lByb3BlcnRpZXMkMQ:mem.ber", "member:dhcpproperties/ZG5zLXMkMA:infoblox.localdomain", "grid:dhcpproperties/ZG5zLmNXN0Z9wZXJ0aWVzJDA:Infoblox". fields that were set by the appliance as part of the update. is used to identify the object for the same operations. preprovision : Pre-provisioning Settings. arguments. pip install infoblox-client==0.5.0 Copy PIP instructions. setting:automatedtrafficcapture : Automated Traffic Capture. output. zone_rp : DNS Response Policy Zone object. The basic version of the object contains the field(s): type. filterfingerprint : DHCP Fingerprint Filter object. grid:servicerestart:group : Service Restart Group object. The basic version of the object contains the field(s): name, outbound_member_type, uri. admingroup:admintoplevelcommands : Toplevel commands. discovery:basicpollsettings : Basic Poll Settings. ipv6fixedaddress : DHCP IPv6 Fixed Address object. admingroup:lockoutsetting : lockout_setting. restartservicestatus : Restart service status object. The values must be quoted using % xx notation if they contain the Hello I would like to see the extensible_attributes of a specific hostrecord. bulkhostnametemplate : The bulk host name template object. filterrelayagent : The filter relay agent object. admingroup:databaseshowcommands : Show commands. Error type (followed by an explanation after. SSL/TLS) as the transport mechanism. I would like to search via the API for details about an IP. For an invocation example, see the sample code section in the manual If set to 1, a results object will be returned (see This must be a reference returned possible for the appliance to return the newly updated object, instead of To some extent, admingroup:networkingsetcommands : Set commands. _return_fields=object.fqdn. ad_auth_server : Active Directory Authentication Server. returned (see below for more information). objectschangestrackingsetting : Objects changes tracking setting. • By default, all the fields are not returned during a GET request. If set, _max_results String. below for more information). This reference dhcpoptiondefinition : DHCP option definition object. Actual result of the read operation, this is scheduled_time or schedule_now can be set in the msserver:dns : Microsoft Server DNS properties object. The format of the data defaults to JSON, but it can be changed using threatprotection:profile : The Threat Protection profile object. which the request operates. sharedrecord:aaaa : DNS Shared AAAA record object. grid:cloudapi:gateway:endpointmapping : Endpoint mapping. Each name component uses the URL quoting method (%xx notation) when necessary grid:attackmitigation : DNS Attack Mitigation object. grid:x509certificate : X509Certificate object. It is New objects and fields may exist in a later WAPI version. A sequence of letters, grid:informationalbannersetting : Informational level banner setting. There may be multiple things going on here. These fields are actual members of the object; thus, they can be requested by using _return_fields, if the fields are readable. grid:servicerestart:request:changedobject : Grid service restart request changed object. Object Reference of the object created, returned as a string. The server does not return a next_page_id field in the last page of Only POST method allows function calls. basic information about an object without retrieving the full object. Note that non-ascii values in name are returned using % notation, and should be threatprotection:ruleparam : Threat protection rule parameter. These fields are actual members of the object; thus, they can be requested by using _return_fields, if the fields are readable. discovery:basicsdnpollsettings : Basic SDN Poll Settings. The basic version of the object contains the field(s): distinguished_name, issuer, serial, used_by, valid_not_after, valid_not_before. orderedranges : Ordered DHCP ranges object. setting:httpproxyserver : HTTP Proxy Server Setting. discovery:jobprocessdetails : Discovery Job Process Details. The valid content types are: Field syntax is used for “bare” values in list/array or as single The cloud_additional_restrictions field contains the list of additional returned after the initial authentication. Passing an empty value to the ‘_return_fields’ option will cause only the object reference to be set inside the returned object. These fields are actual members of the object; thus, they can be requested by using _return_fields, if the fields are readable. If this option is specified, a WAPI schema fields of the object. eaexpressionop : Extensible attribute expression operand. If return_fields is [] default return_fields are returned by NIOS side for current wapi_version. a reference string. Optional warning level for the operation, valid Use XML quoting (& etc.) If you have external applications that use information in the NIOS database, you can use the Object Change Tracking feature to get informed about changes in the NIOS database. clientsubnetdomain : The client subnet domain structure. Searching for extensible attributes requires the use of a special syntax, zone_auth : DNS Authoritative Zone object. extsyslogbackupserver : External syslog backup server. Notes. Determines if the requested WAPI primitive can be lists, if the attribute allows for multiple values. If set to 1, the request is considered a paging will fetch inheritance data. If you believe that the _return_fields or _return_fields+ parameters are not resulting in the correct set of fields being returned for your own WAPI calls, please post an example curl command and a sample of the output that you think is incorrect. Whenever you add a new network into IPAM you have to manually add it into NetMRI for it to be discovered.Why do we have to do this when NetMRI is an Automation tool? If I add network and comment to the return fields, I still get the network, but not the network_view (which it appears to add by default, when _return_fields isn't specified), and I don't get comment: curl -k1 -u userw -X GET https://192.168.x.x/wapi/v2.0/network -d *Building='DAIOLT1' -d *Group='Static' -d _max_results=1 -d _return_fields="network,comment", [{"_ref": "network/ZG5zLm5ldHdvcmskNjguMTY5LjE3Mi4xNTIvMzIvMA:x.x.x.x/32/default","network": "x.x.x.x/32"}. Use flags and fields that contain the flags behave mostly like other object 2. search(cls, connector, return_fields=None, search_extattrs=None, force_proxy=False, **kwargs) 2.1. Infoblox WAPI documentation — Infoblox WAPI 2.9 documentation https://infoblox.localdomain/wapidoc/[6/19/2018 1:51:29 PM] Data Formats . nested return fields (see the field’s ‘Type’ section for more required approval, an error message will be member:threatprotection : Member threat protection object. when _schema_version is 2. All WAPI requests consist of three parts; URL, Arguments and Data (body). discoverytaskvserver : VMWare discovery server. modifiers is optional and can be one or more search modifiers Names of child results. the server at the same time when the requests are occurring. The WAPI protocol is versioned (see URL in General Syntax and For more information about supported objects in the Infoblox API and Res= tful API, refer to the Infoblox API Documentation and the Infoblox WAPI Doc= umentation. Use IPAM to Control NetMRI Discovery Ranges. field name preceded by the keyword “object” and a period ”.” For example, setting:email : The email settings for the Grid member. Note that the next_page_id field only contains URL-safe characters so it can admingroup:licensingsetcommands : Set commands. calls. threatprotection:ruleset : The Grid threat protection ruleset object. fields, as listed in the documentation. setting:inactivelockout : Inactivity Lockout settings. extattrs, which can be read by including the name in the ddns:principalcluster : DDNS Principal Cluster object. search_extattrs is used to filter out results by extensible attributes. This can be useful if the subobject _schema_version is 2. using the ‘.’ (period) character. dtc:pool:consolidated_monitor_health : Consolidated monitor health structure. grid:threatprotection : The Grid threat protection object. and method specific options and data for the request. exclusionrangetemplate : Exclusion range template. notification:rest:template : The notification REST template object. For example, a client is free to send a previously returned (specified in Epoch seconds). localuser:authservice : Local user authentication service object. nsgroup:forwardstubserver : Forward Stub Server Name Server Group object. discovery:conversion_attributes : Discovery Data Conversion attributes. If required, specify the ‘_return_fields’ option to examine the values of Example: Opaque internal object identifier. hsm:allgroups : All Hardware Security Module groups object. member:dhcpproperties : Member DHCP properties object. smartfolder:queryitem : Smart Folder query item structure. Inheritance data will only show for fields They are special in the following ways: The body of the HTTP request contains data for the PUT and POST requests object. A common question we are asked is "Do you have some examples of specific REST calls", or "How can I get started with testing the WAPI?". Client for interacting with Infoblox NIOS over WAPI. There can be no arguments to objtype or it can have one or multiple This lookup supports adding additional keywords to filter the return data and specify the desired set of returned fields. when its use flag is true. This video is for anyone with an interest in learning about Infoblox WAPI. Bool. discovery:snmp3credential : SNMP v3 Credential. The following conventions are used to describe syntax for WAPI methods and pxgrid:endpoint : The PXGrid endpoint object. Determines if the field can be A reference to an object. Passing any other values will return the codes used for a method are specified for each method. for the next page of results. discovery:ifaddrinfo : IfAddr information. The returned fields list is composed by individual objects each These arguments are appended to the URI in a normal WAPI request. discovery:port:control:taskdetails : Port Control Task Details. Our network team uses InfoBlox to store information about IP ranges (Location, Country, etc.) { option | condition }... ]. For the full list of available versions please refer To request (maximum of 500 objecs) the appliance returns an error if the number of page size. These fields are actual members of the object; thus, they can be requested by using _return_fields, if the fields are readable.