This is the multi-page printable view of this section.
Click here to print.
Return to the regular view of this page.
Best practices
Follow these best practices when using the Endor Labs REST API.
Using endorctl
Optimize queries
- Use the count flag if you only need the total number of objects matching the query.
- Use grouping if you only need the number of objects per unique value of a given field, or a set of fields.
- Use field-masks to return only the fields you need.
- Filter on common fields such as
uuid
or meta.name
before resource kind specific fields.