Data Source: oci_marketplace_listing_packages

This data source provides the list of Listing Packages in Oracle Cloud Infrastructure Marketplace service.

Gets the list of packages for a listing.

If you plan to launch an instance from an image listing, you must first subscribe to the listing. When you launch the instance, you also need to provide the image ID of the listing resource version that you want.

Subscribing to the listing requires you to first get a signature from the terms of use agreement for the listing resource version. To get the signature, issue a GetAppCatalogListingAgreements API call. The AppCatalogListingResourceVersionAgreements object, including its signature, is returned in the response. With the signature for the terms of use agreement for the desired listing resource version, create a subscription by issuing a CreateAppCatalogSubscription API call.

To get the image ID to launch an instance, issue a GetAppCatalogListingResourceVersion API call. Lastly, to launch the instance, use the image ID of the listing resource version to issue a LaunchInstance API call.

Example Usage

data "oci_marketplace_listing_packages" "test_listing_packages" {
	#Required
	listing_id = oci_marketplace_listing.test_listing.id

	#Optional
	compartment_id = var.compartment_id
	package_type = var.listing_package_package_type
	package_version = var.listing_package_package_version
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

ListingPackage Reference

The following attributes are exported: