1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Marketplace
  5. getAcceptedAgreement
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

oci.Marketplace.getAcceptedAgreement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi

    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

    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 = oci_marketplace_accepted_agreement.Test_accepted_agreement.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.GetAcceptedAgreement(ctx, &marketplace.GetAcceptedAgreementArgs{
    			AcceptedAgreementId: oci_marketplace_accepted_agreement.Test_accepted_agreement.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.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(oci_marketplace_accepted_agreement.test_accepted_agreement().id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_accepted_agreement = oci.Marketplace.get_accepted_agreement(accepted_agreement_id=oci_marketplace_accepted_agreement["test_accepted_agreement"]["id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAcceptedAgreement = oci.Marketplace.getAcceptedAgreement({
        acceptedAgreementId: oci_marketplace_accepted_agreement.test_accepted_agreement.id,
    });
    
    variables:
      testAcceptedAgreement:
        fn::invoke:
          Function: oci:Marketplace:getAcceptedAgreement
          Arguments:
            acceptedAgreementId: ${oci_marketplace_accepted_agreement.test_accepted_agreement.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 GetAcceptedAgreement(ctx *Context, args *GetAcceptedAgreementArgs, opts ...InvokeOption) (*GetAcceptedAgreementResult, error)
    func GetAcceptedAgreementOutput(ctx *Context, args *GetAcceptedAgreementOutputArgs, opts ...InvokeOption) GetAcceptedAgreementResultOutput

    > Note: This function is named GetAcceptedAgreement 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Marketplace/getAcceptedAgreement:getAcceptedAgreement
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AcceptedAgreementId string
    The unique identifier for the accepted terms of use agreement.
    AcceptedAgreementId string
    The unique identifier for the accepted terms of use agreement.
    acceptedAgreementId String
    The unique identifier for the accepted terms of use agreement.
    acceptedAgreementId string
    The unique identifier for the accepted terms of use agreement.
    accepted_agreement_id str
    The unique identifier for the accepted terms of use agreement.
    acceptedAgreementId String
    The unique identifier for the accepted terms of use agreement.

    getAcceptedAgreement Result

    The following output properties are available:

    AcceptedAgreementId string
    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.
    DefinedTags Dictionary<string, object>
    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.
    FreeformTags Dictionary<string, object>
    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.
    AcceptedAgreementId string
    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.
    DefinedTags map[string]interface{}
    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.
    FreeformTags map[string]interface{}
    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.
    acceptedAgreementId String
    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.
    definedTags Map<String,Object>
    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.
    freeformTags Map<String,Object>
    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.
    acceptedAgreementId string
    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.
    definedTags {[key: string]: any}
    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.
    freeformTags {[key: string]: any}
    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_id str
    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.
    defined_tags Mapping[str, Any]
    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.
    freeform_tags Mapping[str, Any]
    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.
    acceptedAgreementId String
    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.
    definedTags Map<Any>
    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.
    freeformTags Map<Any>
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.24.0 published on Thursday, Feb 22, 2024 by Pulumi