File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,23 @@ async def main():
9898asyncio.run(main())
9999```
100100
101+ ### Pagination
102+
103+ Several listing operations have a pagination method to help consume all the items available.
104+ For example, to retrieve all your incidents:
105+
106+ ``` python
107+ from datadog_api_client import ApiClient, Configuration
108+ from datadog_api_client.v2.api.incidents_api import IncidentsApi
109+
110+ configuration = Configuration()
111+ configuration.unstable_operations[" list_incidents" ] = True
112+ with ApiClient(configuration) as api_client:
113+ api_instance = IncidentsApi(api_client)
114+ for incident in api_instance.list_incidents_with_pagination():
115+ print (incident.id)
116+ ```
117+
101118## Documentation for API Endpoints and Models
102119
103120Documentation for API endpoints and models are available on [ readthedocs] ( https://datadog-api-client.readthedocs.io/ ) .
You can’t perform that action at this time.
0 commit comments