Document toolboxDocument toolbox

How Do I Check My Data Submission Status?  

All Python examples provided in this guide were scripted using Python 3.0.

How do I check my data submission status?  

Use the Threat Batch API provided by the Data Service. Use the batch ID returned by the corresponding data submission call. If you lost the batch ID you can list your data submissions using the 'GET /api/data/batches' calls, which will also return the submission status for all returned submissions.

python

#note: install the 'requests' library first:
#pip install -U requests
import requests

#note: replace this api_key value with your api key!
api_key = 'INSERT_YOUR_API_KEY_HERE'
api_endpoint = 'https://csp.infoblox.com'
api_path = '/api/data/batches/'
api_path = '/tide/api/data/batches/'
batch_id = 'cebf7300-9e1f-11eb-8943-6962d4bdf9de'
url = '%s%s%s' % (api_endpoint,api_path,batch_id) r = requests.get(url, headers={"Authorization": "Token "+api_key},verify=True)
print(r.status_code)
print(r.json())

Sample result

200

{u'description': u'Batch submission on July 15, 2014, 16:06:57',
 u'id': u'92c1f7af-0c5b-11e4-913b-fb8aa419fdba',
 u'imported': u'2014-07-15T20:06:57.174Z',
 u'link': [{u'href': u'/data/batches/92c1f7af-0c5b-11e4-913b-fb8aa419fdba',
            u'rel': u'self'},
           {u'href': u'/data/batches/92c1f7af-0c5b-11e4-913b-fb8aa419fdba/detail',
            u'rel': u'detail'}],
 u'method': u'web',
 u'num_errors': 0,
 u'num_successful': 1,
 u'organization': u'OrgA',
 u'profile': u'OrgA:my_data_profile',
 u'status': u'DONE',
 u'submitted': u'2014-07-15T20:06:57.174Z',
 u'total': 1,
 u'type': u'IP',
 u'user': u'UserA'}
    

curl

curl  https://csp.infoblox.com/tide/api/data/batches/0c944caa-90e8-11eb-b195-5dd0776dce38 -H 'Authorization: Token <CSP API key>' 

Sample response

{
"link": [
{
"href": "/data/batches/0c944caa-90e8-11eb-b195-5dd0776dce38",
"rel": "self"
},
{ "href": "/data/batches/0c944caa-90e8-11eb-b195-5dd0776dce38/detail",
"rel": "detail"
}
],
"id": "0c944caa-90e8-11eb-b195-5dd0776dce38",
"submitted": "2021-03-29T23:39:48.284Z",
"imported": "2021-03-29T23:39:48.284Z",
"profile": "IID:tidengapitest",
"status": "DONE",
"user": "someone@somewhere.com",
"organization": "IID",
"method": "api",
"type": "HOST",
"total": 1,
"num_successful": 1,
"num_errors": 0
}