Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

How add Exceptions on Phase-1ID in Engine Endpoints  #80

Description

@fgazelot

Hello,

I dont know if I missed something, I have to create a exceptions on a Phase-1 ID (change default IP addres ID to a email ID to a specific PolicyVPN.

However, i dont find a way to make this :

e = Engine("ClusterFW-1")


endpoints = list(e.vpn_endpoint.all())


ep = endpoints[0]



pprint(vars(ep.data))
{'_etag': '"MTMzOTgwMjExNjk3NjE1MDE4OTQ0"',
 'data': {'address': '10.0.10.1',
          'connection_type_ref': 'http://X.X.X.X:8082/6.10/elements/connection_type/4',
          'deducted_name': '10.0.10.1',
          'dynamic': False,
          'enabled': True,
          'force_nat_t': False,
          'ike_phase1_id_type': 3,
          'ipsec_vpn': True,
          'key': 1339,
          'link': [{'href': 'http://X.X.X.X:8082/6.10/elements/fw_cluster/5588/internal_gateway/1340/internal_endpoint/1339',
                    'rel': 'self',
                    'type': 'internal_endpoint'},
                   {'href': 'http://X.X.X.X:8082/6.10/elements/fw_cluster/5588/internal_gateway/1340/internal_endpoint/1339/history',
                    'rel': 'history'},
                   {'href': 'http://X.X.X.X:8082/6.10/elements/fw_cluster/5588/internal_gateway/1340/internal_endpoint/1339/lock',
                    'rel': 'lock'}],
          'locked': False,
          'nat_t': True,
          'physical_interface': 'http://X.X.X.X:8082/6.10/elements/fw_cluster/5588/physical_interface/1337',
          'read_only': False,
          'ssl_vpn_portal': True,
          'ssl_vpn_tunnel': True,
          'system': False,
          'system_key': -1,
          'trashed': False,
          'udp_encapsulation': False}}

In this exemple, the exceptions is created on this printed endpoint, but we dont saw data dedicated to that ...

Information of my environement :

session.api_version = 6.10

pip list | grep SMC                                                                                                                                                             
fp-NGFW-SMC-python 1.0.21

Thank you in advance for your help.

Kind regards,
Fgazelot

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions