This website uses cookies essential to its operation, for analytics, and for personalized content. By continuing to browse this site, you acknowledge the use of cookies. For details on cookie usage on our site, read our Privacy Policy
I found the solution: put in url only: https://$url/api/ headers: ['Content-Type' => 'application/x-www-form-urlencoded'] body: key=$key&type=config&action=edit&xpath=/config/shared/address-group/entry[@name="GRP-NAME"]&element=<entry name="GRP-NAME"><static><member>namemembers</member</static></entry>'
... View more
Hello I'm trying to modify a shared address group bye using xml api and use POST http method url: https://$url/api/?key=$key&type=config&action=edit&xpath=/config/shared/address-group/entry[@name='GRP-NAME'] header: Content-Type='text/xml' body: <entry name="GRP-NAME"> <static> <member>SRV-10.0.0.32</member> <member>172.20.34.101</member> </static> </entry> But when i execute post call with POSTMAN, The response is: <response status="error" code="12"> <msg> <line>Invalid target object in edit handler</line> </msg> </response> I don't understand why, because if i do: https://$url/api/?key=$key&type=config&action=get&xpath=/config/shared/address-group/entry[@name='GRP-NAME'] The response is the detail of the group 'GRP-NAME' thanks
... View more
I want to create au pre rules with api: action=set&xpath=/config/devices/entry[\@name='localhost.localdomain']/device-group/entry[\@name='".$deviceGroup."']/pre-rulebase/security/rules/entry[\@name='".$preRulesName."'] And i want to put a tag: <tag><member>texte</member></tag> But i have an error: ' preRulesName-> tag \'texte\' is not a valid reference', ' preRulesName -> tag is invalid' I don't understand why
... View more
Is it possible to add filter on a request, i want to get pre-rulebase security rules which contains a key word, do this: type=config&action=get&xpath=/config/devices/entry[\@name='localhost.localdomain']/device-group/entry[\@name='deviceGroupName']/pre-rulebase/security/rules And in result i only want rules which contain "test" for example
... View more