Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.Marketplace.getPublicationPackage
Explore with Pulumi AI
This data source provides details about a specific Publication Package resource in Oracle Cloud Infrastructure Marketplace service.
Gets the details of a specific package version within a given publication.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPublicationPackage = oci.Marketplace.getPublicationPackage({
    packageVersion: publicationPackagePackageVersion,
    publicationId: testPublication.id,
});
import pulumi
import pulumi_oci as oci
test_publication_package = oci.Marketplace.get_publication_package(package_version=publication_package_package_version,
    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.GetPublicationPackage(ctx, &marketplace.GetPublicationPackageArgs{
			PackageVersion: publicationPackagePackageVersion,
			PublicationId:  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 testPublicationPackage = Oci.Marketplace.GetPublicationPackage.Invoke(new()
    {
        PackageVersion = publicationPackagePackageVersion,
        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.GetPublicationPackageArgs;
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 testPublicationPackage = MarketplaceFunctions.getPublicationPackage(GetPublicationPackageArgs.builder()
            .packageVersion(publicationPackagePackageVersion)
            .publicationId(testPublication.id())
            .build());
    }
}
variables:
  testPublicationPackage:
    fn::invoke:
      function: oci:Marketplace:getPublicationPackage
      arguments:
        packageVersion: ${publicationPackagePackageVersion}
        publicationId: ${testPublication.id}
Using getPublicationPackage
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 getPublicationPackage(args: GetPublicationPackageArgs, opts?: InvokeOptions): Promise<GetPublicationPackageResult>
function getPublicationPackageOutput(args: GetPublicationPackageOutputArgs, opts?: InvokeOptions): Output<GetPublicationPackageResult>def get_publication_package(package_version: Optional[str] = None,
                            publication_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetPublicationPackageResult
def get_publication_package_output(package_version: Optional[pulumi.Input[str]] = None,
                            publication_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetPublicationPackageResult]func GetPublicationPackage(ctx *Context, args *GetPublicationPackageArgs, opts ...InvokeOption) (*GetPublicationPackageResult, error)
func GetPublicationPackageOutput(ctx *Context, args *GetPublicationPackageOutputArgs, opts ...InvokeOption) GetPublicationPackageResultOutput> Note: This function is named GetPublicationPackage in the Go SDK.
public static class GetPublicationPackage 
{
    public static Task<GetPublicationPackageResult> InvokeAsync(GetPublicationPackageArgs args, InvokeOptions? opts = null)
    public static Output<GetPublicationPackageResult> Invoke(GetPublicationPackageInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPublicationPackageResult> getPublicationPackage(GetPublicationPackageArgs args, InvokeOptions options)
public static Output<GetPublicationPackageResult> getPublicationPackage(GetPublicationPackageArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Marketplace/getPublicationPackage:getPublicationPackage
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PackageVersion string
- The version of the package. Package versions are unique within a listing.
- PublicationId string
- The unique identifier for the publication.
- PackageVersion string
- The version of the package. Package versions are unique within a listing.
- PublicationId string
- The unique identifier for the publication.
- packageVersion String
- The version of the package. Package versions are unique within a listing.
- publicationId String
- The unique identifier for the publication.
- packageVersion string
- The version of the package. Package versions are unique within a listing.
- publicationId string
- The unique identifier for the publication.
- package_version str
- The version of the package. Package versions are unique within a listing.
- publication_id str
- The unique identifier for the publication.
- packageVersion String
- The version of the package. Package versions are unique within a listing.
- publicationId String
- The unique identifier for the publication.
getPublicationPackage Result
The following output properties are available:
- AppCatalog stringListing Id 
- The ID of the listing resource associated with this publication package. For more information, see AppCatalogListing in the Core Services API.
- AppCatalog stringListing Resource Version 
- The resource version of the listing resource associated with this publication package.
- Description string
- A description of the variable.
- Id string
- The provider-assigned unique ID for this managed resource.
- ImageId string
- The ID of the image that corresponds to the package.
- ListingId string
- The ID of the listing that the specified package belongs to.
- OperatingSystems List<GetPublication Package Operating System> 
- The operating system used by the listing.
- PackageType string
- The specified package's type.
- PackageVersion string
- PublicationId string
- ResourceId string
- The unique identifier for the package resource.
- ResourceLink string
- A link to the stack resource.
- TimeCreated string
- The date and time the publication package was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
- Variables
List<GetPublication Package Variable> 
- A list of variables for the stack resource.
- Version string
- The package version.
- AppCatalog stringListing Id 
- The ID of the listing resource associated with this publication package. For more information, see AppCatalogListing in the Core Services API.
- AppCatalog stringListing Resource Version 
- The resource version of the listing resource associated with this publication package.
- Description string
- A description of the variable.
- Id string
- The provider-assigned unique ID for this managed resource.
- ImageId string
- The ID of the image that corresponds to the package.
- ListingId string
- The ID of the listing that the specified package belongs to.
- OperatingSystems []GetPublication Package Operating System 
- The operating system used by the listing.
- PackageType string
- The specified package's type.
- PackageVersion string
- PublicationId string
- ResourceId string
- The unique identifier for the package resource.
- ResourceLink string
- A link to the stack resource.
- TimeCreated string
- The date and time the publication package was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
- Variables
[]GetPublication Package Variable 
- A list of variables for the stack resource.
- Version string
- The package version.
- appCatalog StringListing Id 
- The ID of the listing resource associated with this publication package. For more information, see AppCatalogListing in the Core Services API.
- appCatalog StringListing Resource Version 
- The resource version of the listing resource associated with this publication package.
- description String
- A description of the variable.
- id String
- The provider-assigned unique ID for this managed resource.
- imageId String
- The ID of the image that corresponds to the package.
- listingId String
- The ID of the listing that the specified package belongs to.
- operatingSystems List<GetPublication Package Operating System> 
- The operating system used by the listing.
- packageType String
- The specified package's type.
- packageVersion String
- publicationId String
- resourceId String
- The unique identifier for the package resource.
- resourceLink String
- A link to the stack resource.
- timeCreated String
- The date and time the publication package was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
- variables
List<GetPublication Package Variable> 
- A list of variables for the stack resource.
- version String
- The package version.
- appCatalog stringListing Id 
- The ID of the listing resource associated with this publication package. For more information, see AppCatalogListing in the Core Services API.
- appCatalog stringListing Resource Version 
- The resource version of the listing resource associated with this publication package.
- description string
- A description of the variable.
- id string
- The provider-assigned unique ID for this managed resource.
- imageId string
- The ID of the image that corresponds to the package.
- listingId string
- The ID of the listing that the specified package belongs to.
- operatingSystems GetPublication Package Operating System[] 
- The operating system used by the listing.
- packageType string
- The specified package's type.
- packageVersion string
- publicationId string
- resourceId string
- The unique identifier for the package resource.
- resourceLink string
- A link to the stack resource.
- timeCreated string
- The date and time the publication package was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
- variables
GetPublication Package Variable[] 
- A list of variables for the stack resource.
- version string
- The package version.
- app_catalog_ strlisting_ id 
- The ID of the listing resource associated with this publication package. For more information, see AppCatalogListing in the Core Services API.
- app_catalog_ strlisting_ resource_ version 
- The resource version of the listing resource associated with this publication package.
- description str
- A description of the variable.
- id str
- The provider-assigned unique ID for this managed resource.
- image_id str
- The ID of the image that corresponds to the package.
- listing_id str
- The ID of the listing that the specified package belongs to.
- operating_systems Sequence[marketplace.Get Publication Package Operating System] 
- The operating system used by the listing.
- package_type str
- The specified package's type.
- package_version str
- publication_id str
- resource_id str
- The unique identifier for the package resource.
- resource_link str
- A link to the stack resource.
- time_created str
- The date and time the publication package was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
- variables
Sequence[marketplace.Get Publication Package Variable] 
- A list of variables for the stack resource.
- version str
- The package version.
- appCatalog StringListing Id 
- The ID of the listing resource associated with this publication package. For more information, see AppCatalogListing in the Core Services API.
- appCatalog StringListing Resource Version 
- The resource version of the listing resource associated with this publication package.
- description String
- A description of the variable.
- id String
- The provider-assigned unique ID for this managed resource.
- imageId String
- The ID of the image that corresponds to the package.
- listingId String
- The ID of the listing that the specified package belongs to.
- operatingSystems List<Property Map>
- The operating system used by the listing.
- packageType String
- The specified package's type.
- packageVersion String
- publicationId String
- resourceId String
- The unique identifier for the package resource.
- resourceLink String
- A link to the stack resource.
- timeCreated String
- The date and time the publication package was created, expressed in RFC 3339 timestamp format. Example: 2016-08-25T21:10:29.600Z
- variables List<Property Map>
- A list of variables for the stack resource.
- version String
- The package version.
Supporting Types
GetPublicationPackageOperatingSystem    
- Name string
- The name of the variable.
- Name string
- The name of the variable.
- name String
- The name of the variable.
- name string
- The name of the variable.
- name str
- The name of the variable.
- name String
- The name of the variable.
GetPublicationPackageVariable   
- DataType string
- The data type of the variable.
- DefaultValue string
- The variable's default value.
- Description string
- A description of the variable.
- HintMessage string
- A brief textual description that helps to explain the variable.
- IsMandatory bool
- Whether the variable is mandatory.
- Name string
- The name of the variable.
- DataType string
- The data type of the variable.
- DefaultValue string
- The variable's default value.
- Description string
- A description of the variable.
- HintMessage string
- A brief textual description that helps to explain the variable.
- IsMandatory bool
- Whether the variable is mandatory.
- Name string
- The name of the variable.
- dataType String
- The data type of the variable.
- defaultValue String
- The variable's default value.
- description String
- A description of the variable.
- hintMessage String
- A brief textual description that helps to explain the variable.
- isMandatory Boolean
- Whether the variable is mandatory.
- name String
- The name of the variable.
- dataType string
- The data type of the variable.
- defaultValue string
- The variable's default value.
- description string
- A description of the variable.
- hintMessage string
- A brief textual description that helps to explain the variable.
- isMandatory boolean
- Whether the variable is mandatory.
- name string
- The name of the variable.
- data_type str
- The data type of the variable.
- default_value str
- The variable's default value.
- description str
- A description of the variable.
- hint_message str
- A brief textual description that helps to explain the variable.
- is_mandatory bool
- Whether the variable is mandatory.
- name str
- The name of the variable.
- dataType String
- The data type of the variable.
- defaultValue String
- The variable's default value.
- description String
- A description of the variable.
- hintMessage String
- A brief textual description that helps to explain the variable.
- isMandatory Boolean
- Whether the variable is mandatory.
- name String
- The name of the variable.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.