Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Marketplace.getListingPackageAgreements
Explore with Pulumi AI
This data source provides the list of Listing Package Agreements in Oracle Cloud Infrastructure Marketplace service.
Returns the terms of use agreements that must be accepted before you can deploy the specified version of a package.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testListingPackageAgreements = oci.Marketplace.getListingPackageAgreements({
    listingId: testListing.id,
    packageVersion: listingPackageAgreementPackageVersion,
    compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_listing_package_agreements = oci.Marketplace.get_listing_package_agreements(listing_id=test_listing["id"],
    package_version=listing_package_agreement_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.GetListingPackageAgreements(ctx, &marketplace.GetListingPackageAgreementsArgs{
			ListingId:      testListing.Id,
			PackageVersion: listingPackageAgreementPackageVersion,
			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 testListingPackageAgreements = Oci.Marketplace.GetListingPackageAgreements.Invoke(new()
    {
        ListingId = testListing.Id,
        PackageVersion = listingPackageAgreementPackageVersion,
        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.GetListingPackageAgreementsArgs;
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 testListingPackageAgreements = MarketplaceFunctions.getListingPackageAgreements(GetListingPackageAgreementsArgs.builder()
            .listingId(testListing.id())
            .packageVersion(listingPackageAgreementPackageVersion)
            .compartmentId(compartmentId)
            .build());
    }
}
variables:
  testListingPackageAgreements:
    fn::invoke:
      function: oci:Marketplace:getListingPackageAgreements
      arguments:
        listingId: ${testListing.id}
        packageVersion: ${listingPackageAgreementPackageVersion}
        compartmentId: ${compartmentId}
Using getListingPackageAgreements
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 getListingPackageAgreements(args: GetListingPackageAgreementsArgs, opts?: InvokeOptions): Promise<GetListingPackageAgreementsResult>
function getListingPackageAgreementsOutput(args: GetListingPackageAgreementsOutputArgs, opts?: InvokeOptions): Output<GetListingPackageAgreementsResult>def get_listing_package_agreements(compartment_id: Optional[str] = None,
                                   filters: Optional[Sequence[GetListingPackageAgreementsFilter]] = None,
                                   listing_id: Optional[str] = None,
                                   package_version: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetListingPackageAgreementsResult
def get_listing_package_agreements_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetListingPackageAgreementsFilterArgs]]]] = None,
                                   listing_id: Optional[pulumi.Input[str]] = None,
                                   package_version: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetListingPackageAgreementsResult]func GetListingPackageAgreements(ctx *Context, args *GetListingPackageAgreementsArgs, opts ...InvokeOption) (*GetListingPackageAgreementsResult, error)
func GetListingPackageAgreementsOutput(ctx *Context, args *GetListingPackageAgreementsOutputArgs, opts ...InvokeOption) GetListingPackageAgreementsResultOutput> Note: This function is named GetListingPackageAgreements in the Go SDK.
public static class GetListingPackageAgreements 
{
    public static Task<GetListingPackageAgreementsResult> InvokeAsync(GetListingPackageAgreementsArgs args, InvokeOptions? opts = null)
    public static Output<GetListingPackageAgreementsResult> Invoke(GetListingPackageAgreementsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetListingPackageAgreementsResult> getListingPackageAgreements(GetListingPackageAgreementsArgs args, InvokeOptions options)
public static Output<GetListingPackageAgreementsResult> getListingPackageAgreements(GetListingPackageAgreementsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Marketplace/getListingPackageAgreements:getListingPackageAgreements
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ListingId string
- The unique identifier for the listing.
- PackageVersion string
- The version of the package. Package versions are unique within a listing.
- CompartmentId string
- The unique identifier for the compartment.
- Filters
List<GetListing Package Agreements Filter> 
- ListingId string
- The unique identifier for the listing.
- PackageVersion string
- The version of the package. Package versions are unique within a listing.
- CompartmentId string
- The unique identifier for the compartment.
- Filters
[]GetListing Package Agreements Filter 
- listingId String
- The unique identifier for the listing.
- packageVersion String
- The version of the package. Package versions are unique within a listing.
- compartmentId String
- The unique identifier for the compartment.
- filters
List<GetListing Package Agreements Filter> 
- listingId string
- The unique identifier for the listing.
- packageVersion string
- The version of the package. Package versions are unique within a listing.
- compartmentId string
- The unique identifier for the compartment.
- filters
GetListing Package Agreements Filter[] 
- 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.
- filters
Sequence[GetListing Package Agreements Filter] 
- listingId String
- The unique identifier for the listing.
- packageVersion String
- The version of the package. Package versions are unique within a listing.
- compartmentId String
- The unique identifier for the compartment.
- filters List<Property Map>
getListingPackageAgreements Result
The following output properties are available:
- Agreements
List<GetListing Package Agreements Agreement> 
- The list of agreements.
- Id string
- The provider-assigned unique ID for this managed resource.
- ListingId string
- PackageVersion string
- CompartmentId string
- The unique identifier for the compartment.
- Filters
List<GetListing Package Agreements Filter> 
- Agreements
[]GetListing Package Agreements Agreement 
- The list of agreements.
- Id string
- The provider-assigned unique ID for this managed resource.
- ListingId string
- PackageVersion string
- CompartmentId string
- The unique identifier for the compartment.
- Filters
[]GetListing Package Agreements Filter 
- agreements
List<GetListing Package Agreements Agreement> 
- The list of agreements.
- id String
- The provider-assigned unique ID for this managed resource.
- listingId String
- packageVersion String
- compartmentId String
- The unique identifier for the compartment.
- filters
List<GetListing Package Agreements Filter> 
- agreements
GetListing Package Agreements Agreement[] 
- The list of agreements.
- id string
- The provider-assigned unique ID for this managed resource.
- listingId string
- packageVersion string
- compartmentId string
- The unique identifier for the compartment.
- filters
GetListing Package Agreements Filter[] 
- agreements
Sequence[GetListing Package Agreements Agreement] 
- The list of agreements.
- id str
- The provider-assigned unique ID for this managed resource.
- listing_id str
- package_version str
- compartment_id str
- The unique identifier for the compartment.
- filters
Sequence[GetListing Package Agreements Filter] 
- agreements List<Property Map>
- The list of agreements.
- id String
- The provider-assigned unique ID for this managed resource.
- listingId String
- packageVersion String
- compartmentId String
- The unique identifier for the compartment.
- filters List<Property Map>
Supporting Types
GetListingPackageAgreementsAgreement    
- string
- Who authored the agreement.
- ContentUrl string
- The content URL of the agreement.
- Id string
- The unique identifier for the agreement.
- Prompt string
- Textual prompt to read and accept the agreement.
- string
- Who authored the agreement.
- ContentUrl string
- The content URL of the agreement.
- Id string
- The unique identifier for the agreement.
- Prompt string
- Textual prompt to read and accept the agreement.
- String
- Who authored the agreement.
- contentUrl String
- The content URL of the agreement.
- id String
- The unique identifier for the agreement.
- prompt String
- Textual prompt to read and accept the agreement.
- string
- Who authored the agreement.
- contentUrl string
- The content URL of the agreement.
- id string
- The unique identifier for the agreement.
- prompt string
- Textual prompt to read and accept the agreement.
- str
- Who authored the agreement.
- content_url str
- The content URL of the agreement.
- id str
- The unique identifier for the agreement.
- prompt str
- Textual prompt to read and accept the agreement.
- String
- Who authored the agreement.
- contentUrl String
- The content URL of the agreement.
- id String
- The unique identifier for the agreement.
- prompt String
- Textual prompt to read and accept the agreement.
GetListingPackageAgreementsFilter    
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.