1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getSelfPartnerSubscriptions
Viewing docs for Oracle Cloud Infrastructure v4.6.0
published on Thursday, Apr 9, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.6.0
published on Thursday, Apr 9, 2026 by Pulumi

    This data source provides the list of Partner Subscriptions in Oracle Cloud Infrastructure Self service.

    Gets information about a Subscription.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPartnerSubscriptions = oci.oci.getSelfPartnerSubscriptions({
        listingId: testListing.id,
        displayName: partnerSubscriptionDisplayName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_partner_subscriptions = oci.oci.get_self_partner_subscriptions(listing_id=test_listing["id"],
        display_name=partner_subscription_display_name)
    
    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.GetSelfPartnerSubscriptions(ctx, &oci.GetSelfPartnerSubscriptionsArgs{
    			ListingId:   testListing.Id,
    			DisplayName: pulumi.StringRef(partnerSubscriptionDisplayName),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testPartnerSubscriptions = Oci.Oci.GetSelfPartnerSubscriptions.Invoke(new()
        {
            ListingId = testListing.Id,
            DisplayName = partnerSubscriptionDisplayName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.oci.OciFunctions;
    import com.pulumi.oci.oci.inputs.GetSelfPartnerSubscriptionsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testPartnerSubscriptions = OciFunctions.getSelfPartnerSubscriptions(GetSelfPartnerSubscriptionsArgs.builder()
                .listingId(testListing.id())
                .displayName(partnerSubscriptionDisplayName)
                .build());
    
        }
    }
    
    variables:
      testPartnerSubscriptions:
        fn::invoke:
          function: oci:oci:getSelfPartnerSubscriptions
          arguments:
            listingId: ${testListing.id}
            displayName: ${partnerSubscriptionDisplayName}
    

    Using getSelfPartnerSubscriptions

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSelfPartnerSubscriptions(args: GetSelfPartnerSubscriptionsArgs, opts?: InvokeOptions): Promise<GetSelfPartnerSubscriptionsResult>
    function getSelfPartnerSubscriptionsOutput(args: GetSelfPartnerSubscriptionsOutputArgs, opts?: InvokeOptions): Output<GetSelfPartnerSubscriptionsResult>
    def get_self_partner_subscriptions(display_name: Optional[str] = None,
                                       filters: Optional[Sequence[GetSelfPartnerSubscriptionsFilter]] = None,
                                       listing_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetSelfPartnerSubscriptionsResult
    def get_self_partner_subscriptions_output(display_name: Optional[pulumi.Input[str]] = None,
                                       filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetSelfPartnerSubscriptionsFilterArgs]]]] = None,
                                       listing_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetSelfPartnerSubscriptionsResult]
    func GetSelfPartnerSubscriptions(ctx *Context, args *GetSelfPartnerSubscriptionsArgs, opts ...InvokeOption) (*GetSelfPartnerSubscriptionsResult, error)
    func GetSelfPartnerSubscriptionsOutput(ctx *Context, args *GetSelfPartnerSubscriptionsOutputArgs, opts ...InvokeOption) GetSelfPartnerSubscriptionsResultOutput

    > Note: This function is named GetSelfPartnerSubscriptions in the Go SDK.

    public static class GetSelfPartnerSubscriptions 
    {
        public static Task<GetSelfPartnerSubscriptionsResult> InvokeAsync(GetSelfPartnerSubscriptionsArgs args, InvokeOptions? opts = null)
        public static Output<GetSelfPartnerSubscriptionsResult> Invoke(GetSelfPartnerSubscriptionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSelfPartnerSubscriptionsResult> getSelfPartnerSubscriptions(GetSelfPartnerSubscriptionsArgs args, InvokeOptions options)
    public static Output<GetSelfPartnerSubscriptionsResult> getSelfPartnerSubscriptions(GetSelfPartnerSubscriptionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getSelfPartnerSubscriptions:getSelfPartnerSubscriptions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ListingId string
    The unique identifier for the listing.
    DisplayName string
    A filter to return only resources that match the given name.
    Filters List<GetSelfPartnerSubscriptionsFilter>
    ListingId string
    The unique identifier for the listing.
    DisplayName string
    A filter to return only resources that match the given name.
    Filters []GetSelfPartnerSubscriptionsFilter
    listingId String
    The unique identifier for the listing.
    displayName String
    A filter to return only resources that match the given name.
    filters List<GetSelfPartnerSubscriptionsFilter>
    listingId string
    The unique identifier for the listing.
    displayName string
    A filter to return only resources that match the given name.
    filters GetSelfPartnerSubscriptionsFilter[]
    listing_id str
    The unique identifier for the listing.
    display_name str
    A filter to return only resources that match the given name.
    filters Sequence[GetSelfPartnerSubscriptionsFilter]
    listingId String
    The unique identifier for the listing.
    displayName String
    A filter to return only resources that match the given name.
    filters List<Property Map>

    getSelfPartnerSubscriptions Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ListingId string
    ListingSubscriptionsCollections List<GetSelfPartnerSubscriptionsListingSubscriptionsCollection>
    The list of listing_subscriptions_collection.
    DisplayName string
    The subscription name. Must be unique within the compartment. This value can be updated.
    Filters List<GetSelfPartnerSubscriptionsFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    ListingId string
    ListingSubscriptionsCollections []GetSelfPartnerSubscriptionsListingSubscriptionsCollection
    The list of listing_subscriptions_collection.
    DisplayName string
    The subscription name. Must be unique within the compartment. This value can be updated.
    Filters []GetSelfPartnerSubscriptionsFilter
    id String
    The provider-assigned unique ID for this managed resource.
    listingId String
    listingSubscriptionsCollections List<GetSelfPartnerSubscriptionsListingSubscriptionsCollection>
    The list of listing_subscriptions_collection.
    displayName String
    The subscription name. Must be unique within the compartment. This value can be updated.
    filters List<GetSelfPartnerSubscriptionsFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    listingId string
    listingSubscriptionsCollections GetSelfPartnerSubscriptionsListingSubscriptionsCollection[]
    The list of listing_subscriptions_collection.
    displayName string
    The subscription name. Must be unique within the compartment. This value can be updated.
    filters GetSelfPartnerSubscriptionsFilter[]
    id str
    The provider-assigned unique ID for this managed resource.
    listing_id str
    listing_subscriptions_collections Sequence[GetSelfPartnerSubscriptionsListingSubscriptionsCollection]
    The list of listing_subscriptions_collection.
    display_name str
    The subscription name. Must be unique within the compartment. This value can be updated.
    filters Sequence[GetSelfPartnerSubscriptionsFilter]
    id String
    The provider-assigned unique ID for this managed resource.
    listingId String
    listingSubscriptionsCollections List<Property Map>
    The list of listing_subscriptions_collection.
    displayName String
    The subscription name. Must be unique within the compartment. This value can be updated.
    filters List<Property Map>

    Supporting Types

    GetSelfPartnerSubscriptionsFilter

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

    GetSelfPartnerSubscriptionsListingSubscriptionsCollection

    Items []GetSelfPartnerSubscriptionsListingSubscriptionsCollectionItem
    List of subscriptions for particular listing.
    items GetSelfPartnerSubscriptionsListingSubscriptionsCollectionItem[]
    List of subscriptions for particular listing.
    items List<Property Map>
    List of subscriptions for particular listing.

    GetSelfPartnerSubscriptionsListingSubscriptionsCollectionItem

    DefinedTags Dictionary<string, string>
    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
    A filter to return only resources that match the given name.
    FreeformTags Dictionary<string, string>
    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 marketplace listing in Oracle Cloud Infrastructure.
    State string
    The current 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"}
    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
    DefinedTags map[string]string
    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
    A filter to return only resources that match the given name.
    FreeformTags map[string]string
    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 marketplace listing in Oracle Cloud Infrastructure.
    State string
    The current 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"}
    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
    definedTags Map<String,String>
    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
    A filter to return only resources that match the given name.
    freeformTags Map<String,String>
    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 marketplace listing in Oracle Cloud Infrastructure.
    state String
    The current 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"}
    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
    definedTags {[key: string]: string}
    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
    A filter to return only resources that match the given name.
    freeformTags {[key: string]: string}
    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 marketplace listing in Oracle Cloud Infrastructure.
    state string
    The current 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"}
    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
    defined_tags Mapping[str, str]
    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
    A filter to return only resources that match the given name.
    freeform_tags Mapping[str, str]
    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 marketplace listing in Oracle Cloud Infrastructure.
    state str
    The current 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_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
    definedTags Map<String>
    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
    A filter to return only resources that match the given name.
    freeformTags Map<String>
    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 marketplace listing in Oracle Cloud Infrastructure.
    state String
    The current 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"}
    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

    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.6.0
    published on Thursday, Apr 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.