Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get all objects from an object type

Saravanan Gangatharan _DK_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 13, 2025

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 ?

 

 

1 answer

1 accepted

1 vote
Answer accepted
Dirk Ronsmans
Community Champion
March 13, 2025

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

 

Saravanan Gangatharan _DK_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 17, 2025

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 ?

 

Dirk Ronsmans
Community Champion
March 17, 2025

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events