Oracle Cloud Infrastructure
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:
- Compartment
Id string The unique identifier for the compartment.
- Filters
List<Get
Publishers Filter> - Publisher
Id string Limit results to just this publisher.
- Compartment
Id string The unique identifier for the compartment.
- Filters
[]Get
Publishers Filter - Publisher
Id string Limit results to just this publisher.
- compartment
Id String The unique identifier for the compartment.
- filters
List<Get
Publishers Filter> - publisher
Id String Limit results to just this publisher.
- compartment
Id string The unique identifier for the compartment.
- filters
Get
Publishers Filter[] - publisher
Id string Limit results to just this publisher.
- compartment_
id str The unique identifier for the compartment.
- filters
Get
Publishers Filter] - publisher_
id str Limit results to just this publisher.
- compartment
Id String The unique identifier for the compartment.
- filters List<Property Map>
- publisher
Id 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<Get
Publishers Publisher> The list of publishers.
- Compartment
Id string - Filters
List<Get
Publishers Filter> - Publisher
Id string
- Id string
The provider-assigned unique ID for this managed resource.
- Publishers
[]Get
Publishers Publisher The list of publishers.
- Compartment
Id string - Filters
[]Get
Publishers Filter - Publisher
Id string
- id String
The provider-assigned unique ID for this managed resource.
- publishers
List<Get
Publishers Publisher> The list of publishers.
- compartment
Id String - filters
List<Get
Publishers Filter> - publisher
Id String
- id string
The provider-assigned unique ID for this managed resource.
- publishers
Get
Publishers Publisher[] The list of publishers.
- compartment
Id string - filters
Get
Publishers Filter[] - publisher
Id string
- id str
The provider-assigned unique ID for this managed resource.
- publishers
Get
Publishers Publisher] The list of publishers.
- compartment_
id str - filters
Get
Publishers Filter] - publisher_
id str
- id String
The provider-assigned unique ID for this managed resource.
- publishers List<Property Map>
The list of publishers.
- compartment
Id String - filters List<Property Map>
- publisher
Id String
Supporting Types
GetPublishersFilter
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.