Create a query.
POST {{baseUrl}}/queries
Returns the created query.
Request Body
{"compartmentId"=>"{{compartment_ocid}}", "queryDefinition"=>{"costAnalysisUI"=>{"graph"=>"LINES", "isCumulativeGraph"=>false}, "displayName"=>"dolore amet aliqua sed", "reportQuery"=>{"granularity"=>"DAILY", "tenantId"=>"dolore consequat minim Duis", "compartmentDepth"=>5.141736710385419, "dateRangeName"=>"YTD", "filter"=>{"dimensions"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "filters"=>[{"value"=>"<Circular reference to #/components/schemas/Filter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Filter detected>"}], "operator"=>"NOT", "tags"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}, "forecast"=>{"timeForecastEnded"=>"1978-05-03T11:24:27.390Z", "forecastType"=>"BASIC", "timeForecastStarted"=>"1948-08-03T11:30:11.355Z"}, "groupBy"=>["reprehenderit sed magna pariatur anim", "do ex"], "groupByTag"=>[{"key"=>"minim id sunt", "namespace"=>"nulla do", "value"=>"labore ad ut"}, {"key"=>"mollit elit irure", "namespace"=>"mollit ipsum Lorem est commodo", "value"=>"esse deserunt"}], "isAggregateByTime"=>false, "queryType"=>"EXPIREDCREDIT", "timeUsageEnded"=>"1990-03-19T08:24:20.025Z", "timeUsageStarted"=>"1973-05-20T15:01:08.328Z"}, "version"=>6127.033518134811}}
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. | |||
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or | |
server error, without risk of executing that same action again. Retry tokens expire after 24 | |||
hours, but can be invalidated before then due to conflicting operations. For example, if a resource | |||
has been deleted and purged from the system, then a retry of the original creation request | |||
might be rejected. | |||
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"compartmentId":"eiusmod proident laboris","id":"consequat mollit","queryDefinition":{"costAnalysisUI":{"graph":"STACKED_LINES","isCumulativeGraph":true},"displayName":"ad sun","reportQuery":{"granularity":"MONTHLY","tenantId":"incididunt sit in","compartmentDepth":3.8920349503358156,"dateRangeName":"MTD","filter":{"dimensions":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"filters":[{"value":"\u003cCircular reference to #/components/schemas/Filter detected\u003e"},{"value":"\u003cCircular reference to #/components/schemas/Filter detected\u003e"}],"operator":"OR","tags":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"forecast":{"timeForecastEnded":"1953-07-19T11:56:09.211Z","forecastType":"BASIC","timeForecastStarted":"1987-09-06T00:22:03.940Z"},"groupBy":["dolor sint ut adipisicing","est do irure culpa"],"groupByTag":[{"key":"eiusmod non irure exe","namespace":"laborum Lorem enim nisi","value":"do non"},{"key":"ex ut et","namespace":"in aliqua dolore cupidata","value":"nisi voluptate non"}],"isAggregateByTime":false,"queryType":"COST","timeUsageEnded":"2010-09-10T22:56:06.907Z","timeUsageStarted":"1946-10-11T19:59:05.016Z"},"version":8590.115076050923}}