Skip to content

Commit

Permalink
FMC support (#51)
Browse files Browse the repository at this point in the history
* FMC support

* adding endpoints to internal repo

* {DOMAIN_UUID} and provider from netascode

* endpoints update

* adjust to new endpoint format

* filename change

* fmc support

* undo change

* final commit

* after Pre-commit

---------

Co-authored-by: rchrabas <[email protected]>
  • Loading branch information
mmaciejc and rchrabas authored Oct 8, 2024
1 parent 7b76a81 commit 0333498
Show file tree
Hide file tree
Showing 5 changed files with 417 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/*.json
/endpoints*.yaml
#/endpoints*.yaml
!examples/*.json
!examples/endpoints*.yaml
tmp/
.envrc
.DS_Store
.pylintrc
.vscode
terraform*

# pyenv
.python-version
Expand Down
89 changes: 89 additions & 0 deletions endpoints_fmc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
- name: domain
endpoint: /api/fmc_platform/v1/info/domain
- name: fmc_version
endpoint: /api/fmc_platform/v1/info/serverversion
- name: smart_license
endpoint: /api/fmc_platform/v1/license/smartlicenses
- name: policy_assignment
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/assignment/policyassignments
- name: syslog_alert
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/policy/syslogalerts
- name: host
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/hosts
- name: network
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/networks
- name: range
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/ranges
- name: network_group
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/networkgroups
- name: url
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/urls
- name: url_group
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/urlgroups
- name: port
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/protocolportobjects
- name: port_group
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/portobjectgroups
- name: fqdn_object
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/fqdns
- name: time_range
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/timeranges
- name: icmpv4_object
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/icmpv4objects
- name: icmpv6_object
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/icmpv6objects
- name: dynamic_object
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/dynamicobjects
- name: dynamic_objects_mapping
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/dynamicobjects/%v/mappings
- name: sgt
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/securitygrouptags
- name: vlan_tag
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/vlantags
- name: vlan_tag_group
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/vlangrouptags
- name: variable_set
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/variablesets
- name: standard_acl
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/standardaccesslists
- name: extended_acl
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/object/extendedaccesslists
- name: file_policy
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/policy/filepolicies
- name: intrusion_policy
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/policy/intrusionpolicies
- name: prefilter_policy
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/policy/prefilterpolicies
- name: network_analysis_policy
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/policy/networkanalysispolicies
- name: access_control_policy
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/policy/accesspolicies
children:
- name: access_control_policy_rule
endpoint: /accessrules
- name: access_control_policy_category
endpoint: /categories
- name: ftd_nat_policy
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/policy/ftdnatpolicies
children:
- name: ftd_nat_policy_auto_nat_rule
endpoint: /autonatrules
- name: ftd_nat_policy_manual_nat_rule
endpoint: /manualnatrules
- name: device
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/devices/devicerecords
children:
- name: device_subinterface
endpoint: /subinterfaces
- name: device_vtep_policy
endpoint: /vteppolicies
- name: device_physical_interface
endpoint: /physicalinterfaces
- name: device_ipv4_static_route
endpoint: /routing/ipv4staticroutes
- name: device_vni_interface
endpoint: /vniinterfaces
- name: device_ipv6_static_route
endpoint: /routing/ipv6staticroutes
- name: cluster
endpoint: /api/fmc_config/v1/domain/{DOMAIN_UUID}/deviceclusters/ftddevicecluster
Loading

0 comments on commit 0333498

Please sign in to comment.