oci.Marketplace.AcceptedAgreement
Explore with Pulumi AI
This resource provides the Accepted Agreement resource in Oracle Cloud Infrastructure Marketplace service.
Accepts a terms of use agreement for a specific package version of a listing. You must accept all terms of use for a package before you can deploy the package.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAcceptedAgreement = new oci.marketplace.AcceptedAgreement("test_accepted_agreement", {
agreementId: testAgreement.id,
compartmentId: compartmentId,
listingId: testListing.id,
packageVersion: acceptedAgreementPackageVersion,
signature: acceptedAgreementSignature,
definedTags: {
"Operations.CostCenter": "42",
},
displayName: acceptedAgreementDisplayName,
freeformTags: {
Department: "Finance",
},
});
import pulumi
import pulumi_oci as oci
test_accepted_agreement = oci.marketplace.AcceptedAgreement("test_accepted_agreement",
agreement_id=test_agreement["id"],
compartment_id=compartment_id,
listing_id=test_listing["id"],
package_version=accepted_agreement_package_version,
signature=accepted_agreement_signature,
defined_tags={
"Operations.CostCenter": "42",
},
display_name=accepted_agreement_display_name,
freeform_tags={
"Department": "Finance",
})
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.NewAcceptedAgreement(ctx, "test_accepted_agreement", &Marketplace.AcceptedAgreementArgs{
AgreementId: pulumi.Any(testAgreement.Id),
CompartmentId: pulumi.Any(compartmentId),
ListingId: pulumi.Any(testListing.Id),
PackageVersion: pulumi.Any(acceptedAgreementPackageVersion),
Signature: pulumi.Any(acceptedAgreementSignature),
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
DisplayName: pulumi.Any(acceptedAgreementDisplayName),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
})
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 testAcceptedAgreement = new Oci.Marketplace.AcceptedAgreement("test_accepted_agreement", new()
{
AgreementId = testAgreement.Id,
CompartmentId = compartmentId,
ListingId = testListing.Id,
PackageVersion = acceptedAgreementPackageVersion,
Signature = acceptedAgreementSignature,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
DisplayName = acceptedAgreementDisplayName,
FreeformTags =
{
{ "Department", "Finance" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Marketplace.AcceptedAgreement;
import com.pulumi.oci.Marketplace.AcceptedAgreementArgs;
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 testAcceptedAgreement = new AcceptedAgreement("testAcceptedAgreement", AcceptedAgreementArgs.builder()
.agreementId(testAgreement.id())
.compartmentId(compartmentId)
.listingId(testListing.id())
.packageVersion(acceptedAgreementPackageVersion)
.signature(acceptedAgreementSignature)
.definedTags(Map.of("Operations.CostCenter", "42"))
.displayName(acceptedAgreementDisplayName)
.freeformTags(Map.of("Department", "Finance"))
.build());
}
}
resources:
testAcceptedAgreement:
type: oci:Marketplace:AcceptedAgreement
name: test_accepted_agreement
properties:
agreementId: ${testAgreement.id}
compartmentId: ${compartmentId}
listingId: ${testListing.id}
packageVersion: ${acceptedAgreementPackageVersion}
signature: ${acceptedAgreementSignature}
definedTags:
Operations.CostCenter: '42'
displayName: ${acceptedAgreementDisplayName}
freeformTags:
Department: Finance
Create AcceptedAgreement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AcceptedAgreement(name: string, args: AcceptedAgreementArgs, opts?: CustomResourceOptions);
@overload
def AcceptedAgreement(resource_name: str,
args: AcceptedAgreementArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AcceptedAgreement(resource_name: str,
opts: Optional[ResourceOptions] = None,
agreement_id: Optional[str] = None,
compartment_id: Optional[str] = None,
listing_id: Optional[str] = None,
package_version: Optional[str] = None,
signature: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None)
func NewAcceptedAgreement(ctx *Context, name string, args AcceptedAgreementArgs, opts ...ResourceOption) (*AcceptedAgreement, error)
public AcceptedAgreement(string name, AcceptedAgreementArgs args, CustomResourceOptions? opts = null)
public AcceptedAgreement(String name, AcceptedAgreementArgs args)
public AcceptedAgreement(String name, AcceptedAgreementArgs args, CustomResourceOptions options)
type: oci:Marketplace:AcceptedAgreement
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 AcceptedAgreementArgs
- 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 AcceptedAgreementArgs
- 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 AcceptedAgreementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AcceptedAgreementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AcceptedAgreementArgs
- 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 acceptedAgreementResource = new Oci.Marketplace.AcceptedAgreement("acceptedAgreementResource", new()
{
AgreementId = "string",
CompartmentId = "string",
ListingId = "string",
PackageVersion = "string",
Signature = "string",
DefinedTags =
{
{ "string", "string" },
},
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
});
example, err := Marketplace.NewAcceptedAgreement(ctx, "acceptedAgreementResource", &Marketplace.AcceptedAgreementArgs{
AgreementId: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
ListingId: pulumi.String("string"),
PackageVersion: pulumi.String("string"),
Signature: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var acceptedAgreementResource = new AcceptedAgreement("acceptedAgreementResource", AcceptedAgreementArgs.builder()
.agreementId("string")
.compartmentId("string")
.listingId("string")
.packageVersion("string")
.signature("string")
.definedTags(Map.of("string", "string"))
.displayName("string")
.freeformTags(Map.of("string", "string"))
.build());
accepted_agreement_resource = oci.marketplace.AcceptedAgreement("acceptedAgreementResource",
agreement_id="string",
compartment_id="string",
listing_id="string",
package_version="string",
signature="string",
defined_tags={
"string": "string",
},
display_name="string",
freeform_tags={
"string": "string",
})
const acceptedAgreementResource = new oci.marketplace.AcceptedAgreement("acceptedAgreementResource", {
agreementId: "string",
compartmentId: "string",
listingId: "string",
packageVersion: "string",
signature: "string",
definedTags: {
string: "string",
},
displayName: "string",
freeformTags: {
string: "string",
},
});
type: oci:Marketplace:AcceptedAgreement
properties:
agreementId: string
compartmentId: string
definedTags:
string: string
displayName: string
freeformTags:
string: string
listingId: string
packageVersion: string
signature: string
AcceptedAgreement 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 AcceptedAgreement resource accepts the following input properties:
- Agreement
Id string - The agreement to accept.
- Compartment
Id string - The unique identifier for the compartment where the agreement will be accepted.
- Listing
Id string - The unique identifier for the listing associated with the agreement.
- Package
Version string - The package version associated with the agreement.
- Signature string
A signature generated for the listing package agreements that you can retrieve with GetAgreement.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Dictionary<string, string>
- (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A display name for the accepted agreement.
- Dictionary<string, string>
- (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Agreement
Id string - The agreement to accept.
- Compartment
Id string - The unique identifier for the compartment where the agreement will be accepted.
- Listing
Id string - The unique identifier for the listing associated with the agreement.
- Package
Version string - The package version associated with the agreement.
- Signature string
A signature generated for the listing package agreements that you can retrieve with GetAgreement.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- map[string]string
- (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A display name for the accepted agreement.
- map[string]string
- (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- agreement
Id String - The agreement to accept.
- compartment
Id String - The unique identifier for the compartment where the agreement will be accepted.
- listing
Id String - The unique identifier for the listing associated with the agreement.
- package
Version String - The package version associated with the agreement.
- signature String
A signature generated for the listing package agreements that you can retrieve with GetAgreement.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String,String>
- (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A display name for the accepted agreement.
- Map<String,String>
- (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- agreement
Id string - The agreement to accept.
- compartment
Id string - The unique identifier for the compartment where the agreement will be accepted.
- listing
Id string - The unique identifier for the listing associated with the agreement.
- package
Version string - The package version associated with the agreement.
- signature string
A signature generated for the listing package agreements that you can retrieve with GetAgreement.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- {[key: string]: string}
- (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - (Updatable) A display name for the accepted agreement.
- {[key: string]: string}
- (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- agreement_
id str - The agreement to accept.
- compartment_
id str - The unique identifier for the compartment where the agreement will be accepted.
- listing_
id str - The unique identifier for the listing associated with the agreement.
- package_
version str - The package version associated with the agreement.
- signature str
A signature generated for the listing package agreements that you can retrieve with GetAgreement.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Mapping[str, str]
- (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - (Updatable) A display name for the accepted agreement.
- Mapping[str, str]
- (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- agreement
Id String - The agreement to accept.
- compartment
Id String - The unique identifier for the compartment where the agreement will be accepted.
- listing
Id String - The unique identifier for the listing associated with the agreement.
- package
Version String - The package version associated with the agreement.
- signature String
A signature generated for the listing package agreements that you can retrieve with GetAgreement.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Map<String>
- (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A display name for the accepted agreement.
- Map<String>
- (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
Outputs
All input properties are implicitly available as output properties. Additionally, the AcceptedAgreement resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Accepted string - The time the agreement was accepted.
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Accepted string - The time the agreement was accepted.
- id String
- The provider-assigned unique ID for this managed resource.
- time
Accepted String - The time the agreement was accepted.
- id string
- The provider-assigned unique ID for this managed resource.
- time
Accepted string - The time the agreement was accepted.
- id str
- The provider-assigned unique ID for this managed resource.
- time_
accepted str - The time the agreement was accepted.
- id String
- The provider-assigned unique ID for this managed resource.
- time
Accepted String - The time the agreement was accepted.
Look up Existing AcceptedAgreement Resource
Get an existing AcceptedAgreement 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?: AcceptedAgreementState, opts?: CustomResourceOptions): AcceptedAgreement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
agreement_id: Optional[str] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
listing_id: Optional[str] = None,
package_version: Optional[str] = None,
signature: Optional[str] = None,
time_accepted: Optional[str] = None) -> AcceptedAgreement
func GetAcceptedAgreement(ctx *Context, name string, id IDInput, state *AcceptedAgreementState, opts ...ResourceOption) (*AcceptedAgreement, error)
public static AcceptedAgreement Get(string name, Input<string> id, AcceptedAgreementState? state, CustomResourceOptions? opts = null)
public static AcceptedAgreement get(String name, Output<String> id, AcceptedAgreementState 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 agreement to accept.
- Compartment
Id string - The unique identifier for the compartment where the agreement will be accepted.
- Dictionary<string, string>
- (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A display name for the accepted agreement.
- Dictionary<string, string>
- (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Listing
Id string - The unique identifier for the listing associated with the agreement.
- Package
Version string - The package version associated with the agreement.
- Signature string
A signature generated for the listing package agreements that you can retrieve with GetAgreement.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Time
Accepted string - The time the agreement was accepted.
- Agreement
Id string - The agreement to accept.
- Compartment
Id string - The unique identifier for the compartment where the agreement will be accepted.
- map[string]string
- (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A display name for the accepted agreement.
- map[string]string
- (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Listing
Id string - The unique identifier for the listing associated with the agreement.
- Package
Version string - The package version associated with the agreement.
- Signature string
A signature generated for the listing package agreements that you can retrieve with GetAgreement.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Time
Accepted string - The time the agreement was accepted.
- agreement
Id String - The agreement to accept.
- compartment
Id String - The unique identifier for the compartment where the agreement will be accepted.
- Map<String,String>
- (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A display name for the accepted agreement.
- Map<String,String>
- (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- listing
Id String - The unique identifier for the listing associated with the agreement.
- package
Version String - The package version associated with the agreement.
- signature String
A signature generated for the listing package agreements that you can retrieve with GetAgreement.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- time
Accepted String - The time the agreement was accepted.
- agreement
Id string - The agreement to accept.
- compartment
Id string - The unique identifier for the compartment where the agreement will be accepted.
- {[key: string]: string}
- (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - (Updatable) A display name for the accepted agreement.
- {[key: string]: string}
- (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- listing
Id string - The unique identifier for the listing associated with the agreement.
- package
Version string - The package version associated with the agreement.
- signature string
A signature generated for the listing package agreements that you can retrieve with GetAgreement.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- time
Accepted string - The time the agreement was accepted.
- agreement_
id str - The agreement to accept.
- compartment_
id str - The unique identifier for the compartment where the agreement will be accepted.
- Mapping[str, str]
- (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - (Updatable) A display name for the accepted agreement.
- Mapping[str, str]
- (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- listing_
id str - The unique identifier for the listing associated with the agreement.
- package_
version str - The package version associated with the agreement.
- signature str
A signature generated for the listing package agreements that you can retrieve with GetAgreement.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- time_
accepted str - The time the agreement was accepted.
- agreement
Id String - The agreement to accept.
- compartment
Id String - The unique identifier for the compartment where the agreement will be accepted.
- Map<String>
- (Updatable) The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A display name for the accepted agreement.
- Map<String>
- (Updatable) The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- listing
Id String - The unique identifier for the listing associated with the agreement.
- package
Version String - The package version associated with the agreement.
- signature String
A signature generated for the listing package agreements that you can retrieve with GetAgreement.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- time
Accepted String - The time the agreement was accepted.
Import
AcceptedAgreements can be imported using the id
, e.g.
$ pulumi import oci:Marketplace/acceptedAgreement:AcceptedAgreement test_accepted_agreement "id"
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.