Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_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:
- Compartment
Id string - The unique identifier for the compartment.
- Listing
Type string - The type of the listing.
- Filters
List<Get
Publications Filter> - Names List<string>
- The name of the publication.
- Operating
Systems List<string> - The operating system of the listing.
- Publication
Id string - The unique identifier for the publication.
- Compartment
Id string - The unique identifier for the compartment.
- Listing
Type string - The type of the listing.
- Filters
[]Get
Publications Filter - Names []string
- The name of the publication.
- Operating
Systems []string - The operating system of the listing.
- Publication
Id string - The unique identifier for the publication.
- compartment
Id String - The unique identifier for the compartment.
- listing
Type String - The type of the listing.
- filters
List<Get
Publications Filter> - names List<String>
- The name of the publication.
- operating
Systems List<String> - The operating system of the listing.
- publication
Id String - The unique identifier for the publication.
- compartment
Id string - The unique identifier for the compartment.
- listing
Type string - The type of the listing.
- filters
Get
Publications Filter[] - names string[]
- The name of the publication.
- operating
Systems string[] - The operating system of the listing.
- publication
Id 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.
Get Publications 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.
- compartment
Id String - The unique identifier for the compartment.
- listing
Type String - The type of the listing.
- filters List<Property Map>
- names List<String>
- The name of the publication.
- operating
Systems List<String> - The operating system of the listing.
- publication
Id String - The unique identifier for the publication.
getPublications Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment where the publication exists.
- Id string
- The provider-assigned unique ID for this managed resource.
- Listing
Type string - The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
- Publications
List<Get
Publications Publication> - The list of publications.
- Filters
List<Get
Publications Filter> - Names List<string>
- The name of the operating system.
- Operating
Systems List<string> - Publication
Id string
- Compartment
Id string - The OCID of the compartment where the publication exists.
- Id string
- The provider-assigned unique ID for this managed resource.
- Listing
Type string - The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
- Publications
[]Get
Publications Publication - The list of publications.
- Filters
[]Get
Publications Filter - Names []string
- The name of the operating system.
- Operating
Systems []string - Publication
Id string
- compartment
Id String - The OCID of the compartment where the publication exists.
- id String
- The provider-assigned unique ID for this managed resource.
- listing
Type String - The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
- publications
List<Get
Publications Publication> - The list of publications.
- filters
List<Get
Publications Filter> - names List<String>
- The name of the operating system.
- operating
Systems List<String> - publication
Id String
- compartment
Id string - The OCID of the compartment where the publication exists.
- id string
- The provider-assigned unique ID for this managed resource.
- listing
Type string - The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.
- publications
Get
Publications Publication[] - The list of publications.
- filters
Get
Publications Filter[] - names string[]
- The name of the operating system.
- operating
Systems string[] - publication
Id 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.
Get Publications Publication] - The list of publications.
- filters
Sequence[marketplace.
Get Publications Filter] - names Sequence[str]
- The name of the operating system.
- operating_
systems Sequence[str] - publication_
id str
- compartment
Id String - The OCID of the compartment where the publication exists.
- id String
- The provider-assigned unique ID for this managed resource.
- listing
Type 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.
- operating
Systems List<String> - publication
Id String
Supporting Types
GetPublicationsFilter
GetPublicationsPublication
- Compartment
Id 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<Get
Publications Publication Icon> - The model for upload data for images and icons.
- Id string
- The unique identifier for the publication in Marketplace.
- Is
Agreement boolAcknowledged - Listing
Type string - The type of the listing.
- Long
Description string - A long description of the publication to use in the listing.
- Name string
- The name of the publication.
- Package
Details List<GetPublications Publication Package Detail> - Package
Type string - The listing's package type.
- Short
Description string - A short description of the publication to use in the listing.
- State string
- The lifecycle state of the publication.
- Support
Contacts List<GetPublications Publication Support Contact> - Contact information for getting support from the publisher for the listing.
- Supported
Operating 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}}
- Time
Created string - The date and time the publication was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Compartment
Id 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
[]Get
Publications Publication Icon - The model for upload data for images and icons.
- Id string
- The unique identifier for the publication in Marketplace.
- Is
Agreement boolAcknowledged - Listing
Type string - The type of the listing.
- Long
Description string - A long description of the publication to use in the listing.
- Name string
- The name of the publication.
- Package
Details []GetPublications Publication Package Detail - Package
Type string - The listing's package type.
- Short
Description string - A short description of the publication to use in the listing.
- State string
- The lifecycle state of the publication.
- Support
Contacts []GetPublications Publication Support Contact - Contact information for getting support from the publisher for the listing.
- Supported
Operating []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}}
- Time
Created string - The date and time the publication was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- compartment
Id 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<Get
Publications Publication Icon> - The model for upload data for images and icons.
- id String
- The unique identifier for the publication in Marketplace.
- is
Agreement BooleanAcknowledged - listing
Type String - The type of the listing.
- long
Description String - A long description of the publication to use in the listing.
- name String
- The name of the publication.
- package
Details List<GetPublications Publication Package Detail> - package
Type String - The listing's package type.
- short
Description String - A short description of the publication to use in the listing.
- state String
- The lifecycle state of the publication.
- support
Contacts List<GetPublications Publication Support Contact> - Contact information for getting support from the publisher for the listing.
- supported
Operating 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}}
- time
Created String - The date and time the publication was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- compartment
Id 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
Get
Publications Publication Icon[] - The model for upload data for images and icons.
- id string
- The unique identifier for the publication in Marketplace.
- is
Agreement booleanAcknowledged - listing
Type string - The type of the listing.
- long
Description string - A long description of the publication to use in the listing.
- name string
- The name of the publication.
- package
Details GetPublications Publication Package Detail[] - package
Type string - The listing's package type.
- short
Description string - A short description of the publication to use in the listing.
- state string
- The lifecycle state of the publication.
- support
Contacts GetPublications Publication Support Contact[] - Contact information for getting support from the publisher for the listing.
- supported
Operating 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}}
- time
Created 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[marketplace.
Get Publications 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[marketplace.Get Publications 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[marketplace.Get Publications Publication Support Contact] - Contact information for getting support from the publisher for the listing.
- supported_
operating_ Sequence[marketplace.systems Get 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
- compartment
Id 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.
- is
Agreement BooleanAcknowledged - listing
Type String - The type of the listing.
- long
Description String - A long description of the publication to use in the listing.
- name String
- The name of the publication.
- package
Details List<Property Map> - package
Type String - The listing's package type.
- short
Description String - A short description of the publication to use in the listing.
- state String
- The lifecycle state of the publication.
- support
Contacts List<Property Map> - Contact information for getting support from the publisher for the listing.
- supported
Operating 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}}
- time
Created String - The date and time the publication was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
GetPublicationsPublicationIcon
- Content
Url string - The content URL of the upload data.
- File
Extension string - The file extension of the upload data.
- Mime
Type string - The MIME type of the upload data.
- Name string
- The name of the publication.
- Content
Url string - The content URL of the upload data.
- File
Extension string - The file extension of the upload data.
- Mime
Type string - The MIME type of the upload data.
- Name string
- The name of the publication.
- content
Url String - The content URL of the upload data.
- file
Extension String - The file extension of the upload data.
- mime
Type String - The MIME type of the upload data.
- name String
- The name of the publication.
- content
Url string - The content URL of the upload data.
- file
Extension string - The file extension of the upload data.
- mime
Type 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.
- content
Url String - The content URL of the upload data.
- file
Extension String - The file extension of the upload data.
- mime
Type String - The MIME type of the upload data.
- name String
- The name of the publication.
GetPublicationsPublicationPackageDetail
- Eulas
List<Get
Publications Publication Package Detail Eula> - Image
Id string - Operating
Systems List<GetPublications Publication Package Detail Operating System> - Package
Type string - The listing's package type.
- Package
Version string
- Eulas
[]Get
Publications Publication Package Detail Eula - Image
Id string - Operating
Systems []GetPublications Publication Package Detail Operating System - Package
Type string - The listing's package type.
- Package
Version string
- eulas
List<Get
Publications Publication Package Detail Eula> - image
Id String - operating
Systems List<GetPublications Publication Package Detail Operating System> - package
Type String - The listing's package type.
- package
Version String
- eulas
Get
Publications Publication Package Detail Eula[] - image
Id string - operating
Systems GetPublications Publication Package Detail Operating System[] - package
Type string - The listing's package type.
- package
Version string
- eulas List<Property Map>
- image
Id String - operating
Systems List<Property Map> - package
Type String - The listing's package type.
- package
Version String
GetPublicationsPublicationPackageDetailEula
- Eula
Type string - License
Text string
- Eula
Type string - License
Text string
- eula
Type String - license
Text String
- eula
Type string - license
Text string
- eula_
type str - license_
text str
- eula
Type String - license
Text 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
oci
Terraform Provider.