Returns saved queries and UI properties.
GET {{baseUrl}}/queries?limit=25&compartmentId={{tenancy_ocid}}&sortBy=displayName&sortOrder=ASC
Returns the saved query list.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
limit | number | The maximum number of items to return. | |
page | string | The page token representing the page at which to start retrieving results. | |
This is usually retrieved from a previous list call. | |||
compartmentId | string | (Required) The compartment ID in which to list resources. | |
sortBy | string | The field to sort by. If not specified, the default is displayName. | |
sortOrder | string | The sort order to use, whether 'asc' or 'desc'. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a | |
particular request, please provide the request ID. | |||
Accept | string |
RESPONSES
status: OK
{"items":[{"id":"nostrud aliqua nulla sint sed","queryDefinition":{"costAnalysisUI":{"graph":"STACKED_LINES","isCumulativeGraph":false},"displayName":"quis","reportQuery":{"granularity":"HOURLY","tenantId":"dolor voluptate pariatur","compartmentDepth":4.5857488689513675,"dateRangeName":"LAST_TEN_DAYS","filter":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"forecast":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"groupBy":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"groupByTag":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"isAggregateByTime":false,"queryType":"CREDIT","timeUsageEnded":"1958-10-24T13:11:04.485Z","timeUsageStarted":"1963-03-14T18:24:01.921Z"},"version":3158.8949324660566}},{"id":"fugiat laborum ea","queryDefinition":{"costAnalysisUI":{"graph":"BARS","isCumulativeGraph":false},"displayName":"des","reportQuery":{"granularity":"MONTHLY","tenantId":"sed aliqua","compartmentDepth":3.650664947083267,"dateRangeName":"YTD","filter":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"forecast":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"groupBy":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"groupByTag":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"isAggregateByTime":false,"queryType":"EXPIREDCREDIT","timeUsageEnded":"2005-07-31T00:35:32.524Z","timeUsageStarted":"1965-04-04T23:43:58.704Z"},"version":5669.345947567392}}]}