Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Marketplace.getPublishers
Explore with Pulumi AI
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: compartmentId,
publisherId: testPublisher.id,
});
import pulumi
import pulumi_oci as oci
test_publishers = oci.Marketplace.get_publishers(compartment_id=compartment_id,
publisher_id=test_publisher["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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(compartmentId),
PublisherId: pulumi.StringRef(testPublisher.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 = compartmentId,
PublisherId = testPublisher.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(compartmentId)
.publisherId(testPublisher.id())
.build());
}
}
variables:
testPublishers:
fn::invoke:
Function: oci:Marketplace:getPublishers
Arguments:
compartmentId: ${compartmentId}
publisherId: ${testPublisher.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:
- 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
Sequence[marketplace.
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
Sequence[marketplace.
Get Publishers Publisher] - The list of publishers.
- compartment_
id str - filters
Sequence[marketplace.
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
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.