GET more than 1000 app details

Hi, 

Using below management api call I can get the app details. But number is limited 1000 only. How can I get the rest app data? Please suggest.

https://api.enterprise.apigee.com/v1/organisations/{ApigeeOrg}/apps?expand=true

 

Solved Solved
0 2 373
1 ACCEPTED SOLUTION

Hi there, if you wish to use the Apigee Edge Apps API to retrieve more than 1,000 records you'll need to use the startKey request parameter.

To do so first call the API without a startKey. If your request returns the maximum of 1,000 records then you'll need to grab the ID of the last record retrieved and use that as the startKey in a new request. If you do this your second call will grab the next 999 records in your organization. It's 999 instead of 1,000 because the first record from the second request will be identical to the last record of the first request. Keep doing this until all apps have been retrieved. Check out the documentation here as it offers a concise explanation of the parameter's use.

Here's a curl request example using the parameter:

curl \
  'https://api.enterprise.apigee.com/v1/organizations/EXAMPLE_ORG/apps?expand=true&startKey=EXAMPLE_STARTKEY' \
  --header 'Authorization: Basic [YOUR_AUTH_INFO]' \
  --header 'Accept: application/json' \
  --compressed

 

View solution in original post

2 REPLIES 2

Hi there, if you wish to use the Apigee Edge Apps API to retrieve more than 1,000 records you'll need to use the startKey request parameter.

To do so first call the API without a startKey. If your request returns the maximum of 1,000 records then you'll need to grab the ID of the last record retrieved and use that as the startKey in a new request. If you do this your second call will grab the next 999 records in your organization. It's 999 instead of 1,000 because the first record from the second request will be identical to the last record of the first request. Keep doing this until all apps have been retrieved. Check out the documentation here as it offers a concise explanation of the parameter's use.

Here's a curl request example using the parameter:

curl \
  'https://api.enterprise.apigee.com/v1/organizations/EXAMPLE_ORG/apps?expand=true&startKey=EXAMPLE_STARTKEY' \
  --header 'Authorization: Basic [YOUR_AUTH_INFO]' \
  --header 'Accept: application/json' \
  --compressed

 

Hi @ravenhedden 

Thank you very much. It resolved my issue.