- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Access section name is not unique
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
}
{
"code": "generic_err_object_field_not_unique",
"message": "Requested object name [AAAA] is not unique."
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I guess thats expected, not sure. I get exact same thing.
Andy
{ "code" : "generic_err_missing_session_id", "message" : "No query parameters are found" }
