1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Marketplace
  5. getPublicationPackage
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

oci.Marketplace.getPublicationPackage

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

    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

    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 = @var.Publication_package_package_version,
            PublicationId = 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.GetPublicationPackage(ctx, &marketplace.GetPublicationPackageArgs{
    			PackageVersion: _var.Publication_package_package_version,
    			PublicationId:  oci_marketplace_publication.Test_publication.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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(var_.publication_package_package_version())
                .publicationId(oci_marketplace_publication.test_publication().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_publication_package = oci.Marketplace.get_publication_package(package_version=var["publication_package_package_version"],
        publication_id=oci_marketplace_publication["test_publication"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPublicationPackage = oci.Marketplace.getPublicationPackage({
        packageVersion: _var.publication_package_package_version,
        publicationId: oci_marketplace_publication.test_publication.id,
    });
    
    variables:
      testPublicationPackage:
        fn::invoke:
          Function: oci:Marketplace:getPublicationPackage
          Arguments:
            packageVersion: ${var.publication_package_package_version}
            publicationId: ${oci_marketplace_publication.test_publication.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Marketplace/getPublicationPackage:getPublicationPackage
      arguments:
        # arguments dictionary

    The 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:

    AppCatalogListingId string
    The ID of the listing resource associated with this publication package. For more information, see AppCatalogListing in the Core Services API.
    AppCatalogListingResourceVersion string
    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<GetPublicationPackageOperatingSystem>
    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<GetPublicationPackageVariable>
    A list of variables for the stack resource.
    Version string
    The package version.
    AppCatalogListingId string
    The ID of the listing resource associated with this publication package. For more information, see AppCatalogListing in the Core Services API.
    AppCatalogListingResourceVersion string
    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 []GetPublicationPackageOperatingSystem
    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 []GetPublicationPackageVariable
    A list of variables for the stack resource.
    Version string
    The package version.
    appCatalogListingId String
    The ID of the listing resource associated with this publication package. For more information, see AppCatalogListing in the Core Services API.
    appCatalogListingResourceVersion String
    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<GetPublicationPackageOperatingSystem>
    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<GetPublicationPackageVariable>
    A list of variables for the stack resource.
    version String
    The package version.
    appCatalogListingId string
    The ID of the listing resource associated with this publication package. For more information, see AppCatalogListing in the Core Services API.
    appCatalogListingResourceVersion string
    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 GetPublicationPackageOperatingSystem[]
    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 GetPublicationPackageVariable[]
    A list of variables for the stack resource.
    version string
    The package version.
    app_catalog_listing_id str
    The ID of the listing resource associated with this publication package. For more information, see AppCatalogListing in the Core Services API.
    app_catalog_listing_resource_version str
    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 GetPublicationPackageOperatingSystem]
    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 GetPublicationPackageVariable]
    A list of variables for the stack resource.
    version str
    The package version.
    appCatalogListingId String
    The ID of the listing resource associated with this publication package. For more information, see AppCatalogListing in the Core Services API.
    appCatalogListingResourceVersion String
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi