Document toolboxDocument toolbox

Retrieve a List of Provider Organizations 

Use /api/admin/sharing/source_orgs as follows to get the ID of the organizations providing data that is available to your organization.

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 = 'YOUR_API_KEY'
api_endpoint = 'https://csp.infoblox.com'
api_path =
‘/tide/admin/v1/resources/shared/dataprofiles'
url = '%s%s' % (api_endpoint,api_path)

token = '<MY TOKEN>'

r = requests.get(url,headers={'Content-
Type':'application/json','Authorization':'token {}'.format(token)})
print (r.status_code)
print (r.json())
# OR
#print (r.content)

Sample result:

200
{u'status': u'success', u'code': 0, u'data': [u'IID']}

Curl

curl

‘https://csp.infoblox.com/tide/admin/v1/resources/shared/dataprofiles' -H 'Authorization:Token token=<MYTOKEN>'

| python -mjson.tool

Sample Result

{
"code": 0,
"data": [
"OrgA",
"OrgB",
"DemoOrg",
"IID"
],
"status": "success"
}