Skip to content

Commit

Permalink
fix approved PPS call and example
Browse files Browse the repository at this point in the history
  • Loading branch information
DaleBinghamSoteriaSoft committed Jul 4, 2024
1 parent 497280e commit ebcf792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/patch/uploadApprovedPortsAndProtocolsListFile.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#Post a JSON record array payload to add / update ports, protocols, and services items in the host scan area for your system package
# API call from Developer's Guide:/api/external/systempackage/{systemKey}/ppsm/?applicationKey={applicationKey}
# ex: python3 uploadApprovedPortsAndProtocolsListFile.py http://192.168.13.111:8080 companyinfra openrmfprosvc hvs.xxxxxxxxxxxxxx
# ex: python3 uploadApprovedPortsAndProtocolsListFile.py http://192.168.13.111:8080 companyinfra openrmfprosvc hvs.xxxxxxxxxxxxxx ../../data/ApprovedPPS/ sample-approvedpps.json

import sys
import requests
from requests.structures import CaseInsensitiveDict

url = sys.argv[1] + "/api/external/systempackage/" + sys.argv[2]+ "/ppsm/?applicationKey=" + sys.argv[3]
url = sys.argv[1] + "/api/external/systempackage/" + sys.argv[2]+ "/approvedpps//?applicationKey=" + sys.argv[3]

headers = CaseInsensitiveDict()
headers["Accept"] = "application/json"
Expand Down

0 comments on commit ebcf792

Please sign in to comment.