{“error”: {“code”: 400,“message”: “Constraints violated.”,“constraintViolations”: [{“path”: “entitySelector”,“message”: “must be set if next-page-key is not defined”,“parameterLocation”: “QUERY”,“location”: null}]}}
Doing this in one API call is not possible as you must specify the entitySelector parameter for this API call, if you do not have a next-page-key defined.
Getting all entities would require you to first query all possible types with
https://{your-environment-id}.live.dynatrace.com/api/v2/entityTypes
and query https://{your-environment-id}.live.dynatrace.com/api/v2/entities?entitySelector=type(“your-type”) with each type you get back from the entityTypes endpoint.