Creation of a pre rules containing a tag with api

Reply
L1 Bithead

Creation of a pre rules containing a tag with api

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

L4 Transporter

Re: Creation of a pre rules containing a tag with api

Sanity check:  do you have a "texte" tag in your panorama's Objects > Device Group > Tags?

 

L1 Bithead

Re: Creation of a pre rules containing a tag with api

Thanks, I add my tag in Objects > Device Group > Tags, and it work

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!