cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
456
Views
0
Helpful
3
Replies

Guest API Question

radotodo
Cisco Employee
Cisco Employee

Hi Team,

 

I am looking for any workaround with ERS API Call for the following problem :

https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvp66483/?reffering_site=dumpcr 

Is there any way I can fetch that accounts which has been generated all together in one API Call ?

Is there any way I can ask only specific range of the created accounts to be fetch like from 20 to 80 ?

 

 

Thanks for any idea.

3 Replies 3

hslai
Cisco Employee
Cisco Employee

Please refer to the Search a Resource in Quick Reference of the on-box API doc. Under paging, it shows the max resource per page is 100. Thus, size=20&page=2 will fetch 21 ~ 40, page=3 will be 41 ~ 60, and so on.

Try it and let us know.

Hi hslai,

Thanks for the reply.
Is there any way I can perform random generation of 100 accounts using the API Call and then fetch only the newly created accounts ?

There is no direct way to do this with API. Instead, we may use some 3rd-party random function to simulate random user names with some prefix and create guests using bulk requests.