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

KeyDatatypeRequiredDescription
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a
particular request, please provide the request ID.
opc-retry-tokenstringA 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-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;compartmentId&quot;:&quot;eiusmod proident laboris&quot;,&quot;id&quot;:&quot;consequat mollit&quot;,&quot;queryDefinition&quot;:{&quot;costAnalysisUI&quot;:{&quot;graph&quot;:&quot;STACKED_LINES&quot;,&quot;isCumulativeGraph&quot;:true},&quot;displayName&quot;:&quot;ad sun&quot;,&quot;reportQuery&quot;:{&quot;granularity&quot;:&quot;MONTHLY&quot;,&quot;tenantId&quot;:&quot;incididunt sit in&quot;,&quot;compartmentDepth&quot;:3.8920349503358156,&quot;dateRangeName&quot;:&quot;MTD&quot;,&quot;filter&quot;:{&quot;dimensions&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;filters&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Filter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Filter detected\u003e&quot;}],&quot;operator&quot;:&quot;OR&quot;,&quot;tags&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]},&quot;forecast&quot;:{&quot;timeForecastEnded&quot;:&quot;1953-07-19T11:56:09.211Z&quot;,&quot;forecastType&quot;:&quot;BASIC&quot;,&quot;timeForecastStarted&quot;:&quot;1987-09-06T00:22:03.940Z&quot;},&quot;groupBy&quot;:[&quot;dolor sint ut adipisicing&quot;,&quot;est do irure culpa&quot;],&quot;groupByTag&quot;:[{&quot;key&quot;:&quot;eiusmod non irure exe&quot;,&quot;namespace&quot;:&quot;laborum Lorem enim nisi&quot;,&quot;value&quot;:&quot;do non&quot;},{&quot;key&quot;:&quot;ex ut et&quot;,&quot;namespace&quot;:&quot;in aliqua dolore cupidata&quot;,&quot;value&quot;:&quot;nisi voluptate non&quot;}],&quot;isAggregateByTime&quot;:false,&quot;queryType&quot;:&quot;COST&quot;,&quot;timeUsageEnded&quot;:&quot;2010-09-10T22:56:06.907Z&quot;,&quot;timeUsageStarted&quot;:&quot;1946-10-11T19:59:05.016Z&quot;},&quot;version&quot;:8590.115076050923}}