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 details about a specific Chargeback Plan resource in Oracle Cloud Infrastructure Opsi service.
Gets the details of the specified chargeback plan.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testChargebackPlan = oci.Opsi.getChargebackPlan({
chargebackplanId: testChargebackplan.id,
});
import pulumi
import pulumi_oci as oci
test_chargeback_plan = oci.Opsi.get_chargeback_plan(chargebackplan_id=test_chargebackplan["id"])
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.GetChargebackPlan(ctx, &opsi.GetChargebackPlanArgs{
ChargebackplanId: testChargebackplan.Id,
}, 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 testChargebackPlan = Oci.Opsi.GetChargebackPlan.Invoke(new()
{
ChargebackplanId = testChargebackplan.Id,
});
});
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.GetChargebackPlanArgs;
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 testChargebackPlan = OpsiFunctions.getChargebackPlan(GetChargebackPlanArgs.builder()
.chargebackplanId(testChargebackplan.id())
.build());
}
}
variables:
testChargebackPlan:
fn::invoke:
function: oci:Opsi:getChargebackPlan
arguments:
chargebackplanId: ${testChargebackplan.id}
Using getChargebackPlan
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 getChargebackPlan(args: GetChargebackPlanArgs, opts?: InvokeOptions): Promise<GetChargebackPlanResult>
function getChargebackPlanOutput(args: GetChargebackPlanOutputArgs, opts?: InvokeOptions): Output<GetChargebackPlanResult>def get_chargeback_plan(chargebackplan_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetChargebackPlanResult
def get_chargeback_plan_output(chargebackplan_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetChargebackPlanResult]func LookupChargebackPlan(ctx *Context, args *LookupChargebackPlanArgs, opts ...InvokeOption) (*LookupChargebackPlanResult, error)
func LookupChargebackPlanOutput(ctx *Context, args *LookupChargebackPlanOutputArgs, opts ...InvokeOption) LookupChargebackPlanResultOutput> Note: This function is named LookupChargebackPlan in the Go SDK.
public static class GetChargebackPlan
{
public static Task<GetChargebackPlanResult> InvokeAsync(GetChargebackPlanArgs args, InvokeOptions? opts = null)
public static Output<GetChargebackPlanResult> Invoke(GetChargebackPlanInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetChargebackPlanResult> getChargebackPlan(GetChargebackPlanArgs args, InvokeOptions options)
public static Output<GetChargebackPlanResult> getChargebackPlan(GetChargebackPlanArgs args, InvokeOptions options)
fn::invoke:
function: oci:Opsi/getChargebackPlan:getChargebackPlan
arguments:
# arguments dictionaryThe following arguments are supported:
- Chargebackplan
Id string - The OCID of the Ops Insights chargeback plan.
- Chargebackplan
Id string - The OCID of the Ops Insights chargeback plan.
- chargebackplan
Id String - The OCID of the Ops Insights chargeback plan.
- chargebackplan
Id string - The OCID of the Ops Insights chargeback plan.
- chargebackplan_
id str - The OCID of the Ops Insights chargeback plan.
- chargebackplan
Id String - The OCID of the Ops Insights chargeback plan.
getChargebackPlan Result
The following output properties are available:
- Chargebackplan
Id string - 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 Plan 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
- Chargebackplan
Id 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 Plan 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
- chargebackplan
Id 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 Plan 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
- chargebackplan
Id 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 Plan 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
- chargebackplan_
id str - 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 Plan 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
- chargebackplan
Id 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
Supporting Types
GetChargebackPlanPlanCustomItem
- 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.
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
