Oracle Cloud Infrastructure
getPublicationPackages
This data source provides the list of Publication Packages in Oracle Cloud Infrastructure Marketplace service.
Lists the packages in the specified publication.
Example Usage
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testPublicationPackages = Output.Create(Oci.Marketplace.GetPublicationPackages.InvokeAsync(new Oci.Marketplace.GetPublicationPackagesArgs
{
PublicationId = oci_marketplace_publication.Test_publication.Id,
PackageType = @var.Publication_package_package_type,
PackageVersion = @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
})
}
Coming soon!
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"])
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,
});
Coming soon!
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:
- Publication
Id string The unique identifier for the publication.
- Filters
List<Get
Publication Packages Filter> - Package
Type string A filter to return only packages that match the given package type exactly.
- Package
Version string The version of the package. Package versions are unique within a listing.
- Publication
Id string The unique identifier for the publication.
- Filters
[]Get
Publication Packages Filter - Package
Type string A filter to return only packages that match the given package type exactly.
- Package
Version string The version of the package. Package versions are unique within a listing.
- publication
Id String The unique identifier for the publication.
- filters
List<Get
Publication Packages Filter> - package
Type String A filter to return only packages that match the given package type exactly.
- package
Version String The version of the package. Package versions are unique within a listing.
- publication
Id string The unique identifier for the publication.
- filters
Get
Publication Packages Filter[] - package
Type string A filter to return only packages that match the given package type exactly.
- package
Version string The version of the package. Package versions are unique within a listing.
- publication_
id str The unique identifier for the publication.
- filters
Get
Publication Packages Filter] - 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.
- publication
Id String The unique identifier for the publication.
- filters List<Property Map>
- package
Type String A filter to return only packages that match the given package type exactly.
- package
Version 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.
- Publication
Id string - Publication
Packages List<GetPublication Packages Publication Package> The list of publication_packages.
- Filters
List<Get
Publication Packages Filter> - Package
Type string The specified package's type.
- Package
Version string
- Id string
The provider-assigned unique ID for this managed resource.
- Publication
Id string - Publication
Packages []GetPublication Packages Publication Package The list of publication_packages.
- Filters
[]Get
Publication Packages Filter - Package
Type string The specified package's type.
- Package
Version string
- id String
The provider-assigned unique ID for this managed resource.
- publication
Id String - publication
Packages List<GetPublication Packages Publication Package> The list of publication_packages.
- filters
List<Get
Publication Packages Filter> - package
Type String The specified package's type.
- package
Version String
- id string
The provider-assigned unique ID for this managed resource.
- publication
Id string - publication
Packages GetPublication Packages Publication Package[] The list of publication_packages.
- filters
Get
Publication Packages Filter[] - package
Type string The specified package's type.
- package
Version string
- id str
The provider-assigned unique ID for this managed resource.
- publication_
id str - publication_
packages GetPublication Packages Publication Package] The list of publication_packages.
- filters
Get
Publication Packages Filter] - package_
type str The specified package's type.
- package_
version str
- id String
The provider-assigned unique ID for this managed resource.
- publication
Id String - publication
Packages List<Property Map> The list of publication_packages.
- filters List<Property Map>
- package
Type String The specified package's type.
- package
Version String
Supporting Types
GetPublicationPackagesFilter
GetPublicationPackagesPublicationPackage
- Listing
Id string The ID of the listing that the specified package belongs to.
- Package
Type string A filter to return only packages that match the given package type exactly.
- Package
Version string The version of the package. Package versions are unique within a listing.
- Resource
Id string The unique identifier for the package resource.
- Time
Created 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 string The ID of the listing that the specified package belongs to.
- Package
Type string A filter to return only packages that match the given package type exactly.
- Package
Version string The version of the package. Package versions are unique within a listing.
- Resource
Id string The unique identifier for the package resource.
- Time
Created 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 String The ID of the listing that the specified package belongs to.
- package
Type String A filter to return only packages that match the given package type exactly.
- package
Version String The version of the package. Package versions are unique within a listing.
- resource
Id String The unique identifier for the package resource.
- time
Created 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 string The ID of the listing that the specified package belongs to.
- package
Type string A filter to return only packages that match the given package type exactly.
- package
Version string The version of the package. Package versions are unique within a listing.
- resource
Id string The unique identifier for the package resource.
- time
Created 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
- listing
Id String The ID of the listing that the specified package belongs to.
- package
Type String A filter to return only packages that match the given package type exactly.
- package
Version String The version of the package. Package versions are unique within a listing.
- resource
Id String The unique identifier for the package resource.
- time
Created 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
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.