1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. oci
  6. getSelfPartners
Viewing docs for Oracle Cloud Infrastructure v5.2.0
published on Thursday, Oct 1, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v5.2.0
published on Thursday, Oct 1, 2026 by Pulumi

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

    Lists marketplace publisher partner info for a compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPartners = oci.oci.getSelfPartners({
        compartmentId: compartmentId,
        displayName: partnerDisplayName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_partners = oci.oci.get_self_partners(compartment_id=compartment_id,
        display_name=partner_display_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.GetSelfPartners(ctx, &oci.GetSelfPartnersArgs{
    			CompartmentId: pulumi.StringRef(compartmentId),
    			DisplayName:   pulumi.StringRef(partnerDisplayName),
    		}, 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 testPartners = Oci.Oci.GetSelfPartners.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = partnerDisplayName,
        });
    
    });
    
    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.GetSelfPartnersArgs;
    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) {
            final var testPartners = OciFunctions.getSelfPartners(GetSelfPartnersArgs.builder()
                .compartmentId(compartmentId)
                .displayName(partnerDisplayName)
                .build());
    
        }
    }
    
    variables:
      testPartners:
        fn::invoke:
          function: oci:oci:getSelfPartners
          arguments:
            compartmentId: ${compartmentId}
            displayName: ${partnerDisplayName}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_oci_getselfpartners" "testPartners" {
      compartment_id = compartmentId
      display_name   = partnerDisplayName
    }
    

    Using getSelfPartners

    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 getSelfPartners(args: GetSelfPartnersArgs, opts?: InvokeOptions): Promise<GetSelfPartnersResult>
    function getSelfPartnersOutput(args: GetSelfPartnersOutputArgs, opts?: InvokeOutputOptions): Output<GetSelfPartnersResult>
    def get_self_partners(compartment_id: Optional[str] = None,
                          display_name: Optional[str] = None,
                          filters: Optional[Sequence[GetSelfPartnersFilter]] = None,
                          opts: Optional[InvokeOptions] = None) -> GetSelfPartnersResult
    def get_self_partners_output(compartment_id: pulumi.Input[Optional[str]] = None,
                          display_name: pulumi.Input[Optional[str]] = None,
                          filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetSelfPartnersFilterArgs]]]] = None,
                          opts: Optional[InvokeOutputOptions] = None) -> Output[GetSelfPartnersResult]
    func GetSelfPartners(ctx *Context, args *GetSelfPartnersArgs, opts ...InvokeOption) (*GetSelfPartnersResult, error)
    func GetSelfPartnersOutput(ctx *Context, args *GetSelfPartnersOutputArgs, opts ...InvokeOption) GetSelfPartnersResultOutput

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

    public static class GetSelfPartners 
    {
        public static Task<GetSelfPartnersResult> InvokeAsync(GetSelfPartnersArgs args, InvokeOptions? opts = null)
        public static Output<GetSelfPartnersResult> Invoke(GetSelfPartnersInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetSelfPartnersResult> Invoke(GetSelfPartnersInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetSelfPartnersResult> getSelfPartners(GetSelfPartnersArgs args, InvokeOptions options)
    public static Output<GetSelfPartnersResult> getSelfPartners(GetSelfPartnersArgs args, InvokeOptions options)
    public static Output<GetSelfPartnersResult> getSelfPartners(GetSelfPartnersArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: oci:oci/getSelfPartners:getSelfPartners
      arguments:
        # arguments dictionary
    data "oci_oci_get_self_partners" "name" {
        # arguments
    }

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the given name.
    Filters List<GetSelfPartnersFilter>
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the given name.
    Filters []GetSelfPartnersFilter
    compartment_id string
    The OCID of the compartment in which to list resources.
    display_name string
    A filter to return only resources that match the given name.
    filters list(object)
    compartmentId String
    The OCID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the given name.
    filters List<GetSelfPartnersFilter>
    compartmentId string
    The OCID of the compartment in which to list resources.
    displayName string
    A filter to return only resources that match the given name.
    filters GetSelfPartnersFilter[]
    compartment_id str
    The OCID of the compartment in which to list resources.
    display_name str
    A filter to return only resources that match the given name.
    filters Sequence[GetSelfPartnersFilter]
    compartmentId String
    The OCID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the given name.
    filters List<Property Map>

    getSelfPartners Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    PartnerCollections List<GetSelfPartnersPartnerCollection>
    The list of partner_collection.
    CompartmentId string
    The unique identifier of the compartment of partner.
    DisplayName string
    The display name of marketplace publisher partner.
    Filters List<GetSelfPartnersFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    PartnerCollections []GetSelfPartnersPartnerCollection
    The list of partner_collection.
    CompartmentId string
    The unique identifier of the compartment of partner.
    DisplayName string
    The display name of marketplace publisher partner.
    Filters []GetSelfPartnersFilter
    id string
    The provider-assigned unique ID for this managed resource.
    partner_collections list(object)
    The list of partner_collection.
    compartment_id string
    The unique identifier of the compartment of partner.
    display_name string
    The display name of marketplace publisher partner.
    filters list(object)
    id String
    The provider-assigned unique ID for this managed resource.
    partnerCollections List<GetSelfPartnersPartnerCollection>
    The list of partner_collection.
    compartmentId String
    The unique identifier of the compartment of partner.
    displayName String
    The display name of marketplace publisher partner.
    filters List<GetSelfPartnersFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    partnerCollections GetSelfPartnersPartnerCollection[]
    The list of partner_collection.
    compartmentId string
    The unique identifier of the compartment of partner.
    displayName string
    The display name of marketplace publisher partner.
    filters GetSelfPartnersFilter[]
    id str
    The provider-assigned unique ID for this managed resource.
    partner_collections Sequence[GetSelfPartnersPartnerCollection]
    The list of partner_collection.
    compartment_id str
    The unique identifier of the compartment of partner.
    display_name str
    The display name of marketplace publisher partner.
    filters Sequence[GetSelfPartnersFilter]
    id String
    The provider-assigned unique ID for this managed resource.
    partnerCollections List<Property Map>
    The list of partner_collection.
    compartmentId String
    The unique identifier of the compartment of partner.
    displayName String
    The display name of marketplace publisher partner.
    filters List<Property Map>

    Supporting Types

    GetSelfPartnersFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name string
    values list(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

    GetSelfPartnersPartnerCollection

    Items List<GetSelfPartnersPartnerCollectionItem>
    The list of marketplace publisher partners.
    Items []GetSelfPartnersPartnerCollectionItem
    The list of marketplace publisher partners.
    items list(object)
    The list of marketplace publisher partners.
    items List<GetSelfPartnersPartnerCollectionItem>
    The list of marketplace publisher partners.
    items GetSelfPartnersPartnerCollectionItem[]
    The list of marketplace publisher partners.
    items Sequence[GetSelfPartnersPartnerCollectionItem]
    The list of marketplace publisher partners.
    items List<Property Map>
    The list of marketplace publisher partners.

    GetSelfPartnersPartnerCollectionItem

    CompartmentId string
    The OCID of the compartment in which to list resources.
    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"}
    Id string
    The unique identifier of the marketplace publisher partner.
    State string
    The current lifecycle state of the marketplace publisher partner.
    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"}
    CompartmentId string
    The OCID of the compartment in which to list resources.
    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"}
    Id string
    The unique identifier of the marketplace publisher partner.
    State string
    The current lifecycle state of the marketplace publisher partner.
    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"}
    compartment_id string
    The OCID of the compartment in which to list resources.
    defined_tags 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"}
    display_name string
    A filter to return only resources that match the given name.
    freeform_tags 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"}
    id string
    The unique identifier of the marketplace publisher partner.
    state string
    The current lifecycle state of the marketplace publisher partner.
    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"}
    compartmentId String
    The OCID of the compartment in which to list resources.
    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"}
    id String
    The unique identifier of the marketplace publisher partner.
    state String
    The current lifecycle state of the marketplace publisher partner.
    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"}
    compartmentId string
    The OCID of the compartment in which to list resources.
    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"}
    id string
    The unique identifier of the marketplace publisher partner.
    state string
    The current lifecycle state of the marketplace publisher partner.
    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"}
    compartment_id str
    The OCID of the compartment in which to list resources.
    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"}
    id str
    The unique identifier of the marketplace publisher partner.
    state str
    The current lifecycle state of the marketplace publisher partner.
    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"}
    compartmentId String
    The OCID of the compartment in which to list resources.
    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"}
    id String
    The unique identifier of the marketplace publisher partner.
    state String
    The current lifecycle state of the marketplace publisher partner.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v5.2.0
    published on Thursday, Oct 1, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial