Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Marketplace.getPublications
Explore with Pulumi AI
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: compartmentId,
    listingType: publicationListingType,
    names: publicationName,
    operatingSystems: publicationOperatingSystems,
    publicationId: testPublication.id,
});
import pulumi
import pulumi_oci as oci
test_publications = oci.Marketplace.get_publications(compartment_id=compartment_id,
    listing_type=publication_listing_type,
    names=publication_name,
    operating_systems=publication_operating_systems,
    publication_id=test_publication["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.GetPublications(ctx, &marketplace.GetPublicationsArgs{
			CompartmentId:    compartmentId,
			ListingType:      publicationListingType,
			Names:            publicationName,
			OperatingSystems: publicationOperatingSystems,
			PublicationId:    pulumi.StringRef(testPublication.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 = compartmentId,
        ListingType = publicationListingType,
        Names = publicationName,
        OperatingSystems = publicationOperatingSystems,
        PublicationId = testPublication.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(compartmentId)
            .listingType(publicationListingType)
            .names(publicationName)
            .operatingSystems(publicationOperatingSystems)
            .publicationId(testPublication.id())
            .build());
    }
}
variables:
  testPublications:
    fn::invoke:
      function: oci:Marketplace:getPublications
      arguments:
        compartmentId: ${compartmentId}
        listingType: ${publicationListingType}
        names: ${publicationName}
        operatingSystems: ${publicationOperatingSystems}
        publicationId: ${testPublication.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[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[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)
public static Output<GetPublicationsResult> getPublications(GetPublicationsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Marketplace/getPublications:getPublications
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The unique identifier for the compartment.
- ListingType string
- The type of the listing.
- Filters
List<GetPublications Filter> 
- 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
[]GetPublications Filter 
- 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<GetPublications Filter> 
- 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
GetPublications Filter[] 
- 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[GetPublications Filter] 
- 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<GetPublications Publication> 
- The list of publications.
- Filters
List<GetPublications Filter> 
- 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
[]GetPublications Publication 
- The list of publications.
- Filters
[]GetPublications Filter 
- 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<GetPublications Publication> 
- The list of publications.
- filters
List<GetPublications Filter> 
- 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
GetPublications Publication[] 
- The list of publications.
- filters
GetPublications Filter[] 
- 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[GetPublications Publication] 
- The list of publications.
- filters
Sequence[GetPublications Filter] 
- 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  
GetPublicationsPublication  
- CompartmentId string
- The unique identifier for the compartment.
- Dictionary<string, string>
- 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"}
- Dictionary<string, string>
- 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<GetPublications Publication Icon> 
- The model for upload data for images and icons.
- Id string
- The unique identifier for the publication in Marketplace.
- IsAgreement boolAcknowledged 
- 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<GetPublications Publication Package Detail> 
- 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<GetPublications Publication Support Contact> 
- Contact information for getting support from the publisher for the listing.
- SupportedOperating List<GetSystems Publications Publication Supported Operating System> 
- The list of operating systems supported by the listing.
- Dictionary<string, string>
- 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.
- map[string]string
- 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"}
- map[string]string
- 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
[]GetPublications Publication Icon 
- The model for upload data for images and icons.
- Id string
- The unique identifier for the publication in Marketplace.
- IsAgreement boolAcknowledged 
- 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 []GetPublications Publication Package Detail 
- 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 []GetPublications Publication Support Contact 
- Contact information for getting support from the publisher for the listing.
- SupportedOperating []GetSystems Publications Publication Supported Operating System 
- The list of operating systems supported by the listing.
- map[string]string
- 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.
- Map<String,String>
- 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"}
- Map<String,String>
- 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<GetPublications Publication Icon> 
- The model for upload data for images and icons.
- id String
- The unique identifier for the publication in Marketplace.
- isAgreement BooleanAcknowledged 
- 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<GetPublications Publication Package Detail> 
- 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<GetPublications Publication Support Contact> 
- Contact information for getting support from the publisher for the listing.
- supportedOperating List<GetSystems Publications Publication Supported Operating System> 
- The list of operating systems supported by the listing.
- Map<String,String>
- 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.
- {[key: string]: string}
- 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"}
- {[key: string]: string}
- 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
GetPublications Publication Icon[] 
- The model for upload data for images and icons.
- id string
- The unique identifier for the publication in Marketplace.
- isAgreement booleanAcknowledged 
- 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 GetPublications Publication Package Detail[] 
- 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 GetPublications Publication Support Contact[] 
- Contact information for getting support from the publisher for the listing.
- supportedOperating GetSystems Publications Publication Supported Operating System[] 
- The list of operating systems supported by the listing.
- {[key: string]: string}
- 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.
- Mapping[str, str]
- 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"}
- Mapping[str, str]
- 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[GetPublications Publication Icon] 
- The model for upload data for images and icons.
- id str
- The unique identifier for the publication in Marketplace.
- is_agreement_ boolacknowledged 
- 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[GetPublications Publication Package Detail] 
- 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[GetPublications Publication Support Contact] 
- Contact information for getting support from the publisher for the listing.
- supported_operating_ Sequence[Getsystems Publications Publication Supported Operating System] 
- The list of operating systems supported by the listing.
- Mapping[str, str]
- 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.
- Map<String>
- 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"}
- Map<String>
- 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.
- isAgreement BooleanAcknowledged 
- 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.
- supportedOperating List<Property Map>Systems 
- The list of operating systems supported by the listing.
- Map<String>
- 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    
- Eulas
List<GetPublications Publication Package Detail Eula> 
- ImageId string
- OperatingSystems List<GetPublications Publication Package Detail Operating System> 
- PackageType string
- The listing's package type.
- PackageVersion string
- Eulas
[]GetPublications Publication Package Detail Eula 
- ImageId string
- OperatingSystems []GetPublications Publication Package Detail Operating System 
- PackageType string
- The listing's package type.
- PackageVersion string
- eulas
List<GetPublications Publication Package Detail Eula> 
- imageId String
- operatingSystems List<GetPublications Publication Package Detail Operating System> 
- packageType String
- The listing's package type.
- packageVersion String
- eulas
GetPublications Publication Package Detail Eula[] 
- imageId string
- operatingSystems GetPublications Publication Package Detail Operating System[] 
- packageType string
- The listing's package type.
- packageVersion string
- eulas List<Property Map>
- imageId String
- operatingSystems List<Property Map>
- packageType String
- The listing's package type.
- packageVersion String
GetPublicationsPublicationPackageDetailEula     
- EulaType string
- LicenseText string
- EulaType string
- LicenseText string
- eulaType String
- licenseText String
- eulaType string
- licenseText string
- eula_type str
- license_text str
- 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    
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 ociTerraform Provider.