1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Marketplace
  5. ListingPackageAgreement
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Marketplace.ListingPackageAgreement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This resource provides details about a specific Listing Package Agreement resource in Oracle Cloud Infrastructure Marketplace service.

    This resource can be used to retrieve the time-based signature of terms of use agreement for a package that can be used to accept the agreement.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testListingPackageAgreement = new oci.marketplace.ListingPackageAgreement("testListingPackageAgreement", {
        agreementId: oci_marketplace_agreement.test_agreement.id,
        listingId: oci_marketplace_listing.test_listing.id,
        packageVersion: _var.listing_package_agreement_package_version,
        compartmentId: _var.compartment_id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_listing_package_agreement = oci.marketplace.ListingPackageAgreement("testListingPackageAgreement",
        agreement_id=oci_marketplace_agreement["test_agreement"]["id"],
        listing_id=oci_marketplace_listing["test_listing"]["id"],
        package_version=var["listing_package_agreement_package_version"],
        compartment_id=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.NewListingPackageAgreement(ctx, "testListingPackageAgreement", &Marketplace.ListingPackageAgreementArgs{
    			AgreementId:    pulumi.Any(oci_marketplace_agreement.Test_agreement.Id),
    			ListingId:      pulumi.Any(oci_marketplace_listing.Test_listing.Id),
    			PackageVersion: pulumi.Any(_var.Listing_package_agreement_package_version),
    			CompartmentId:  pulumi.Any(_var.Compartment_id),
    		})
    		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 testListingPackageAgreement = new Oci.Marketplace.ListingPackageAgreement("testListingPackageAgreement", new()
        {
            AgreementId = oci_marketplace_agreement.Test_agreement.Id,
            ListingId = oci_marketplace_listing.Test_listing.Id,
            PackageVersion = @var.Listing_package_agreement_package_version,
            CompartmentId = @var.Compartment_id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Marketplace.ListingPackageAgreement;
    import com.pulumi.oci.Marketplace.ListingPackageAgreementArgs;
    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) {
            var testListingPackageAgreement = new ListingPackageAgreement("testListingPackageAgreement", ListingPackageAgreementArgs.builder()        
                .agreementId(oci_marketplace_agreement.test_agreement().id())
                .listingId(oci_marketplace_listing.test_listing().id())
                .packageVersion(var_.listing_package_agreement_package_version())
                .compartmentId(var_.compartment_id())
                .build());
    
        }
    }
    
    resources:
      testListingPackageAgreement:
        type: oci:Marketplace:ListingPackageAgreement
        properties:
          #Required
          agreementId: ${oci_marketplace_agreement.test_agreement.id}
          listingId: ${oci_marketplace_listing.test_listing.id}
          packageVersion: ${var.listing_package_agreement_package_version}
          #Optional
          compartmentId: ${var.compartment_id}
    

    Create ListingPackageAgreement Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ListingPackageAgreement(name: string, args: ListingPackageAgreementArgs, opts?: CustomResourceOptions);
    @overload
    def ListingPackageAgreement(resource_name: str,
                                args: ListingPackageAgreementArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def ListingPackageAgreement(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                agreement_id: Optional[str] = None,
                                listing_id: Optional[str] = None,
                                package_version: Optional[str] = None,
                                compartment_id: Optional[str] = None)
    func NewListingPackageAgreement(ctx *Context, name string, args ListingPackageAgreementArgs, opts ...ResourceOption) (*ListingPackageAgreement, error)
    public ListingPackageAgreement(string name, ListingPackageAgreementArgs args, CustomResourceOptions? opts = null)
    public ListingPackageAgreement(String name, ListingPackageAgreementArgs args)
    public ListingPackageAgreement(String name, ListingPackageAgreementArgs args, CustomResourceOptions options)
    
    type: oci:Marketplace:ListingPackageAgreement
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ListingPackageAgreementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ListingPackageAgreementArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ListingPackageAgreementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ListingPackageAgreementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ListingPackageAgreementArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var listingPackageAgreementResource = new Oci.Marketplace.ListingPackageAgreement("listingPackageAgreementResource", new()
    {
        AgreementId = "string",
        ListingId = "string",
        PackageVersion = "string",
        CompartmentId = "string",
    });
    
    example, err := Marketplace.NewListingPackageAgreement(ctx, "listingPackageAgreementResource", &Marketplace.ListingPackageAgreementArgs{
    	AgreementId:    pulumi.String("string"),
    	ListingId:      pulumi.String("string"),
    	PackageVersion: pulumi.String("string"),
    	CompartmentId:  pulumi.String("string"),
    })
    
    var listingPackageAgreementResource = new ListingPackageAgreement("listingPackageAgreementResource", ListingPackageAgreementArgs.builder()        
        .agreementId("string")
        .listingId("string")
        .packageVersion("string")
        .compartmentId("string")
        .build());
    
    listing_package_agreement_resource = oci.marketplace.ListingPackageAgreement("listingPackageAgreementResource",
        agreement_id="string",
        listing_id="string",
        package_version="string",
        compartment_id="string")
    
    const listingPackageAgreementResource = new oci.marketplace.ListingPackageAgreement("listingPackageAgreementResource", {
        agreementId: "string",
        listingId: "string",
        packageVersion: "string",
        compartmentId: "string",
    });
    
    type: oci:Marketplace:ListingPackageAgreement
    properties:
        agreementId: string
        compartmentId: string
        listingId: string
        packageVersion: string
    

    ListingPackageAgreement Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ListingPackageAgreement resource accepts the following input properties:

    AgreementId string
    The unique identifier for the agreement.
    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, required in gov regions.
    AgreementId string
    The unique identifier for the agreement.
    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, required in gov regions.
    agreementId String
    The unique identifier for the agreement.
    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, required in gov regions.
    agreementId string
    The unique identifier for the agreement.
    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, required in gov regions.
    agreement_id str
    The unique identifier for the agreement.
    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, required in gov regions.
    agreementId String
    The unique identifier for the agreement.
    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, required in gov regions.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ListingPackageAgreement resource produces the following output properties:

    Author string
    Who authored the agreement.
    ContentUrl string
    The content URL of the agreement.
    Id string
    The provider-assigned unique ID for this managed resource.
    Prompt string
    Textual prompt to read and accept the agreement.
    Signature string
    A time-based signature that can be used to accept an agreement or remove a previously accepted agreement from the list that Marketplace checks before a deployment.
    Author string
    Who authored the agreement.
    ContentUrl string
    The content URL of the agreement.
    Id string
    The provider-assigned unique ID for this managed resource.
    Prompt string
    Textual prompt to read and accept the agreement.
    Signature string
    A time-based signature that can be used to accept an agreement or remove a previously accepted agreement from the list that Marketplace checks before a deployment.
    author String
    Who authored the agreement.
    contentUrl String
    The content URL of the agreement.
    id String
    The provider-assigned unique ID for this managed resource.
    prompt String
    Textual prompt to read and accept the agreement.
    signature String
    A time-based signature that can be used to accept an agreement or remove a previously accepted agreement from the list that Marketplace checks before a deployment.
    author string
    Who authored the agreement.
    contentUrl string
    The content URL of the agreement.
    id string
    The provider-assigned unique ID for this managed resource.
    prompt string
    Textual prompt to read and accept the agreement.
    signature string
    A time-based signature that can be used to accept an agreement or remove a previously accepted agreement from the list that Marketplace checks before a deployment.
    author str
    Who authored the agreement.
    content_url str
    The content URL of the agreement.
    id str
    The provider-assigned unique ID for this managed resource.
    prompt str
    Textual prompt to read and accept the agreement.
    signature str
    A time-based signature that can be used to accept an agreement or remove a previously accepted agreement from the list that Marketplace checks before a deployment.
    author String
    Who authored the agreement.
    contentUrl String
    The content URL of the agreement.
    id String
    The provider-assigned unique ID for this managed resource.
    prompt String
    Textual prompt to read and accept the agreement.
    signature String
    A time-based signature that can be used to accept an agreement or remove a previously accepted agreement from the list that Marketplace checks before a deployment.

    Look up Existing ListingPackageAgreement Resource

    Get an existing ListingPackageAgreement resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ListingPackageAgreementState, opts?: CustomResourceOptions): ListingPackageAgreement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agreement_id: Optional[str] = None,
            author: Optional[str] = None,
            compartment_id: Optional[str] = None,
            content_url: Optional[str] = None,
            listing_id: Optional[str] = None,
            package_version: Optional[str] = None,
            prompt: Optional[str] = None,
            signature: Optional[str] = None) -> ListingPackageAgreement
    func GetListingPackageAgreement(ctx *Context, name string, id IDInput, state *ListingPackageAgreementState, opts ...ResourceOption) (*ListingPackageAgreement, error)
    public static ListingPackageAgreement Get(string name, Input<string> id, ListingPackageAgreementState? state, CustomResourceOptions? opts = null)
    public static ListingPackageAgreement get(String name, Output<String> id, ListingPackageAgreementState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AgreementId string
    The unique identifier for the agreement.
    Author string
    Who authored the agreement.
    CompartmentId string
    The unique identifier for the compartment, required in gov regions.
    ContentUrl string
    The content URL of the agreement.
    ListingId string
    The unique identifier for the listing.
    PackageVersion string
    The version of the package. Package versions are unique within a listing.
    Prompt string
    Textual prompt to read and accept the agreement.
    Signature string
    A time-based signature that can be used to accept an agreement or remove a previously accepted agreement from the list that Marketplace checks before a deployment.
    AgreementId string
    The unique identifier for the agreement.
    Author string
    Who authored the agreement.
    CompartmentId string
    The unique identifier for the compartment, required in gov regions.
    ContentUrl string
    The content URL of the agreement.
    ListingId string
    The unique identifier for the listing.
    PackageVersion string
    The version of the package. Package versions are unique within a listing.
    Prompt string
    Textual prompt to read and accept the agreement.
    Signature string
    A time-based signature that can be used to accept an agreement or remove a previously accepted agreement from the list that Marketplace checks before a deployment.
    agreementId String
    The unique identifier for the agreement.
    author String
    Who authored the agreement.
    compartmentId String
    The unique identifier for the compartment, required in gov regions.
    contentUrl String
    The content URL of the agreement.
    listingId String
    The unique identifier for the listing.
    packageVersion String
    The version of the package. Package versions are unique within a listing.
    prompt String
    Textual prompt to read and accept the agreement.
    signature String
    A time-based signature that can be used to accept an agreement or remove a previously accepted agreement from the list that Marketplace checks before a deployment.
    agreementId string
    The unique identifier for the agreement.
    author string
    Who authored the agreement.
    compartmentId string
    The unique identifier for the compartment, required in gov regions.
    contentUrl string
    The content URL of the agreement.
    listingId string
    The unique identifier for the listing.
    packageVersion string
    The version of the package. Package versions are unique within a listing.
    prompt string
    Textual prompt to read and accept the agreement.
    signature string
    A time-based signature that can be used to accept an agreement or remove a previously accepted agreement from the list that Marketplace checks before a deployment.
    agreement_id str
    The unique identifier for the agreement.
    author str
    Who authored the agreement.
    compartment_id str
    The unique identifier for the compartment, required in gov regions.
    content_url str
    The content URL of the agreement.
    listing_id str
    The unique identifier for the listing.
    package_version str
    The version of the package. Package versions are unique within a listing.
    prompt str
    Textual prompt to read and accept the agreement.
    signature str
    A time-based signature that can be used to accept an agreement or remove a previously accepted agreement from the list that Marketplace checks before a deployment.
    agreementId String
    The unique identifier for the agreement.
    author String
    Who authored the agreement.
    compartmentId String
    The unique identifier for the compartment, required in gov regions.
    contentUrl String
    The content URL of the agreement.
    listingId String
    The unique identifier for the listing.
    packageVersion String
    The version of the package. Package versions are unique within a listing.
    prompt String
    Textual prompt to read and accept the agreement.
    signature String
    A time-based signature that can be used to accept an agreement or remove a previously accepted agreement from the list that Marketplace checks before a deployment.

    Import

    Import is not supported for this resource.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi