1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Marketplace
  5. getAcceptedAgreement
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Marketplace.getAcceptedAgreement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 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

    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 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, 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.
    FreeformTags 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.
    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]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.
    FreeformTags 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.
    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,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.
    freeformTags 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.
    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]: 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.
    freeformTags {[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_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, 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.
    freeform_tags 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.
    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>
    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>
    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 v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi