Skip to main content

usage_carbon_emissions

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

Overview​

Nameusage_carbon_emissions
TypeResource
Idoci.usage.usage_carbon_emissions

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_usage_carbon_emissionsexecregion, tenantId, timeUsageStarted, timeUsageEndedopc-request-id, page, limitReturns carbon emission 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 carbon emission usage for the given account.<br />

EXEC oci.usage.usage_carbon_emissions.request_usage_carbon_emissions
@region='{{ region }}' --required,
@opc-request-id='{{ opc-request-id }}',
@page='{{ page }}',
@limit='{{ limit }}'
@@json=
'{
"compartmentDepth": {{ compartmentDepth }},
"emissionCalculationMethod": "{{ emissionCalculationMethod }}",
"emissionType": "{{ emissionType }}",
"filter": "{{ filter }}",
"granularity": "{{ granularity }}",
"groupBy": "{{ groupBy }}",
"groupByTag": "{{ groupByTag }}",
"isAggregateByTime": {{ isAggregateByTime }},
"tenantId": "{{ tenantId }}",
"timeUsageEnded": "{{ timeUsageEnded }}",
"timeUsageStarted": "{{ timeUsageStarted }}"
}'
;