Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getPublishers

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testPublishers = Output.Create(Oci.Marketplace.GetPublishers.InvokeAsync(new Oci.Marketplace.GetPublishersArgs
        {
            CompartmentId = @var.Compartment_id,
            PublisherId = 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
	})
}

Coming soon!

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"])
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,
});

Coming soon!

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 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 GetPublishersPublisher]

The list of publishers.

compartment_id str
filters 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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.