1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. oci
  6. SelfSubscription
Viewing docs for Oracle Cloud Infrastructure v4.15.0
published on Thursday, Jun 11, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.15.0
published on Thursday, Jun 11, 2026 by Pulumi

    This resource provides the Subscription resource in Oracle Cloud Infrastructure Self service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/

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

    Creates a Subscription.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSubscription = new oci.oci.SelfSubscription("test_subscription", {
        compartmentId: compartmentId,
        productId: testProduct.id,
        sellerId: testSeller.id,
        subscriptionDetails: {
            billingDetails: {
                meters: [{
                    name: subscriptionSubscriptionDetailsBillingDetailsMetersName,
                    rateAllocation: subscriptionSubscriptionDetailsBillingDetailsMetersRateAllocation,
                    extendedMetadatas: [{
                        key: subscriptionSubscriptionDetailsBillingDetailsMetersExtendedMetadataKey,
                        value: subscriptionSubscriptionDetailsBillingDetailsMetersExtendedMetadataValue,
                    }],
                }],
                metricType: subscriptionSubscriptionDetailsBillingDetailsMetricType,
                rateAllocation: subscriptionSubscriptionDetailsBillingDetailsRateAllocation,
                sku: subscriptionSubscriptionDetailsBillingDetailsSku,
                hasGovSku: subscriptionSubscriptionDetailsBillingDetailsHasGovSku === "true",
            },
            partnerRegistrationUrl: subscriptionSubscriptionDetailsPartnerRegistrationUrl,
            pricingPlan: {
                billingFrequency: subscriptionSubscriptionDetailsPricingPlanBillingFrequency,
                planName: subscriptionSubscriptionDetailsPricingPlanPlanName,
                planType: subscriptionSubscriptionDetailsPricingPlanPlanType,
                rates: [{
                    currency: subscriptionSubscriptionDetailsPricingPlanRatesCurrency,
                    rate: subscriptionSubscriptionDetailsPricingPlanRatesRate,
                }],
                planDescription: subscriptionSubscriptionDetailsPricingPlanPlanDescription,
                planDuration: subscriptionSubscriptionDetailsPricingPlanPlanDuration,
            },
            amount: subscriptionSubscriptionDetailsAmount,
            currency: subscriptionSubscriptionDetailsCurrency,
            isAutoRenew: subscriptionSubscriptionDetailsIsAutoRenew === "true",
        },
        tenantId: testTenant.id,
        additionalDetails: [{
            key: subscriptionAdditionalDetailsKey,
            value: subscriptionAdditionalDetailsValue,
        }],
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: subscriptionDisplayName,
        freeformTags: {
            Department: "Finance",
        },
        realm: subscriptionRealm,
        region: subscriptionRegion,
        sourceType: subscriptionSourceType,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_subscription = oci.oci.SelfSubscription("test_subscription",
        compartment_id=compartment_id,
        product_id=test_product["id"],
        seller_id=test_seller["id"],
        subscription_details={
            "billing_details": {
                "meters": [{
                    "name": subscription_subscription_details_billing_details_meters_name,
                    "rate_allocation": subscription_subscription_details_billing_details_meters_rate_allocation,
                    "extended_metadatas": [{
                        "key": subscription_subscription_details_billing_details_meters_extended_metadata_key,
                        "value": subscription_subscription_details_billing_details_meters_extended_metadata_value,
                    }],
                }],
                "metric_type": subscription_subscription_details_billing_details_metric_type,
                "rate_allocation": subscription_subscription_details_billing_details_rate_allocation,
                "sku": subscription_subscription_details_billing_details_sku,
                "has_gov_sku": subscription_subscription_details_billing_details_has_gov_sku == "true",
            },
            "partner_registration_url": subscription_subscription_details_partner_registration_url,
            "pricing_plan": {
                "billing_frequency": subscription_subscription_details_pricing_plan_billing_frequency,
                "plan_name": subscription_subscription_details_pricing_plan_plan_name,
                "plan_type": subscription_subscription_details_pricing_plan_plan_type,
                "rates": [{
                    "currency": subscription_subscription_details_pricing_plan_rates_currency,
                    "rate": subscription_subscription_details_pricing_plan_rates_rate,
                }],
                "plan_description": subscription_subscription_details_pricing_plan_plan_description,
                "plan_duration": subscription_subscription_details_pricing_plan_plan_duration,
            },
            "amount": subscription_subscription_details_amount,
            "currency": subscription_subscription_details_currency,
            "is_auto_renew": subscription_subscription_details_is_auto_renew == "true",
        },
        tenant_id=test_tenant["id"],
        additional_details=[{
            "key": subscription_additional_details_key,
            "value": subscription_additional_details_value,
        }],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=subscription_display_name,
        freeform_tags={
            "Department": "Finance",
        },
        realm=subscription_realm,
        region=subscription_region,
        source_type=subscription_source_type)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.NewSelfSubscription(ctx, "test_subscription", &oci.SelfSubscriptionArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			ProductId:     pulumi.Any(testProduct.Id),
    			SellerId:      pulumi.Any(testSeller.Id),
    			SubscriptionDetails: &oci.SelfSubscriptionSubscriptionDetailsArgs{
    				BillingDetails: &oci.SelfSubscriptionSubscriptionDetailsBillingDetailsArgs{
    					Meters: oci.SelfSubscriptionSubscriptionDetailsBillingDetailsMeterArray{
    						&oci.SelfSubscriptionSubscriptionDetailsBillingDetailsMeterArgs{
    							Name:           pulumi.Any(subscriptionSubscriptionDetailsBillingDetailsMetersName),
    							RateAllocation: pulumi.Any(subscriptionSubscriptionDetailsBillingDetailsMetersRateAllocation),
    							ExtendedMetadatas: oci.SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadataArray{
    								&oci.SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadataArgs{
    									Key:   pulumi.Any(subscriptionSubscriptionDetailsBillingDetailsMetersExtendedMetadataKey),
    									Value: pulumi.Any(subscriptionSubscriptionDetailsBillingDetailsMetersExtendedMetadataValue),
    								},
    							},
    						},
    					},
    					MetricType:     pulumi.Any(subscriptionSubscriptionDetailsBillingDetailsMetricType),
    					RateAllocation: pulumi.Any(subscriptionSubscriptionDetailsBillingDetailsRateAllocation),
    					Sku:            pulumi.Any(subscriptionSubscriptionDetailsBillingDetailsSku),
    					HasGovSku:      pulumi.Any(subscriptionSubscriptionDetailsBillingDetailsHasGovSku),
    				},
    				PartnerRegistrationUrl: pulumi.Any(subscriptionSubscriptionDetailsPartnerRegistrationUrl),
    				PricingPlan: &oci.SelfSubscriptionSubscriptionDetailsPricingPlanArgs{
    					BillingFrequency: pulumi.Any(subscriptionSubscriptionDetailsPricingPlanBillingFrequency),
    					PlanName:         pulumi.Any(subscriptionSubscriptionDetailsPricingPlanPlanName),
    					PlanType:         pulumi.Any(subscriptionSubscriptionDetailsPricingPlanPlanType),
    					Rates: oci.SelfSubscriptionSubscriptionDetailsPricingPlanRateArray{
    						&oci.SelfSubscriptionSubscriptionDetailsPricingPlanRateArgs{
    							Currency: pulumi.Any(subscriptionSubscriptionDetailsPricingPlanRatesCurrency),
    							Rate:     pulumi.Any(subscriptionSubscriptionDetailsPricingPlanRatesRate),
    						},
    					},
    					PlanDescription: pulumi.Any(subscriptionSubscriptionDetailsPricingPlanPlanDescription),
    					PlanDuration:    pulumi.Any(subscriptionSubscriptionDetailsPricingPlanPlanDuration),
    				},
    				Amount:      pulumi.Any(subscriptionSubscriptionDetailsAmount),
    				Currency:    pulumi.Any(subscriptionSubscriptionDetailsCurrency),
    				IsAutoRenew: pulumi.Any(subscriptionSubscriptionDetailsIsAutoRenew),
    			},
    			TenantId: pulumi.Any(testTenant.Id),
    			AdditionalDetails: oci.SelfSubscriptionAdditionalDetailArray{
    				&oci.SelfSubscriptionAdditionalDetailArgs{
    					Key:   pulumi.Any(subscriptionAdditionalDetailsKey),
    					Value: pulumi.Any(subscriptionAdditionalDetailsValue),
    				},
    			},
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			DisplayName: pulumi.Any(subscriptionDisplayName),
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    			Realm:      pulumi.Any(subscriptionRealm),
    			Region:     pulumi.Any(subscriptionRegion),
    			SourceType: pulumi.Any(subscriptionSourceType),
    		})
    		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 testSubscription = new Oci.Oci.SelfSubscription("test_subscription", new()
        {
            CompartmentId = compartmentId,
            ProductId = testProduct.Id,
            SellerId = testSeller.Id,
            SubscriptionDetails = new Oci.Oci.Inputs.SelfSubscriptionSubscriptionDetailsArgs
            {
                BillingDetails = new Oci.Oci.Inputs.SelfSubscriptionSubscriptionDetailsBillingDetailsArgs
                {
                    Meters = new[]
                    {
                        new Oci.Oci.Inputs.SelfSubscriptionSubscriptionDetailsBillingDetailsMeterArgs
                        {
                            Name = subscriptionSubscriptionDetailsBillingDetailsMetersName,
                            RateAllocation = subscriptionSubscriptionDetailsBillingDetailsMetersRateAllocation,
                            ExtendedMetadatas = new[]
                            {
                                new Oci.Oci.Inputs.SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadataArgs
                                {
                                    Key = subscriptionSubscriptionDetailsBillingDetailsMetersExtendedMetadataKey,
                                    Value = subscriptionSubscriptionDetailsBillingDetailsMetersExtendedMetadataValue,
                                },
                            },
                        },
                    },
                    MetricType = subscriptionSubscriptionDetailsBillingDetailsMetricType,
                    RateAllocation = subscriptionSubscriptionDetailsBillingDetailsRateAllocation,
                    Sku = subscriptionSubscriptionDetailsBillingDetailsSku,
                    HasGovSku = subscriptionSubscriptionDetailsBillingDetailsHasGovSku,
                },
                PartnerRegistrationUrl = subscriptionSubscriptionDetailsPartnerRegistrationUrl,
                PricingPlan = new Oci.Oci.Inputs.SelfSubscriptionSubscriptionDetailsPricingPlanArgs
                {
                    BillingFrequency = subscriptionSubscriptionDetailsPricingPlanBillingFrequency,
                    PlanName = subscriptionSubscriptionDetailsPricingPlanPlanName,
                    PlanType = subscriptionSubscriptionDetailsPricingPlanPlanType,
                    Rates = new[]
                    {
                        new Oci.Oci.Inputs.SelfSubscriptionSubscriptionDetailsPricingPlanRateArgs
                        {
                            Currency = subscriptionSubscriptionDetailsPricingPlanRatesCurrency,
                            Rate = subscriptionSubscriptionDetailsPricingPlanRatesRate,
                        },
                    },
                    PlanDescription = subscriptionSubscriptionDetailsPricingPlanPlanDescription,
                    PlanDuration = subscriptionSubscriptionDetailsPricingPlanPlanDuration,
                },
                Amount = subscriptionSubscriptionDetailsAmount,
                Currency = subscriptionSubscriptionDetailsCurrency,
                IsAutoRenew = subscriptionSubscriptionDetailsIsAutoRenew,
            },
            TenantId = testTenant.Id,
            AdditionalDetails = new[]
            {
                new Oci.Oci.Inputs.SelfSubscriptionAdditionalDetailArgs
                {
                    Key = subscriptionAdditionalDetailsKey,
                    Value = subscriptionAdditionalDetailsValue,
                },
            },
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = subscriptionDisplayName,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            Realm = subscriptionRealm,
            Region = subscriptionRegion,
            SourceType = subscriptionSourceType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.oci.SelfSubscription;
    import com.pulumi.oci.oci.SelfSubscriptionArgs;
    import com.pulumi.oci.oci.inputs.SelfSubscriptionSubscriptionDetailsArgs;
    import com.pulumi.oci.oci.inputs.SelfSubscriptionSubscriptionDetailsBillingDetailsArgs;
    import com.pulumi.oci.oci.inputs.SelfSubscriptionSubscriptionDetailsBillingDetailsMeterArgs;
    import com.pulumi.oci.oci.inputs.SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadataArgs;
    import com.pulumi.oci.oci.inputs.SelfSubscriptionSubscriptionDetailsPricingPlanArgs;
    import com.pulumi.oci.oci.inputs.SelfSubscriptionSubscriptionDetailsPricingPlanRateArgs;
    import com.pulumi.oci.oci.inputs.SelfSubscriptionAdditionalDetailArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testSubscription = new SelfSubscription("testSubscription", SelfSubscriptionArgs.builder()
                .compartmentId(compartmentId)
                .productId(testProduct.id())
                .sellerId(testSeller.id())
                .subscriptionDetails(SelfSubscriptionSubscriptionDetailsArgs.builder()
                    .billingDetails(SelfSubscriptionSubscriptionDetailsBillingDetailsArgs.builder()
                        .meters(SelfSubscriptionSubscriptionDetailsBillingDetailsMeterArgs.builder()
                            .name(subscriptionSubscriptionDetailsBillingDetailsMetersName)
                            .rateAllocation(subscriptionSubscriptionDetailsBillingDetailsMetersRateAllocation)
                            .extendedMetadatas(SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadataArgs.builder()
                                .key(subscriptionSubscriptionDetailsBillingDetailsMetersExtendedMetadataKey)
                                .value(subscriptionSubscriptionDetailsBillingDetailsMetersExtendedMetadataValue)
                                .build())
                            .build())
                        .metricType(subscriptionSubscriptionDetailsBillingDetailsMetricType)
                        .rateAllocation(subscriptionSubscriptionDetailsBillingDetailsRateAllocation)
                        .sku(subscriptionSubscriptionDetailsBillingDetailsSku)
                        .hasGovSku(subscriptionSubscriptionDetailsBillingDetailsHasGovSku)
                        .build())
                    .partnerRegistrationUrl(subscriptionSubscriptionDetailsPartnerRegistrationUrl)
                    .pricingPlan(SelfSubscriptionSubscriptionDetailsPricingPlanArgs.builder()
                        .billingFrequency(subscriptionSubscriptionDetailsPricingPlanBillingFrequency)
                        .planName(subscriptionSubscriptionDetailsPricingPlanPlanName)
                        .planType(subscriptionSubscriptionDetailsPricingPlanPlanType)
                        .rates(SelfSubscriptionSubscriptionDetailsPricingPlanRateArgs.builder()
                            .currency(subscriptionSubscriptionDetailsPricingPlanRatesCurrency)
                            .rate(subscriptionSubscriptionDetailsPricingPlanRatesRate)
                            .build())
                        .planDescription(subscriptionSubscriptionDetailsPricingPlanPlanDescription)
                        .planDuration(subscriptionSubscriptionDetailsPricingPlanPlanDuration)
                        .build())
                    .amount(subscriptionSubscriptionDetailsAmount)
                    .currency(subscriptionSubscriptionDetailsCurrency)
                    .isAutoRenew(subscriptionSubscriptionDetailsIsAutoRenew)
                    .build())
                .tenantId(testTenant.id())
                .additionalDetails(SelfSubscriptionAdditionalDetailArgs.builder()
                    .key(subscriptionAdditionalDetailsKey)
                    .value(subscriptionAdditionalDetailsValue)
                    .build())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(subscriptionDisplayName)
                .freeformTags(Map.of("Department", "Finance"))
                .realm(subscriptionRealm)
                .region(subscriptionRegion)
                .sourceType(subscriptionSourceType)
                .build());
    
        }
    }
    
    resources:
      testSubscription:
        type: oci:oci:SelfSubscription
        name: test_subscription
        properties:
          compartmentId: ${compartmentId}
          productId: ${testProduct.id}
          sellerId: ${testSeller.id}
          subscriptionDetails:
            billingDetails:
              meters:
                - name: ${subscriptionSubscriptionDetailsBillingDetailsMetersName}
                  rateAllocation: ${subscriptionSubscriptionDetailsBillingDetailsMetersRateAllocation}
                  extendedMetadatas:
                    - key: ${subscriptionSubscriptionDetailsBillingDetailsMetersExtendedMetadataKey}
                      value: ${subscriptionSubscriptionDetailsBillingDetailsMetersExtendedMetadataValue}
              metricType: ${subscriptionSubscriptionDetailsBillingDetailsMetricType}
              rateAllocation: ${subscriptionSubscriptionDetailsBillingDetailsRateAllocation}
              sku: ${subscriptionSubscriptionDetailsBillingDetailsSku}
              hasGovSku: ${subscriptionSubscriptionDetailsBillingDetailsHasGovSku}
            partnerRegistrationUrl: ${subscriptionSubscriptionDetailsPartnerRegistrationUrl}
            pricingPlan:
              billingFrequency: ${subscriptionSubscriptionDetailsPricingPlanBillingFrequency}
              planName: ${subscriptionSubscriptionDetailsPricingPlanPlanName}
              planType: ${subscriptionSubscriptionDetailsPricingPlanPlanType}
              rates:
                - currency: ${subscriptionSubscriptionDetailsPricingPlanRatesCurrency}
                  rate: ${subscriptionSubscriptionDetailsPricingPlanRatesRate}
              planDescription: ${subscriptionSubscriptionDetailsPricingPlanPlanDescription}
              planDuration: ${subscriptionSubscriptionDetailsPricingPlanPlanDuration}
            amount: ${subscriptionSubscriptionDetailsAmount}
            currency: ${subscriptionSubscriptionDetailsCurrency}
            isAutoRenew: ${subscriptionSubscriptionDetailsIsAutoRenew}
          tenantId: ${testTenant.id}
          additionalDetails:
            - key: ${subscriptionAdditionalDetailsKey}
              value: ${subscriptionAdditionalDetailsValue}
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${subscriptionDisplayName}
          freeformTags:
            Department: Finance
          realm: ${subscriptionRealm}
          region: ${subscriptionRegion}
          sourceType: ${subscriptionSourceType}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    resource "oci_oci_selfsubscription" "test_subscription" {
      compartment_id = compartmentId
      product_id     = testProduct.id
      seller_id      = testSeller.id
      subscription_details = {
        billing_details = {
          meters = [{
            "name"           = subscriptionSubscriptionDetailsBillingDetailsMetersName
            "rateAllocation" = subscriptionSubscriptionDetailsBillingDetailsMetersRateAllocation
            "extendedMetadatas" = [{
              "key"   = subscriptionSubscriptionDetailsBillingDetailsMetersExtendedMetadataKey
              "value" = subscriptionSubscriptionDetailsBillingDetailsMetersExtendedMetadataValue
            }]
          }]
          metric_type     = subscriptionSubscriptionDetailsBillingDetailsMetricType
          rate_allocation = subscriptionSubscriptionDetailsBillingDetailsRateAllocation
          sku             = subscriptionSubscriptionDetailsBillingDetailsSku
          has_gov_sku     = subscriptionSubscriptionDetailsBillingDetailsHasGovSku
        }
        partner_registration_url = subscriptionSubscriptionDetailsPartnerRegistrationUrl
        pricing_plan = {
          billing_frequency = subscriptionSubscriptionDetailsPricingPlanBillingFrequency
          plan_name         = subscriptionSubscriptionDetailsPricingPlanPlanName
          plan_type         = subscriptionSubscriptionDetailsPricingPlanPlanType
          rates = [{
            "currency" = subscriptionSubscriptionDetailsPricingPlanRatesCurrency
            "rate"     = subscriptionSubscriptionDetailsPricingPlanRatesRate
          }]
          plan_description = subscriptionSubscriptionDetailsPricingPlanPlanDescription
          plan_duration    = subscriptionSubscriptionDetailsPricingPlanPlanDuration
        }
        amount        = subscriptionSubscriptionDetailsAmount
        currency      = subscriptionSubscriptionDetailsCurrency
        is_auto_renew = subscriptionSubscriptionDetailsIsAutoRenew
      }
      #Required
      #Required
      #Optional
      #Required
      #Required
      #Optional
      #Optional
      tenant_id = testTenant.id
      additional_details {
        key   = subscriptionAdditionalDetailsKey
        value = subscriptionAdditionalDetailsValue
      }
      #Required
      defined_tags = {
        "Operations.CostCenter" = "42"
      }
      display_name = subscriptionDisplayName
      freeform_tags = {
        "Department" = "Finance"
      }
      realm       = subscriptionRealm
      region      = subscriptionRegion
      source_type = subscriptionSourceType
    }
    

    Create SelfSubscription Resource

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

    Constructor syntax

    new SelfSubscription(name: string, args: SelfSubscriptionArgs, opts?: CustomResourceOptions);
    @overload
    def SelfSubscription(resource_name: str,
                         args: SelfSubscriptionArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def SelfSubscription(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         compartment_id: Optional[str] = None,
                         product_id: Optional[str] = None,
                         seller_id: Optional[str] = None,
                         subscription_details: Optional[SelfSubscriptionSubscriptionDetailsArgs] = None,
                         tenant_id: Optional[str] = None,
                         additional_details: Optional[Sequence[SelfSubscriptionAdditionalDetailArgs]] = None,
                         defined_tags: Optional[Mapping[str, str]] = None,
                         display_name: Optional[str] = None,
                         freeform_tags: Optional[Mapping[str, str]] = None,
                         realm: Optional[str] = None,
                         region: Optional[str] = None,
                         source_type: Optional[str] = None)
    func NewSelfSubscription(ctx *Context, name string, args SelfSubscriptionArgs, opts ...ResourceOption) (*SelfSubscription, error)
    public SelfSubscription(string name, SelfSubscriptionArgs args, CustomResourceOptions? opts = null)
    public SelfSubscription(String name, SelfSubscriptionArgs args)
    public SelfSubscription(String name, SelfSubscriptionArgs args, CustomResourceOptions options)
    
    type: oci:oci:SelfSubscription
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "oci_oci_selfsubscription" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SelfSubscriptionArgs
    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 SelfSubscriptionArgs
    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 SelfSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SelfSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SelfSubscriptionArgs
    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 selfSubscriptionResource = new Oci.Oci.SelfSubscription("selfSubscriptionResource", new()
    {
        CompartmentId = "string",
        ProductId = "string",
        SellerId = "string",
        SubscriptionDetails = new Oci.Oci.Inputs.SelfSubscriptionSubscriptionDetailsArgs
        {
            BillingDetails = new Oci.Oci.Inputs.SelfSubscriptionSubscriptionDetailsBillingDetailsArgs
            {
                Meters = new[]
                {
                    new Oci.Oci.Inputs.SelfSubscriptionSubscriptionDetailsBillingDetailsMeterArgs
                    {
                        Name = "string",
                        RateAllocation = 0,
                        ExtendedMetadatas = new[]
                        {
                            new Oci.Oci.Inputs.SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadataArgs
                            {
                                Key = "string",
                                Value = "string",
                            },
                        },
                    },
                },
                MetricType = "string",
                RateAllocation = 0,
                Sku = "string",
                HasGovSku = false,
            },
            PartnerRegistrationUrl = "string",
            PricingPlan = new Oci.Oci.Inputs.SelfSubscriptionSubscriptionDetailsPricingPlanArgs
            {
                BillingFrequency = "string",
                PlanName = "string",
                PlanType = "string",
                Rates = new[]
                {
                    new Oci.Oci.Inputs.SelfSubscriptionSubscriptionDetailsPricingPlanRateArgs
                    {
                        Currency = "string",
                        Rate = 0,
                    },
                },
                PlanDescription = "string",
                PlanDuration = "string",
            },
            Amount = 0,
            Currency = "string",
            IsAutoRenew = false,
        },
        TenantId = "string",
        AdditionalDetails = new[]
        {
            new Oci.Oci.Inputs.SelfSubscriptionAdditionalDetailArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        DefinedTags = 
        {
            { "string", "string" },
        },
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
        Realm = "string",
        Region = "string",
        SourceType = "string",
    });
    
    example, err := oci.NewSelfSubscription(ctx, "selfSubscriptionResource", &oci.SelfSubscriptionArgs{
    	CompartmentId: pulumi.String("string"),
    	ProductId:     pulumi.String("string"),
    	SellerId:      pulumi.String("string"),
    	SubscriptionDetails: &oci.SelfSubscriptionSubscriptionDetailsArgs{
    		BillingDetails: &oci.SelfSubscriptionSubscriptionDetailsBillingDetailsArgs{
    			Meters: oci.SelfSubscriptionSubscriptionDetailsBillingDetailsMeterArray{
    				&oci.SelfSubscriptionSubscriptionDetailsBillingDetailsMeterArgs{
    					Name:           pulumi.String("string"),
    					RateAllocation: pulumi.Float64(0),
    					ExtendedMetadatas: oci.SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadataArray{
    						&oci.SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadataArgs{
    							Key:   pulumi.String("string"),
    							Value: pulumi.String("string"),
    						},
    					},
    				},
    			},
    			MetricType:     pulumi.String("string"),
    			RateAllocation: pulumi.Float64(0),
    			Sku:            pulumi.String("string"),
    			HasGovSku:      pulumi.Bool(false),
    		},
    		PartnerRegistrationUrl: pulumi.String("string"),
    		PricingPlan: &oci.SelfSubscriptionSubscriptionDetailsPricingPlanArgs{
    			BillingFrequency: pulumi.String("string"),
    			PlanName:         pulumi.String("string"),
    			PlanType:         pulumi.String("string"),
    			Rates: oci.SelfSubscriptionSubscriptionDetailsPricingPlanRateArray{
    				&oci.SelfSubscriptionSubscriptionDetailsPricingPlanRateArgs{
    					Currency: pulumi.String("string"),
    					Rate:     pulumi.Float64(0),
    				},
    			},
    			PlanDescription: pulumi.String("string"),
    			PlanDuration:    pulumi.String("string"),
    		},
    		Amount:      pulumi.Float64(0),
    		Currency:    pulumi.String("string"),
    		IsAutoRenew: pulumi.Bool(false),
    	},
    	TenantId: pulumi.String("string"),
    	AdditionalDetails: oci.SelfSubscriptionAdditionalDetailArray{
    		&oci.SelfSubscriptionAdditionalDetailArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Realm:      pulumi.String("string"),
    	Region:     pulumi.String("string"),
    	SourceType: pulumi.String("string"),
    })
    
    resource "oci_oci_selfsubscription" "selfSubscriptionResource" {
      compartment_id = "string"
      product_id     = "string"
      seller_id      = "string"
      subscription_details = {
        billing_details = {
          meters = [{
            "name"           = "string"
            "rateAllocation" = 0
            "extendedMetadatas" = [{
              "key"   = "string"
              "value" = "string"
            }]
          }]
          metric_type     = "string"
          rate_allocation = 0
          sku             = "string"
          has_gov_sku     = false
        }
        partner_registration_url = "string"
        pricing_plan = {
          billing_frequency = "string"
          plan_name         = "string"
          plan_type         = "string"
          rates = [{
            "currency" = "string"
            "rate"     = 0
          }]
          plan_description = "string"
          plan_duration    = "string"
        }
        amount        = 0
        currency      = "string"
        is_auto_renew = false
      }
      tenant_id = "string"
      additional_details {
        key   = "string"
        value = "string"
      }
      defined_tags = {
        "string" = "string"
      }
      display_name = "string"
      freeform_tags = {
        "string" = "string"
      }
      realm       = "string"
      region      = "string"
      source_type = "string"
    }
    
    var selfSubscriptionResource = new SelfSubscription("selfSubscriptionResource", SelfSubscriptionArgs.builder()
        .compartmentId("string")
        .productId("string")
        .sellerId("string")
        .subscriptionDetails(SelfSubscriptionSubscriptionDetailsArgs.builder()
            .billingDetails(SelfSubscriptionSubscriptionDetailsBillingDetailsArgs.builder()
                .meters(SelfSubscriptionSubscriptionDetailsBillingDetailsMeterArgs.builder()
                    .name("string")
                    .rateAllocation(0.0)
                    .extendedMetadatas(SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadataArgs.builder()
                        .key("string")
                        .value("string")
                        .build())
                    .build())
                .metricType("string")
                .rateAllocation(0.0)
                .sku("string")
                .hasGovSku(false)
                .build())
            .partnerRegistrationUrl("string")
            .pricingPlan(SelfSubscriptionSubscriptionDetailsPricingPlanArgs.builder()
                .billingFrequency("string")
                .planName("string")
                .planType("string")
                .rates(SelfSubscriptionSubscriptionDetailsPricingPlanRateArgs.builder()
                    .currency("string")
                    .rate(0.0)
                    .build())
                .planDescription("string")
                .planDuration("string")
                .build())
            .amount(0.0)
            .currency("string")
            .isAutoRenew(false)
            .build())
        .tenantId("string")
        .additionalDetails(SelfSubscriptionAdditionalDetailArgs.builder()
            .key("string")
            .value("string")
            .build())
        .definedTags(Map.of("string", "string"))
        .displayName("string")
        .freeformTags(Map.of("string", "string"))
        .realm("string")
        .region("string")
        .sourceType("string")
        .build());
    
    self_subscription_resource = oci.oci.SelfSubscription("selfSubscriptionResource",
        compartment_id="string",
        product_id="string",
        seller_id="string",
        subscription_details={
            "billing_details": {
                "meters": [{
                    "name": "string",
                    "rate_allocation": float(0),
                    "extended_metadatas": [{
                        "key": "string",
                        "value": "string",
                    }],
                }],
                "metric_type": "string",
                "rate_allocation": float(0),
                "sku": "string",
                "has_gov_sku": False,
            },
            "partner_registration_url": "string",
            "pricing_plan": {
                "billing_frequency": "string",
                "plan_name": "string",
                "plan_type": "string",
                "rates": [{
                    "currency": "string",
                    "rate": float(0),
                }],
                "plan_description": "string",
                "plan_duration": "string",
            },
            "amount": float(0),
            "currency": "string",
            "is_auto_renew": False,
        },
        tenant_id="string",
        additional_details=[{
            "key": "string",
            "value": "string",
        }],
        defined_tags={
            "string": "string",
        },
        display_name="string",
        freeform_tags={
            "string": "string",
        },
        realm="string",
        region="string",
        source_type="string")
    
    const selfSubscriptionResource = new oci.oci.SelfSubscription("selfSubscriptionResource", {
        compartmentId: "string",
        productId: "string",
        sellerId: "string",
        subscriptionDetails: {
            billingDetails: {
                meters: [{
                    name: "string",
                    rateAllocation: 0,
                    extendedMetadatas: [{
                        key: "string",
                        value: "string",
                    }],
                }],
                metricType: "string",
                rateAllocation: 0,
                sku: "string",
                hasGovSku: false,
            },
            partnerRegistrationUrl: "string",
            pricingPlan: {
                billingFrequency: "string",
                planName: "string",
                planType: "string",
                rates: [{
                    currency: "string",
                    rate: 0,
                }],
                planDescription: "string",
                planDuration: "string",
            },
            amount: 0,
            currency: "string",
            isAutoRenew: false,
        },
        tenantId: "string",
        additionalDetails: [{
            key: "string",
            value: "string",
        }],
        definedTags: {
            string: "string",
        },
        displayName: "string",
        freeformTags: {
            string: "string",
        },
        realm: "string",
        region: "string",
        sourceType: "string",
    });
    
    type: oci:oci:SelfSubscription
    properties:
        additionalDetails:
            - key: string
              value: string
        compartmentId: string
        definedTags:
            string: string
        displayName: string
        freeformTags:
            string: string
        productId: string
        realm: string
        region: string
        sellerId: string
        sourceType: string
        subscriptionDetails:
            amount: 0
            billingDetails:
                hasGovSku: false
                meters:
                    - extendedMetadatas:
                        - key: string
                          value: string
                      name: string
                      rateAllocation: 0
                metricType: string
                rateAllocation: 0
                sku: string
            currency: string
            isAutoRenew: false
            partnerRegistrationUrl: string
            pricingPlan:
                billingFrequency: string
                planDescription: string
                planDuration: string
                planName: string
                planType: string
                rates:
                    - currency: string
                      rate: 0
        tenantId: string
    

    SelfSubscription 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 SelfSubscription resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment to create the subscription in.
    ProductId string
    The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
    SellerId string
    The OCID for the seller in SELF Service.
    SubscriptionDetails SelfSubscriptionSubscriptionDetails
    The details of a subscription
    TenantId string

    The OCID of the tenant to create the subscription in.

    ** 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

    AdditionalDetails List<SelfSubscriptionAdditionalDetail>
    Additional details that are specific for this subscription such as activation details.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) The subscription name. Must be unique within the compartment. This value can be updated.
    FreeformTags Dictionary<string, string>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Realm string
    The realm from where customer is buying the subscription.
    Region string
    The region from where customer is buying the subscription.
    SourceType string
    The type of seller in SELF Service.
    CompartmentId string
    (Updatable) The OCID of the compartment to create the subscription in.
    ProductId string
    The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
    SellerId string
    The OCID for the seller in SELF Service.
    SubscriptionDetails SelfSubscriptionSubscriptionDetailsArgs
    The details of a subscription
    TenantId string

    The OCID of the tenant to create the subscription in.

    ** 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

    AdditionalDetails []SelfSubscriptionAdditionalDetailArgs
    Additional details that are specific for this subscription such as activation details.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) The subscription name. Must be unique within the compartment. This value can be updated.
    FreeformTags map[string]string
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Realm string
    The realm from where customer is buying the subscription.
    Region string
    The region from where customer is buying the subscription.
    SourceType string
    The type of seller in SELF Service.
    compartment_id string
    (Updatable) The OCID of the compartment to create the subscription in.
    product_id string
    The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
    seller_id string
    The OCID for the seller in SELF Service.
    subscription_details object
    The details of a subscription
    tenant_id string

    The OCID of the tenant to create the subscription in.

    ** 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

    additional_details list(object)
    Additional details that are specific for this subscription such as activation details.
    defined_tags map(string)
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name string
    (Updatable) The subscription name. Must be unique within the compartment. This value can be updated.
    freeform_tags map(string)
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    realm string
    The realm from where customer is buying the subscription.
    region string
    The region from where customer is buying the subscription.
    source_type string
    The type of seller in SELF Service.
    compartmentId String
    (Updatable) The OCID of the compartment to create the subscription in.
    productId String
    The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
    sellerId String
    The OCID for the seller in SELF Service.
    subscriptionDetails SelfSubscriptionSubscriptionDetails
    The details of a subscription
    tenantId String

    The OCID of the tenant to create the subscription in.

    ** 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

    additionalDetails List<SelfSubscriptionAdditionalDetail>
    Additional details that are specific for this subscription such as activation details.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) The subscription name. Must be unique within the compartment. This value can be updated.
    freeformTags Map<String,String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    realm String
    The realm from where customer is buying the subscription.
    region String
    The region from where customer is buying the subscription.
    sourceType String
    The type of seller in SELF Service.
    compartmentId string
    (Updatable) The OCID of the compartment to create the subscription in.
    productId string
    The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
    sellerId string
    The OCID for the seller in SELF Service.
    subscriptionDetails SelfSubscriptionSubscriptionDetails
    The details of a subscription
    tenantId string

    The OCID of the tenant to create the subscription in.

    ** 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

    additionalDetails SelfSubscriptionAdditionalDetail[]
    Additional details that are specific for this subscription such as activation details.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    (Updatable) The subscription name. Must be unique within the compartment. This value can be updated.
    freeformTags {[key: string]: string}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    realm string
    The realm from where customer is buying the subscription.
    region string
    The region from where customer is buying the subscription.
    sourceType string
    The type of seller in SELF Service.
    compartment_id str
    (Updatable) The OCID of the compartment to create the subscription in.
    product_id str
    The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
    seller_id str
    The OCID for the seller in SELF Service.
    subscription_details SelfSubscriptionSubscriptionDetailsArgs
    The details of a subscription
    tenant_id str

    The OCID of the tenant to create the subscription in.

    ** 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

    additional_details Sequence[SelfSubscriptionAdditionalDetailArgs]
    Additional details that are specific for this subscription such as activation details.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    (Updatable) The subscription name. Must be unique within the compartment. This value can be updated.
    freeform_tags Mapping[str, str]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    realm str
    The realm from where customer is buying the subscription.
    region str
    The region from where customer is buying the subscription.
    source_type str
    The type of seller in SELF Service.
    compartmentId String
    (Updatable) The OCID of the compartment to create the subscription in.
    productId String
    The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
    sellerId String
    The OCID for the seller in SELF Service.
    subscriptionDetails Property Map
    The details of a subscription
    tenantId String

    The OCID of the tenant to create the subscription in.

    ** 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

    additionalDetails List<Property Map>
    Additional details that are specific for this subscription such as activation details.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) The subscription name. Must be unique within the compartment. This value can be updated.
    freeformTags Map<String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    realm String
    The realm from where customer is buying the subscription.
    region String
    The region from where customer is buying the subscription.
    sourceType String
    The type of seller in SELF Service.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    State string
    The current lifecycle state of the Subscription.
    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 Subscription was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeEnded string
    The date and time the Subscription was ended, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeStarted string
    The date and time the Subscription was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the Subscription was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    State string
    The current lifecycle state of the Subscription.
    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 Subscription was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeEnded string
    The date and time the Subscription was ended, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeStarted string
    The date and time the Subscription was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the Subscription was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycle_details string
    A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    state string
    The current lifecycle state of the Subscription.
    system_tags 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 Subscription was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_ended string
    The date and time the Subscription was ended, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_started string
    The date and time the Subscription was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated string
    The date and time the Subscription was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    state String
    The current lifecycle state of the Subscription.
    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 Subscription was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeEnded String
    The date and time the Subscription was ended, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeStarted String
    The date and time the Subscription was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the Subscription was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails string
    A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    state string
    The current lifecycle state of the Subscription.
    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 Subscription was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeEnded string
    The date and time the Subscription was ended, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeStarted string
    The date and time the Subscription was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the Subscription was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_details str
    A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    state str
    The current lifecycle state of the Subscription.
    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 Subscription was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_ended str
    The date and time the Subscription was ended, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_started str
    The date and time the Subscription was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    The date and time the Subscription was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    state String
    The current lifecycle state of the Subscription.
    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 Subscription was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeEnded String
    The date and time the Subscription was ended, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeStarted String
    The date and time the Subscription was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the Subscription was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Look up Existing SelfSubscription Resource

    Get an existing SelfSubscription 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?: SelfSubscriptionState, opts?: CustomResourceOptions): SelfSubscription
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            additional_details: Optional[Sequence[SelfSubscriptionAdditionalDetailArgs]] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            lifecycle_details: Optional[str] = None,
            product_id: Optional[str] = None,
            realm: Optional[str] = None,
            region: Optional[str] = None,
            seller_id: Optional[str] = None,
            source_type: Optional[str] = None,
            state: Optional[str] = None,
            subscription_details: Optional[SelfSubscriptionSubscriptionDetailsArgs] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            tenant_id: Optional[str] = None,
            time_created: Optional[str] = None,
            time_ended: Optional[str] = None,
            time_started: Optional[str] = None,
            time_updated: Optional[str] = None) -> SelfSubscription
    func GetSelfSubscription(ctx *Context, name string, id IDInput, state *SelfSubscriptionState, opts ...ResourceOption) (*SelfSubscription, error)
    public static SelfSubscription Get(string name, Input<string> id, SelfSubscriptionState? state, CustomResourceOptions? opts = null)
    public static SelfSubscription get(String name, Output<String> id, SelfSubscriptionState state, CustomResourceOptions options)
    resources:  _:    type: oci:oci:SelfSubscription    get:      id: ${id}
    import {
      to = oci_oci_selfsubscription.example
      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:
    AdditionalDetails List<SelfSubscriptionAdditionalDetail>
    Additional details that are specific for this subscription such as activation details.
    CompartmentId string
    (Updatable) The OCID of the compartment to create the subscription in.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) The subscription name. Must be unique within the compartment. This value can be updated.
    FreeformTags Dictionary<string, string>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    LifecycleDetails string
    A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    ProductId string
    The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
    Realm string
    The realm from where customer is buying the subscription.
    Region string
    The region from where customer is buying the subscription.
    SellerId string
    The OCID for the seller in SELF Service.
    SourceType string
    The type of seller in SELF Service.
    State string
    The current lifecycle state of the Subscription.
    SubscriptionDetails SelfSubscriptionSubscriptionDetails
    The details of a subscription
    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"}
    TenantId string

    The OCID of the tenant to create the subscription in.

    ** 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

    TimeCreated string
    The date and time the Subscription was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeEnded string
    The date and time the Subscription was ended, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeStarted string
    The date and time the Subscription was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the Subscription was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    AdditionalDetails []SelfSubscriptionAdditionalDetailArgs
    Additional details that are specific for this subscription such as activation details.
    CompartmentId string
    (Updatable) The OCID of the compartment to create the subscription in.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) The subscription name. Must be unique within the compartment. This value can be updated.
    FreeformTags map[string]string
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    LifecycleDetails string
    A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    ProductId string
    The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
    Realm string
    The realm from where customer is buying the subscription.
    Region string
    The region from where customer is buying the subscription.
    SellerId string
    The OCID for the seller in SELF Service.
    SourceType string
    The type of seller in SELF Service.
    State string
    The current lifecycle state of the Subscription.
    SubscriptionDetails SelfSubscriptionSubscriptionDetailsArgs
    The details of a subscription
    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"}
    TenantId string

    The OCID of the tenant to create the subscription in.

    ** 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

    TimeCreated string
    The date and time the Subscription was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeEnded string
    The date and time the Subscription was ended, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeStarted string
    The date and time the Subscription was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the Subscription was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    additional_details list(object)
    Additional details that are specific for this subscription such as activation details.
    compartment_id string
    (Updatable) The OCID of the compartment to create the subscription in.
    defined_tags map(string)
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name string
    (Updatable) The subscription name. Must be unique within the compartment. This value can be updated.
    freeform_tags map(string)
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycle_details string
    A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    product_id string
    The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
    realm string
    The realm from where customer is buying the subscription.
    region string
    The region from where customer is buying the subscription.
    seller_id string
    The OCID for the seller in SELF Service.
    source_type string
    The type of seller in SELF Service.
    state string
    The current lifecycle state of the Subscription.
    subscription_details object
    The details of a subscription
    system_tags map(string)
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenant_id string

    The OCID of the tenant to create the subscription in.

    ** 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

    time_created string
    The date and time the Subscription was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_ended string
    The date and time the Subscription was ended, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_started string
    The date and time the Subscription was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated string
    The date and time the Subscription was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    additionalDetails List<SelfSubscriptionAdditionalDetail>
    Additional details that are specific for this subscription such as activation details.
    compartmentId String
    (Updatable) The OCID of the compartment to create the subscription in.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) The subscription name. Must be unique within the compartment. This value can be updated.
    freeformTags Map<String,String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycleDetails String
    A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    productId String
    The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
    realm String
    The realm from where customer is buying the subscription.
    region String
    The region from where customer is buying the subscription.
    sellerId String
    The OCID for the seller in SELF Service.
    sourceType String
    The type of seller in SELF Service.
    state String
    The current lifecycle state of the Subscription.
    subscriptionDetails SelfSubscriptionSubscriptionDetails
    The details of a subscription
    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"}
    tenantId String

    The OCID of the tenant to create the subscription in.

    ** 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

    timeCreated String
    The date and time the Subscription was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeEnded String
    The date and time the Subscription was ended, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeStarted String
    The date and time the Subscription was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the Subscription was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    additionalDetails SelfSubscriptionAdditionalDetail[]
    Additional details that are specific for this subscription such as activation details.
    compartmentId string
    (Updatable) The OCID of the compartment to create the subscription in.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    (Updatable) The subscription name. Must be unique within the compartment. This value can be updated.
    freeformTags {[key: string]: string}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycleDetails string
    A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    productId string
    The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
    realm string
    The realm from where customer is buying the subscription.
    region string
    The region from where customer is buying the subscription.
    sellerId string
    The OCID for the seller in SELF Service.
    sourceType string
    The type of seller in SELF Service.
    state string
    The current lifecycle state of the Subscription.
    subscriptionDetails SelfSubscriptionSubscriptionDetails
    The details of a subscription
    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"}
    tenantId string

    The OCID of the tenant to create the subscription in.

    ** 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

    timeCreated string
    The date and time the Subscription was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeEnded string
    The date and time the Subscription was ended, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeStarted string
    The date and time the Subscription was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the Subscription was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    additional_details Sequence[SelfSubscriptionAdditionalDetailArgs]
    Additional details that are specific for this subscription such as activation details.
    compartment_id str
    (Updatable) The OCID of the compartment to create the subscription in.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    (Updatable) The subscription name. Must be unique within the compartment. This value can be updated.
    freeform_tags Mapping[str, str]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycle_details str
    A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    product_id str
    The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
    realm str
    The realm from where customer is buying the subscription.
    region str
    The region from where customer is buying the subscription.
    seller_id str
    The OCID for the seller in SELF Service.
    source_type str
    The type of seller in SELF Service.
    state str
    The current lifecycle state of the Subscription.
    subscription_details SelfSubscriptionSubscriptionDetailsArgs
    The details of a subscription
    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"}
    tenant_id str

    The OCID of the tenant to create the subscription in.

    ** 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

    time_created str
    The date and time the Subscription was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_ended str
    The date and time the Subscription was ended, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_started str
    The date and time the Subscription was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    The date and time the Subscription was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    additionalDetails List<Property Map>
    Additional details that are specific for this subscription such as activation details.
    compartmentId String
    (Updatable) The OCID of the compartment to create the subscription in.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) The subscription name. Must be unique within the compartment. This value can be updated.
    freeformTags Map<String>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    lifecycleDetails String
    A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    productId String
    The unique identifier of the marketplace listing in Oracle Cloud Infrastructure.
    realm String
    The realm from where customer is buying the subscription.
    region String
    The region from where customer is buying the subscription.
    sellerId String
    The OCID for the seller in SELF Service.
    sourceType String
    The type of seller in SELF Service.
    state String
    The current lifecycle state of the Subscription.
    subscriptionDetails Property Map
    The details of a subscription
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenantId String

    The OCID of the tenant to create the subscription in.

    ** 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

    timeCreated String
    The date and time the Subscription was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeEnded String
    The date and time the Subscription was ended, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeStarted String
    The date and time the Subscription was started, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the Subscription was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Supporting Types

    SelfSubscriptionAdditionalDetail, SelfSubscriptionAdditionalDetailArgs

    Key string
    Additional attribute for extendedMetadata.
    Value string
    It contains the value of above key.
    Key string
    Additional attribute for extendedMetadata.
    Value string
    It contains the value of above key.
    key string
    Additional attribute for extendedMetadata.
    value string
    It contains the value of above key.
    key String
    Additional attribute for extendedMetadata.
    value String
    It contains the value of above key.
    key string
    Additional attribute for extendedMetadata.
    value string
    It contains the value of above key.
    key str
    Additional attribute for extendedMetadata.
    value str
    It contains the value of above key.
    key String
    Additional attribute for extendedMetadata.
    value String
    It contains the value of above key.

    SelfSubscriptionSubscriptionDetails, SelfSubscriptionSubscriptionDetailsArgs

    BillingDetails SelfSubscriptionSubscriptionDetailsBillingDetails
    Sku details for billing subscription.
    PartnerRegistrationUrl string
    The activation link given by the partner.
    PricingPlan SelfSubscriptionSubscriptionDetailsPricingPlan
    A pricing plan details provided by the Publisher.
    Amount double
    Tha amount for the currency type.
    Currency string
    The currency supported, in the format specified by ISO-4217
    IsAutoRenew bool
    Whether subscription should be auto-renewed at the end of cycle.
    BillingDetails SelfSubscriptionSubscriptionDetailsBillingDetails
    Sku details for billing subscription.
    PartnerRegistrationUrl string
    The activation link given by the partner.
    PricingPlan SelfSubscriptionSubscriptionDetailsPricingPlan
    A pricing plan details provided by the Publisher.
    Amount float64
    Tha amount for the currency type.
    Currency string
    The currency supported, in the format specified by ISO-4217
    IsAutoRenew bool
    Whether subscription should be auto-renewed at the end of cycle.
    billing_details object
    Sku details for billing subscription.
    partner_registration_url string
    The activation link given by the partner.
    pricing_plan object
    A pricing plan details provided by the Publisher.
    amount number
    Tha amount for the currency type.
    currency string
    The currency supported, in the format specified by ISO-4217
    is_auto_renew bool
    Whether subscription should be auto-renewed at the end of cycle.
    billingDetails SelfSubscriptionSubscriptionDetailsBillingDetails
    Sku details for billing subscription.
    partnerRegistrationUrl String
    The activation link given by the partner.
    pricingPlan SelfSubscriptionSubscriptionDetailsPricingPlan
    A pricing plan details provided by the Publisher.
    amount Double
    Tha amount for the currency type.
    currency String
    The currency supported, in the format specified by ISO-4217
    isAutoRenew Boolean
    Whether subscription should be auto-renewed at the end of cycle.
    billingDetails SelfSubscriptionSubscriptionDetailsBillingDetails
    Sku details for billing subscription.
    partnerRegistrationUrl string
    The activation link given by the partner.
    pricingPlan SelfSubscriptionSubscriptionDetailsPricingPlan
    A pricing plan details provided by the Publisher.
    amount number
    Tha amount for the currency type.
    currency string
    The currency supported, in the format specified by ISO-4217
    isAutoRenew boolean
    Whether subscription should be auto-renewed at the end of cycle.
    billing_details SelfSubscriptionSubscriptionDetailsBillingDetails
    Sku details for billing subscription.
    partner_registration_url str
    The activation link given by the partner.
    pricing_plan SelfSubscriptionSubscriptionDetailsPricingPlan
    A pricing plan details provided by the Publisher.
    amount float
    Tha amount for the currency type.
    currency str
    The currency supported, in the format specified by ISO-4217
    is_auto_renew bool
    Whether subscription should be auto-renewed at the end of cycle.
    billingDetails Property Map
    Sku details for billing subscription.
    partnerRegistrationUrl String
    The activation link given by the partner.
    pricingPlan Property Map
    A pricing plan details provided by the Publisher.
    amount Number
    Tha amount for the currency type.
    currency String
    The currency supported, in the format specified by ISO-4217
    isAutoRenew Boolean
    Whether subscription should be auto-renewed at the end of cycle.

    SelfSubscriptionSubscriptionDetailsBillingDetails, SelfSubscriptionSubscriptionDetailsBillingDetailsArgs

    Meters List<SelfSubscriptionSubscriptionDetailsBillingDetailsMeter>
    The meters associated with sku.
    MetricType string
    The part's metric.
    RateAllocation double
    Tha rate of this sku meter.
    Sku string
    Sku for service.
    HasGovSku bool
    Whether this sku is assign to gov product.
    Meters []SelfSubscriptionSubscriptionDetailsBillingDetailsMeter
    The meters associated with sku.
    MetricType string
    The part's metric.
    RateAllocation float64
    Tha rate of this sku meter.
    Sku string
    Sku for service.
    HasGovSku bool
    Whether this sku is assign to gov product.
    meters list(object)
    The meters associated with sku.
    metric_type string
    The part's metric.
    rate_allocation number
    Tha rate of this sku meter.
    sku string
    Sku for service.
    has_gov_sku bool
    Whether this sku is assign to gov product.
    meters List<SelfSubscriptionSubscriptionDetailsBillingDetailsMeter>
    The meters associated with sku.
    metricType String
    The part's metric.
    rateAllocation Double
    Tha rate of this sku meter.
    sku String
    Sku for service.
    hasGovSku Boolean
    Whether this sku is assign to gov product.
    meters SelfSubscriptionSubscriptionDetailsBillingDetailsMeter[]
    The meters associated with sku.
    metricType string
    The part's metric.
    rateAllocation number
    Tha rate of this sku meter.
    sku string
    Sku for service.
    hasGovSku boolean
    Whether this sku is assign to gov product.
    meters Sequence[SelfSubscriptionSubscriptionDetailsBillingDetailsMeter]
    The meters associated with sku.
    metric_type str
    The part's metric.
    rate_allocation float
    Tha rate of this sku meter.
    sku str
    Sku for service.
    has_gov_sku bool
    Whether this sku is assign to gov product.
    meters List<Property Map>
    The meters associated with sku.
    metricType String
    The part's metric.
    rateAllocation Number
    Tha rate of this sku meter.
    sku String
    Sku for service.
    hasGovSku Boolean
    Whether this sku is assign to gov product.

    SelfSubscriptionSubscriptionDetailsBillingDetailsMeter, SelfSubscriptionSubscriptionDetailsBillingDetailsMeterArgs

    Name string
    Name of meter.
    RateAllocation double
    Tha rate of this sku meter.
    ExtendedMetadatas List<SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadata>
    Additional data give by sku.
    Name string
    Name of meter.
    RateAllocation float64
    Tha rate of this sku meter.
    ExtendedMetadatas []SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadata
    Additional data give by sku.
    name string
    Name of meter.
    rate_allocation number
    Tha rate of this sku meter.
    extended_metadatas list(object)
    Additional data give by sku.
    name String
    Name of meter.
    rateAllocation Double
    Tha rate of this sku meter.
    extendedMetadatas List<SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadata>
    Additional data give by sku.
    name string
    Name of meter.
    rateAllocation number
    Tha rate of this sku meter.
    extendedMetadatas SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadata[]
    Additional data give by sku.
    name str
    Name of meter.
    rate_allocation float
    Tha rate of this sku meter.
    extended_metadatas Sequence[SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadata]
    Additional data give by sku.
    name String
    Name of meter.
    rateAllocation Number
    Tha rate of this sku meter.
    extendedMetadatas List<Property Map>
    Additional data give by sku.

    SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadata, SelfSubscriptionSubscriptionDetailsBillingDetailsMeterExtendedMetadataArgs

    Key string
    Additional attribute for extendedMetadata.
    Value string
    It contains the value of above key.
    Key string
    Additional attribute for extendedMetadata.
    Value string
    It contains the value of above key.
    key string
    Additional attribute for extendedMetadata.
    value string
    It contains the value of above key.
    key String
    Additional attribute for extendedMetadata.
    value String
    It contains the value of above key.
    key string
    Additional attribute for extendedMetadata.
    value string
    It contains the value of above key.
    key str
    Additional attribute for extendedMetadata.
    value str
    It contains the value of above key.
    key String
    Additional attribute for extendedMetadata.
    value String
    It contains the value of above key.

    SelfSubscriptionSubscriptionDetailsPricingPlan, SelfSubscriptionSubscriptionDetailsPricingPlanArgs

    BillingFrequency string
    Specifies the interval at which billing occurs for the subscription plan.
    PlanName string
    The name of the subscription plan used to identify the plan.
    PlanType string
    The type of the subscription plan.
    Rates List<SelfSubscriptionSubscriptionDetailsPricingPlanRate>
    The pricing details of the subscription plan in various supported currencies.
    PlanDescription string
    A detailed explanation of the subscription plan.
    PlanDuration string
    Specifies the interval at which billing occurs for the subscription plan.
    BillingFrequency string
    Specifies the interval at which billing occurs for the subscription plan.
    PlanName string
    The name of the subscription plan used to identify the plan.
    PlanType string
    The type of the subscription plan.
    Rates []SelfSubscriptionSubscriptionDetailsPricingPlanRate
    The pricing details of the subscription plan in various supported currencies.
    PlanDescription string
    A detailed explanation of the subscription plan.
    PlanDuration string
    Specifies the interval at which billing occurs for the subscription plan.
    billing_frequency string
    Specifies the interval at which billing occurs for the subscription plan.
    plan_name string
    The name of the subscription plan used to identify the plan.
    plan_type string
    The type of the subscription plan.
    rates list(object)
    The pricing details of the subscription plan in various supported currencies.
    plan_description string
    A detailed explanation of the subscription plan.
    plan_duration string
    Specifies the interval at which billing occurs for the subscription plan.
    billingFrequency String
    Specifies the interval at which billing occurs for the subscription plan.
    planName String
    The name of the subscription plan used to identify the plan.
    planType String
    The type of the subscription plan.
    rates List<SelfSubscriptionSubscriptionDetailsPricingPlanRate>
    The pricing details of the subscription plan in various supported currencies.
    planDescription String
    A detailed explanation of the subscription plan.
    planDuration String
    Specifies the interval at which billing occurs for the subscription plan.
    billingFrequency string
    Specifies the interval at which billing occurs for the subscription plan.
    planName string
    The name of the subscription plan used to identify the plan.
    planType string
    The type of the subscription plan.
    rates SelfSubscriptionSubscriptionDetailsPricingPlanRate[]
    The pricing details of the subscription plan in various supported currencies.
    planDescription string
    A detailed explanation of the subscription plan.
    planDuration string
    Specifies the interval at which billing occurs for the subscription plan.
    billing_frequency str
    Specifies the interval at which billing occurs for the subscription plan.
    plan_name str
    The name of the subscription plan used to identify the plan.
    plan_type str
    The type of the subscription plan.
    rates Sequence[SelfSubscriptionSubscriptionDetailsPricingPlanRate]
    The pricing details of the subscription plan in various supported currencies.
    plan_description str
    A detailed explanation of the subscription plan.
    plan_duration str
    Specifies the interval at which billing occurs for the subscription plan.
    billingFrequency String
    Specifies the interval at which billing occurs for the subscription plan.
    planName String
    The name of the subscription plan used to identify the plan.
    planType String
    The type of the subscription plan.
    rates List<Property Map>
    The pricing details of the subscription plan in various supported currencies.
    planDescription String
    A detailed explanation of the subscription plan.
    planDuration String
    Specifies the interval at which billing occurs for the subscription plan.

    SelfSubscriptionSubscriptionDetailsPricingPlanRate, SelfSubscriptionSubscriptionDetailsPricingPlanRateArgs

    Currency string
    The currency supported, in the format specified by ISO-4217
    Rate double
    The amount charged for the plan in the specified currency.
    Currency string
    The currency supported, in the format specified by ISO-4217
    Rate float64
    The amount charged for the plan in the specified currency.
    currency string
    The currency supported, in the format specified by ISO-4217
    rate number
    The amount charged for the plan in the specified currency.
    currency String
    The currency supported, in the format specified by ISO-4217
    rate Double
    The amount charged for the plan in the specified currency.
    currency string
    The currency supported, in the format specified by ISO-4217
    rate number
    The amount charged for the plan in the specified currency.
    currency str
    The currency supported, in the format specified by ISO-4217
    rate float
    The amount charged for the plan in the specified currency.
    currency String
    The currency supported, in the format specified by ISO-4217
    rate Number
    The amount charged for the plan in the specified currency.

    Import

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

    $ pulumi import oci:oci/selfSubscription:SelfSubscription test_subscription "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.15.0
    published on Thursday, Jun 11, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial