oci.Marketplace.ListingPackageAgreement
Explore with Pulumi AI
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("test_listing_package_agreement", {
agreementId: testAgreement.id,
listingId: testListing.id,
packageVersion: listingPackageAgreementPackageVersion,
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_listing_package_agreement = oci.marketplace.ListingPackageAgreement("test_listing_package_agreement",
agreement_id=test_agreement["id"],
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.NewListingPackageAgreement(ctx, "test_listing_package_agreement", &Marketplace.ListingPackageAgreementArgs{
AgreementId: pulumi.Any(testAgreement.Id),
ListingId: pulumi.Any(testListing.Id),
PackageVersion: pulumi.Any(listingPackageAgreementPackageVersion),
CompartmentId: pulumi.Any(compartmentId),
})
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("test_listing_package_agreement", new()
{
AgreementId = testAgreement.Id,
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.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(testAgreement.id())
.listingId(testListing.id())
.packageVersion(listingPackageAgreementPackageVersion)
.compartmentId(compartmentId)
.build());
}
}
resources:
testListingPackageAgreement:
type: oci:Marketplace:ListingPackageAgreement
name: test_listing_package_agreement
properties:
agreementId: ${testAgreement.id}
listingId: ${testListing.id}
packageVersion: ${listingPackageAgreementPackageVersion}
compartmentId: ${compartmentId}
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.
Constructor 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ListingPackageAgreement resource accepts the following input properties:
- Agreement
Id string - The unique identifier for the agreement.
- 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, required in gov regions.
- Agreement
Id string - The unique identifier for the agreement.
- 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, required in gov regions.
- agreement
Id String - The unique identifier for the agreement.
- 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, required in gov regions.
- agreement
Id string - The unique identifier for the agreement.
- 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, 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.
- agreement
Id String - The unique identifier for the agreement.
- 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, required in gov regions.
Outputs
All input properties are implicitly available as output properties. Additionally, the ListingPackageAgreement resource produces the following output properties:
- string
- Who authored the agreement.
- Content
Url 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.
- string
- Who authored the agreement.
- Content
Url 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.
- String
- Who authored the agreement.
- content
Url 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.
- string
- Who authored the agreement.
- content
Url 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.
- 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.
- String
- Who authored the agreement.
- content
Url 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.
- Agreement
Id string - The unique identifier for the agreement.
- string
- Who authored the agreement.
- Compartment
Id string - The unique identifier for the compartment, required in gov regions.
- Content
Url string - The content URL of the agreement.
- Listing
Id string - The unique identifier for the listing.
- Package
Version 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 string - The unique identifier for the agreement.
- string
- Who authored the agreement.
- Compartment
Id string - The unique identifier for the compartment, required in gov regions.
- Content
Url string - The content URL of the agreement.
- Listing
Id string - The unique identifier for the listing.
- Package
Version 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 String - The unique identifier for the agreement.
- String
- Who authored the agreement.
- compartment
Id String - The unique identifier for the compartment, required in gov regions.
- content
Url String - The content URL of the agreement.
- listing
Id String - The unique identifier for the listing.
- package
Version 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 string - The unique identifier for the agreement.
- string
- Who authored the agreement.
- compartment
Id string - The unique identifier for the compartment, required in gov regions.
- content
Url string - The content URL of the agreement.
- listing
Id string - The unique identifier for the listing.
- package
Version 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.
- 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.
- agreement
Id String - The unique identifier for the agreement.
- String
- Who authored the agreement.
- compartment
Id String - The unique identifier for the compartment, required in gov regions.
- content
Url String - The content URL of the agreement.
- listing
Id String - The unique identifier for the listing.
- package
Version 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.