Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

request_id numbering schema? #8

Open
@robertpenz

Description

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions