1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Marketplace
  5. getPublishers
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

oci.Marketplace.getPublishers

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi

    This data source provides the list of Publishers in Oracle Cloud Infrastructure Marketplace service.

    Gets the list of all the publishers of listings available in Oracle Cloud Infrastructure Marketplace.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPublishers = oci.Marketplace.getPublishers({
        compartmentId: _var.compartment_id,
        publisherId: oci_marketplace_publisher.test_publisher.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_publishers = oci.Marketplace.get_publishers(compartment_id=var["compartment_id"],
        publisher_id=oci_marketplace_publisher["test_publisher"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Marketplace"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Marketplace.GetPublishers(ctx, &marketplace.GetPublishersArgs{
    			CompartmentId: pulumi.StringRef(_var.Compartment_id),
    			PublisherId:   pulumi.StringRef(oci_marketplace_publisher.Test_publisher.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testPublishers = Oci.Marketplace.GetPublishers.Invoke(new()
        {
            CompartmentId = @var.Compartment_id,
            PublisherId = oci_marketplace_publisher.Test_publisher.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Marketplace.MarketplaceFunctions;
    import com.pulumi.oci.Marketplace.inputs.GetPublishersArgs;
    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 testPublishers = MarketplaceFunctions.getPublishers(GetPublishersArgs.builder()
                .compartmentId(var_.compartment_id())
                .publisherId(oci_marketplace_publisher.test_publisher().id())
                .build());
    
        }
    }
    
    variables:
      testPublishers:
        fn::invoke:
          Function: oci:Marketplace:getPublishers
          Arguments:
            compartmentId: ${var.compartment_id}
            publisherId: ${oci_marketplace_publisher.test_publisher.id}
    

    Using getPublishers

    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 getPublishers(args: GetPublishersArgs, opts?: InvokeOptions): Promise<GetPublishersResult>
    function getPublishersOutput(args: GetPublishersOutputArgs, opts?: InvokeOptions): Output<GetPublishersResult>
    def get_publishers(compartment_id: Optional[str] = None,
                       filters: Optional[Sequence[_marketplace.GetPublishersFilter]] = None,
                       publisher_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetPublishersResult
    def get_publishers_output(compartment_id: Optional[pulumi.Input[str]] = None,
                       filters: Optional[pulumi.Input[Sequence[pulumi.Input[_marketplace.GetPublishersFilterArgs]]]] = None,
                       publisher_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetPublishersResult]
    func GetPublishers(ctx *Context, args *GetPublishersArgs, opts ...InvokeOption) (*GetPublishersResult, error)
    func GetPublishersOutput(ctx *Context, args *GetPublishersOutputArgs, opts ...InvokeOption) GetPublishersResultOutput

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

    public static class GetPublishers 
    {
        public static Task<GetPublishersResult> InvokeAsync(GetPublishersArgs args, InvokeOptions? opts = null)
        public static Output<GetPublishersResult> Invoke(GetPublishersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPublishersResult> getPublishers(GetPublishersArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Marketplace/getPublishers:getPublishers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The unique identifier for the compartment.
    Filters List<GetPublishersFilter>
    PublisherId string
    Limit results to just this publisher.
    CompartmentId string
    The unique identifier for the compartment.
    Filters []GetPublishersFilter
    PublisherId string
    Limit results to just this publisher.
    compartmentId String
    The unique identifier for the compartment.
    filters List<GetPublishersFilter>
    publisherId String
    Limit results to just this publisher.
    compartmentId string
    The unique identifier for the compartment.
    filters GetPublishersFilter[]
    publisherId string
    Limit results to just this publisher.
    compartment_id str
    The unique identifier for the compartment.
    filters Sequence[marketplace.GetPublishersFilter]
    publisher_id str
    Limit results to just this publisher.
    compartmentId String
    The unique identifier for the compartment.
    filters List<Property Map>
    publisherId String
    Limit results to just this publisher.

    getPublishers Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Publishers List<GetPublishersPublisher>
    The list of publishers.
    CompartmentId string
    Filters List<GetPublishersFilter>
    PublisherId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Publishers []GetPublishersPublisher
    The list of publishers.
    CompartmentId string
    Filters []GetPublishersFilter
    PublisherId string
    id String
    The provider-assigned unique ID for this managed resource.
    publishers List<GetPublishersPublisher>
    The list of publishers.
    compartmentId String
    filters List<GetPublishersFilter>
    publisherId String
    id string
    The provider-assigned unique ID for this managed resource.
    publishers GetPublishersPublisher[]
    The list of publishers.
    compartmentId string
    filters GetPublishersFilter[]
    publisherId string
    id str
    The provider-assigned unique ID for this managed resource.
    publishers Sequence[marketplace.GetPublishersPublisher]
    The list of publishers.
    compartment_id str
    filters Sequence[marketplace.GetPublishersFilter]
    publisher_id str
    id String
    The provider-assigned unique ID for this managed resource.
    publishers List<Property Map>
    The list of publishers.
    compartmentId String
    filters List<Property Map>
    publisherId String

    Supporting Types

    GetPublishersFilter

    Name string
    The name of the publisher.
    Values List<string>
    Regex bool
    Name string
    The name of the publisher.
    Values []string
    Regex bool
    name String
    The name of the publisher.
    values List<String>
    regex Boolean
    name string
    The name of the publisher.
    values string[]
    regex boolean
    name str
    The name of the publisher.
    values Sequence[str]
    regex bool
    name String
    The name of the publisher.
    values List<String>
    regex Boolean

    GetPublishersPublisher

    Description string
    A description of the publisher.
    Id string
    The unique identifier for the publisher.
    Name string
    The name of the publisher.
    Description string
    A description of the publisher.
    Id string
    The unique identifier for the publisher.
    Name string
    The name of the publisher.
    description String
    A description of the publisher.
    id String
    The unique identifier for the publisher.
    name String
    The name of the publisher.
    description string
    A description of the publisher.
    id string
    The unique identifier for the publisher.
    name string
    The name of the publisher.
    description str
    A description of the publisher.
    id str
    The unique identifier for the publisher.
    name str
    The name of the publisher.
    description String
    A description of the publisher.
    id String
    The unique identifier for the publisher.
    name String
    The name of the publisher.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.31.0 published on Wednesday, Apr 10, 2024 by Pulumi