Skip to main content

usages

Creates, updates, deletes, gets or lists a usages resource.

Overview​

Nameusages
TypeResource
Idoci.usage.usages

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
request_summarized_usagesexecregion, tenantId, timeUsageStarted, timeUsageEnded, granularityopc-request-id, page, limitReturns usage for the given account.<br />

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
limitintegerThe maximum number of items to return.
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
pagestringThe page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.

Lifecycle Methods​

Returns usage for the given account.<br />

EXEC oci.usage.usages.request_summarized_usages
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}',
@page='{{ page }}',
@limit='{{ limit }}'
@@json=
'{
"compartmentDepth": {{ compartmentDepth }},
"filter": "{{ filter }}",
"forecast": "{{ forecast }}",
"granularity": "{{ granularity }}",
"groupBy": "{{ groupBy }}",
"groupByTag": "{{ groupByTag }}",
"isAggregateByTime": {{ isAggregateByTime }},
"queryType": "{{ queryType }}",
"tenantId": "{{ tenantId }}",
"timeUsageEnded": "{{ timeUsageEnded }}",
"timeUsageStarted": "{{ timeUsageStarted }}"
}'
;