1. Packages
  2. Equinix
  3. API Docs
  4. fabric
  5. getMarketplaceSubscription
Equinix v0.19.0 published on Thursday, Oct 24, 2024 by Equinix

equinix.fabric.getMarketplaceSubscription

Explore with Pulumi AI

equinix logo
Equinix v0.19.0 published on Thursday, Oct 24, 2024 by Equinix

    Fabric V4 API compatible data resource that allow user to fetch Marketplace Subscription detail for a given UUID

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as equinix from "@pulumi/equinix";
    
    const subscription-test = equinix.fabric.getMarketplaceSubscription({
        uuid: "<uuid_of_marketplace_subscription>",
    });
    export const id = subscription_test.then(subscription_test => subscription_test.id);
    export const status = subscription_test.then(subscription_test => subscription_test.status);
    export const marketplace = subscription_test.then(subscription_test => subscription_test.marketplace);
    export const offerType = subscription_test.then(subscription_test => subscription_test.offerType);
    export const isAutoRenew = subscription_test.then(subscription_test => subscription_test.isAutoRenew);
    
    import pulumi
    import pulumi_equinix as equinix
    
    subscription_test = equinix.fabric.get_marketplace_subscription(uuid="<uuid_of_marketplace_subscription>")
    pulumi.export("id", subscription_test.id)
    pulumi.export("status", subscription_test.status)
    pulumi.export("marketplace", subscription_test.marketplace)
    pulumi.export("offerType", subscription_test.offer_type)
    pulumi.export("isAutoRenew", subscription_test.is_auto_renew)
    
    package main
    
    import (
    	"github.com/equinix/pulumi-equinix/sdk/go/equinix/fabric"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		subscription_test, err := fabric.GetMarketplaceSubscription(ctx, &fabric.GetMarketplaceSubscriptionArgs{
    			Uuid: "<uuid_of_marketplace_subscription>",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("id", subscription_test.Id)
    		ctx.Export("status", subscription_test.Status)
    		ctx.Export("marketplace", subscription_test.Marketplace)
    		ctx.Export("offerType", subscription_test.OfferType)
    		ctx.Export("isAutoRenew", subscription_test.IsAutoRenew)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Equinix = Pulumi.Equinix;
    
    return await Deployment.RunAsync(() => 
    {
        var subscription_test = Equinix.Fabric.GetMarketplaceSubscription.Invoke(new()
        {
            Uuid = "<uuid_of_marketplace_subscription>",
        });
    
        return new Dictionary<string, object?>
        {
            ["id"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.Id)),
            ["status"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.Status)),
            ["marketplace"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.Marketplace)),
            ["offerType"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.OfferType)),
            ["isAutoRenew"] = subscription_test.Apply(subscription_test => subscription_test.Apply(getMarketplaceSubscriptionResult => getMarketplaceSubscriptionResult.IsAutoRenew)),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.equinix.fabric.FabricFunctions;
    import com.pulumi.equinix.fabric.inputs.GetMarketplaceSubscriptionArgs;
    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 subscription-test = FabricFunctions.getMarketplaceSubscription(GetMarketplaceSubscriptionArgs.builder()
                .uuid("<uuid_of_marketplace_subscription>")
                .build());
    
            ctx.export("id", subscription_test.id());
            ctx.export("status", subscription_test.status());
            ctx.export("marketplace", subscription_test.marketplace());
            ctx.export("offerType", subscription_test.offerType());
            ctx.export("isAutoRenew", subscription_test.isAutoRenew());
        }
    }
    
    variables:
      subscription-test:
        fn::invoke:
          Function: equinix:fabric:getMarketplaceSubscription
          Arguments:
            uuid: <uuid_of_marketplace_subscription>
    outputs:
      id: ${["subscription-test"].id}
      status: ${["subscription-test"].status}
      marketplace: ${["subscription-test"].marketplace}
      offerType: ${["subscription-test"].offerType}
      isAutoRenew: ${["subscription-test"].isAutoRenew}
    

    Using getMarketplaceSubscription

    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 getMarketplaceSubscription(args: GetMarketplaceSubscriptionArgs, opts?: InvokeOptions): Promise<GetMarketplaceSubscriptionResult>
    function getMarketplaceSubscriptionOutput(args: GetMarketplaceSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetMarketplaceSubscriptionResult>
    def get_marketplace_subscription(uuid: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetMarketplaceSubscriptionResult
    def get_marketplace_subscription_output(uuid: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetMarketplaceSubscriptionResult]
    func GetMarketplaceSubscription(ctx *Context, args *GetMarketplaceSubscriptionArgs, opts ...InvokeOption) (*GetMarketplaceSubscriptionResult, error)
    func GetMarketplaceSubscriptionOutput(ctx *Context, args *GetMarketplaceSubscriptionOutputArgs, opts ...InvokeOption) GetMarketplaceSubscriptionResultOutput

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

    public static class GetMarketplaceSubscription 
    {
        public static Task<GetMarketplaceSubscriptionResult> InvokeAsync(GetMarketplaceSubscriptionArgs args, InvokeOptions? opts = null)
        public static Output<GetMarketplaceSubscriptionResult> Invoke(GetMarketplaceSubscriptionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMarketplaceSubscriptionResult> getMarketplaceSubscription(GetMarketplaceSubscriptionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: equinix:fabric/getMarketplaceSubscription:getMarketplaceSubscription
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Uuid string
    Equinix-assigned marketplace identifier
    Uuid string
    Equinix-assigned marketplace identifier
    uuid String
    Equinix-assigned marketplace identifier
    uuid string
    Equinix-assigned marketplace identifier
    uuid str
    Equinix-assigned marketplace identifier
    uuid String
    Equinix-assigned marketplace identifier

    getMarketplaceSubscription Result

    The following output properties are available:

    Entitlements List<GetMarketplaceSubscriptionEntitlement>
    Subscription entitlements
    Href string
    Subscription URI information
    Id string
    The provider-assigned unique ID for this managed resource.
    IsAutoRenew bool
    Information about subscription auto renewal
    Marketplace string
    Marketplace like; AWS, GCP, AZURE, REDHAT
    OfferType string
    Marketplace Offer Type like; PUBLIC, PRIVATE_OFFER
    Status string
    Subscription Status like; ACTIVE, EXPIRED, CANCELLED, GRACE_PERIOD
    Trial GetMarketplaceSubscriptionTrial
    Subscription Trial
    Uuid string
    Equinix-assigned marketplace identifier
    Entitlements []GetMarketplaceSubscriptionEntitlement
    Subscription entitlements
    Href string
    Subscription URI information
    Id string
    The provider-assigned unique ID for this managed resource.
    IsAutoRenew bool
    Information about subscription auto renewal
    Marketplace string
    Marketplace like; AWS, GCP, AZURE, REDHAT
    OfferType string
    Marketplace Offer Type like; PUBLIC, PRIVATE_OFFER
    Status string
    Subscription Status like; ACTIVE, EXPIRED, CANCELLED, GRACE_PERIOD
    Trial GetMarketplaceSubscriptionTrial
    Subscription Trial
    Uuid string
    Equinix-assigned marketplace identifier
    entitlements List<GetMarketplaceSubscriptionEntitlement>
    Subscription entitlements
    href String
    Subscription URI information
    id String
    The provider-assigned unique ID for this managed resource.
    isAutoRenew Boolean
    Information about subscription auto renewal
    marketplace String
    Marketplace like; AWS, GCP, AZURE, REDHAT
    offerType String
    Marketplace Offer Type like; PUBLIC, PRIVATE_OFFER
    status String
    Subscription Status like; ACTIVE, EXPIRED, CANCELLED, GRACE_PERIOD
    trial GetMarketplaceSubscriptionTrial
    Subscription Trial
    uuid String
    Equinix-assigned marketplace identifier
    entitlements GetMarketplaceSubscriptionEntitlement[]
    Subscription entitlements
    href string
    Subscription URI information
    id string
    The provider-assigned unique ID for this managed resource.
    isAutoRenew boolean
    Information about subscription auto renewal
    marketplace string
    Marketplace like; AWS, GCP, AZURE, REDHAT
    offerType string
    Marketplace Offer Type like; PUBLIC, PRIVATE_OFFER
    status string
    Subscription Status like; ACTIVE, EXPIRED, CANCELLED, GRACE_PERIOD
    trial GetMarketplaceSubscriptionTrial
    Subscription Trial
    uuid string
    Equinix-assigned marketplace identifier
    entitlements Sequence[GetMarketplaceSubscriptionEntitlement]
    Subscription entitlements
    href str
    Subscription URI information
    id str
    The provider-assigned unique ID for this managed resource.
    is_auto_renew bool
    Information about subscription auto renewal
    marketplace str
    Marketplace like; AWS, GCP, AZURE, REDHAT
    offer_type str
    Marketplace Offer Type like; PUBLIC, PRIVATE_OFFER
    status str
    Subscription Status like; ACTIVE, EXPIRED, CANCELLED, GRACE_PERIOD
    trial GetMarketplaceSubscriptionTrial
    Subscription Trial
    uuid str
    Equinix-assigned marketplace identifier
    entitlements List<Property Map>
    Subscription entitlements
    href String
    Subscription URI information
    id String
    The provider-assigned unique ID for this managed resource.
    isAutoRenew Boolean
    Information about subscription auto renewal
    marketplace String
    Marketplace like; AWS, GCP, AZURE, REDHAT
    offerType String
    Marketplace Offer Type like; PUBLIC, PRIVATE_OFFER
    status String
    Subscription Status like; ACTIVE, EXPIRED, CANCELLED, GRACE_PERIOD
    trial Property Map
    Subscription Trial
    uuid String
    Equinix-assigned marketplace identifier

    Supporting Types

    GetMarketplaceSubscriptionEntitlement

    Assets List<GetMarketplaceSubscriptionEntitlementAsset>
    Asset information
    QuantityAvailable int
    Available Quantity
    QuantityConsumed int
    Consumed Quantity
    QuantityEntitled int
    Entitled Quantity
    Uuid string
    Subscription Entitlement Id
    Assets []GetMarketplaceSubscriptionEntitlementAsset
    Asset information
    QuantityAvailable int
    Available Quantity
    QuantityConsumed int
    Consumed Quantity
    QuantityEntitled int
    Entitled Quantity
    Uuid string
    Subscription Entitlement Id
    assets List<GetMarketplaceSubscriptionEntitlementAsset>
    Asset information
    quantityAvailable Integer
    Available Quantity
    quantityConsumed Integer
    Consumed Quantity
    quantityEntitled Integer
    Entitled Quantity
    uuid String
    Subscription Entitlement Id
    assets GetMarketplaceSubscriptionEntitlementAsset[]
    Asset information
    quantityAvailable number
    Available Quantity
    quantityConsumed number
    Consumed Quantity
    quantityEntitled number
    Entitled Quantity
    uuid string
    Subscription Entitlement Id
    assets Sequence[GetMarketplaceSubscriptionEntitlementAsset]
    Asset information
    quantity_available int
    Available Quantity
    quantity_consumed int
    Consumed Quantity
    quantity_entitled int
    Entitled Quantity
    uuid str
    Subscription Entitlement Id
    assets List<Property Map>
    Asset information
    quantityAvailable Number
    Available Quantity
    quantityConsumed Number
    Consumed Quantity
    quantityEntitled Number
    Entitled Quantity
    uuid String
    Subscription Entitlement Id

    GetMarketplaceSubscriptionEntitlementAsset

    Packages List<GetMarketplaceSubscriptionEntitlementAssetPackage>
    Fabric Cloud Router Package Type
    Type string
    Defines the FCR type like; XF_ROUTER
    Packages []GetMarketplaceSubscriptionEntitlementAssetPackage
    Fabric Cloud Router Package Type
    Type string
    Defines the FCR type like; XF_ROUTER
    packages List<GetMarketplaceSubscriptionEntitlementAssetPackage>
    Fabric Cloud Router Package Type
    type String
    Defines the FCR type like; XF_ROUTER
    packages GetMarketplaceSubscriptionEntitlementAssetPackage[]
    Fabric Cloud Router Package Type
    type string
    Defines the FCR type like; XF_ROUTER
    packages Sequence[GetMarketplaceSubscriptionEntitlementAssetPackage]
    Fabric Cloud Router Package Type
    type str
    Defines the FCR type like; XF_ROUTER
    packages List<Property Map>
    Fabric Cloud Router Package Type
    type String
    Defines the FCR type like; XF_ROUTER

    GetMarketplaceSubscriptionEntitlementAssetPackage

    Code string
    Cloud Router package code
    Code string
    Cloud Router package code
    code String
    Cloud Router package code
    code string
    Cloud Router package code
    code str
    Cloud Router package code
    code String
    Cloud Router package code

    GetMarketplaceSubscriptionTrial

    Enabled bool
    Marketplace Subscription Trial Enabled
    Enabled bool
    Marketplace Subscription Trial Enabled
    enabled Boolean
    Marketplace Subscription Trial Enabled
    enabled boolean
    Marketplace Subscription Trial Enabled
    enabled bool
    Marketplace Subscription Trial Enabled
    enabled Boolean
    Marketplace Subscription Trial Enabled

    Package Details

    Repository
    equinix equinix/pulumi-equinix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the equinix Terraform Provider.
    equinix logo
    Equinix v0.19.0 published on Thursday, Oct 24, 2024 by Equinix