Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Dmitriy2
Explorer

Access section name is not unique

Hello,

I have a large policy with many access sections and my goal is to add/edit a rule in a certain section. Before adding a rule, I have to make sure if there is access section with a specific name or not.  There is a problem when there are several sections with the same name in the policy. In this case, when searching for a access  section, I get the error "Requested object name [name] is not unique." instead of finding out its uid.

For example, I have sections with rules:

AAAA

BBBB

CCCC

AAAA

DDDD

 

Request:

 

https://x.x.x.x/web_api/show-access-section

{
    "name": "AAAA",
    "layer": "Policy Network"
}

 

 
 
Responce:

 

{
    "code": "generic_err_object_field_not_unique",
    "message": "Requested object name [AAAA] is not unique."
}

 

 

In this case, I cannot find out the uid of the access  section and also cannot add a rule to the "AAAA" access  section by its name since it is not unique. Is there a way to add a rule to the first access  section named "AAAA"?
0 Kudos
2 Replies
PhoneBoy
Admin
Admin

Even though the access sections have the same name, they will have unique UIDs, which should be used in this case.
You may need to parse the rulebase with show access-layer to find the correct one.

0 Kudos
the_rock
Legend
Legend

I guess thats expected, not sure. I get exact same thing.

Andy

{
  "code" : "generic_err_missing_session_id",
  "message" : "No query parameters are found"
}
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events