1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OneSubsription
  5. getComputedUsages
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

oci.OneSubsription.getComputedUsages

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

    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[_onesubsription.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[_onesubsription.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OneSubsription/getComputedUsages:getComputedUsages
      arguments:
        # arguments dictionary

    The 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<GetComputedUsagesFilter>
    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 []GetComputedUsagesFilter
    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<GetComputedUsagesFilter>
    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 GetComputedUsagesFilter[]
    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 GetComputedUsagesFilter]
    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<GetComputedUsagesComputedUsage>
    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<GetComputedUsagesFilter>
    ParentProduct string
    Product description
    CompartmentId string
    ComputedUsages []GetComputedUsagesComputedUsage
    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 []GetComputedUsagesFilter
    ParentProduct string
    Product description
    compartmentId String
    computedUsages List<GetComputedUsagesComputedUsage>
    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<GetComputedUsagesFilter>
    parentProduct String
    Product description
    compartmentId string
    computedUsages GetComputedUsagesComputedUsage[]
    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 GetComputedUsagesFilter[]
    parentProduct string
    Product description
    compartment_id str
    computed_usages GetComputedUsagesComputedUsage]
    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 GetComputedUsagesFilter]
    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

    CommitmentServiceId string
    Subscribed service commitmentId.
    ComputeSource string
    SPM Internal compute records source .
    ComputedUsageId string
    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
    MqsMessageId string
    MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
    NetUnitPrice string
    Net Unit Price for the product in consideration, price actual.
    OriginalUsageNumber string
    SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
    ParentProducts List<GetComputedUsagesComputedUsageParentProduct>
    Product part number for subscribed service line, called parent product.
    ParentSubscribedServiceId string
    Subscribed service line parent id
    PlanNumber string
    Subscription plan number
    Products List<GetComputedUsagesComputedUsageProduct>
    Product description
    Quantity string
    Total Quantity that was used for computation
    RateCardId string
    Ratecard Id at subscribed service level
    RateCardTierdId string
    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.
    TimeMeteredOn string
    Metered Service date, expressed in RFC 3339 timestamp format.
    TimeOfArrival string
    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.
    UnitOfMeasure string
    Unit of Messure
    UsageNumber string
    SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
    CommitmentServiceId string
    Subscribed service commitmentId.
    ComputeSource string
    SPM Internal compute records source .
    ComputedUsageId string
    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
    MqsMessageId string
    MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
    NetUnitPrice string
    Net Unit Price for the product in consideration, price actual.
    OriginalUsageNumber string
    SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
    ParentProducts []GetComputedUsagesComputedUsageParentProduct
    Product part number for subscribed service line, called parent product.
    ParentSubscribedServiceId string
    Subscribed service line parent id
    PlanNumber string
    Subscription plan number
    Products []GetComputedUsagesComputedUsageProduct
    Product description
    Quantity string
    Total Quantity that was used for computation
    RateCardId string
    Ratecard Id at subscribed service level
    RateCardTierdId string
    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.
    TimeMeteredOn string
    Metered Service date, expressed in RFC 3339 timestamp format.
    TimeOfArrival string
    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.
    UnitOfMeasure string
    Unit of Messure
    UsageNumber string
    SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
    commitmentServiceId String
    Subscribed service commitmentId.
    computeSource String
    SPM Internal compute records source .
    computedUsageId String
    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
    mqsMessageId String
    MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
    netUnitPrice String
    Net Unit Price for the product in consideration, price actual.
    originalUsageNumber String
    SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
    parentProducts List<GetComputedUsagesComputedUsageParentProduct>
    Product part number for subscribed service line, called parent product.
    parentSubscribedServiceId String
    Subscribed service line parent id
    planNumber String
    Subscription plan number
    products List<GetComputedUsagesComputedUsageProduct>
    Product description
    quantity String
    Total Quantity that was used for computation
    rateCardId String
    Ratecard Id at subscribed service level
    rateCardTierdId String
    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.
    timeMeteredOn String
    Metered Service date, expressed in RFC 3339 timestamp format.
    timeOfArrival String
    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.
    unitOfMeasure String
    Unit of Messure
    usageNumber String
    SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
    commitmentServiceId string
    Subscribed service commitmentId.
    computeSource string
    SPM Internal compute records source .
    computedUsageId string
    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
    mqsMessageId string
    MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
    netUnitPrice string
    Net Unit Price for the product in consideration, price actual.
    originalUsageNumber string
    SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
    parentProducts GetComputedUsagesComputedUsageParentProduct[]
    Product part number for subscribed service line, called parent product.
    parentSubscribedServiceId string
    Subscribed service line parent id
    planNumber string
    Subscription plan number
    products GetComputedUsagesComputedUsageProduct[]
    Product description
    quantity string
    Total Quantity that was used for computation
    rateCardId string
    Ratecard Id at subscribed service level
    rateCardTierdId string
    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.
    timeMeteredOn string
    Metered Service date, expressed in RFC 3339 timestamp format.
    timeOfArrival string
    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.
    unitOfMeasure string
    Unit of Messure
    usageNumber string
    SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
    commitment_service_id str
    Subscribed service commitmentId.
    compute_source str
    SPM Internal compute records source .
    computed_usage_id str
    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_id str
    MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
    net_unit_price str
    Net Unit Price for the product in consideration, price actual.
    original_usage_number str
    SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.
    parent_products GetComputedUsagesComputedUsageParentProduct]
    Product part number for subscribed service line, called parent product.
    parent_subscribed_service_id str
    Subscribed service line parent id
    plan_number str
    Subscription plan number
    products GetComputedUsagesComputedUsageProduct]
    Product description
    quantity str
    Total Quantity that was used for computation
    rate_card_id str
    Ratecard Id at subscribed service level
    rate_card_tierd_id str
    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_on str
    Metered Service date, expressed in RFC 3339 timestamp format.
    time_of_arrival str
    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_measure str
    Unit of Messure
    usage_number str
    SPM Internal usage Line number identifier in SPM coming from Metered Services entity.
    commitmentServiceId String
    Subscribed service commitmentId.
    computeSource String
    SPM Internal compute records source .
    computedUsageId String
    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
    mqsMessageId String
    MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.
    netUnitPrice String
    Net Unit Price for the product in consideration, price actual.
    originalUsageNumber String
    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.
    parentSubscribedServiceId String
    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
    rateCardId String
    Ratecard Id at subscribed service level
    rateCardTierdId String
    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.
    timeMeteredOn String
    Metered Service date, expressed in RFC 3339 timestamp format.
    timeOfArrival String
    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.
    unitOfMeasure String
    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
    UcmRateCardPartType string
    Rate card part type of Product
    UnitOfMeasure string
    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
    UcmRateCardPartType string
    Rate card part type of Product
    UnitOfMeasure string
    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
    ucmRateCardPartType String
    Rate card part type of Product
    unitOfMeasure String
    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
    ucmRateCardPartType string
    Rate card part type of Product
    unitOfMeasure string
    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_card_part_type str
    Rate card part type of Product
    unit_of_measure str
    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
    ucmRateCardPartType String
    Rate card part type of Product
    unitOfMeasure String
    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
    UcmRateCardPartType string
    Rate card part type of Product
    UnitOfMeasure string
    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
    UcmRateCardPartType string
    Rate card part type of Product
    UnitOfMeasure string
    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
    ucmRateCardPartType String
    Rate card part type of Product
    unitOfMeasure String
    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
    ucmRateCardPartType string
    Rate card part type of Product
    unitOfMeasure string
    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_card_part_type str
    Rate card part type of Product
    unit_of_measure str
    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
    ucmRateCardPartType String
    Rate card part type of Product
    unitOfMeasure String
    Unit of Messure

    GetComputedUsagesFilter

    Name string
    Product name
    Values List<string>
    Regex bool
    Name string
    Product name
    Values []string
    Regex bool
    name String
    Product name
    values List<String>
    regex Boolean
    name string
    Product name
    values string[]
    regex boolean
    name str
    Product name
    values Sequence[str]
    regex bool
    name String
    Product name
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi