oci.Marketplace.getListingPackages
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testListingPackages = oci.Marketplace.getListingPackages({
listingId: testListing.id,
compartmentId: compartmentId,
packageType: listingPackagePackageType,
packageVersion: listingPackagePackageVersion,
});
import pulumi
import pulumi_oci as oci
test_listing_packages = oci.Marketplace.get_listing_packages(listing_id=test_listing["id"],
compartment_id=compartment_id,
package_type=listing_package_package_type,
package_version=listing_package_package_version)
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.GetListingPackages(ctx, &marketplace.GetListingPackagesArgs{
ListingId: testListing.Id,
CompartmentId: pulumi.StringRef(compartmentId),
PackageType: pulumi.StringRef(listingPackagePackageType),
PackageVersion: pulumi.StringRef(listingPackagePackageVersion),
}, 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 testListingPackages = Oci.Marketplace.GetListingPackages.Invoke(new()
{
ListingId = testListing.Id,
CompartmentId = compartmentId,
PackageType = listingPackagePackageType,
PackageVersion = listingPackagePackageVersion,
});
});
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.GetListingPackagesArgs;
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 testListingPackages = MarketplaceFunctions.getListingPackages(GetListingPackagesArgs.builder()
.listingId(testListing.id())
.compartmentId(compartmentId)
.packageType(listingPackagePackageType)
.packageVersion(listingPackagePackageVersion)
.build());
}
}
variables:
testListingPackages:
fn::invoke:
Function: oci:Marketplace:getListingPackages
Arguments:
listingId: ${testListing.id}
compartmentId: ${compartmentId}
packageType: ${listingPackagePackageType}
packageVersion: ${listingPackagePackageVersion}
Using getListingPackages
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 getListingPackages(args: GetListingPackagesArgs, opts?: InvokeOptions): Promise<GetListingPackagesResult>
function getListingPackagesOutput(args: GetListingPackagesOutputArgs, opts?: InvokeOptions): Output<GetListingPackagesResult>
def get_listing_packages(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_marketplace.GetListingPackagesFilter]] = None,
listing_id: Optional[str] = None,
package_type: Optional[str] = None,
package_version: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetListingPackagesResult
def get_listing_packages_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_marketplace.GetListingPackagesFilterArgs]]]] = None,
listing_id: Optional[pulumi.Input[str]] = None,
package_type: Optional[pulumi.Input[str]] = None,
package_version: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetListingPackagesResult]
func GetListingPackages(ctx *Context, args *GetListingPackagesArgs, opts ...InvokeOption) (*GetListingPackagesResult, error)
func GetListingPackagesOutput(ctx *Context, args *GetListingPackagesOutputArgs, opts ...InvokeOption) GetListingPackagesResultOutput
> Note: This function is named GetListingPackages
in the Go SDK.
public static class GetListingPackages
{
public static Task<GetListingPackagesResult> InvokeAsync(GetListingPackagesArgs args, InvokeOptions? opts = null)
public static Output<GetListingPackagesResult> Invoke(GetListingPackagesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetListingPackagesResult> getListingPackages(GetListingPackagesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Marketplace/getListingPackages:getListingPackages
arguments:
# arguments dictionary
The following arguments are supported:
- Listing
Id string - The unique identifier for the listing.
- Compartment
Id string - The unique identifier for the compartment.
- Filters
List<Get
Listing 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.
- Listing
Id string - The unique identifier for the listing.
- Compartment
Id string - The unique identifier for the compartment.
- Filters
[]Get
Listing 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.
- listing
Id String - The unique identifier for the listing.
- compartment
Id String - The unique identifier for the compartment.
- filters
List<Get
Listing 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.
- listing
Id string - The unique identifier for the listing.
- compartment
Id string - The unique identifier for the compartment.
- filters
Get
Listing 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.
- listing_
id str - The unique identifier for the listing.
- compartment_
id str - The unique identifier for the compartment.
- filters
Sequence[marketplace.
Get Listing 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.
- listing
Id String - The unique identifier for the listing.
- compartment
Id String - The unique identifier for the compartment.
- 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.
getListingPackages Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Listing
Id string - The ID of the listing that the specified package belongs to.
- Listing
Packages List<GetListing Packages Listing Package> - The list of listing_packages.
- Compartment
Id string - Filters
List<Get
Listing Packages Filter> - Package
Type string - The specified package's type.
- Package
Version string
- Id string
- The provider-assigned unique ID for this managed resource.
- Listing
Id string - The ID of the listing that the specified package belongs to.
- Listing
Packages []GetListing Packages Listing Package - The list of listing_packages.
- Compartment
Id string - Filters
[]Get
Listing Packages Filter - Package
Type string - The specified package's type.
- Package
Version string
- id String
- The provider-assigned unique ID for this managed resource.
- listing
Id String - The ID of the listing that the specified package belongs to.
- listing
Packages List<GetListing Packages Listing Package> - The list of listing_packages.
- compartment
Id String - filters
List<Get
Listing Packages Filter> - package
Type String - The specified package's type.
- package
Version String
- id string
- The provider-assigned unique ID for this managed resource.
- listing
Id string - The ID of the listing that the specified package belongs to.
- listing
Packages GetListing Packages Listing Package[] - The list of listing_packages.
- compartment
Id string - filters
Get
Listing Packages Filter[] - package
Type string - The specified package's type.
- package
Version string
- id str
- The provider-assigned unique ID for this managed resource.
- listing_
id str - The ID of the listing that the specified package belongs to.
- listing_
packages Sequence[marketplace.Get Listing Packages Listing Package] - The list of listing_packages.
- compartment_
id str - filters
Sequence[marketplace.
Get Listing Packages Filter] - package_
type str - The specified package's type.
- package_
version str
- id String
- The provider-assigned unique ID for this managed resource.
- listing
Id String - The ID of the listing that the specified package belongs to.
- listing
Packages List<Property Map> - The list of listing_packages.
- compartment
Id String - filters List<Property Map>
- package
Type String - The specified package's type.
- package
Version String
Supporting Types
GetListingPackagesFilter
GetListingPackagesListingPackage
- Listing
Id string - The unique identifier for the listing.
- Operating
Systems List<GetListing Packages Listing Package Operating System> - The operating system used by the listing.
- 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.
- Pricings
List<Get
Listing Packages Listing Package Pricing> - The model for pricing.
- Regions
List<Get
Listing Packages Listing Package Region> - The regions where you can deploy the listing package. (Some packages have restrictions that limit their deployment to United States regions only.)
- Resource
Id string - The unique identifier for the package resource.
- Time
Created string - The date and time this listing package was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- Listing
Id string - The unique identifier for the listing.
- Operating
Systems []GetListing Packages Listing Package Operating System - The operating system used by the listing.
- 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.
- Pricings
[]Get
Listing Packages Listing Package Pricing - The model for pricing.
- Regions
[]Get
Listing Packages Listing Package Region - The regions where you can deploy the listing package. (Some packages have restrictions that limit their deployment to United States regions only.)
- Resource
Id string - The unique identifier for the package resource.
- Time
Created string - The date and time this listing package was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- listing
Id String - The unique identifier for the listing.
- operating
Systems List<GetListing Packages Listing Package Operating System> - The operating system used by the listing.
- 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.
- pricings
List<Get
Listing Packages Listing Package Pricing> - The model for pricing.
- regions
List<Get
Listing Packages Listing Package Region> - The regions where you can deploy the listing package. (Some packages have restrictions that limit their deployment to United States regions only.)
- resource
Id String - The unique identifier for the package resource.
- time
Created String - The date and time this listing package was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- listing
Id string - The unique identifier for the listing.
- operating
Systems GetListing Packages Listing Package Operating System[] - The operating system used by the listing.
- 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.
- pricings
Get
Listing Packages Listing Package Pricing[] - The model for pricing.
- regions
Get
Listing Packages Listing Package Region[] - The regions where you can deploy the listing package. (Some packages have restrictions that limit their deployment to United States regions only.)
- resource
Id string - The unique identifier for the package resource.
- time
Created string - The date and time this listing package was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- listing_
id str - The unique identifier for the listing.
- operating_
systems Sequence[marketplace.Get Listing Packages Listing Package Operating System] - The operating system used by the listing.
- 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.
- pricings
Sequence[marketplace.
Get Listing Packages Listing Package Pricing] - The model for pricing.
- regions
Sequence[marketplace.
Get Listing Packages Listing Package Region] - The regions where you can deploy the listing package. (Some packages have restrictions that limit their deployment to United States regions only.)
- resource_
id str - The unique identifier for the package resource.
- time_
created str - The date and time this listing package was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
- listing
Id String - The unique identifier for the listing.
- operating
Systems List<Property Map> - The operating system used by the listing.
- 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.
- pricings List<Property Map>
- The model for pricing.
- regions List<Property Map>
- The regions where you can deploy the listing package. (Some packages have restrictions that limit their deployment to United States regions only.)
- resource
Id String - The unique identifier for the package resource.
- time
Created String - The date and time this listing package was created, expressed in RFC 3339 timestamp format. Example:
2016-08-25T21:10:29.600Z
GetListingPackagesListingPackageOperatingSystem
- 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.
GetListingPackagesListingPackagePricing
- Currency string
- The currency of the pricing model.
- International
Market List<GetPrices Listing Packages Listing Package Pricing International Market Price> - The model for international market pricing.
- Pay
Go stringStrategy - The type of pricing for a PAYGO model, eg PER_OCPU_LINEAR, PER_OCPU_MIN_BILLING, PER_INSTANCE. Null if type is not PAYGO.
- Rate double
- The pricing rate.
- Type string
- The type of the pricing model.
- Currency string
- The currency of the pricing model.
- International
Market []GetPrices Listing Packages Listing Package Pricing International Market Price - The model for international market pricing.
- Pay
Go stringStrategy - The type of pricing for a PAYGO model, eg PER_OCPU_LINEAR, PER_OCPU_MIN_BILLING, PER_INSTANCE. Null if type is not PAYGO.
- Rate float64
- The pricing rate.
- Type string
- The type of the pricing model.
- currency String
- The currency of the pricing model.
- international
Market List<GetPrices Listing Packages Listing Package Pricing International Market Price> - The model for international market pricing.
- pay
Go StringStrategy - The type of pricing for a PAYGO model, eg PER_OCPU_LINEAR, PER_OCPU_MIN_BILLING, PER_INSTANCE. Null if type is not PAYGO.
- rate Double
- The pricing rate.
- type String
- The type of the pricing model.
- currency string
- The currency of the pricing model.
- international
Market GetPrices Listing Packages Listing Package Pricing International Market Price[] - The model for international market pricing.
- pay
Go stringStrategy - The type of pricing for a PAYGO model, eg PER_OCPU_LINEAR, PER_OCPU_MIN_BILLING, PER_INSTANCE. Null if type is not PAYGO.
- rate number
- The pricing rate.
- type string
- The type of the pricing model.
- currency str
- The currency of the pricing model.
- international_
market_ Sequence[marketplace.prices Get Listing Packages Listing Package Pricing International Market Price] - The model for international market pricing.
- pay_
go_ strstrategy - The type of pricing for a PAYGO model, eg PER_OCPU_LINEAR, PER_OCPU_MIN_BILLING, PER_INSTANCE. Null if type is not PAYGO.
- rate float
- The pricing rate.
- type str
- The type of the pricing model.
- currency String
- The currency of the pricing model.
- international
Market List<Property Map>Prices - The model for international market pricing.
- pay
Go StringStrategy - The type of pricing for a PAYGO model, eg PER_OCPU_LINEAR, PER_OCPU_MIN_BILLING, PER_INSTANCE. Null if type is not PAYGO.
- rate Number
- The pricing rate.
- type String
- The type of the pricing model.
GetListingPackagesListingPackagePricingInternationalMarketPrice
- Currency
Code string - The currency of the pricing model.
- Currency
Symbol string - The symbol of the currency
- Rate double
- The pricing rate.
- Currency
Code string - The currency of the pricing model.
- Currency
Symbol string - The symbol of the currency
- Rate float64
- The pricing rate.
- currency
Code String - The currency of the pricing model.
- currency
Symbol String - The symbol of the currency
- rate Double
- The pricing rate.
- currency
Code string - The currency of the pricing model.
- currency
Symbol string - The symbol of the currency
- rate number
- The pricing rate.
- currency_
code str - The currency of the pricing model.
- currency_
symbol str - The symbol of the currency
- rate float
- The pricing rate.
- currency
Code String - The currency of the pricing model.
- currency
Symbol String - The symbol of the currency
- rate Number
- The pricing rate.
GetListingPackagesListingPackageRegion
- Code string
- A code assigned to the item.
- Countries
List<Get
Listing Packages Listing Package Region Country> - Countries in the region.
- Name string
- The name of the variable.
- Code string
- A code assigned to the item.
- Countries
[]Get
Listing Packages Listing Package Region Country - Countries in the region.
- Name string
- The name of the variable.
- code String
- A code assigned to the item.
- countries
List<Get
Listing Packages Listing Package Region Country> - Countries in the region.
- name String
- The name of the variable.
- code string
- A code assigned to the item.
- countries
Get
Listing Packages Listing Package Region Country[] - Countries in the region.
- name string
- The name of the variable.
- code str
- A code assigned to the item.
- countries
Sequence[marketplace.
Get Listing Packages Listing Package Region Country] - Countries in the region.
- name str
- The name of the variable.
- code String
- A code assigned to the item.
- countries List<Property Map>
- Countries in the region.
- name String
- The name of the variable.
GetListingPackagesListingPackageRegionCountry
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.