Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Wayne_Situ
Participant
Jump to solution

Rule UID conversion

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
Wayne_Situ
Participant

Thanks guys.  

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

View solution in original post

3 Replies
PhoneBoy
Admin
Admin

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"

Kaspars_Zibarts
Employee Employee
Employee

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
Wayne_Situ
Participant

Thanks guys.  

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

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82

    Tue 23 Apr 2024 @ 11:00 AM (EDT)

    East US: What's New in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82
    CheckMates Events