How to use RunAJobAPI

neupane parlad
1 min readMay 3, 2023

To run a RunAjob API from an EC2 instance, you can use the following steps:

  1. Make sure your EC2 instance has internet connectivity and can access the Informatica Cloud REST API endpoint. You may need to configure your EC2 instance’s security groups or network settings to allow outbound traffic to the Informatica Cloud endpoint.
  2. Obtain an access token for your Informatica Cloud organization by making a request to the OAuth token endpoint. You will need to include your Informatica Cloud username and password in the request.
  3. Use the access token to authenticate your requests to the Informatica Cloud REST API. You will need to include the access token in the Authorization header of your API requests.
  4. Use the RunAjob API to run a specific job in your Informatica Cloud organization. You will need to include the job ID in your API request.

Here is an example Python script that uses the Requests library to make an API call to the RunAjob endpoint:

import requests

# Replace with your own values
org_id = "my-org-id"
job_id = "my-job-id"
access_token = "my-access-token"

# Construct the API endpoint URL
url = f"https://dm-us.informaticacloud.com/ma/api/v2/job/activity/{job_id}/run"

# Construct the API request headers
headers = {
"Authorization": f"Bearer {access_token}",
"Content-Type": "application/json"
}

# Construct the API request body
body = {
"orgId": org_id
}

# Make the API request
response = requests.post(url, headers=headers, json=body)

# Check the API response
if response.status_code == 200:
print("Job run successfully")
else:
print("Error running job:", response.status_code, response.text)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

neupane parlad
neupane parlad

Written by neupane parlad

Follow me for Data Science, Data Engineering and Data Analysis Articles. Follow me on twitter at @parladN

No responses yet

Write a response