cancel
Showing results for 
Search instead for 
Did you mean: 
Post a Question

Rule UID conversion

Jump to solution

does anyone know how to convert rule UID to rule number?  

firewall rule UID

c21925f0-9eee-4ab0-9777-56b3dfbaa206

what's the rule number?

1 Solution

Accepted Solutions

Re: Rule UID conversion

Jump to solution

Thanks guys.  

I found a workaround.  from R80.x dashboard, 'Actions\Go To Rule'.  enter the rule UID would take me to that rule.

3 Replies
Admin
Admin

Re: Rule UID conversion

Jump to solution

As far as I know, none of the API calls return the actual rule number.

The best you can get is the rule name using, say, show-object.

[Expert@MGMT:0]# mgmt_cli -r true show-object uid cdc6ad83-9b58-47f7-b4aa-39aaa059c662

object:

  uid: "cdc6ad83-9b58-47f7-b4aa-39aaa059c662"

  name: "Cleanup rule"

  type: "access-rule"

  domain:

    uid: "41e821a0-3720-11e3-aa6e-0800200c9fde"

    name: "SMC User"

    domain-type: "domain"

Re: Rule UID conversion

Jump to solution

It's a bit long-winded process as you need to dump the whole rulebase with "show access-rulebase" API command

There you can correlate UID vs rule #

0 Kudos

Re: Rule UID conversion

Jump to solution

Thanks guys.  

I found a workaround.  from R80.x dashboard, 'Actions\Go To Rule'.  enter the rule UID would take me to that rule.