New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add categories in access policy #76
Comments
Not saying this is wrong but it does break the methodology that we've been using for fmcapi. Each class translates directly to an API feature from the FMC. I don't see a specific API feature for "RuleCategories". I'd suggest you re-work it into the AccessRules class. |
Hi daxm, Seeing as this is an open issue, am I to assume that there isn't a way to account for 'categories' already present in the 'AccessRules' class? |
Direct modification of Categories (get, post, put, delete) appears to
have been added in v6.5.0. Alas, the fmcapi package has not yet gotten
that programmed out. A quick look at the API guide makes me think it
wouldn't be too hard to add in.
https://www.cisco.com/c/en/us/td/docs/security/firepower/660/api/REST/firepower_management_center_rest_api_quick_start_guide_660/Objects_In_The_REST_API.html#id_118415
I'll put it on my todo list but I cannot guarantee any timeframe.
…On 7/24/20 5:04 PM, caballero-oscuro wrote:
Hi daxm,
Seeing as this is an open issue, am I to assume that there isn't a way
to account for 'categories' already present in the 'AccessRules' class?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#76 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZOMZ5WM2SKVAHUC6MBTF3R5IHPRANCNFSM4N4734XA>.
|
No worries! Thanks for the response. Also, fmcapi has been a HUGE help to me and I just wanted to say thanks for doing this! |
I'm glad it is helpful!
Do you want to take a stab at programming the Categories API features?
You can take a look at something like the Ports API in fmcapi as a
reference.
…On 7/27/20 11:02 AM, caballero-oscuro wrote:
No worries! Thanks for the response. Also, fmcapi has been a HUGE help
to me and I just wanted to say thanks for doing this!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#76 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZOMZYZPIFAENWU4HO6R4LR5WXMFANCNFSM4N4734XA>.
|
I added support for categories quite some time back for ACP rules: |
You're right, I do see that support added. However, I was only able to get it to work by adding "category" to: VALID_FOR_KWARGS = VALID_JSON_DATA + [ |
@caballero-oscuro - ok, not sure why it was missing from that list. You can go ahead and create a branch add that in and submit a PR :) |
I just added it to Master and pushed to GitHub. |
[**Is](url
categories.zip
)
I made a script for the creation of category in the access policy, however being beginning in python, could check if everything is good (and publish if you want)
Check with FMC 6.6 and 6.5
Best regards
The text was updated successfully, but these errors were encountered: