· 6 years ago · Oct 04, 2019, 02:52 AM
1Current state of ftds2svpn object
2{ 'URL': 'https://fmc01.ccie.lab/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/policy/ftds2svpns',
3 'advancedSettings': { 'id': '00505699-42E0-0ed3-0000-068719488553',
4 'links': { 'self': 'https://fmc01.ccie.lab/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/policy/ftds2svpns/00505699-42E0-0ed3-0000-068719488513/advancedSettings/00505699-42E0-0ed3-0000-068719488553'},
5 'type': 'AdvancedSetting'},
6 'endpoints': { 'links': { 'self': 'https://fmc01.ccie.lab/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/policy/ftds2svpns/00505699-42E0-0ed3-0000-068719488513/endpoints'},
7 'refType': 'list',
8 'type': 'EndPoint'},
9 'id': '00505699-42E0-0ed3-0000-068719488513',
10 'ikeSettings': { 'id': '005056A9-7483-0ed3-0000-012884902862',
11 'links': { 'self': 'https://fmc01.ccie.lab/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/policy/ftds2svpns/00505699-42E0-0ed3-0000-068719488513/ikesettings/005056A9-7483-0ed3-0000-012884902862'},
12 'type': 'IkeSetting'},
13 'ikeV1Enabled': True,
14 'ikeV2Enabled': False,
15 'ipsecSettings': { 'id': '00505699-42E0-0ed3-0000-068719488535',
16 'links': { 'self': 'https://fmc01.ccie.lab/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/policy/ftds2svpns/00505699-42E0-0ed3-0000-068719488513/ipsecsettings/00505699-42E0-0ed3-0000-068719488535'},
17 'type': 'IPSecSetting'},
18 'limit': 1000,
19 'name': 'MESH_TEST',
20 'overridable': False,
21 'topologyType': 'FULL_MESH',
22 'type': 'FTDS2SVpn'}
23
24
25
26JSON data sent
27INFO:root: URL = https://fmc01.ccie.lab/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/policy/ftds2svpns/00505699-42E0-0ed3-0000-068719488300/endpoints
28INFO:root: JSON = {'type': 'EndPoint', 'protectedNetworks': {'networks': [{'id': '00505699-42E0-0ed3-0000-060129542258', 'type': 'Host'}]}, 'connectionType': 'BIDIRECTIONAL', 'peerType': 'PEER', 'extranet': True, 'extranetInfo': {'name': 'peer1', 'ipAddress': '192.0.2.1'}, 'description': 'Created by fmcapi.'}
29
30
31Error
32ERROR:root:Error in POST operation --> 400 Client Error: Bad Request for url: https://fmc01.ccie.lab/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/policy/ftds2svpns/00505699-42E0-0ed3-0000-068719488513/endpoints
33ERROR:root:json_response --> {'error': {'category': 'FRAMEWORK', 'messages': [{'description': 'Pre-shared Key Type in IKEv2 Settings can not be Automatic Automatic preshared key generation is not supported if one or more endpoint nodes are Extranet. Please configure manual preshared key'}], 'severity': 'ERROR'}}
34WARNING:root:POST failure. No data in API response.