Equinix v0.18.0 published on Monday, Sep 23, 2024 by Equinix
equinix.fabric.getMarketplaceSubscription
Explore with Pulumi AI
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<Get
Marketplace Subscription Entitlement> - Subscription entitlements
- Href string
- Subscription URI information
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Auto boolRenew - Information about subscription auto renewal
- Marketplace string
- Marketplace like; AWS, GCP, AZURE, REDHAT
- Offer
Type string - Marketplace Offer Type like; PUBLIC, PRIVATE_OFFER
- Status string
- Subscription Status like; ACTIVE, EXPIRED, CANCELLED, GRACE_PERIOD
- Trial
Get
Marketplace Subscription Trial - Subscription Trial
- Uuid string
- Equinix-assigned marketplace identifier
- Entitlements
[]Get
Marketplace Subscription Entitlement - Subscription entitlements
- Href string
- Subscription URI information
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Auto boolRenew - Information about subscription auto renewal
- Marketplace string
- Marketplace like; AWS, GCP, AZURE, REDHAT
- Offer
Type string - Marketplace Offer Type like; PUBLIC, PRIVATE_OFFER
- Status string
- Subscription Status like; ACTIVE, EXPIRED, CANCELLED, GRACE_PERIOD
- Trial
Get
Marketplace Subscription Trial - Subscription Trial
- Uuid string
- Equinix-assigned marketplace identifier
- entitlements
List<Get
Marketplace Subscription Entitlement> - Subscription entitlements
- href String
- Subscription URI information
- id String
- The provider-assigned unique ID for this managed resource.
- is
Auto BooleanRenew - Information about subscription auto renewal
- marketplace String
- Marketplace like; AWS, GCP, AZURE, REDHAT
- offer
Type String - Marketplace Offer Type like; PUBLIC, PRIVATE_OFFER
- status String
- Subscription Status like; ACTIVE, EXPIRED, CANCELLED, GRACE_PERIOD
- trial
Get
Marketplace Subscription Trial - Subscription Trial
- uuid String
- Equinix-assigned marketplace identifier
- entitlements
Get
Marketplace Subscription Entitlement[] - Subscription entitlements
- href string
- Subscription URI information
- id string
- The provider-assigned unique ID for this managed resource.
- is
Auto booleanRenew - Information about subscription auto renewal
- marketplace string
- Marketplace like; AWS, GCP, AZURE, REDHAT
- offer
Type string - Marketplace Offer Type like; PUBLIC, PRIVATE_OFFER
- status string
- Subscription Status like; ACTIVE, EXPIRED, CANCELLED, GRACE_PERIOD
- trial
Get
Marketplace Subscription Trial - Subscription Trial
- uuid string
- Equinix-assigned marketplace identifier
- entitlements
Sequence[Get
Marketplace Subscription Entitlement] - Subscription entitlements
- href str
- Subscription URI information
- id str
- The provider-assigned unique ID for this managed resource.
- is_
auto_ boolrenew - 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
Get
Marketplace Subscription Trial - 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.
- is
Auto BooleanRenew - Information about subscription auto renewal
- marketplace String
- Marketplace like; AWS, GCP, AZURE, REDHAT
- offer
Type 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<Get
Marketplace Subscription Entitlement Asset> - Asset information
- Quantity
Available int - Available Quantity
- Quantity
Consumed int - Consumed Quantity
- Quantity
Entitled int - Entitled Quantity
- Uuid string
- Subscription Entitlement Id
- Assets
[]Get
Marketplace Subscription Entitlement Asset - Asset information
- Quantity
Available int - Available Quantity
- Quantity
Consumed int - Consumed Quantity
- Quantity
Entitled int - Entitled Quantity
- Uuid string
- Subscription Entitlement Id
- assets
List<Get
Marketplace Subscription Entitlement Asset> - Asset information
- quantity
Available Integer - Available Quantity
- quantity
Consumed Integer - Consumed Quantity
- quantity
Entitled Integer - Entitled Quantity
- uuid String
- Subscription Entitlement Id
- assets
Get
Marketplace Subscription Entitlement Asset[] - Asset information
- quantity
Available number - Available Quantity
- quantity
Consumed number - Consumed Quantity
- quantity
Entitled number - Entitled Quantity
- uuid string
- Subscription Entitlement Id
- assets
Sequence[Get
Marketplace Subscription Entitlement Asset] - 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
- quantity
Available Number - Available Quantity
- quantity
Consumed Number - Consumed Quantity
- quantity
Entitled Number - Entitled Quantity
- uuid String
- Subscription Entitlement Id
GetMarketplaceSubscriptionEntitlementAsset
- Packages
List<Get
Marketplace Subscription Entitlement Asset Package> - Fabric Cloud Router Package Type
- Type string
- Defines the FCR type like; XF_ROUTER
- Packages
[]Get
Marketplace Subscription Entitlement Asset Package - Fabric Cloud Router Package Type
- Type string
- Defines the FCR type like; XF_ROUTER
- packages
List<Get
Marketplace Subscription Entitlement Asset Package> - Fabric Cloud Router Package Type
- type String
- Defines the FCR type like; XF_ROUTER
- packages
Get
Marketplace Subscription Entitlement Asset Package[] - Fabric Cloud Router Package Type
- type string
- Defines the FCR type like; XF_ROUTER
- packages
Sequence[Get
Marketplace Subscription Entitlement Asset Package] - 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.