List accessible documents in Dynatrace with the Document API, returning metadata for your own and shared documents with filtering and paging.
| GET | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/document/v1/documents |
You use filter, sort, page-key, page, page-size, admin-access, and add-fields to shape the result set. The response returns a list of document metadata objects accessible to you, including your own documents and documents shared with you.
To execute this request, you need a platform token or OAuth access token with document:documents:read scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| filter | string | The filter parameter, as explained here. If this parameter is omitted, no filtering is applied and all documents available to you will be returned. Filtering by string type parameters ( Filtering by When using the equals operator or the not-equals operator, filtering is case sensitive. The following fields are legal filtering parameters - any other field names will result in a HTTP 400 response:
The following constraints apply:
Examples:
| query | Optional |
| sort | string | The sort parameter, as explained here If this parameter is omitted, the documents are sorted by their ids. Sorting by string types ( The following fields are legal sorting parameters - any other sorting parameters will result in a HTTP 400 response:
The following constraints apply:
Examples:
| query | Optional |
| page-key | string | The page key is used to query results from the next page.
You get a | query | Optional |
| page | integer | The page parameter is used to directly access a specific page. The value of the page parameter, if specified, has to be a value greater than zero. If the value of the page parameter exceeds the highest available page on the backend, an empty page is returned. | query | Optional |
| page-size | integer | The page size which defines the requested number of result entries. You can request a maximum of 1000 result entries. If this parameter is omitted, the default value of 20 will be used. | query | Optional |
| admin-access | boolean | Indicates whether the operation should be performed with elevated permissions - additionally requires document:documents:admin. If provided, the user effectively operates as owner of all documents. This isn't supported for ready-made documents. | query | Optional |
| add-fields | string | Comma-separated list of field names that are added to the default set of fields. You can include the following additional fields:
| query | Optional |
| Code | Description |
|---|---|
| 200 | - |
| 400 | - |
| 401 | - |
| 403 | - |
| 500 | - |
| 503 | - |
| default | - |