Pradeep Reddy Chinthala
unread,Mar 21, 2022, 12:13:23 PM3/21/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sdc-user, Pat Patterson, sdc-user, Fabio Baldaconi
Hi Pat,
I was writing below python script to start my SDC pipeline through rest API call. I am getting response code 200 but my pipeline is not triggered. Am I missing anything here?
import requests
import json
import ssl
def run_job_instances():
endpoint_url ='
https://localhost:18630/rest/v1/pipeline/<my_pipeline_id>/start'
# # Final response
auth = ('USERNAME', 'PASSWORD')
headers = {"content-type": "application/json"}
response =
requests.post(url=endpoint_url, auth = auth, headers=headers, json=jobdata)
if response.status_code != 200:
print ('Error pipeline running')
# # Label(login_screen, text="Error creating Job Instances").pack()
print (response.status_code)
print (response)
exit(-1)
else:
print ('Started pipeline',response)
if __name__ == '__main__':
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
# Legacy Python that doesn't verify HTTPS certificates by default
pass
else:
# Handle target environment that doesn't support HTTPS verification
ssl._create_default_https_context = _create_unverified_https_context
run_job_instances()