Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getListingPackageAgreements

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testListingPackageAgreements = Oci.Marketplace.GetListingPackageAgreements.Invoke(new()
    {
        ListingId = oci_marketplace_listing.Test_listing.Id,
        PackageVersion = @var.Listing_package_agreement_package_version,
        CompartmentId = @var.Compartment_id,
    });

});
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.GetListingPackageAgreements(ctx, &marketplace.GetListingPackageAgreementsArgs{
			ListingId:      oci_marketplace_listing.Test_listing.Id,
			PackageVersion: _var.Listing_package_agreement_package_version,
			CompartmentId:  pulumi.StringRef(_var.Compartment_id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(oci_marketplace_listing.test_listing().id())
            .packageVersion(var_.listing_package_agreement_package_version())
            .compartmentId(var_.compartment_id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_listing_package_agreements = oci.Marketplace.get_listing_package_agreements(listing_id=oci_marketplace_listing["test_listing"]["id"],
    package_version=var["listing_package_agreement_package_version"],
    compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testListingPackageAgreements = oci.Marketplace.getListingPackageAgreements({
    listingId: oci_marketplace_listing.test_listing.id,
    packageVersion: _var.listing_package_agreement_package_version,
    compartmentId: _var.compartment_id,
});
variables:
  testListingPackageAgreements:
    Fn::Invoke:
      Function: oci:Marketplace:getListingPackageAgreements
      Arguments:
        listingId: ${oci_marketplace_listing.test_listing.id}
        packageVersion: ${var.listing_package_agreement_package_version}
        compartmentId: ${var.compartment_id}

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[_marketplace.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[_marketplace.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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Marketplace/getListingPackageAgreements:getListingPackageAgreements
  Arguments:
    # Arguments dictionary

The 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<GetListingPackageAgreementsFilter>
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 []GetListingPackageAgreementsFilter
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<GetListingPackageAgreementsFilter>
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 GetListingPackageAgreementsFilter[]
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 GetListingPackageAgreementsFilter]
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<GetListingPackageAgreementsAgreement>

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<GetListingPackageAgreementsFilter>
Agreements []GetListingPackageAgreementsAgreement

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 []GetListingPackageAgreementsFilter
agreements List<GetListingPackageAgreementsAgreement>

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<GetListingPackageAgreementsFilter>
agreements GetListingPackageAgreementsAgreement[]

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 GetListingPackageAgreementsFilter[]
agreements GetListingPackageAgreementsAgreement]

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 GetListingPackageAgreementsFilter]
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

Author 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.

Author 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.

author 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.

author 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.

author 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.

author 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

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.