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

oci.Marketplace.getPublicationPackages

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 Publication Packages in Oracle Cloud Infrastructure Marketplace service.

    Lists the packages in the specified publication.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPublicationPackages = oci.Marketplace.getPublicationPackages({
        publicationId: oci_marketplace_publication.test_publication.id,
        packageType: _var.publication_package_package_type,
        packageVersion: _var.publication_package_package_version,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_publication_packages = oci.Marketplace.get_publication_packages(publication_id=oci_marketplace_publication["test_publication"]["id"],
        package_type=var["publication_package_package_type"],
        package_version=var["publication_package_package_version"])
    
    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.GetPublicationPackages(ctx, &marketplace.GetPublicationPackagesArgs{
    			PublicationId:  oci_marketplace_publication.Test_publication.Id,
    			PackageType:    pulumi.StringRef(_var.Publication_package_package_type),
    			PackageVersion: pulumi.StringRef(_var.Publication_package_package_version),
    		}, 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 testPublicationPackages = Oci.Marketplace.GetPublicationPackages.Invoke(new()
        {
            PublicationId = oci_marketplace_publication.Test_publication.Id,
            PackageType = @var.Publication_package_package_type,
            PackageVersion = @var.Publication_package_package_version,
        });
    
    });
    
    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.GetPublicationPackagesArgs;
    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 testPublicationPackages = MarketplaceFunctions.getPublicationPackages(GetPublicationPackagesArgs.builder()
                .publicationId(oci_marketplace_publication.test_publication().id())
                .packageType(var_.publication_package_package_type())
                .packageVersion(var_.publication_package_package_version())
                .build());
    
        }
    }
    
    variables:
      testPublicationPackages:
        fn::invoke:
          Function: oci:Marketplace:getPublicationPackages
          Arguments:
            publicationId: ${oci_marketplace_publication.test_publication.id}
            packageType: ${var.publication_package_package_type}
            packageVersion: ${var.publication_package_package_version}
    

    Using getPublicationPackages

    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 getPublicationPackages(args: GetPublicationPackagesArgs, opts?: InvokeOptions): Promise<GetPublicationPackagesResult>
    function getPublicationPackagesOutput(args: GetPublicationPackagesOutputArgs, opts?: InvokeOptions): Output<GetPublicationPackagesResult>
    def get_publication_packages(filters: Optional[Sequence[_marketplace.GetPublicationPackagesFilter]] = None,
                                 package_type: Optional[str] = None,
                                 package_version: Optional[str] = None,
                                 publication_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetPublicationPackagesResult
    def get_publication_packages_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_marketplace.GetPublicationPackagesFilterArgs]]]] = None,
                                 package_type: Optional[pulumi.Input[str]] = None,
                                 package_version: Optional[pulumi.Input[str]] = None,
                                 publication_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetPublicationPackagesResult]
    func GetPublicationPackages(ctx *Context, args *GetPublicationPackagesArgs, opts ...InvokeOption) (*GetPublicationPackagesResult, error)
    func GetPublicationPackagesOutput(ctx *Context, args *GetPublicationPackagesOutputArgs, opts ...InvokeOption) GetPublicationPackagesResultOutput

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

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

    The following arguments are supported:

    PublicationId string
    The unique identifier for the publication.
    Filters List<GetPublicationPackagesFilter>
    PackageType string
    A filter to return only packages that match the given package type exactly.
    PackageVersion string
    The version of the package. Package versions are unique within a listing.
    PublicationId string
    The unique identifier for the publication.
    Filters []GetPublicationPackagesFilter
    PackageType string
    A filter to return only packages that match the given package type exactly.
    PackageVersion string
    The version of the package. Package versions are unique within a listing.
    publicationId String
    The unique identifier for the publication.
    filters List<GetPublicationPackagesFilter>
    packageType String
    A filter to return only packages that match the given package type exactly.
    packageVersion String
    The version of the package. Package versions are unique within a listing.
    publicationId string
    The unique identifier for the publication.
    filters GetPublicationPackagesFilter[]
    packageType string
    A filter to return only packages that match the given package type exactly.
    packageVersion string
    The version of the package. Package versions are unique within a listing.
    publication_id str
    The unique identifier for the publication.
    filters Sequence[marketplace.GetPublicationPackagesFilter]
    package_type str
    A filter to return only packages that match the given package type exactly.
    package_version str
    The version of the package. Package versions are unique within a listing.
    publicationId String
    The unique identifier for the publication.
    filters List<Property Map>
    packageType String
    A filter to return only packages that match the given package type exactly.
    packageVersion String
    The version of the package. Package versions are unique within a listing.

    getPublicationPackages Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    PublicationId string
    PublicationPackages List<GetPublicationPackagesPublicationPackage>
    The list of publication_packages.
    Filters List<GetPublicationPackagesFilter>
    PackageType string
    The specified package's type.
    PackageVersion string
    Id string
    The provider-assigned unique ID for this managed resource.
    PublicationId string
    PublicationPackages []GetPublicationPackagesPublicationPackage
    The list of publication_packages.
    Filters []GetPublicationPackagesFilter
    PackageType string
    The specified package's type.
    PackageVersion string
    id String
    The provider-assigned unique ID for this managed resource.
    publicationId String
    publicationPackages List<GetPublicationPackagesPublicationPackage>
    The list of publication_packages.
    filters List<GetPublicationPackagesFilter>
    packageType String
    The specified package's type.
    packageVersion String
    id string
    The provider-assigned unique ID for this managed resource.
    publicationId string
    publicationPackages GetPublicationPackagesPublicationPackage[]
    The list of publication_packages.
    filters GetPublicationPackagesFilter[]
    packageType string
    The specified package's type.
    packageVersion string
    id str
    The provider-assigned unique ID for this managed resource.
    publication_id str
    publication_packages Sequence[marketplace.GetPublicationPackagesPublicationPackage]
    The list of publication_packages.
    filters Sequence[marketplace.GetPublicationPackagesFilter]
    package_type str
    The specified package's type.
    package_version str
    id String
    The provider-assigned unique ID for this managed resource.
    publicationId String
    publicationPackages List<Property Map>
    The list of publication_packages.
    filters List<Property Map>
    packageType String
    The specified package's type.
    packageVersion String

    Supporting Types

    GetPublicationPackagesFilter

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

    GetPublicationPackagesPublicationPackage

    ListingId string
    The ID of the listing that the specified package belongs to.
    PackageType string
    A filter to return only packages that match the given package type exactly.
    PackageVersion string
    The version of the package. Package versions are unique within a listing.
    ResourceId string
    The unique identifier for the package 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
    ListingId string
    The ID of the listing that the specified package belongs to.
    PackageType string
    A filter to return only packages that match the given package type exactly.
    PackageVersion string
    The version of the package. Package versions are unique within a listing.
    ResourceId string
    The unique identifier for the package 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
    listingId String
    The ID of the listing that the specified package belongs to.
    packageType String
    A filter to return only packages that match the given package type exactly.
    packageVersion String
    The version of the package. Package versions are unique within a listing.
    resourceId String
    The unique identifier for the package 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
    listingId string
    The ID of the listing that the specified package belongs to.
    packageType string
    A filter to return only packages that match the given package type exactly.
    packageVersion string
    The version of the package. Package versions are unique within a listing.
    resourceId string
    The unique identifier for the package 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
    listing_id str
    The ID of the listing that the specified package belongs to.
    package_type str
    A filter to return only packages that match the given package type exactly.
    package_version str
    The version of the package. Package versions are unique within a listing.
    resource_id str
    The unique identifier for the package 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
    listingId String
    The ID of the listing that the specified package belongs to.
    packageType String
    A filter to return only packages that match the given package type exactly.
    packageVersion String
    The version of the package. Package versions are unique within a listing.
    resourceId String
    The unique identifier for the package 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

    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