Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.OsubUsage.getComputedUsages
Explore with Pulumi AI
This data source provides the list of Computed Usages in Oracle Cloud Infrastructure Osub Usage 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[_osubusage.GetComputedUsagesFilter]] = None,
parent_product: Optional[str] = None,
subscription_id: Optional[str] = None,
time_from: Optional[str] = None,
time_to: Optional[str] = None,
x_one_origin_region: 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[_osubusage.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,
x_one_origin_region: 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:OsubUsage/getComputedUsages:getComputedUsages
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the root compartment.
- Subscription
Id string - Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
- Time
From 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.
- Time
To string - Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.
- Computed
Product string - Product part number for Computed Usage .
- Filters
List<Get
Computed Usages Filter> - Parent
Product string - Product part number for subscribed service line, called parent product.
- XOne
Origin stringRegion - The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.
- Compartment
Id string - The OCID of the root compartment.
- Subscription
Id string - Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
- Time
From 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.
- Time
To string - Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.
- Computed
Product string - Product part number for Computed Usage .
- Filters
[]Get
Computed Usages Filter - Parent
Product string - Product part number for subscribed service line, called parent product.
- XOne
Origin stringRegion - The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.
- compartment
Id String - The OCID of the root compartment.
- subscription
Id String - Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
- time
From 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.
- time
To String - Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.
- computed
Product String - Product part number for Computed Usage .
- filters
List<Get
Computed Usages Filter> - parent
Product String - Product part number for subscribed service line, called parent product.
- x
One StringOrigin Region - The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.
- compartment
Id string - The OCID of the root compartment.
- subscription
Id string - Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
- time
From 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.
- time
To string - Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.
- computed
Product string - Product part number for Computed Usage .
- filters
Get
Computed Usages Filter[] - parent
Product string - Product part number for subscribed service line, called parent product.
- x
One stringOrigin Region - The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.
- 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[osubusage.
Get Computed Usages Filter] - parent_
product str - Product part number for subscribed service line, called parent product.
- x_
one_ strorigin_ region - The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.
- compartment
Id String - The OCID of the root compartment.
- subscription
Id String - Subscription Id is an identifier associated to the service used for filter the Computed Usage in SPM.
- time
From 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.
- time
To String - Final date to filter Computed Usage data in SPM, expressed in RFC 3339 timestamp format.
- computed
Product String - Product part number for Computed Usage .
- filters List<Property Map>
- parent
Product String - Product part number for subscribed service line, called parent product.
- x
One StringOrigin Region - The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.
getComputedUsages Result
The following output properties are available:
- Compartment
Id string - Computed
Usages List<GetComputed Usages Computed Usage> - The list of computed_usages.
- Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Id string - Time
From string - Time
To string - Computed
Product string - Filters
List<Get
Computed Usages Filter> - Parent
Product string - Product description
- XOne
Origin stringRegion
- Compartment
Id string - Computed
Usages []GetComputed Usages Computed Usage - The list of computed_usages.
- Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Id string - Time
From string - Time
To string - Computed
Product string - Filters
[]Get
Computed Usages Filter - Parent
Product string - Product description
- XOne
Origin stringRegion
- compartment
Id String - computed
Usages List<GetComputed Usages Computed Usage> - The list of computed_usages.
- id String
- The provider-assigned unique ID for this managed resource.
- subscription
Id String - time
From String - time
To String - computed
Product String - filters
List<Get
Computed Usages Filter> - parent
Product String - Product description
- x
One StringOrigin Region
- compartment
Id string - computed
Usages GetComputed Usages Computed Usage[] - The list of computed_usages.
- id string
- The provider-assigned unique ID for this managed resource.
- subscription
Id string - time
From string - time
To string - computed
Product string - filters
Get
Computed Usages Filter[] - parent
Product string - Product description
- x
One stringOrigin Region
- compartment_
id str - computed_
usages Sequence[osubusage.Get Computed 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[osubusage.
Get Computed Usages Filter] - parent_
product str - Product description
- x_
one_ strorigin_ region
- compartment
Id String - computed
Usages List<Property Map> - The list of computed_usages.
- id String
- The provider-assigned unique ID for this managed resource.
- subscription
Id String - time
From String - time
To String - computed
Product String - filters List<Property Map>
- parent
Product String - Product description
- x
One StringOrigin Region
Supporting Types
GetComputedUsagesComputedUsage
- Commitment
Service stringId - Subscribed service commitmentId.
- Compute
Source string - SPM Internal compute records source .
- Computed
Usage stringId - Cost string
- Computed Line Amount not rounded
- Cost
Rounded string - Computed Line Amount rounded.
- Currency
Code string - Currency code
- Data
Center string - Data Center Attribute as sent by MQS to SPM.
- Id string
- SPM Internal computed usage Id , 32 character string
- Is
Invoiced bool - Invoicing status for the aggregated compute usage
- Mqs
Message stringId - MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
- Net
Unit stringPrice - Net Unit Price for the product in consideration, price actual.
- Original
Usage stringNumber - SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
- Parent
Products List<GetComputed Usages Computed Usage Parent Product> - Product part number for subscribed service line, called parent product.
- Parent
Subscribed stringService Id - Subscribed service line parent id
- Plan
Number string - Subscription plan number
- Products
List<Get
Computed Usages Computed Usage Product> - Product description
- Quantity string
- Total Quantity that was used for computation
- Rate
Card stringId - Ratecard Id at subscribed service level
- Rate
Card 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.
- Time
Created string - Computed Usage created time, expressed in RFC 3339 timestamp format.
- Time
Metered stringOn - Metered Service date, expressed in RFC 3339 timestamp format.
- Time
Of stringArrival - Usae computation date, expressed in RFC 3339 timestamp format.
- Time
Updated string - Computed Usage updated time, expressed in RFC 3339 timestamp format.
- Type string
- Usage compute type in SPM.
- Unit
Of stringMeasure - Unit of Messure
- Usage
Number string - SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
- Commitment
Service stringId - Subscribed service commitmentId.
- Compute
Source string - SPM Internal compute records source .
- Computed
Usage stringId - Cost string
- Computed Line Amount not rounded
- Cost
Rounded string - Computed Line Amount rounded.
- Currency
Code string - Currency code
- Data
Center string - Data Center Attribute as sent by MQS to SPM.
- Id string
- SPM Internal computed usage Id , 32 character string
- Is
Invoiced bool - Invoicing status for the aggregated compute usage
- Mqs
Message stringId - MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
- Net
Unit stringPrice - Net Unit Price for the product in consideration, price actual.
- Original
Usage stringNumber - SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
- Parent
Products []GetComputed Usages Computed Usage Parent Product - Product part number for subscribed service line, called parent product.
- Parent
Subscribed stringService Id - Subscribed service line parent id
- Plan
Number string - Subscription plan number
- Products
[]Get
Computed Usages Computed Usage Product - Product description
- Quantity string
- Total Quantity that was used for computation
- Rate
Card stringId - Ratecard Id at subscribed service level
- Rate
Card 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.
- Time
Created string - Computed Usage created time, expressed in RFC 3339 timestamp format.
- Time
Metered stringOn - Metered Service date, expressed in RFC 3339 timestamp format.
- Time
Of stringArrival - Usae computation date, expressed in RFC 3339 timestamp format.
- Time
Updated string - Computed Usage updated time, expressed in RFC 3339 timestamp format.
- Type string
- Usage compute type in SPM.
- Unit
Of stringMeasure - Unit of Messure
- Usage
Number string - SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
- commitment
Service StringId - Subscribed service commitmentId.
- compute
Source String - SPM Internal compute records source .
- computed
Usage StringId - cost String
- Computed Line Amount not rounded
- cost
Rounded String - Computed Line Amount rounded.
- currency
Code String - Currency code
- data
Center String - Data Center Attribute as sent by MQS to SPM.
- id String
- SPM Internal computed usage Id , 32 character string
- is
Invoiced Boolean - Invoicing status for the aggregated compute usage
- mqs
Message StringId - MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
- net
Unit StringPrice - Net Unit Price for the product in consideration, price actual.
- original
Usage StringNumber - SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
- parent
Products List<GetComputed Usages Computed Usage Parent Product> - Product part number for subscribed service line, called parent product.
- parent
Subscribed StringService Id - Subscribed service line parent id
- plan
Number String - Subscription plan number
- products
List<Get
Computed Usages Computed Usage Product> - Product description
- quantity String
- Total Quantity that was used for computation
- rate
Card StringId - Ratecard Id at subscribed service level
- rate
Card 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.
- time
Created String - Computed Usage created time, expressed in RFC 3339 timestamp format.
- time
Metered StringOn - Metered Service date, expressed in RFC 3339 timestamp format.
- time
Of StringArrival - Usae computation date, expressed in RFC 3339 timestamp format.
- time
Updated String - Computed Usage updated time, expressed in RFC 3339 timestamp format.
- type String
- Usage compute type in SPM.
- unit
Of StringMeasure - Unit of Messure
- usage
Number String - SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
- commitment
Service stringId - Subscribed service commitmentId.
- compute
Source string - SPM Internal compute records source .
- computed
Usage stringId - cost string
- Computed Line Amount not rounded
- cost
Rounded string - Computed Line Amount rounded.
- currency
Code string - Currency code
- data
Center string - Data Center Attribute as sent by MQS to SPM.
- id string
- SPM Internal computed usage Id , 32 character string
- is
Invoiced boolean - Invoicing status for the aggregated compute usage
- mqs
Message stringId - MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
- net
Unit stringPrice - Net Unit Price for the product in consideration, price actual.
- original
Usage stringNumber - SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
- parent
Products GetComputed Usages Computed Usage Parent Product[] - Product part number for subscribed service line, called parent product.
- parent
Subscribed stringService Id - Subscribed service line parent id
- plan
Number string - Subscription plan number
- products
Get
Computed Usages Computed Usage Product[] - Product description
- quantity string
- Total Quantity that was used for computation
- rate
Card stringId - Ratecard Id at subscribed service level
- rate
Card 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.
- time
Created string - Computed Usage created time, expressed in RFC 3339 timestamp format.
- time
Metered stringOn - Metered Service date, expressed in RFC 3339 timestamp format.
- time
Of stringArrival - Usae computation date, expressed in RFC 3339 timestamp format.
- time
Updated string - Computed Usage updated time, expressed in RFC 3339 timestamp format.
- type string
- Usage compute type in SPM.
- unit
Of stringMeasure - Unit of Messure
- usage
Number 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[osubusage.Get Computed 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[osubusage.
Get Computed 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.
- commitment
Service StringId - Subscribed service commitmentId.
- compute
Source String - SPM Internal compute records source .
- computed
Usage StringId - cost String
- Computed Line Amount not rounded
- cost
Rounded String - Computed Line Amount rounded.
- currency
Code String - Currency code
- data
Center String - Data Center Attribute as sent by MQS to SPM.
- id String
- SPM Internal computed usage Id , 32 character string
- is
Invoiced Boolean - Invoicing status for the aggregated compute usage
- mqs
Message StringId - MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
- net
Unit StringPrice - Net Unit Price for the product in consideration, price actual.
- original
Usage StringNumber - SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
- parent
Products List<Property Map> - Product part number for subscribed service line, called parent product.
- parent
Subscribed StringService Id - Subscribed service line parent id
- plan
Number String - Subscription plan number
- products List<Property Map>
- Product description
- quantity String
- Total Quantity that was used for computation
- rate
Card StringId - Ratecard Id at subscribed service level
- rate
Card 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.
- time
Created String - Computed Usage created time, expressed in RFC 3339 timestamp format.
- time
Metered StringOn - Metered Service date, expressed in RFC 3339 timestamp format.
- time
Of StringArrival - Usae computation date, expressed in RFC 3339 timestamp format.
- time
Updated String - Computed Usage updated time, expressed in RFC 3339 timestamp format.
- type String
- Usage compute type in SPM.
- unit
Of StringMeasure - Unit of Messure
- usage
Number String - SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
GetComputedUsagesComputedUsageParentProduct
- Billing
Category string - Metered service billing category
- Name string
- Product name
- Part
Number string - Product part number
- Product
Category string - Product category
- Provisioning
Group string - Product provisioning group
- Ucm
Rate stringCard Part Type - Rate card part type of Product
- Unit
Of stringMeasure - Unit of Messure
- Billing
Category string - Metered service billing category
- Name string
- Product name
- Part
Number string - Product part number
- Product
Category string - Product category
- Provisioning
Group string - Product provisioning group
- Ucm
Rate stringCard Part Type - Rate card part type of Product
- Unit
Of stringMeasure - Unit of Messure
- billing
Category String - Metered service billing category
- name String
- Product name
- part
Number String - Product part number
- product
Category String - Product category
- provisioning
Group String - Product provisioning group
- ucm
Rate StringCard Part Type - Rate card part type of Product
- unit
Of StringMeasure - Unit of Messure
- billing
Category string - Metered service billing category
- name string
- Product name
- part
Number string - Product part number
- product
Category string - Product category
- provisioning
Group string - Product provisioning group
- ucm
Rate stringCard Part Type - Rate card part type of Product
- unit
Of 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
- billing
Category String - Metered service billing category
- name String
- Product name
- part
Number String - Product part number
- product
Category String - Product category
- provisioning
Group String - Product provisioning group
- ucm
Rate StringCard Part Type - Rate card part type of Product
- unit
Of StringMeasure - Unit of Messure
GetComputedUsagesComputedUsageProduct
- Billing
Category string - Metered service billing category
- Name string
- Product name
- Part
Number string - Product part number
- Product
Category string - Product category
- Provisioning
Group string - Product provisioning group
- Ucm
Rate stringCard Part Type - Rate card part type of Product
- Unit
Of stringMeasure - Unit of Messure
- Billing
Category string - Metered service billing category
- Name string
- Product name
- Part
Number string - Product part number
- Product
Category string - Product category
- Provisioning
Group string - Product provisioning group
- Ucm
Rate stringCard Part Type - Rate card part type of Product
- Unit
Of stringMeasure - Unit of Messure
- billing
Category String - Metered service billing category
- name String
- Product name
- part
Number String - Product part number
- product
Category String - Product category
- provisioning
Group String - Product provisioning group
- ucm
Rate StringCard Part Type - Rate card part type of Product
- unit
Of StringMeasure - Unit of Messure
- billing
Category string - Metered service billing category
- name string
- Product name
- part
Number string - Product part number
- product
Category string - Product category
- provisioning
Group string - Product provisioning group
- ucm
Rate stringCard Part Type - Rate card part type of Product
- unit
Of 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
- billing
Category String - Metered service billing category
- name String
- Product name
- part
Number String - Product part number
- product
Category String - Product category
- provisioning
Group String - Product provisioning group
- ucm
Rate StringCard Part Type - Rate card part type of Product
- unit
Of StringMeasure - Unit of Messure
GetComputedUsagesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.