oci.Marketplace.getListingPackage
Explore with Pulumi AI
This data source provides details about a specific Listing Package resource in Oracle Cloud Infrastructure Marketplace service.
Get the details of the specified version of a package, including information needed to launch the package.
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 testListingPackage = oci.Marketplace.getListingPackage({
listingId: testListing.id,
packageVersion: listingPackagePackageVersion,
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_listing_package = oci.Marketplace.get_listing_package(listing_id=test_listing["id"],
package_version=listing_package_package_version,
compartment_id=compartment_id)
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.GetListingPackage(ctx, &marketplace.GetListingPackageArgs{
ListingId: testListing.Id,
PackageVersion: listingPackagePackageVersion,
CompartmentId: pulumi.StringRef(compartmentId),
}, 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 testListingPackage = Oci.Marketplace.GetListingPackage.Invoke(new()
{
ListingId = testListing.Id,
PackageVersion = listingPackagePackageVersion,
CompartmentId = compartmentId,
});
});
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.GetListingPackageArgs;
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 testListingPackage = MarketplaceFunctions.getListingPackage(GetListingPackageArgs.builder()
.listingId(testListing.id())
.packageVersion(listingPackagePackageVersion)
.compartmentId(compartmentId)
.build());
}
}
variables:
testListingPackage:
fn::invoke:
Function: oci:Marketplace:getListingPackage
Arguments:
listingId: ${testListing.id}
packageVersion: ${listingPackagePackageVersion}
compartmentId: ${compartmentId}
Using getListingPackage
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 getListingPackage(args: GetListingPackageArgs, opts?: InvokeOptions): Promise<GetListingPackageResult>
function getListingPackageOutput(args: GetListingPackageOutputArgs, opts?: InvokeOptions): Output<GetListingPackageResult>
def get_listing_package(compartment_id: Optional[str] = None,
listing_id: Optional[str] = None,
package_version: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetListingPackageResult
def get_listing_package_output(compartment_id: Optional[pulumi.Input[str]] = None,
listing_id: Optional[pulumi.Input[str]] = None,
package_version: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetListingPackageResult]
func GetListingPackage(ctx *Context, args *GetListingPackageArgs, opts ...InvokeOption) (*GetListingPackageResult, error)
func GetListingPackageOutput(ctx *Context, args *GetListingPackageOutputArgs, opts ...InvokeOption) GetListingPackageResultOutput
> Note: This function is named GetListingPackage
in the Go SDK.
public static class GetListingPackage
{
public static Task<GetListingPackageResult> InvokeAsync(GetListingPackageArgs args, InvokeOptions? opts = null)
public static Output<GetListingPackageResult> Invoke(GetListingPackageInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetListingPackageResult> getListingPackage(GetListingPackageArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Marketplace/getListingPackage:getListingPackage
arguments:
# arguments dictionary
The following arguments are supported:
- Listing
Id string - The unique identifier for the listing.
- Package
Version string - The version of the package. Package versions are unique within a listing.
- Compartment
Id string - The unique identifier for the compartment.
- Listing
Id string - The unique identifier for the listing.
- Package
Version string - The version of the package. Package versions are unique within a listing.
- Compartment
Id string - The unique identifier for the compartment.
- listing
Id String - The unique identifier for the listing.
- package
Version String - The version of the package. Package versions are unique within a listing.
- compartment
Id String - The unique identifier for the compartment.
- listing
Id string - The unique identifier for the listing.
- package
Version string - The version of the package. Package versions are unique within a listing.
- compartment
Id string - The unique identifier for the compartment.
- listing_
id str - The unique identifier for the listing.
- package_
version str - The version of the package. Package versions are unique within a listing.
- compartment_
id str - The unique identifier for the compartment.
- listing
Id String - The unique identifier for the listing.
- package
Version String - The version of the package. Package versions are unique within a listing.
- compartment
Id String - The unique identifier for the compartment.
getListingPackage Result
The following output properties are available:
- App
Catalog stringListing Id - The ID of the listing resource associated with this listing package. For more information, see AppCatalogListing in the Core Services API.
- App
Catalog stringListing Resource Version - The resource version of the listing resource associated with this listing package.
- Description string
- A description of the variable.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Id string - The ID of the image corresponding to the package.
- Listing
Id string - The ID of the listing that the specified package belongs to.
- Operating
Systems List<GetListing Package Operating System> - The operating system used by the listing.
- Package
Type string - The specified package's type.
- Package
Version string - Pricings
List<Get
Listing Package Pricing> - The model for pricing.
- Regions
List<Get
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.
- Resource
Link string - Link to the orchestration 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
- Variables
List<Get
Listing Package Variable> - List of variables for the orchestration resource.
- Version string
- The package version.
- Compartment
Id string
- App
Catalog stringListing Id - The ID of the listing resource associated with this listing package. For more information, see AppCatalogListing in the Core Services API.
- App
Catalog stringListing Resource Version - The resource version of the listing resource associated with this listing package.
- Description string
- A description of the variable.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Id string - The ID of the image corresponding to the package.
- Listing
Id string - The ID of the listing that the specified package belongs to.
- Operating
Systems []GetListing Package Operating System - The operating system used by the listing.
- Package
Type string - The specified package's type.
- Package
Version string - Pricings
[]Get
Listing Package Pricing - The model for pricing.
- Regions
[]Get
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.
- Resource
Link string - Link to the orchestration 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
- Variables
[]Get
Listing Package Variable - List of variables for the orchestration resource.
- Version string
- The package version.
- Compartment
Id string
- app
Catalog StringListing Id - The ID of the listing resource associated with this listing package. For more information, see AppCatalogListing in the Core Services API.
- app
Catalog StringListing Resource Version - The resource version of the listing resource associated with this listing package.
- description String
- A description of the variable.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Id String - The ID of the image corresponding to the package.
- listing
Id String - The ID of the listing that the specified package belongs to.
- operating
Systems List<GetListing Package Operating System> - The operating system used by the listing.
- package
Type String - The specified package's type.
- package
Version String - pricings
List<Get
Listing Package Pricing> - The model for pricing.
- regions
List<Get
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.
- resource
Link String - Link to the orchestration 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
- variables
List<Get
Listing Package Variable> - List of variables for the orchestration resource.
- version String
- The package version.
- compartment
Id String
- app
Catalog stringListing Id - The ID of the listing resource associated with this listing package. For more information, see AppCatalogListing in the Core Services API.
- app
Catalog stringListing Resource Version - The resource version of the listing resource associated with this listing package.
- description string
- A description of the variable.
- id string
- The provider-assigned unique ID for this managed resource.
- image
Id string - The ID of the image corresponding to the package.
- listing
Id string - The ID of the listing that the specified package belongs to.
- operating
Systems GetListing Package Operating System[] - The operating system used by the listing.
- package
Type string - The specified package's type.
- package
Version string - pricings
Get
Listing Package Pricing[] - The model for pricing.
- regions
Get
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.
- resource
Link string - Link to the orchestration 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
- variables
Get
Listing Package Variable[] - List of variables for the orchestration resource.
- version string
- The package version.
- compartment
Id string
- app_
catalog_ strlisting_ id - The ID of the listing resource associated with this listing package. For more information, see AppCatalogListing in the Core Services API.
- app_
catalog_ strlisting_ resource_ version - The resource version of the listing resource associated with this listing 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 corresponding to the package.
- listing_
id str - The ID of the listing that the specified package belongs to.
- operating_
systems Sequence[marketplace.Get Listing Package Operating System] - The operating system used by the listing.
- package_
type str - The specified package's type.
- package_
version str - pricings
Sequence[marketplace.
Get Listing Package Pricing] - The model for pricing.
- regions
Sequence[marketplace.
Get 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.
- resource_
link str - Link to the orchestration 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
- variables
Sequence[marketplace.
Get Listing Package Variable] - List of variables for the orchestration resource.
- version str
- The package version.
- compartment_
id str
- app
Catalog StringListing Id - The ID of the listing resource associated with this listing package. For more information, see AppCatalogListing in the Core Services API.
- app
Catalog StringListing Resource Version - The resource version of the listing resource associated with this listing package.
- description String
- A description of the variable.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Id String - The ID of the image corresponding to the package.
- listing
Id String - The ID of the listing that the specified package belongs to.
- operating
Systems List<Property Map> - The operating system used by the listing.
- package
Type String - The specified package's type.
- package
Version String - 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.
- resource
Link String - Link to the orchestration 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
- variables List<Property Map>
- List of variables for the orchestration resource.
- version String
- The package version.
- compartment
Id String
Supporting Types
GetListingPackageOperatingSystem
- 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.
GetListingPackagePricing
- Currency string
- The currency of the pricing model.
- International
Market List<GetPrices 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 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 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 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 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.
GetListingPackagePricingInternationalMarketPrice
- 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.
GetListingPackageRegion
- Code string
- A code assigned to the item.
- Countries
List<Get
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 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 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 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 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.
GetListingPackageRegionCountry
GetListingPackageVariable
- Data
Type string - The data type of the variable.
- Default
Value string - The variable's default value.
- Description string
- A description of the variable.
- Hint
Message string - A brief textual description that helps to explain the variable.
- Is
Mandatory bool - Whether the variable is mandatory.
- Name string
- The name of the variable.
- Data
Type string - The data type of the variable.
- Default
Value string - The variable's default value.
- Description string
- A description of the variable.
- Hint
Message string - A brief textual description that helps to explain the variable.
- Is
Mandatory bool - Whether the variable is mandatory.
- Name string
- The name of the variable.
- data
Type String - The data type of the variable.
- default
Value String - The variable's default value.
- description String
- A description of the variable.
- hint
Message String - A brief textual description that helps to explain the variable.
- is
Mandatory Boolean - Whether the variable is mandatory.
- name String
- The name of the variable.
- data
Type string - The data type of the variable.
- default
Value string - The variable's default value.
- description string
- A description of the variable.
- hint
Message string - A brief textual description that helps to explain the variable.
- is
Mandatory 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.
- data
Type String - The data type of the variable.
- default
Value String - The variable's default value.
- description String
- A description of the variable.
- hint
Message String - A brief textual description that helps to explain the variable.
- is
Mandatory 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.