Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Marketplace.getAcceptedAgreement
Explore with Pulumi AI
This data source provides details about a specific Accepted Agreement resource in Oracle Cloud Infrastructure Marketplace service.
Gets the details of a specific, previously accepted terms of use agreement.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAcceptedAgreement = oci.Marketplace.getAcceptedAgreement({
    acceptedAgreementId: testAcceptedAgreementOciMarketplaceAcceptedAgreement.id,
});
import pulumi
import pulumi_oci as oci
test_accepted_agreement = oci.Marketplace.get_accepted_agreement(accepted_agreement_id=test_accepted_agreement_oci_marketplace_accepted_agreement["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.GetAcceptedAgreement(ctx, &marketplace.GetAcceptedAgreementArgs{
			AcceptedAgreementId: testAcceptedAgreementOciMarketplaceAcceptedAgreement.Id,
		}, 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 testAcceptedAgreement = Oci.Marketplace.GetAcceptedAgreement.Invoke(new()
    {
        AcceptedAgreementId = testAcceptedAgreementOciMarketplaceAcceptedAgreement.Id,
    });
});
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.GetAcceptedAgreementArgs;
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 testAcceptedAgreement = MarketplaceFunctions.getAcceptedAgreement(GetAcceptedAgreementArgs.builder()
            .acceptedAgreementId(testAcceptedAgreementOciMarketplaceAcceptedAgreement.id())
            .build());
    }
}
variables:
  testAcceptedAgreement:
    fn::invoke:
      function: oci:Marketplace:getAcceptedAgreement
      arguments:
        acceptedAgreementId: ${testAcceptedAgreementOciMarketplaceAcceptedAgreement.id}
Using getAcceptedAgreement
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 getAcceptedAgreement(args: GetAcceptedAgreementArgs, opts?: InvokeOptions): Promise<GetAcceptedAgreementResult>
function getAcceptedAgreementOutput(args: GetAcceptedAgreementOutputArgs, opts?: InvokeOptions): Output<GetAcceptedAgreementResult>def get_accepted_agreement(accepted_agreement_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetAcceptedAgreementResult
def get_accepted_agreement_output(accepted_agreement_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetAcceptedAgreementResult]func LookupAcceptedAgreement(ctx *Context, args *LookupAcceptedAgreementArgs, opts ...InvokeOption) (*LookupAcceptedAgreementResult, error)
func LookupAcceptedAgreementOutput(ctx *Context, args *LookupAcceptedAgreementOutputArgs, opts ...InvokeOption) LookupAcceptedAgreementResultOutput> Note: This function is named LookupAcceptedAgreement in the Go SDK.
public static class GetAcceptedAgreement 
{
    public static Task<GetAcceptedAgreementResult> InvokeAsync(GetAcceptedAgreementArgs args, InvokeOptions? opts = null)
    public static Output<GetAcceptedAgreementResult> Invoke(GetAcceptedAgreementInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAcceptedAgreementResult> getAcceptedAgreement(GetAcceptedAgreementArgs args, InvokeOptions options)
public static Output<GetAcceptedAgreementResult> getAcceptedAgreement(GetAcceptedAgreementArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Marketplace/getAcceptedAgreement:getAcceptedAgreement
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AcceptedAgreement stringId 
- The unique identifier for the accepted terms of use agreement.
- AcceptedAgreement stringId 
- The unique identifier for the accepted terms of use agreement.
- acceptedAgreement StringId 
- The unique identifier for the accepted terms of use agreement.
- acceptedAgreement stringId 
- The unique identifier for the accepted terms of use agreement.
- accepted_agreement_ strid 
- The unique identifier for the accepted terms of use agreement.
- acceptedAgreement StringId 
- The unique identifier for the accepted terms of use agreement.
getAcceptedAgreement Result
The following output properties are available:
- AcceptedAgreement stringId 
- AgreementId string
- The unique identifier for the terms of use agreement itself.
- CompartmentId string
- The unique identifier for the compartment where the agreement was accepted.
- Dictionary<string, string>
- 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"}
- DisplayName string
- A display name for the accepted agreement.
- Dictionary<string, string>
- 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"}
- Id string
- The unique identifier for the acceptance of the agreement within a specific compartment.
- ListingId string
- The unique identifier for the listing associated with the agreement.
- PackageVersion string
- The package version associated with the agreement.
- Signature string
- TimeAccepted string
- The time the agreement was accepted.
- AcceptedAgreement stringId 
- AgreementId string
- The unique identifier for the terms of use agreement itself.
- CompartmentId string
- The unique identifier for the compartment where the agreement was accepted.
- map[string]string
- 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"}
- DisplayName string
- A display name for the accepted agreement.
- map[string]string
- 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"}
- Id string
- The unique identifier for the acceptance of the agreement within a specific compartment.
- ListingId string
- The unique identifier for the listing associated with the agreement.
- PackageVersion string
- The package version associated with the agreement.
- Signature string
- TimeAccepted string
- The time the agreement was accepted.
- acceptedAgreement StringId 
- agreementId String
- The unique identifier for the terms of use agreement itself.
- compartmentId String
- The unique identifier for the compartment where the agreement was accepted.
- Map<String,String>
- 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"}
- displayName String
- A display name for the accepted agreement.
- Map<String,String>
- 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"}
- id String
- The unique identifier for the acceptance of the agreement within a specific compartment.
- listingId String
- The unique identifier for the listing associated with the agreement.
- packageVersion String
- The package version associated with the agreement.
- signature String
- timeAccepted String
- The time the agreement was accepted.
- acceptedAgreement stringId 
- agreementId string
- The unique identifier for the terms of use agreement itself.
- compartmentId string
- The unique identifier for the compartment where the agreement was accepted.
- {[key: string]: string}
- 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"}
- displayName string
- A display name for the accepted agreement.
- {[key: string]: string}
- 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"}
- id string
- The unique identifier for the acceptance of the agreement within a specific compartment.
- listingId string
- The unique identifier for the listing associated with the agreement.
- packageVersion string
- The package version associated with the agreement.
- signature string
- timeAccepted string
- The time the agreement was accepted.
- accepted_agreement_ strid 
- agreement_id str
- The unique identifier for the terms of use agreement itself.
- compartment_id str
- The unique identifier for the compartment where the agreement was accepted.
- Mapping[str, str]
- 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
- A display name for the accepted agreement.
- Mapping[str, str]
- 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"}
- id str
- The unique identifier for the acceptance of the agreement within a specific compartment.
- 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
- time_accepted str
- The time the agreement was accepted.
- acceptedAgreement StringId 
- agreementId String
- The unique identifier for the terms of use agreement itself.
- compartmentId String
- The unique identifier for the compartment where the agreement was accepted.
- Map<String>
- 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"}
- displayName String
- A display name for the accepted agreement.
- Map<String>
- 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"}
- id String
- The unique identifier for the acceptance of the agreement within a specific compartment.
- listingId String
- The unique identifier for the listing associated with the agreement.
- packageVersion String
- The package version associated with the agreement.
- signature String
- timeAccepted String
- The time the agreement was accepted.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.