1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Opsi
  5. ChargebackPlan
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi

    This resource provides the Chargeback Plan resource in Oracle Cloud Infrastructure Opsi service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/operations-insights/latest/ChargebackPlan

    Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/osi

    Create a chargeback plan resource for the resource in Ops Insights.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testChargebackPlan = new oci.opsi.ChargebackPlan("test_chargeback_plan", {
        compartmentId: compartmentId,
        entitySource: chargebackPlanEntitySource,
        planName: chargebackPlanPlanName,
        planType: chargebackPlanPlanType,
        planDescription: chargebackPlanPlanDescription,
        planCustomItems: [{
            name: chargebackPlanPlanCustomItemsName,
            value: chargebackPlanPlanCustomItemsValue,
            isCustomizable: chargebackPlanPlanCustomItemsIsCustomizable,
        }],
        definedTags: {
            "foo-namespace.bar-key": "value",
        },
        freeformTags: {
            "bar-key": "value",
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_chargeback_plan = oci.opsi.ChargebackPlan("test_chargeback_plan",
        compartment_id=compartment_id,
        entity_source=chargeback_plan_entity_source,
        plan_name=chargeback_plan_plan_name,
        plan_type=chargeback_plan_plan_type,
        plan_description=chargeback_plan_plan_description,
        plan_custom_items=[{
            "name": chargeback_plan_plan_custom_items_name,
            "value": chargeback_plan_plan_custom_items_value,
            "is_customizable": chargeback_plan_plan_custom_items_is_customizable,
        }],
        defined_tags={
            "foo-namespace.bar-key": "value",
        },
        freeform_tags={
            "bar-key": "value",
        })
    
    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.NewChargebackPlan(ctx, "test_chargeback_plan", &opsi.ChargebackPlanArgs{
    			CompartmentId:   pulumi.Any(compartmentId),
    			EntitySource:    pulumi.Any(chargebackPlanEntitySource),
    			PlanName:        pulumi.Any(chargebackPlanPlanName),
    			PlanType:        pulumi.Any(chargebackPlanPlanType),
    			PlanDescription: pulumi.Any(chargebackPlanPlanDescription),
    			PlanCustomItems: opsi.ChargebackPlanPlanCustomItemArray{
    				&opsi.ChargebackPlanPlanCustomItemArgs{
    					Name:           pulumi.Any(chargebackPlanPlanCustomItemsName),
    					Value:          pulumi.Any(chargebackPlanPlanCustomItemsValue),
    					IsCustomizable: pulumi.Any(chargebackPlanPlanCustomItemsIsCustomizable),
    				},
    			},
    			DefinedTags: pulumi.StringMap{
    				"foo-namespace.bar-key": pulumi.String("value"),
    			},
    			FreeformTags: pulumi.StringMap{
    				"bar-key": pulumi.String("value"),
    			},
    		})
    		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 = new Oci.Opsi.ChargebackPlan("test_chargeback_plan", new()
        {
            CompartmentId = compartmentId,
            EntitySource = chargebackPlanEntitySource,
            PlanName = chargebackPlanPlanName,
            PlanType = chargebackPlanPlanType,
            PlanDescription = chargebackPlanPlanDescription,
            PlanCustomItems = new[]
            {
                new Oci.Opsi.Inputs.ChargebackPlanPlanCustomItemArgs
                {
                    Name = chargebackPlanPlanCustomItemsName,
                    Value = chargebackPlanPlanCustomItemsValue,
                    IsCustomizable = chargebackPlanPlanCustomItemsIsCustomizable,
                },
            },
            DefinedTags = 
            {
                { "foo-namespace.bar-key", "value" },
            },
            FreeformTags = 
            {
                { "bar-key", "value" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Opsi.ChargebackPlan;
    import com.pulumi.oci.Opsi.ChargebackPlanArgs;
    import com.pulumi.oci.Opsi.inputs.ChargebackPlanPlanCustomItemArgs;
    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) {
            var testChargebackPlan = new ChargebackPlan("testChargebackPlan", ChargebackPlanArgs.builder()
                .compartmentId(compartmentId)
                .entitySource(chargebackPlanEntitySource)
                .planName(chargebackPlanPlanName)
                .planType(chargebackPlanPlanType)
                .planDescription(chargebackPlanPlanDescription)
                .planCustomItems(ChargebackPlanPlanCustomItemArgs.builder()
                    .name(chargebackPlanPlanCustomItemsName)
                    .value(chargebackPlanPlanCustomItemsValue)
                    .isCustomizable(chargebackPlanPlanCustomItemsIsCustomizable)
                    .build())
                .definedTags(Map.of("foo-namespace.bar-key", "value"))
                .freeformTags(Map.of("bar-key", "value"))
                .build());
    
        }
    }
    
    resources:
      testChargebackPlan:
        type: oci:Opsi:ChargebackPlan
        name: test_chargeback_plan
        properties:
          compartmentId: ${compartmentId}
          entitySource: ${chargebackPlanEntitySource}
          planName: ${chargebackPlanPlanName}
          planType: ${chargebackPlanPlanType}
          planDescription: ${chargebackPlanPlanDescription}
          planCustomItems:
            - name: ${chargebackPlanPlanCustomItemsName}
              value: ${chargebackPlanPlanCustomItemsValue}
              isCustomizable: ${chargebackPlanPlanCustomItemsIsCustomizable}
          definedTags:
            foo-namespace.bar-key: value
          freeformTags:
            bar-key: value
    

    Create ChargebackPlan Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ChargebackPlan(name: string, args: ChargebackPlanArgs, opts?: CustomResourceOptions);
    @overload
    def ChargebackPlan(resource_name: str,
                       args: ChargebackPlanArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ChargebackPlan(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       compartment_id: Optional[str] = None,
                       entity_source: Optional[str] = None,
                       plan_custom_items: Optional[Sequence[ChargebackPlanPlanCustomItemArgs]] = None,
                       plan_description: Optional[str] = None,
                       plan_name: Optional[str] = None,
                       plan_type: Optional[str] = None,
                       defined_tags: Optional[Mapping[str, str]] = None,
                       freeform_tags: Optional[Mapping[str, str]] = None)
    func NewChargebackPlan(ctx *Context, name string, args ChargebackPlanArgs, opts ...ResourceOption) (*ChargebackPlan, error)
    public ChargebackPlan(string name, ChargebackPlanArgs args, CustomResourceOptions? opts = null)
    public ChargebackPlan(String name, ChargebackPlanArgs args)
    public ChargebackPlan(String name, ChargebackPlanArgs args, CustomResourceOptions options)
    
    type: oci:Opsi:ChargebackPlan
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ChargebackPlanArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ChargebackPlanArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ChargebackPlanArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ChargebackPlanArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ChargebackPlanArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var chargebackPlanResource = new Oci.Opsi.ChargebackPlan("chargebackPlanResource", new()
    {
        CompartmentId = "string",
        EntitySource = "string",
        PlanCustomItems = new[]
        {
            new Oci.Opsi.Inputs.ChargebackPlanPlanCustomItemArgs
            {
                Name = "string",
                Value = "string",
                IsCustomizable = false,
            },
        },
        PlanDescription = "string",
        PlanName = "string",
        PlanType = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        FreeformTags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := opsi.NewChargebackPlan(ctx, "chargebackPlanResource", &opsi.ChargebackPlanArgs{
    	CompartmentId: pulumi.String("string"),
    	EntitySource:  pulumi.String("string"),
    	PlanCustomItems: opsi.ChargebackPlanPlanCustomItemArray{
    		&opsi.ChargebackPlanPlanCustomItemArgs{
    			Name:           pulumi.String("string"),
    			Value:          pulumi.String("string"),
    			IsCustomizable: pulumi.Bool(false),
    		},
    	},
    	PlanDescription: pulumi.String("string"),
    	PlanName:        pulumi.String("string"),
    	PlanType:        pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var chargebackPlanResource = new ChargebackPlan("chargebackPlanResource", ChargebackPlanArgs.builder()
        .compartmentId("string")
        .entitySource("string")
        .planCustomItems(ChargebackPlanPlanCustomItemArgs.builder()
            .name("string")
            .value("string")
            .isCustomizable(false)
            .build())
        .planDescription("string")
        .planName("string")
        .planType("string")
        .definedTags(Map.of("string", "string"))
        .freeformTags(Map.of("string", "string"))
        .build());
    
    chargeback_plan_resource = oci.opsi.ChargebackPlan("chargebackPlanResource",
        compartment_id="string",
        entity_source="string",
        plan_custom_items=[{
            "name": "string",
            "value": "string",
            "is_customizable": False,
        }],
        plan_description="string",
        plan_name="string",
        plan_type="string",
        defined_tags={
            "string": "string",
        },
        freeform_tags={
            "string": "string",
        })
    
    const chargebackPlanResource = new oci.opsi.ChargebackPlan("chargebackPlanResource", {
        compartmentId: "string",
        entitySource: "string",
        planCustomItems: [{
            name: "string",
            value: "string",
            isCustomizable: false,
        }],
        planDescription: "string",
        planName: "string",
        planType: "string",
        definedTags: {
            string: "string",
        },
        freeformTags: {
            string: "string",
        },
    });
    
    type: oci:Opsi:ChargebackPlan
    properties:
        compartmentId: string
        definedTags:
            string: string
        entitySource: string
        freeformTags:
            string: string
        planCustomItems:
            - isCustomizable: false
              name: string
              value: string
        planDescription: string
        planName: string
        planType: string
    

    ChargebackPlan Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ChargebackPlan resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment.
    EntitySource string
    Source of the chargeback plan.
    PlanCustomItems List<ChargebackPlanPlanCustomItem>
    (Updatable) List of chargeback plan customizations. At least one item is required.
    PlanDescription string
    (Updatable) Description of OPSI Chargeback Plan.
    PlanName string
    (Updatable) Name for the OPSI Chargeback plan.
    PlanType string

    Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags Dictionary<string, string>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    CompartmentId string
    (Updatable) The OCID of the compartment.
    EntitySource string
    Source of the chargeback plan.
    PlanCustomItems []ChargebackPlanPlanCustomItemArgs
    (Updatable) List of chargeback plan customizations. At least one item is required.
    PlanDescription string
    (Updatable) Description of OPSI Chargeback Plan.
    PlanName string
    (Updatable) Name for the OPSI Chargeback plan.
    PlanType string

    Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    FreeformTags map[string]string
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    compartmentId String
    (Updatable) The OCID of the compartment.
    entitySource String
    Source of the chargeback plan.
    planCustomItems List<ChargebackPlanPlanCustomItem>
    (Updatable) List of chargeback plan customizations. At least one item is required.
    planDescription String
    (Updatable) Description of OPSI Chargeback Plan.
    planName String
    (Updatable) Name for the OPSI Chargeback plan.
    planType String

    Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags Map<String,String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    compartmentId string
    (Updatable) The OCID of the compartment.
    entitySource string
    Source of the chargeback plan.
    planCustomItems ChargebackPlanPlanCustomItem[]
    (Updatable) List of chargeback plan customizations. At least one item is required.
    planDescription string
    (Updatable) Description of OPSI Chargeback Plan.
    planName string
    (Updatable) Name for the OPSI Chargeback plan.
    planType string

    Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags {[key: string]: string}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    compartment_id str
    (Updatable) The OCID of the compartment.
    entity_source str
    Source of the chargeback plan.
    plan_custom_items Sequence[ChargebackPlanPlanCustomItemArgs]
    (Updatable) List of chargeback plan customizations. At least one item is required.
    plan_description str
    (Updatable) Description of OPSI Chargeback Plan.
    plan_name str
    (Updatable) 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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeform_tags Mapping[str, str]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    compartmentId String
    (Updatable) The OCID of the compartment.
    entitySource String
    Source of the chargeback plan.
    planCustomItems List<Property Map>
    (Updatable) List of chargeback plan customizations. At least one item is required.
    planDescription String
    (Updatable) Description of OPSI Chargeback Plan.
    planName String
    (Updatable) Name for the OPSI Chargeback plan.
    planType String

    Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    freeformTags Map<String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ChargebackPlan resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    IsCustomizable bool
    Indicates whether the chargeback plan customization item can be customized.
    LifecycleDetails 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.
    PlanCategory string
    Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
    State string
    Chargeback Plan lifecycle states
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the chargeback plan was created, in the format defined by RFC3339.
    TimeUpdated string
    The time chargeback plan was updated. An RFC3339 formatted datetime string
    Id string
    The provider-assigned unique ID for this managed resource.
    IsCustomizable bool
    Indicates whether the chargeback plan customization item can be customized.
    LifecycleDetails 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.
    PlanCategory string
    Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
    State string
    Chargeback Plan lifecycle states
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the chargeback plan was created, in the format defined by RFC3339.
    TimeUpdated string
    The time chargeback plan was updated. An RFC3339 formatted datetime string
    id String
    The provider-assigned unique ID for this managed resource.
    isCustomizable Boolean
    Indicates whether the chargeback plan customization item can be customized.
    lifecycleDetails 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.
    planCategory String
    Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
    state String
    Chargeback Plan lifecycle states
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the chargeback plan was created, in the format defined by RFC3339.
    timeUpdated String
    The time chargeback plan was updated. An RFC3339 formatted datetime string
    id string
    The provider-assigned unique ID for this managed resource.
    isCustomizable boolean
    Indicates whether the chargeback plan customization item can be customized.
    lifecycleDetails 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.
    planCategory string
    Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
    state string
    Chargeback Plan lifecycle states
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the chargeback plan was created, in the format defined by RFC3339.
    timeUpdated string
    The time chargeback plan was updated. An RFC3339 formatted datetime string
    id str
    The provider-assigned unique ID for this managed 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.
    state str
    Chargeback Plan lifecycle states
    system_tags 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
    id String
    The provider-assigned unique ID for this managed resource.
    isCustomizable Boolean
    Indicates whether the chargeback plan customization item can be customized.
    lifecycleDetails 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.
    planCategory String
    Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
    state String
    Chargeback Plan lifecycle states
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the chargeback plan was created, in the format defined by RFC3339.
    timeUpdated String
    The time chargeback plan was updated. An RFC3339 formatted datetime string

    Look up Existing ChargebackPlan Resource

    Get an existing ChargebackPlan resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ChargebackPlanState, opts?: CustomResourceOptions): ChargebackPlan
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            entity_source: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            is_customizable: Optional[bool] = None,
            lifecycle_details: Optional[str] = None,
            plan_category: Optional[str] = None,
            plan_custom_items: Optional[Sequence[ChargebackPlanPlanCustomItemArgs]] = None,
            plan_description: Optional[str] = None,
            plan_name: Optional[str] = None,
            plan_type: Optional[str] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> ChargebackPlan
    func GetChargebackPlan(ctx *Context, name string, id IDInput, state *ChargebackPlanState, opts ...ResourceOption) (*ChargebackPlan, error)
    public static ChargebackPlan Get(string name, Input<string> id, ChargebackPlanState? state, CustomResourceOptions? opts = null)
    public static ChargebackPlan get(String name, Output<String> id, ChargebackPlanState state, CustomResourceOptions options)
    resources:  _:    type: oci:Opsi:ChargebackPlan    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CompartmentId string
    (Updatable) The OCID of the compartment.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    EntitySource string
    Source of the chargeback plan.
    FreeformTags Dictionary<string, string>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    IsCustomizable bool
    Indicates whether the chargeback plan customization item can be customized.
    LifecycleDetails 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.
    PlanCategory string
    Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
    PlanCustomItems List<ChargebackPlanPlanCustomItem>
    (Updatable) List of chargeback plan customizations. At least one item is required.
    PlanDescription string
    (Updatable) Description of OPSI Chargeback Plan.
    PlanName string
    (Updatable) Name for the OPSI Chargeback plan.
    PlanType string

    Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    State string
    Chargeback Plan lifecycle states
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the chargeback plan was created, in the format defined by RFC3339.
    TimeUpdated string
    The time chargeback plan was updated. An RFC3339 formatted datetime string
    CompartmentId string
    (Updatable) The OCID of the compartment.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    EntitySource string
    Source of the chargeback plan.
    FreeformTags map[string]string
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    IsCustomizable bool
    Indicates whether the chargeback plan customization item can be customized.
    LifecycleDetails 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.
    PlanCategory string
    Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
    PlanCustomItems []ChargebackPlanPlanCustomItemArgs
    (Updatable) List of chargeback plan customizations. At least one item is required.
    PlanDescription string
    (Updatable) Description of OPSI Chargeback Plan.
    PlanName string
    (Updatable) Name for the OPSI Chargeback plan.
    PlanType string

    Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    State string
    Chargeback Plan lifecycle states
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the chargeback plan was created, in the format defined by RFC3339.
    TimeUpdated string
    The time chargeback plan was updated. An RFC3339 formatted datetime string
    compartmentId String
    (Updatable) The OCID of the compartment.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    entitySource String
    Source of the chargeback plan.
    freeformTags Map<String,String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    isCustomizable Boolean
    Indicates whether the chargeback plan customization item can be customized.
    lifecycleDetails 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.
    planCategory String
    Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
    planCustomItems List<ChargebackPlanPlanCustomItem>
    (Updatable) List of chargeback plan customizations. At least one item is required.
    planDescription String
    (Updatable) Description of OPSI Chargeback Plan.
    planName String
    (Updatable) Name for the OPSI Chargeback plan.
    planType String

    Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state String
    Chargeback Plan lifecycle states
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the chargeback plan was created, in the format defined by RFC3339.
    timeUpdated String
    The time chargeback plan was updated. An RFC3339 formatted datetime string
    compartmentId string
    (Updatable) The OCID of the compartment.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    entitySource string
    Source of the chargeback plan.
    freeformTags {[key: string]: string}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    isCustomizable boolean
    Indicates whether the chargeback plan customization item can be customized.
    lifecycleDetails 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.
    planCategory string
    Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
    planCustomItems ChargebackPlanPlanCustomItem[]
    (Updatable) List of chargeback plan customizations. At least one item is required.
    planDescription string
    (Updatable) Description of OPSI Chargeback Plan.
    planName string
    (Updatable) Name for the OPSI Chargeback plan.
    planType string

    Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state string
    Chargeback Plan lifecycle states
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the chargeback plan was created, in the format defined by RFC3339.
    timeUpdated string
    The time chargeback plan was updated. An RFC3339 formatted datetime string
    compartment_id str
    (Updatable) The OCID of the compartment.
    defined_tags Mapping[str, str]
    (Updatable) 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.
    freeform_tags Mapping[str, str]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    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_items Sequence[ChargebackPlanPlanCustomItemArgs]
    (Updatable) List of chargeback plan customizations. At least one item is required.
    plan_description str
    (Updatable) Description of OPSI Chargeback Plan.
    plan_name str
    (Updatable) 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.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state str
    Chargeback Plan lifecycle states
    system_tags 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
    compartmentId String
    (Updatable) The OCID of the compartment.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    entitySource String
    Source of the chargeback plan.
    freeformTags Map<String>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    isCustomizable Boolean
    Indicates whether the chargeback plan customization item can be customized.
    lifecycleDetails 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.
    planCategory String
    Chargeback Plan category of the chargeback entity. It can be OOB, or CUSTOM.
    planCustomItems List<Property Map>
    (Updatable) List of chargeback plan customizations. At least one item is required.
    planDescription String
    (Updatable) Description of OPSI Chargeback Plan.
    planName String
    (Updatable) Name for the OPSI Chargeback plan.
    planType String

    Chargeback Plan type of the chargeback entity. For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state String
    Chargeback Plan lifecycle states
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the chargeback plan was created, in the format defined by RFC3339.
    timeUpdated String
    The time chargeback plan was updated. An RFC3339 formatted datetime string

    Supporting Types

    ChargebackPlanPlanCustomItem, ChargebackPlanPlanCustomItemArgs

    Name string
    (Updatable) Name of chargeback plan customization item. Example items for Exadata Insights Chargeback are statistic, percentile, infrastructureCost, additionalServerCost etc.
    Value string
    (Updatable) Value of chargeback plan customization item.
    IsCustomizable bool
    (Updatable) Indicates whether the chargeback plan customization item can be customized.
    Name string
    (Updatable) Name of chargeback plan customization item. Example items for Exadata Insights Chargeback are statistic, percentile, infrastructureCost, additionalServerCost etc.
    Value string
    (Updatable) Value of chargeback plan customization item.
    IsCustomizable bool
    (Updatable) Indicates whether the chargeback plan customization item can be customized.
    name String
    (Updatable) Name of chargeback plan customization item. Example items for Exadata Insights Chargeback are statistic, percentile, infrastructureCost, additionalServerCost etc.
    value String
    (Updatable) Value of chargeback plan customization item.
    isCustomizable Boolean
    (Updatable) Indicates whether the chargeback plan customization item can be customized.
    name string
    (Updatable) Name of chargeback plan customization item. Example items for Exadata Insights Chargeback are statistic, percentile, infrastructureCost, additionalServerCost etc.
    value string
    (Updatable) Value of chargeback plan customization item.
    isCustomizable boolean
    (Updatable) Indicates whether the chargeback plan customization item can be customized.
    name str
    (Updatable) Name of chargeback plan customization item. Example items for Exadata Insights Chargeback are statistic, percentile, infrastructureCost, additionalServerCost etc.
    value str
    (Updatable) Value of chargeback plan customization item.
    is_customizable bool
    (Updatable) Indicates whether the chargeback plan customization item can be customized.
    name String
    (Updatable) Name of chargeback plan customization item. Example items for Exadata Insights Chargeback are statistic, percentile, infrastructureCost, additionalServerCost etc.
    value String
    (Updatable) Value of chargeback plan customization item.
    isCustomizable Boolean
    (Updatable) Indicates whether the chargeback plan customization item can be customized.

    Import

    ChargebackPlans can be imported using the id, e.g.

    $ pulumi import oci:Opsi/chargebackPlan:ChargebackPlan test_chargeback_plan "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.2.0
    published on Friday, Mar 6, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.