Hi,
I would like to get all objects and its attribute values from an object type (here, Servers) from Assets.
Can you please let me know how to do that via API in postman ?
Hi @Saravanan Gangatharan _DK_ ,
You'll need to use the specific Assets REST API for this.
https://developer.atlassian.com/cloud/assets/assets-rest-api-guide/workflow/
Then I believe the object/aql endpoint might be your easiest solution.
https://developer.atlassian.com/cloud/assets/rest/api-group-object/#api-object-aql-post
Thanks Drik,
https://developer.atlassian.com/cloud/assets/rest/api-group-object/#api-object-aql-post
object/aql worked.
used: ...object/aql?startAt=0&maxResults=2000&includeAttributes=true
I have 10500+ objects. How do I handle to get all obects and its attribures?
Can you explain ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The documentation doesn't seem to mention a limit on the maxResults parameter but it does support paginated results.
Considering there is a "last" and "islast" boolean in the response, I would try to for example run the query with startAt=10000&maxResults=2000 and see if the last/isLast boolean goes to true.
Normally these endoints have some kind of "next" or "nextPage" in the response but this does not seem to have it.
There for you'll have to loop through the results incrementing the startAt number with the maxResults until the last/isLast is true.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.