You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.
I created an additional method which returns only one address group (could also be included in the main function, if name parameter is None you get everything, else only the specified group). Works so far, but where do I get the request_id number? I just added an 0 and it works, but there must be some schema. Can you please explain the request_id numbering please.
existing method:
@login_required
def get_firewall_address_groups(self, adom):
'''
Get all firewall adress groups defined for an ADOM
'''
request_id = 56227
url = 'pm/config/adom/{}/obj/firewall/addrgrp'.format(adom)
return self._get(url=url, request_id=request_id)
new method:
@login_required
def get_firewall_address_group(self, adom, addrgrp_name):
'''
Get all firewall adress groups defined for an ADOM
'''
request_id = 562270
url = 'pm/config/adom/{}/obj/firewall/addrgrp/{}'.format(adom, addrgrp_name)
return self._get(url=url, request_id=request_id)
The text was updated successfully, but these errors were encountered:
I created an additional method which returns only one address group (could also be included in the main function, if name parameter is None you get everything, else only the specified group). Works so far, but where do I get the request_id number? I just added an 0 and it works, but there must be some schema. Can you please explain the request_id numbering please.
existing method:
new method:
The text was updated successfully, but these errors were encountered: