Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OneSubsription.getComputedUsages
Explore with Pulumi AI
This data source provides the list of Computed Usages in Oracle Cloud Infrastructure Onesubscription service.
This is a collection API which returns a list of Computed Usages for given filters.
Using getComputedUsages
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getComputedUsages(args: GetComputedUsagesArgs, opts?: InvokeOptions): Promise<GetComputedUsagesResult>
function getComputedUsagesOutput(args: GetComputedUsagesOutputArgs, opts?: InvokeOptions): Output<GetComputedUsagesResult>def get_computed_usages(compartment_id: Optional[str] = None,
                        computed_product: Optional[str] = None,
                        filters: Optional[Sequence[GetComputedUsagesFilter]] = None,
                        parent_product: Optional[str] = None,
                        subscription_id: Optional[str] = None,
                        time_from: Optional[str] = None,
                        time_to: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetComputedUsagesResult
def get_computed_usages_output(compartment_id: Optional[pulumi.Input[str]] = None,
                        computed_product: Optional[pulumi.Input[str]] = None,
                        filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetComputedUsagesFilterArgs]]]] = None,
                        parent_product: Optional[pulumi.Input[str]] = None,
                        subscription_id: Optional[pulumi.Input[str]] = None,
                        time_from: Optional[pulumi.Input[str]] = None,
                        time_to: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetComputedUsagesResult]func GetComputedUsages(ctx *Context, args *GetComputedUsagesArgs, opts ...InvokeOption) (*GetComputedUsagesResult, error)
func GetComputedUsagesOutput(ctx *Context, args *GetComputedUsagesOutputArgs, opts ...InvokeOption) GetComputedUsagesResultOutput> Note: This function is named GetComputedUsages in the Go SDK.
public static class GetComputedUsages 
{
    public static Task<GetComputedUsagesResult> InvokeAsync(GetComputedUsagesArgs args, InvokeOptions? opts = null)
    public static Output<GetComputedUsagesResult> Invoke(GetComputedUsagesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetComputedUsagesResult> getComputedUsages(GetComputedUsagesArgs args, InvokeOptions options)
public static Output<GetComputedUsagesResult> getComputedUsages(GetComputedUsagesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OneSubsription/getComputedUsages:getComputedUsages
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the root compartment.
- SubscriptionId string
- Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
- TimeFrom string
- Initial date to filter Computed Usage data in SPM. In the case of non aggregated data the time period between of fromDate and toDate , expressed in RFC 3339 timestamp format.
- TimeTo string
- Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.
- ComputedProduct string
- Product part number for Computed Usage .
- Filters
List<GetComputed Usages Filter> 
- ParentProduct string
- Product part number for subscribed service line, called parent product.
- CompartmentId string
- The OCID of the root compartment.
- SubscriptionId string
- Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
- TimeFrom string
- Initial date to filter Computed Usage data in SPM. In the case of non aggregated data the time period between of fromDate and toDate , expressed in RFC 3339 timestamp format.
- TimeTo string
- Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.
- ComputedProduct string
- Product part number for Computed Usage .
- Filters
[]GetComputed Usages Filter 
- ParentProduct string
- Product part number for subscribed service line, called parent product.
- compartmentId String
- The OCID of the root compartment.
- subscriptionId String
- Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
- timeFrom String
- Initial date to filter Computed Usage data in SPM. In the case of non aggregated data the time period between of fromDate and toDate , expressed in RFC 3339 timestamp format.
- timeTo String
- Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.
- computedProduct String
- Product part number for Computed Usage .
- filters
List<GetComputed Usages Filter> 
- parentProduct String
- Product part number for subscribed service line, called parent product.
- compartmentId string
- The OCID of the root compartment.
- subscriptionId string
- Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
- timeFrom string
- Initial date to filter Computed Usage data in SPM. In the case of non aggregated data the time period between of fromDate and toDate , expressed in RFC 3339 timestamp format.
- timeTo string
- Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.
- computedProduct string
- Product part number for Computed Usage .
- filters
GetComputed Usages Filter[] 
- parentProduct string
- Product part number for subscribed service line, called parent product.
- compartment_id str
- The OCID of the root compartment.
- subscription_id str
- Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
- time_from str
- Initial date to filter Computed Usage data in SPM. In the case of non aggregated data the time period between of fromDate and toDate , expressed in RFC 3339 timestamp format.
- time_to str
- Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.
- computed_product str
- Product part number for Computed Usage .
- filters
Sequence[GetComputed Usages Filter] 
- parent_product str
- Product part number for subscribed service line, called parent product.
- compartmentId String
- The OCID of the root compartment.
- subscriptionId String
- Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
- timeFrom String
- Initial date to filter Computed Usage data in SPM. In the case of non aggregated data the time period between of fromDate and toDate , expressed in RFC 3339 timestamp format.
- timeTo String
- Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.
- computedProduct String
- Product part number for Computed Usage .
- filters List<Property Map>
- parentProduct String
- Product part number for subscribed service line, called parent product.
getComputedUsages Result
The following output properties are available:
- CompartmentId string
- ComputedUsages List<GetComputed Usages Computed Usage> 
- The list of computed_usages.
- Id string
- The provider-assigned unique ID for this managed resource.
- SubscriptionId string
- TimeFrom string
- TimeTo string
- ComputedProduct string
- Filters
List<GetComputed Usages Filter> 
- ParentProduct string
- Product description
- CompartmentId string
- ComputedUsages []GetComputed Usages Computed Usage 
- The list of computed_usages.
- Id string
- The provider-assigned unique ID for this managed resource.
- SubscriptionId string
- TimeFrom string
- TimeTo string
- ComputedProduct string
- Filters
[]GetComputed Usages Filter 
- ParentProduct string
- Product description
- compartmentId String
- computedUsages List<GetComputed Usages Computed Usage> 
- The list of computed_usages.
- id String
- The provider-assigned unique ID for this managed resource.
- subscriptionId String
- timeFrom String
- timeTo String
- computedProduct String
- filters
List<GetComputed Usages Filter> 
- parentProduct String
- Product description
- compartmentId string
- computedUsages GetComputed Usages Computed Usage[] 
- The list of computed_usages.
- id string
- The provider-assigned unique ID for this managed resource.
- subscriptionId string
- timeFrom string
- timeTo string
- computedProduct string
- filters
GetComputed Usages Filter[] 
- parentProduct string
- Product description
- compartment_id str
- computed_usages Sequence[GetComputed Usages Computed Usage] 
- The list of computed_usages.
- id str
- The provider-assigned unique ID for this managed resource.
- subscription_id str
- time_from str
- time_to str
- computed_product str
- filters
Sequence[GetComputed Usages Filter] 
- parent_product str
- Product description
- compartmentId String
- computedUsages List<Property Map>
- The list of computed_usages.
- id String
- The provider-assigned unique ID for this managed resource.
- subscriptionId String
- timeFrom String
- timeTo String
- computedProduct String
- filters List<Property Map>
- parentProduct String
- Product description
Supporting Types
GetComputedUsagesComputedUsage    
- CommitmentService stringId 
- Subscribed service commitmentId.
- ComputeSource string
- SPM Internal compute records source .
- ComputedUsage stringId 
- Cost string
- Computed Line Amount not rounded
- CostRounded string
- Computed Line Amount rounded.
- CurrencyCode string
- Currency code
- DataCenter string
- Data Center Attribute as sent by MQS to SPM.
- Id string
- SPM Internal computed usage Id , 32 character string
- IsInvoiced bool
- Invoicing status for the aggregated compute usage
- MqsMessage stringId 
- MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
- NetUnit stringPrice 
- Net Unit Price for the product in consideration, price actual.
- OriginalUsage stringNumber 
- SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
- ParentProducts List<GetComputed Usages Computed Usage Parent Product> 
- Product part number for subscribed service line, called parent product.
- ParentSubscribed stringService Id 
- Subscribed service line parent id
- PlanNumber string
- Subscription plan number
- Products
List<GetComputed Usages Computed Usage Product> 
- Product description
- Quantity string
- Total Quantity that was used for computation
- RateCard stringId 
- Ratecard Id at subscribed service level
- RateCard stringTierd Id 
- References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER.
- TimeCreated string
- Computed Usage created time, expressed in RFC 3339 timestamp format.
- TimeMetered stringOn 
- Metered Service date, expressed in RFC 3339 timestamp format.
- TimeOf stringArrival 
- Usae computation date, expressed in RFC 3339 timestamp format.
- TimeUpdated string
- Computed Usage updated time, expressed in RFC 3339 timestamp format.
- Type string
- Usage compute type in SPM.
- UnitOf stringMeasure 
- Unit of Messure
- UsageNumber string
- SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
- CommitmentService stringId 
- Subscribed service commitmentId.
- ComputeSource string
- SPM Internal compute records source .
- ComputedUsage stringId 
- Cost string
- Computed Line Amount not rounded
- CostRounded string
- Computed Line Amount rounded.
- CurrencyCode string
- Currency code
- DataCenter string
- Data Center Attribute as sent by MQS to SPM.
- Id string
- SPM Internal computed usage Id , 32 character string
- IsInvoiced bool
- Invoicing status for the aggregated compute usage
- MqsMessage stringId 
- MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
- NetUnit stringPrice 
- Net Unit Price for the product in consideration, price actual.
- OriginalUsage stringNumber 
- SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
- ParentProducts []GetComputed Usages Computed Usage Parent Product 
- Product part number for subscribed service line, called parent product.
- ParentSubscribed stringService Id 
- Subscribed service line parent id
- PlanNumber string
- Subscription plan number
- Products
[]GetComputed Usages Computed Usage Product 
- Product description
- Quantity string
- Total Quantity that was used for computation
- RateCard stringId 
- Ratecard Id at subscribed service level
- RateCard stringTierd Id 
- References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER.
- TimeCreated string
- Computed Usage created time, expressed in RFC 3339 timestamp format.
- TimeMetered stringOn 
- Metered Service date, expressed in RFC 3339 timestamp format.
- TimeOf stringArrival 
- Usae computation date, expressed in RFC 3339 timestamp format.
- TimeUpdated string
- Computed Usage updated time, expressed in RFC 3339 timestamp format.
- Type string
- Usage compute type in SPM.
- UnitOf stringMeasure 
- Unit of Messure
- UsageNumber string
- SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
- commitmentService StringId 
- Subscribed service commitmentId.
- computeSource String
- SPM Internal compute records source .
- computedUsage StringId 
- cost String
- Computed Line Amount not rounded
- costRounded String
- Computed Line Amount rounded.
- currencyCode String
- Currency code
- dataCenter String
- Data Center Attribute as sent by MQS to SPM.
- id String
- SPM Internal computed usage Id , 32 character string
- isInvoiced Boolean
- Invoicing status for the aggregated compute usage
- mqsMessage StringId 
- MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
- netUnit StringPrice 
- Net Unit Price for the product in consideration, price actual.
- originalUsage StringNumber 
- SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
- parentProducts List<GetComputed Usages Computed Usage Parent Product> 
- Product part number for subscribed service line, called parent product.
- parentSubscribed StringService Id 
- Subscribed service line parent id
- planNumber String
- Subscription plan number
- products
List<GetComputed Usages Computed Usage Product> 
- Product description
- quantity String
- Total Quantity that was used for computation
- rateCard StringId 
- Ratecard Id at subscribed service level
- rateCard StringTierd Id 
- References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER.
- timeCreated String
- Computed Usage created time, expressed in RFC 3339 timestamp format.
- timeMetered StringOn 
- Metered Service date, expressed in RFC 3339 timestamp format.
- timeOf StringArrival 
- Usae computation date, expressed in RFC 3339 timestamp format.
- timeUpdated String
- Computed Usage updated time, expressed in RFC 3339 timestamp format.
- type String
- Usage compute type in SPM.
- unitOf StringMeasure 
- Unit of Messure
- usageNumber String
- SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
- commitmentService stringId 
- Subscribed service commitmentId.
- computeSource string
- SPM Internal compute records source .
- computedUsage stringId 
- cost string
- Computed Line Amount not rounded
- costRounded string
- Computed Line Amount rounded.
- currencyCode string
- Currency code
- dataCenter string
- Data Center Attribute as sent by MQS to SPM.
- id string
- SPM Internal computed usage Id , 32 character string
- isInvoiced boolean
- Invoicing status for the aggregated compute usage
- mqsMessage stringId 
- MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
- netUnit stringPrice 
- Net Unit Price for the product in consideration, price actual.
- originalUsage stringNumber 
- SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
- parentProducts GetComputed Usages Computed Usage Parent Product[] 
- Product part number for subscribed service line, called parent product.
- parentSubscribed stringService Id 
- Subscribed service line parent id
- planNumber string
- Subscription plan number
- products
GetComputed Usages Computed Usage Product[] 
- Product description
- quantity string
- Total Quantity that was used for computation
- rateCard stringId 
- Ratecard Id at subscribed service level
- rateCard stringTierd Id 
- References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER.
- timeCreated string
- Computed Usage created time, expressed in RFC 3339 timestamp format.
- timeMetered stringOn 
- Metered Service date, expressed in RFC 3339 timestamp format.
- timeOf stringArrival 
- Usae computation date, expressed in RFC 3339 timestamp format.
- timeUpdated string
- Computed Usage updated time, expressed in RFC 3339 timestamp format.
- type string
- Usage compute type in SPM.
- unitOf stringMeasure 
- Unit of Messure
- usageNumber string
- SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
- commitment_service_ strid 
- Subscribed service commitmentId.
- compute_source str
- SPM Internal compute records source .
- computed_usage_ strid 
- cost str
- Computed Line Amount not rounded
- cost_rounded str
- Computed Line Amount rounded.
- currency_code str
- Currency code
- data_center str
- Data Center Attribute as sent by MQS to SPM.
- id str
- SPM Internal computed usage Id , 32 character string
- is_invoiced bool
- Invoicing status for the aggregated compute usage
- mqs_message_ strid 
- MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
- net_unit_ strprice 
- Net Unit Price for the product in consideration, price actual.
- original_usage_ strnumber 
- SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
- parent_products Sequence[GetComputed Usages Computed Usage Parent Product] 
- Product part number for subscribed service line, called parent product.
- parent_subscribed_ strservice_ id 
- Subscribed service line parent id
- plan_number str
- Subscription plan number
- products
Sequence[GetComputed Usages Computed Usage Product] 
- Product description
- quantity str
- Total Quantity that was used for computation
- rate_card_ strid 
- Ratecard Id at subscribed service level
- rate_card_ strtierd_ id 
- References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER.
- time_created str
- Computed Usage created time, expressed in RFC 3339 timestamp format.
- time_metered_ stron 
- Metered Service date, expressed in RFC 3339 timestamp format.
- time_of_ strarrival 
- Usae computation date, expressed in RFC 3339 timestamp format.
- time_updated str
- Computed Usage updated time, expressed in RFC 3339 timestamp format.
- type str
- Usage compute type in SPM.
- unit_of_ strmeasure 
- Unit of Messure
- usage_number str
- SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
- commitmentService StringId 
- Subscribed service commitmentId.
- computeSource String
- SPM Internal compute records source .
- computedUsage StringId 
- cost String
- Computed Line Amount not rounded
- costRounded String
- Computed Line Amount rounded.
- currencyCode String
- Currency code
- dataCenter String
- Data Center Attribute as sent by MQS to SPM.
- id String
- SPM Internal computed usage Id , 32 character string
- isInvoiced Boolean
- Invoicing status for the aggregated compute usage
- mqsMessage StringId 
- MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
- netUnit StringPrice 
- Net Unit Price for the product in consideration, price actual.
- originalUsage StringNumber 
- SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
- parentProducts List<Property Map>
- Product part number for subscribed service line, called parent product.
- parentSubscribed StringService Id 
- Subscribed service line parent id
- planNumber String
- Subscription plan number
- products List<Property Map>
- Product description
- quantity String
- Total Quantity that was used for computation
- rateCard StringId 
- Ratecard Id at subscribed service level
- rateCard StringTierd Id 
- References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER.
- timeCreated String
- Computed Usage created time, expressed in RFC 3339 timestamp format.
- timeMetered StringOn 
- Metered Service date, expressed in RFC 3339 timestamp format.
- timeOf StringArrival 
- Usae computation date, expressed in RFC 3339 timestamp format.
- timeUpdated String
- Computed Usage updated time, expressed in RFC 3339 timestamp format.
- type String
- Usage compute type in SPM.
- unitOf StringMeasure 
- Unit of Messure
- usageNumber String
- SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
GetComputedUsagesComputedUsageParentProduct      
- BillingCategory string
- Metered service billing category
- Name string
- Product name
- PartNumber string
- Product part number
- ProductCategory string
- Product category
- ProvisioningGroup string
- Product provisioning group
- UcmRate stringCard Part Type 
- Rate card part type of Product
- UnitOf stringMeasure 
- Unit of Messure
- BillingCategory string
- Metered service billing category
- Name string
- Product name
- PartNumber string
- Product part number
- ProductCategory string
- Product category
- ProvisioningGroup string
- Product provisioning group
- UcmRate stringCard Part Type 
- Rate card part type of Product
- UnitOf stringMeasure 
- Unit of Messure
- billingCategory String
- Metered service billing category
- name String
- Product name
- partNumber String
- Product part number
- productCategory String
- Product category
- provisioningGroup String
- Product provisioning group
- ucmRate StringCard Part Type 
- Rate card part type of Product
- unitOf StringMeasure 
- Unit of Messure
- billingCategory string
- Metered service billing category
- name string
- Product name
- partNumber string
- Product part number
- productCategory string
- Product category
- provisioningGroup string
- Product provisioning group
- ucmRate stringCard Part Type 
- Rate card part type of Product
- unitOf stringMeasure 
- Unit of Messure
- billing_category str
- Metered service billing category
- name str
- Product name
- part_number str
- Product part number
- product_category str
- Product category
- provisioning_group str
- Product provisioning group
- ucm_rate_ strcard_ part_ type 
- Rate card part type of Product
- unit_of_ strmeasure 
- Unit of Messure
- billingCategory String
- Metered service billing category
- name String
- Product name
- partNumber String
- Product part number
- productCategory String
- Product category
- provisioningGroup String
- Product provisioning group
- ucmRate StringCard Part Type 
- Rate card part type of Product
- unitOf StringMeasure 
- Unit of Messure
GetComputedUsagesComputedUsageProduct     
- BillingCategory string
- Metered service billing category
- Name string
- Product name
- PartNumber string
- Product part number
- ProductCategory string
- Product category
- ProvisioningGroup string
- Product provisioning group
- UcmRate stringCard Part Type 
- Rate card part type of Product
- UnitOf stringMeasure 
- Unit of Messure
- BillingCategory string
- Metered service billing category
- Name string
- Product name
- PartNumber string
- Product part number
- ProductCategory string
- Product category
- ProvisioningGroup string
- Product provisioning group
- UcmRate stringCard Part Type 
- Rate card part type of Product
- UnitOf stringMeasure 
- Unit of Messure
- billingCategory String
- Metered service billing category
- name String
- Product name
- partNumber String
- Product part number
- productCategory String
- Product category
- provisioningGroup String
- Product provisioning group
- ucmRate StringCard Part Type 
- Rate card part type of Product
- unitOf StringMeasure 
- Unit of Messure
- billingCategory string
- Metered service billing category
- name string
- Product name
- partNumber string
- Product part number
- productCategory string
- Product category
- provisioningGroup string
- Product provisioning group
- ucmRate stringCard Part Type 
- Rate card part type of Product
- unitOf stringMeasure 
- Unit of Messure
- billing_category str
- Metered service billing category
- name str
- Product name
- part_number str
- Product part number
- product_category str
- Product category
- provisioning_group str
- Product provisioning group
- ucm_rate_ strcard_ part_ type 
- Rate card part type of Product
- unit_of_ strmeasure 
- Unit of Messure
- billingCategory String
- Metered service billing category
- name String
- Product name
- partNumber String
- Product part number
- productCategory String
- Product category
- provisioningGroup String
- Product provisioning group
- ucmRate StringCard Part Type 
- Rate card part type of Product
- unitOf StringMeasure 
- Unit of Messure
GetComputedUsagesFilter   
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.