1createCancelServerTicket = {'id': 1234, 'title': 'Server Cancellation Request'} 2getObject = { 3 "administrativeBypassFlag": "", 4 "customerManagedFlag": False, 5 "billingItem": { 6 "id": 21370815 7 }, 8 "id": 3130, 9 "primaryIpAddress": "192.155.239.146", 10 "datacenter": { 11 "id": 265592, 12 "longName": "Amsterdam 1", 13 "name": "ams01", 14 "statusId": 2 15 }, 16 "networkVlan": { 17 "accountId": 307608, 18 "id": 371028, 19 "primarySubnetId": 536252, 20 "name": 'testvlan', 21 "vlanNumber": 1489, 22 "firewallInterfaces": [ 23 { 24 "id": 6254, 25 "name": "inside", 26 "firewallContextAccessControlLists": [ 27 { 28 "direction": "out", 29 "firewallContextInterfaceId": 6257, 30 "id": 3143 31 } 32 ] 33 }, 34 { 35 "id": 6256, 36 "name": "outside", 37 "firewallContextAccessControlLists": [ 38 { 39 "direction": "out", 40 "firewallContextInterfaceId": 6257, 41 "id": 3143 42 }, 43 { 44 "direction": "in", 45 "firewallContextInterfaceId": 6256, 46 "id": 3142 47 } 48 ] 49 } 50 ] 51 }, 52 "rules": [ 53 {'destinationIpAddress': 'any on server', 54 'protocol': 'tcp', 55 'orderValue': 1, 56 'destinationIpSubnetMask': '255.255.255.255', 57 'destinationPortRangeStart': 80, 58 'sourceIpSubnetMask': '0.0.0.0', 59 'destinationPortRangeEnd': 80, 60 'version': 4, 61 'action': 'permit', 62 'sourceIpAddress': '0.0.0.0' 63 }, 64 { 65 'destinationIpAddress': 'any on server', 66 'protocol': 'tcp', 67 'orderValue': 2, 68 'destinationIpSubnetMask': '255.255.255.255', 69 'destinationPortRangeStart': 1, 70 'sourceIpSubnetMask': '255.255.255.255', 71 'destinationPortRangeEnd': 65535, 72 'version': 4, 73 'action': 'permit', 74 'sourceIpAddress': '193.212.1.10' 75 }, 76 { 77 'destinationIpAddress': 'any on server', 78 'protocol': 'tcp', 79 'orderValue': 3, 80 'destinationIpSubnetMask': '255.255.255.255', 81 'destinationPortRangeStart': 80, 82 'sourceIpSubnetMask': '0.0.0.0', 83 'destinationPortRangeEnd': 800, 84 'version': 4, 85 'action': 'permit', 86 'sourceIpAddress': '0.0.0.0' 87 } 88 ] 89 90} 91 92getRules = [ 93 { 94 'destinationIpAddress': 'any on server', 95 'protocol': 'tcp', 96 'orderValue': 1, 97 'destinationIpSubnetMask': '255.255.255.255', 98 'destinationPortRangeStart': 80, 99 'sourceIpSubnetMask': '0.0.0.0', 100 'destinationPortRangeEnd': 80, 101 'version': 4, 102 'action': 'permit', 103 'sourceIpAddress': '0.0.0.0' 104 }, 105 { 106 'destinationIpAddress': 'any on server', 107 'protocol': 'tmp', 108 'orderValue': 2, 109 'destinationIpSubnetMask': '255.255.255.255', 110 'destinationPortRangeStart': 1, 111 'sourceIpSubnetMask': '255.255.255.255', 112 'destinationPortRangeEnd': 65535, 113 'version': 4, 114 'action': 'permit', 115 'sourceIpAddress': '193.212.1.10' 116 }, 117 { 118 'destinationIpAddress': 'any on server', 119 'protocol': 'tcp', 120 'orderValue': 3, 121 'destinationIpSubnetMask': '255.255.255.255', 122 'destinationPortRangeStart': 80, 123 'sourceIpSubnetMask': '0.0.0.0', 124 'destinationPortRangeEnd': 800, 125 'version': 4, 126 'action': 'permit', 127 'sourceIpAddress': '0.0.0.0' 128 } 129] 130edit = True 131