Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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 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:
- Accepted
Agreement stringId - The unique identifier for the accepted terms of use agreement.
- Accepted
Agreement stringId - The unique identifier for the accepted terms of use agreement.
- accepted
Agreement StringId - The unique identifier for the accepted terms of use agreement.
- accepted
Agreement stringId - The unique identifier for the accepted terms of use agreement.
- accepted_
agreement_ strid - The unique identifier for the accepted terms of use agreement.
- accepted
Agreement StringId - The unique identifier for the accepted terms of use agreement.
getAcceptedAgreement Result
The following output properties are available:
- Accepted
Agreement stringId - Agreement
Id string - The unique identifier for the terms of use agreement itself.
- Compartment
Id 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"}
- Display
Name 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.
- 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
- Time
Accepted string - The time the agreement was accepted.
- Accepted
Agreement stringId - Agreement
Id string - The unique identifier for the terms of use agreement itself.
- Compartment
Id 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"}
- Display
Name 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.
- 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
- Time
Accepted string - The time the agreement was accepted.
- accepted
Agreement StringId - agreement
Id String - The unique identifier for the terms of use agreement itself.
- compartment
Id 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"}
- display
Name 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.
- 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
- time
Accepted String - The time the agreement was accepted.
- accepted
Agreement stringId - agreement
Id string - The unique identifier for the terms of use agreement itself.
- compartment
Id 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"}
- display
Name 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.
- 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
- time
Accepted 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.
- accepted
Agreement StringId - agreement
Id String - The unique identifier for the terms of use agreement itself.
- compartment
Id 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"}
- display
Name 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.
- 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
- time
Accepted 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.