Update a query.
PUT {{baseUrl}}/queries/:queryId
Update a saved query by the OCID.
Request Body
{"queryDefinition"=>{"costAnalysisUI"=>{"graph"=>"LINES", "isCumulativeGraph"=>false}, "displayName"=>"tempor ut", "reportQuery"=>{"granularity"=>"MONTHLY", "tenantId"=>"ad culpa Lorem", "compartmentDepth"=>3.3313964887725547, "dateRangeName"=>"LAST_SEVEN_DAYS", "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"=>"2020-07-22T00:33:16.324Z", "forecastType"=>"BASIC", "timeForecastStarted"=>"1951-12-06T02:13:25.985Z"}, "groupBy"=>["minim in incididunt", "ut nulla"], "groupByTag"=>[{"key"=>"tempor", "namespace"=>"dolor ", "value"=>"aute ex officia dolore"}, {"key"=>"cillum Excepteur esse ullamco", "namespace"=>"deserunt in", "value"=>"sint dolor"}], "isAggregateByTime"=>false, "queryType"=>"CREDIT", "timeUsageEnded"=>"1951-11-01T03:11:59.216Z", "timeUsageStarted"=>"2004-05-21T08:32:00.717Z"}, "version"=>2890.80976870594}}
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. | |||
if-match | string | For optimistic concurrency control. In the PUT or DELETE call | |
for a resource, set the if-match parameter to the value of the | |||
etag from a previous GET or POST response for that resource. | |||
The resource will be updated or deleted, only if the etag you | |||
provide matches the resource's current etag value. | |||
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}}