1. Packages
  2. Azure Classic
  3. API Docs
  4. marketplace
  5. getAgreement

We recommend using Azure Native.

Azure Classic v5.73.0 published on Monday, Apr 22, 2024 by Pulumi

azure.marketplace.getAgreement

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.73.0 published on Monday, Apr 22, 2024 by Pulumi

    Uses this data source to access information about an existing Marketplace Agreement.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const barracuda = azure.marketplace.getAgreement({
        publisher: "barracudanetworks",
        offer: "waf",
        plan: "hourly",
    });
    export const azurermMarketplaceAgreementId = id;
    
    import pulumi
    import pulumi_azure as azure
    
    barracuda = azure.marketplace.get_agreement(publisher="barracudanetworks",
        offer="waf",
        plan="hourly")
    pulumi.export("azurermMarketplaceAgreementId", id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/marketplace"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := marketplace.LookupAgreement(ctx, &marketplace.LookupAgreementArgs{
    			Publisher: "barracudanetworks",
    			Offer:     "waf",
    			Plan:      "hourly",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("azurermMarketplaceAgreementId", id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var barracuda = Azure.Marketplace.GetAgreement.Invoke(new()
        {
            Publisher = "barracudanetworks",
            Offer = "waf",
            Plan = "hourly",
        });
    
        return new Dictionary<string, object?>
        {
            ["azurermMarketplaceAgreementId"] = id,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.marketplace.MarketplaceFunctions;
    import com.pulumi.azure.marketplace.inputs.GetAgreementArgs;
    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 barracuda = MarketplaceFunctions.getAgreement(GetAgreementArgs.builder()
                .publisher("barracudanetworks")
                .offer("waf")
                .plan("hourly")
                .build());
    
            ctx.export("azurermMarketplaceAgreementId", id);
        }
    }
    
    variables:
      barracuda:
        fn::invoke:
          Function: azure:marketplace:getAgreement
          Arguments:
            publisher: barracudanetworks
            offer: waf
            plan: hourly
    outputs:
      azurermMarketplaceAgreementId: ${id}
    

    Using getAgreement

    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 getAgreement(args: GetAgreementArgs, opts?: InvokeOptions): Promise<GetAgreementResult>
    function getAgreementOutput(args: GetAgreementOutputArgs, opts?: InvokeOptions): Output<GetAgreementResult>
    def get_agreement(offer: Optional[str] = None,
                      plan: Optional[str] = None,
                      publisher: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetAgreementResult
    def get_agreement_output(offer: Optional[pulumi.Input[str]] = None,
                      plan: Optional[pulumi.Input[str]] = None,
                      publisher: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetAgreementResult]
    func LookupAgreement(ctx *Context, args *LookupAgreementArgs, opts ...InvokeOption) (*LookupAgreementResult, error)
    func LookupAgreementOutput(ctx *Context, args *LookupAgreementOutputArgs, opts ...InvokeOption) LookupAgreementResultOutput

    > Note: This function is named LookupAgreement in the Go SDK.

    public static class GetAgreement 
    {
        public static Task<GetAgreementResult> InvokeAsync(GetAgreementArgs args, InvokeOptions? opts = null)
        public static Output<GetAgreementResult> Invoke(GetAgreementInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAgreementResult> getAgreement(GetAgreementArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:marketplace/getAgreement:getAgreement
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Offer string
    The Offer of the Marketplace Image.
    Plan string
    The Plan of the Marketplace Image.
    Publisher string
    The Publisher of the Marketplace Image.
    Offer string
    The Offer of the Marketplace Image.
    Plan string
    The Plan of the Marketplace Image.
    Publisher string
    The Publisher of the Marketplace Image.
    offer String
    The Offer of the Marketplace Image.
    plan String
    The Plan of the Marketplace Image.
    publisher String
    The Publisher of the Marketplace Image.
    offer string
    The Offer of the Marketplace Image.
    plan string
    The Plan of the Marketplace Image.
    publisher string
    The Publisher of the Marketplace Image.
    offer str
    The Offer of the Marketplace Image.
    plan str
    The Plan of the Marketplace Image.
    publisher str
    The Publisher of the Marketplace Image.
    offer String
    The Offer of the Marketplace Image.
    plan String
    The Plan of the Marketplace Image.
    publisher String
    The Publisher of the Marketplace Image.

    getAgreement Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    LicenseTextLink string
    Offer string
    Plan string
    PrivacyPolicyLink string
    Publisher string
    Id string
    The provider-assigned unique ID for this managed resource.
    LicenseTextLink string
    Offer string
    Plan string
    PrivacyPolicyLink string
    Publisher string
    id String
    The provider-assigned unique ID for this managed resource.
    licenseTextLink String
    offer String
    plan String
    privacyPolicyLink String
    publisher String
    id string
    The provider-assigned unique ID for this managed resource.
    licenseTextLink string
    offer string
    plan string
    privacyPolicyLink string
    publisher string
    id str
    The provider-assigned unique ID for this managed resource.
    license_text_link str
    offer str
    plan str
    privacy_policy_link str
    publisher str
    id String
    The provider-assigned unique ID for this managed resource.
    licenseTextLink String
    offer String
    plan String
    privacyPolicyLink String
    publisher String

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.73.0 published on Monday, Apr 22, 2024 by Pulumi