Retrieve a CSV file with information of an org's Bulk API jobs.
{
"client_id": "<client id>",
"client_secret": "<client_secret>",
"username": "<username>",
"password": "<password followed by user token>",
"grant_type": "password"
}
User profile must be have:
- API enable checked
- Manage Data Integrations checked
Otherwise, when trying to get data from /services/data/vXX.X/jobs/ingest, you will get a NOT FOUND Error
$ python Bulk_API_Report.py --creds-file [Json creds file] --env [prod or dev]
[*] Retrieving access token from https://[login|test].salesforce.com/services/oauth2/token
[!] Token received
[*] Retrieving bulk API jobs information from <instance url>
[*] Dumping [amount of rows retrieved] jobs to Bulk_API_Jobs.json
[*] Dumping data to a CSV file.