Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
This data source provides the list of Chargeback Plans in Oracle Cloud Infrastructure Opsi service.
Gets a list of Ops Insights chargeback plans.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testChargebackPlans = oci.Opsi.getChargebackPlans({
chargebackplanId: testChargebackplan.id,
compartmentId: compartmentId,
compartmentIdInSubtree: chargebackPlanCompartmentIdInSubtree,
});
import pulumi
import pulumi_oci as oci
test_chargeback_plans = oci.Opsi.get_chargeback_plans(chargebackplan_id=test_chargebackplan["id"],
compartment_id=compartment_id,
compartment_id_in_subtree=chargeback_plan_compartment_id_in_subtree)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/opsi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opsi.GetChargebackPlans(ctx, &opsi.GetChargebackPlansArgs{
ChargebackplanId: pulumi.StringRef(testChargebackplan.Id),
CompartmentId: pulumi.StringRef(compartmentId),
CompartmentIdInSubtree: pulumi.BoolRef(chargebackPlanCompartmentIdInSubtree),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testChargebackPlans = Oci.Opsi.GetChargebackPlans.Invoke(new()
{
ChargebackplanId = testChargebackplan.Id,
CompartmentId = compartmentId,
CompartmentIdInSubtree = chargebackPlanCompartmentIdInSubtree,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Opsi.OpsiFunctions;
import com.pulumi.oci.Opsi.inputs.GetChargebackPlansArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testChargebackPlans = OpsiFunctions.getChargebackPlans(GetChargebackPlansArgs.builder()
.chargebackplanId(testChargebackplan.id())
.compartmentId(compartmentId)
.compartmentIdInSubtree(chargebackPlanCompartmentIdInSubtree)
.build());
}
}
variables:
testChargebackPlans:
fn::invoke:
function: oci:Opsi:getChargebackPlans
arguments:
chargebackplanId: ${testChargebackplan.id}
compartmentId: ${compartmentId}
compartmentIdInSubtree: ${chargebackPlanCompartmentIdInSubtree}
Using getChargebackPlans
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 getChargebackPlans(args: GetChargebackPlansArgs, opts?: InvokeOptions): Promise<GetChargebackPlansResult>
function getChargebackPlansOutput(args: GetChargebackPlansOutputArgs, opts?: InvokeOptions): Output<GetChargebackPlansResult>def get_chargeback_plans(chargebackplan_id: Optional[str] = None,
compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
filters: Optional[Sequence[GetChargebackPlansFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetChargebackPlansResult
def get_chargeback_plans_output(chargebackplan_id: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetChargebackPlansFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetChargebackPlansResult]func GetChargebackPlans(ctx *Context, args *GetChargebackPlansArgs, opts ...InvokeOption) (*GetChargebackPlansResult, error)
func GetChargebackPlansOutput(ctx *Context, args *GetChargebackPlansOutputArgs, opts ...InvokeOption) GetChargebackPlansResultOutput> Note: This function is named GetChargebackPlans in the Go SDK.
public static class GetChargebackPlans
{
public static Task<GetChargebackPlansResult> InvokeAsync(GetChargebackPlansArgs args, InvokeOptions? opts = null)
public static Output<GetChargebackPlansResult> Invoke(GetChargebackPlansInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetChargebackPlansResult> getChargebackPlans(GetChargebackPlansArgs args, InvokeOptions options)
public static Output<GetChargebackPlansResult> getChargebackPlans(GetChargebackPlansArgs args, InvokeOptions options)
fn::invoke:
function: oci:Opsi/getChargebackPlans:getChargebackPlans
arguments:
# arguments dictionaryThe following arguments are supported:
- Chargebackplan
Id string - The OCID of the Ops Insights chargeback plan.
- Compartment
Id string - The OCID of the compartment.
- Compartment
Id boolIn Subtree - A flag to search all resources within a given compartment and all sub-compartments.
- Filters
List<Get
Chargeback Plans Filter>
- Chargebackplan
Id string - The OCID of the Ops Insights chargeback plan.
- Compartment
Id string - The OCID of the compartment.
- Compartment
Id boolIn Subtree - A flag to search all resources within a given compartment and all sub-compartments.
- Filters
[]Get
Chargeback Plans Filter
- chargebackplan
Id String - The OCID of the Ops Insights chargeback plan.
- compartment
Id String - The OCID of the compartment.
- compartment
Id BooleanIn Subtree - A flag to search all resources within a given compartment and all sub-compartments.
- filters
List<Get
Chargeback Plans Filter>
- chargebackplan
Id string - The OCID of the Ops Insights chargeback plan.
- compartment
Id string - The OCID of the compartment.
- compartment
Id booleanIn Subtree - A flag to search all resources within a given compartment and all sub-compartments.
- filters
Get
Chargeback Plans Filter[]
- chargebackplan_
id str - The OCID of the Ops Insights chargeback plan.
- compartment_
id str - The OCID of the compartment.
- compartment_
id_ boolin_ subtree - A flag to search all resources within a given compartment and all sub-compartments.
- filters
Sequence[Get
Chargeback Plans Filter]
- chargebackplan
Id String - The OCID of the Ops Insights chargeback plan.
- compartment
Id String - The OCID of the compartment.
- compartment
Id BooleanIn Subtree - A flag to search all resources within a given compartment and all sub-compartments.
- filters List<Property Map>
getChargebackPlans Result
The following output properties are available:
- Chargeback
Plan List<GetCollections Chargeback Plans Chargeback Plan Collection> - The list of chargeback_plan_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Chargebackplan
Id string - Compartment
Id string - The OCID of the compartment.
- Compartment
Id boolIn Subtree - Filters
List<Get
Chargeback Plans Filter>
- Chargeback
Plan []GetCollections Chargeback Plans Chargeback Plan Collection - The list of chargeback_plan_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Chargebackplan
Id string - Compartment
Id string - The OCID of the compartment.
- Compartment
Id boolIn Subtree - Filters
[]Get
Chargeback Plans Filter
- chargeback
Plan List<GetCollections Chargeback Plans Chargeback Plan Collection> - The list of chargeback_plan_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- chargebackplan
Id String - compartment
Id String - The OCID of the compartment.
- compartment
Id BooleanIn Subtree - filters
List<Get
Chargeback Plans Filter>
- chargeback
Plan GetCollections Chargeback Plans Chargeback Plan Collection[] - The list of chargeback_plan_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- chargebackplan
Id string - compartment
Id string - The OCID of the compartment.
- compartment
Id booleanIn Subtree - filters
Get
Chargeback Plans Filter[]
- chargeback_
plan_ Sequence[Getcollections Chargeback Plans Chargeback Plan Collection] - The list of chargeback_plan_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- chargebackplan_
id str - compartment_
id str - The OCID of the compartment.
- compartment_
id_ boolin_ subtree - filters
Sequence[Get
Chargeback Plans Filter]
- chargeback
Plan List<Property Map>Collections - The list of chargeback_plan_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- chargebackplan
Id String - compartment
Id String - The OCID of the compartment.
- compartment
Id BooleanIn Subtree - filters List<Property Map>
Supporting Types
GetChargebackPlansChargebackPlanCollection
GetChargebackPlansChargebackPlanCollectionItem
- Compartment
Id string - The OCID of the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Entity
Source string - Source of the chargeback plan.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- OCID of OPSI Chargeback plan resource.
- Is
Customizable bool - Indicates whether the chargeback plan customization item can be customized.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Plan
Category string - Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
- Plan
Custom List<GetItems Chargeback Plans Chargeback Plan Collection Item Plan Custom Item> - List of chargeback plan customizations.
- Plan
Description string - Description of OPSI Chargeback Plan.
- Plan
Name string - Name for the OPSI Chargeback plan.
- Plan
Type string - Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.
- State string
- Chargeback Plan lifecycle states
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the chargeback plan was created, in the format defined by RFC3339.
- Time
Updated string - The time chargeback plan was updated. An RFC3339 formatted datetime string
- Compartment
Id string - The OCID of the compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Entity
Source string - Source of the chargeback plan.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- OCID of OPSI Chargeback plan resource.
- Is
Customizable bool - Indicates whether the chargeback plan customization item can be customized.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Plan
Category string - Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
- Plan
Custom []GetItems Chargeback Plans Chargeback Plan Collection Item Plan Custom Item - List of chargeback plan customizations.
- Plan
Description string - Description of OPSI Chargeback Plan.
- Plan
Name string - Name for the OPSI Chargeback plan.
- Plan
Type string - Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.
- State string
- Chargeback Plan lifecycle states
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time the chargeback plan was created, in the format defined by RFC3339.
- Time
Updated string - The time chargeback plan was updated. An RFC3339 formatted datetime string
- compartment
Id String - The OCID of the compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - entity
Source String - Source of the chargeback plan.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- OCID of OPSI Chargeback plan resource.
- is
Customizable Boolean - Indicates whether the chargeback plan customization item can be customized.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- plan
Category String - Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
- plan
Custom List<GetItems Chargeback Plans Chargeback Plan Collection Item Plan Custom Item> - List of chargeback plan customizations.
- plan
Description String - Description of OPSI Chargeback Plan.
- plan
Name String - Name for the OPSI Chargeback plan.
- plan
Type String - Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.
- state String
- Chargeback Plan lifecycle states
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the chargeback plan was created, in the format defined by RFC3339.
- time
Updated String - The time chargeback plan was updated. An RFC3339 formatted datetime string
- compartment
Id string - The OCID of the compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - entity
Source string - Source of the chargeback plan.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id string
- OCID of OPSI Chargeback plan resource.
- is
Customizable boolean - Indicates whether the chargeback plan customization item can be customized.
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- plan
Category string - Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
- plan
Custom GetItems Chargeback Plans Chargeback Plan Collection Item Plan Custom Item[] - List of chargeback plan customizations.
- plan
Description string - Description of OPSI Chargeback Plan.
- plan
Name string - Name for the OPSI Chargeback plan.
- plan
Type string - Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.
- state string
- Chargeback Plan lifecycle states
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time the chargeback plan was created, in the format defined by RFC3339.
- time
Updated string - The time chargeback plan was updated. An RFC3339 formatted datetime string
- compartment_
id str - The OCID of the compartment.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - entity_
source str - Source of the chargeback plan.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id str
- OCID of OPSI Chargeback plan resource.
- is_
customizable bool - Indicates whether the chargeback plan customization item can be customized.
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- plan_
category str - Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
- plan_
custom_ Sequence[Getitems Chargeback Plans Chargeback Plan Collection Item Plan Custom Item] - List of chargeback plan customizations.
- plan_
description str - Description of OPSI Chargeback Plan.
- plan_
name str - Name for the OPSI Chargeback plan.
- plan_
type str - Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.
- state str
- Chargeback Plan lifecycle states
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The date and time the chargeback plan was created, in the format defined by RFC3339.
- time_
updated str - The time chargeback plan was updated. An RFC3339 formatted datetime string
- compartment
Id String - The OCID of the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - entity
Source String - Source of the chargeback plan.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- OCID of OPSI Chargeback plan resource.
- is
Customizable Boolean - Indicates whether the chargeback plan customization item can be customized.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- plan
Category String - Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
- plan
Custom List<Property Map>Items - List of chargeback plan customizations.
- plan
Description String - Description of OPSI Chargeback Plan.
- plan
Name String - Name for the OPSI Chargeback plan.
- plan
Type String - Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.
- state String
- Chargeback Plan lifecycle states
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time the chargeback plan was created, in the format defined by RFC3339.
- time
Updated String - The time chargeback plan was updated. An RFC3339 formatted datetime string
GetChargebackPlansChargebackPlanCollectionItemPlanCustomItem
- Is
Customizable bool - Indicates whether the chargeback plan customization item can be customized.
- Name string
- Name of chargeback plan customization item. Example items for Exadata Insights Chargeback are statistic, percentile, infrastructureCost, additionalServerCost etc.
- Value string
- Value of chargeback plan customization item.
- Is
Customizable bool - Indicates whether the chargeback plan customization item can be customized.
- Name string
- Name of chargeback plan customization item. Example items for Exadata Insights Chargeback are statistic, percentile, infrastructureCost, additionalServerCost etc.
- Value string
- Value of chargeback plan customization item.
- is
Customizable Boolean - Indicates whether the chargeback plan customization item can be customized.
- name String
- Name of chargeback plan customization item. Example items for Exadata Insights Chargeback are statistic, percentile, infrastructureCost, additionalServerCost etc.
- value String
- Value of chargeback plan customization item.
- is
Customizable boolean - Indicates whether the chargeback plan customization item can be customized.
- name string
- Name of chargeback plan customization item. Example items for Exadata Insights Chargeback are statistic, percentile, infrastructureCost, additionalServerCost etc.
- value string
- Value of chargeback plan customization item.
- is_
customizable bool - Indicates whether the chargeback plan customization item can be customized.
- name str
- Name of chargeback plan customization item. Example items for Exadata Insights Chargeback are statistic, percentile, infrastructureCost, additionalServerCost etc.
- value str
- Value of chargeback plan customization item.
- is
Customizable Boolean - Indicates whether the chargeback plan customization item can be customized.
- name String
- Name of chargeback plan customization item. Example items for Exadata Insights Chargeback are statistic, percentile, infrastructureCost, additionalServerCost etc.
- value String
- Value of chargeback plan customization item.
GetChargebackPlansFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
