Use the overrides parameter
When you are retrieving many large objects from Deep Security Manager, including only
overridden property values can substantially reduce the size of the returned objects. Many API
calls define an overrides parameter that controls whether the response includes
only overrides that are configured on the targeted resource, or includes all effective
properties.
For more information, see the About the Overrides Parameter guide.
For example, if you need the IDs of all policies, you can use the method or function of the
PoliciesApi class that lists policies with overrides set to
true. When many of the policy's properties are inherited, retrieving overrides
can significantly reduce the response size. The ID is always returned regardless of the value of
the overrides parameter.
Python
policies_api = api.PoliciesApi(api.ApiClient(configuration))
policies_with_overrides = policies_api.list_policies(api_version, overrides=True)
JavaScript
const policiesApi = new api.PoliciesApi();
return policiesApi.listPolicies(apiVersion, { overrides: true });
Java
PoliciesApi policiesApi = new PoliciesApi();
Policies policiesWithOverrides = policiessApi.listPolicies(Boolean.TRUE, apiVersion);
