1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Marketplace
  5. getPublications
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Marketplace.getPublications

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

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

    Lists the publications in the specified compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPublications = oci.Marketplace.getPublications({
        compartmentId: _var.compartment_id,
        listingType: _var.publication_listing_type,
        names: _var.publication_name,
        operatingSystems: _var.publication_operating_systems,
        publicationId: oci_marketplace_publication.test_publication.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_publications = oci.Marketplace.get_publications(compartment_id=var["compartment_id"],
        listing_type=var["publication_listing_type"],
        names=var["publication_name"],
        operating_systems=var["publication_operating_systems"],
        publication_id=oci_marketplace_publication["test_publication"]["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.GetPublications(ctx, &marketplace.GetPublicationsArgs{
    			CompartmentId:    _var.Compartment_id,
    			ListingType:      _var.Publication_listing_type,
    			Names:            _var.Publication_name,
    			OperatingSystems: _var.Publication_operating_systems,
    			PublicationId:    pulumi.StringRef(oci_marketplace_publication.Test_publication.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 testPublications = Oci.Marketplace.GetPublications.Invoke(new()
        {
            CompartmentId = @var.Compartment_id,
            ListingType = @var.Publication_listing_type,
            Names = @var.Publication_name,
            OperatingSystems = @var.Publication_operating_systems,
            PublicationId = oci_marketplace_publication.Test_publication.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.GetPublicationsArgs;
    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 testPublications = MarketplaceFunctions.getPublications(GetPublicationsArgs.builder()
                .compartmentId(var_.compartment_id())
                .listingType(var_.publication_listing_type())
                .names(var_.publication_name())
                .operatingSystems(var_.publication_operating_systems())
                .publicationId(oci_marketplace_publication.test_publication().id())
                .build());
    
        }
    }
    
    variables:
      testPublications:
        fn::invoke:
          Function: oci:Marketplace:getPublications
          Arguments:
            compartmentId: ${var.compartment_id}
            listingType: ${var.publication_listing_type}
            names: ${var.publication_name}
            operatingSystems: ${var.publication_operating_systems}
            publicationId: ${oci_marketplace_publication.test_publication.id}
    

    Using getPublications

    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 getPublications(args: GetPublicationsArgs, opts?: InvokeOptions): Promise<GetPublicationsResult>
    function getPublicationsOutput(args: GetPublicationsOutputArgs, opts?: InvokeOptions): Output<GetPublicationsResult>
    def get_publications(compartment_id: Optional[str] = None,
                         filters: Optional[Sequence[_marketplace.GetPublicationsFilter]] = None,
                         listing_type: Optional[str] = None,
                         names: Optional[Sequence[str]] = None,
                         operating_systems: Optional[Sequence[str]] = None,
                         publication_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetPublicationsResult
    def get_publications_output(compartment_id: Optional[pulumi.Input[str]] = None,
                         filters: Optional[pulumi.Input[Sequence[pulumi.Input[_marketplace.GetPublicationsFilterArgs]]]] = None,
                         listing_type: Optional[pulumi.Input[str]] = None,
                         names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                         operating_systems: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                         publication_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetPublicationsResult]
    func GetPublications(ctx *Context, args *GetPublicationsArgs, opts ...InvokeOption) (*GetPublicationsResult, error)
    func GetPublicationsOutput(ctx *Context, args *GetPublicationsOutputArgs, opts ...InvokeOption) GetPublicationsResultOutput

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

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

    The following arguments are supported:

    CompartmentId string
    The unique identifier for the compartment.
    ListingType string
    The type of the listing.
    Filters List<GetPublicationsFilter>
    Names List<string>
    The name of the publication.
    OperatingSystems List<string>
    The operating system of the listing.
    PublicationId string
    The unique identifier for the publication.
    CompartmentId string
    The unique identifier for the compartment.
    ListingType string
    The type of the listing.
    Filters []GetPublicationsFilter
    Names []string
    The name of the publication.
    OperatingSystems []string
    The operating system of the listing.
    PublicationId string
    The unique identifier for the publication.
    compartmentId String
    The unique identifier for the compartment.
    listingType String
    The type of the listing.
    filters List<GetPublicationsFilter>
    names List<String>
    The name of the publication.
    operatingSystems List<String>
    The operating system of the listing.
    publicationId String
    The unique identifier for the publication.
    compartmentId string
    The unique identifier for the compartment.
    listingType string
    The type of the listing.
    filters GetPublicationsFilter[]
    names string[]
    The name of the publication.
    operatingSystems string[]
    The operating system of the listing.
    publicationId string
    The unique identifier for the publication.
    compartment_id str
    The unique identifier for the compartment.
    listing_type str
    The type of the listing.
    filters Sequence[marketplace.GetPublicationsFilter]
    names Sequence[str]
    The name of the publication.
    operating_systems Sequence[str]
    The operating system of the listing.
    publication_id str
    The unique identifier for the publication.
    compartmentId String
    The unique identifier for the compartment.
    listingType String
    The type of the listing.
    filters List<Property Map>
    names List<String>
    The name of the publication.
    operatingSystems List<String>
    The operating system of the listing.
    publicationId String
    The unique identifier for the publication.

    getPublications Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment where the publication exists.
    Id string
    The provider-assigned unique ID for this managed resource.
    ListingType string
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    Publications List<GetPublicationsPublication>
    The list of publications.
    Filters List<GetPublicationsFilter>
    Names List<string>
    The name of the operating system.
    OperatingSystems List<string>
    PublicationId string
    CompartmentId string
    The OCID of the compartment where the publication exists.
    Id string
    The provider-assigned unique ID for this managed resource.
    ListingType string
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    Publications []GetPublicationsPublication
    The list of publications.
    Filters []GetPublicationsFilter
    Names []string
    The name of the operating system.
    OperatingSystems []string
    PublicationId string
    compartmentId String
    The OCID of the compartment where the publication exists.
    id String
    The provider-assigned unique ID for this managed resource.
    listingType String
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    publications List<GetPublicationsPublication>
    The list of publications.
    filters List<GetPublicationsFilter>
    names List<String>
    The name of the operating system.
    operatingSystems List<String>
    publicationId String
    compartmentId string
    The OCID of the compartment where the publication exists.
    id string
    The provider-assigned unique ID for this managed resource.
    listingType string
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    publications GetPublicationsPublication[]
    The list of publications.
    filters GetPublicationsFilter[]
    names string[]
    The name of the operating system.
    operatingSystems string[]
    publicationId string
    compartment_id str
    The OCID of the compartment where the publication exists.
    id str
    The provider-assigned unique ID for this managed resource.
    listing_type str
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    publications Sequence[marketplace.GetPublicationsPublication]
    The list of publications.
    filters Sequence[marketplace.GetPublicationsFilter]
    names Sequence[str]
    The name of the operating system.
    operating_systems Sequence[str]
    publication_id str
    compartmentId String
    The OCID of the compartment where the publication exists.
    id String
    The provider-assigned unique ID for this managed resource.
    listingType String
    The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
    publications List<Property Map>
    The list of publications.
    filters List<Property Map>
    names List<String>
    The name of the operating system.
    operatingSystems List<String>
    publicationId String

    Supporting Types

    GetPublicationsFilter

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

    GetPublicationsPublication

    CompartmentId string
    The unique identifier for the compartment.
    DefinedTags Dictionary<string, object>
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags Dictionary<string, object>
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Icons List<GetPublicationsPublicationIcon>
    The model for upload data for images and icons.
    Id string
    The unique identifier for the publication in Marketplace.
    IsAgreementAcknowledged bool
    ListingType string
    The type of the listing.
    LongDescription string
    A long description of the publication to use in the listing.
    Name string
    The name of the publication.
    PackageDetails List<GetPublicationsPublicationPackageDetail>
    PackageType string
    The listing's package type.
    ShortDescription string
    A short description of the publication to use in the listing.
    State string
    The lifecycle state of the publication.
    SupportContacts List<GetPublicationsPublicationSupportContact>
    Contact information for getting support from the publisher for the listing.
    SupportedOperatingSystems List<GetPublicationsPublicationSupportedOperatingSystem>
    The list of operating systems supported by the listing.
    SystemTags Dictionary<string, object>
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    TimeCreated string
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    CompartmentId string
    The unique identifier for the compartment.
    DefinedTags map[string]interface{}
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags map[string]interface{}
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Icons []GetPublicationsPublicationIcon
    The model for upload data for images and icons.
    Id string
    The unique identifier for the publication in Marketplace.
    IsAgreementAcknowledged bool
    ListingType string
    The type of the listing.
    LongDescription string
    A long description of the publication to use in the listing.
    Name string
    The name of the publication.
    PackageDetails []GetPublicationsPublicationPackageDetail
    PackageType string
    The listing's package type.
    ShortDescription string
    A short description of the publication to use in the listing.
    State string
    The lifecycle state of the publication.
    SupportContacts []GetPublicationsPublicationSupportContact
    Contact information for getting support from the publisher for the listing.
    SupportedOperatingSystems []GetPublicationsPublicationSupportedOperatingSystem
    The list of operating systems supported by the listing.
    SystemTags map[string]interface{}
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    TimeCreated string
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The unique identifier for the compartment.
    definedTags Map<String,Object>
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String,Object>
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    icons List<GetPublicationsPublicationIcon>
    The model for upload data for images and icons.
    id String
    The unique identifier for the publication in Marketplace.
    isAgreementAcknowledged Boolean
    listingType String
    The type of the listing.
    longDescription String
    A long description of the publication to use in the listing.
    name String
    The name of the publication.
    packageDetails List<GetPublicationsPublicationPackageDetail>
    packageType String
    The listing's package type.
    shortDescription String
    A short description of the publication to use in the listing.
    state String
    The lifecycle state of the publication.
    supportContacts List<GetPublicationsPublicationSupportContact>
    Contact information for getting support from the publisher for the listing.
    supportedOperatingSystems List<GetPublicationsPublicationSupportedOperatingSystem>
    The list of operating systems supported by the listing.
    systemTags Map<String,Object>
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated String
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    compartmentId string
    The unique identifier for the compartment.
    definedTags {[key: string]: any}
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags {[key: string]: any}
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    icons GetPublicationsPublicationIcon[]
    The model for upload data for images and icons.
    id string
    The unique identifier for the publication in Marketplace.
    isAgreementAcknowledged boolean
    listingType string
    The type of the listing.
    longDescription string
    A long description of the publication to use in the listing.
    name string
    The name of the publication.
    packageDetails GetPublicationsPublicationPackageDetail[]
    packageType string
    The listing's package type.
    shortDescription string
    A short description of the publication to use in the listing.
    state string
    The lifecycle state of the publication.
    supportContacts GetPublicationsPublicationSupportContact[]
    Contact information for getting support from the publisher for the listing.
    supportedOperatingSystems GetPublicationsPublicationSupportedOperatingSystem[]
    The list of operating systems supported by the listing.
    systemTags {[key: string]: any}
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated string
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    compartment_id str
    The unique identifier for the compartment.
    defined_tags Mapping[str, Any]
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeform_tags Mapping[str, Any]
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    icons Sequence[marketplace.GetPublicationsPublicationIcon]
    The model for upload data for images and icons.
    id str
    The unique identifier for the publication in Marketplace.
    is_agreement_acknowledged bool
    listing_type str
    The type of the listing.
    long_description str
    A long description of the publication to use in the listing.
    name str
    The name of the publication.
    package_details Sequence[marketplace.GetPublicationsPublicationPackageDetail]
    package_type str
    The listing's package type.
    short_description str
    A short description of the publication to use in the listing.
    state str
    The lifecycle state of the publication.
    support_contacts Sequence[marketplace.GetPublicationsPublicationSupportContact]
    Contact information for getting support from the publisher for the listing.
    supported_operating_systems Sequence[marketplace.GetPublicationsPublicationSupportedOperatingSystem]
    The list of operating systems supported by the listing.
    system_tags Mapping[str, Any]
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    time_created str
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The unique identifier for the compartment.
    definedTags Map<Any>
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<Any>
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    icons List<Property Map>
    The model for upload data for images and icons.
    id String
    The unique identifier for the publication in Marketplace.
    isAgreementAcknowledged Boolean
    listingType String
    The type of the listing.
    longDescription String
    A long description of the publication to use in the listing.
    name String
    The name of the publication.
    packageDetails List<Property Map>
    packageType String
    The listing's package type.
    shortDescription String
    A short description of the publication to use in the listing.
    state String
    The lifecycle state of the publication.
    supportContacts List<Property Map>
    Contact information for getting support from the publisher for the listing.
    supportedOperatingSystems List<Property Map>
    The list of operating systems supported by the listing.
    systemTags Map<Any>
    The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated String
    The date and time the publication was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z

    GetPublicationsPublicationIcon

    ContentUrl string
    The content URL of the upload data.
    FileExtension string
    The file extension of the upload data.
    MimeType string
    The MIME type of the upload data.
    Name string
    The name of the publication.
    ContentUrl string
    The content URL of the upload data.
    FileExtension string
    The file extension of the upload data.
    MimeType string
    The MIME type of the upload data.
    Name string
    The name of the publication.
    contentUrl String
    The content URL of the upload data.
    fileExtension String
    The file extension of the upload data.
    mimeType String
    The MIME type of the upload data.
    name String
    The name of the publication.
    contentUrl string
    The content URL of the upload data.
    fileExtension string
    The file extension of the upload data.
    mimeType string
    The MIME type of the upload data.
    name string
    The name of the publication.
    content_url str
    The content URL of the upload data.
    file_extension str
    The file extension of the upload data.
    mime_type str
    The MIME type of the upload data.
    name str
    The name of the publication.
    contentUrl String
    The content URL of the upload data.
    fileExtension String
    The file extension of the upload data.
    mimeType String
    The MIME type of the upload data.
    name String
    The name of the publication.

    GetPublicationsPublicationPackageDetail

    GetPublicationsPublicationPackageDetailEula

    EulaType string
    LicenseText string
    EulaType string
    LicenseText string
    eulaType String
    licenseText String
    eulaType string
    licenseText string
    eulaType String
    licenseText String

    GetPublicationsPublicationPackageDetailOperatingSystem

    Name string
    The name of the publication.
    Name string
    The name of the publication.
    name String
    The name of the publication.
    name string
    The name of the publication.
    name str
    The name of the publication.
    name String
    The name of the publication.

    GetPublicationsPublicationSupportContact

    Email string
    The email of the contact.
    Name string
    The name of the publication.
    Phone string
    The phone number of the contact.
    Subject string
    The email subject line to use when contacting support.
    Email string
    The email of the contact.
    Name string
    The name of the publication.
    Phone string
    The phone number of the contact.
    Subject string
    The email subject line to use when contacting support.
    email String
    The email of the contact.
    name String
    The name of the publication.
    phone String
    The phone number of the contact.
    subject String
    The email subject line to use when contacting support.
    email string
    The email of the contact.
    name string
    The name of the publication.
    phone string
    The phone number of the contact.
    subject string
    The email subject line to use when contacting support.
    email str
    The email of the contact.
    name str
    The name of the publication.
    phone str
    The phone number of the contact.
    subject str
    The email subject line to use when contacting support.
    email String
    The email of the contact.
    name String
    The name of the publication.
    phone String
    The phone number of the contact.
    subject String
    The email subject line to use when contacting support.

    GetPublicationsPublicationSupportedOperatingSystem

    Name string
    The name of the publication.
    Name string
    The name of the publication.
    name String
    The name of the publication.
    name string
    The name of the publication.
    name str
    The name of the publication.
    name String
    The name of the publication.

    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.32.0 published on Thursday, Apr 18, 2024 by Pulumi