SaasSubscriptionLevelArgs

data class SaasSubscriptionLevelArgs(val location: Output<String>? = null, val name: Output<String>? = null, val properties: Output<SaasCreationPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<SaasSubscriptionLevelArgs>

SaaS REST API resource definition. Uses Azure REST API version 2018-03-01-beta. In version 1.x of the Azure Native provider, it used API version 2018-03-01-beta.

Example Usage

Create subscription level SaaS resource

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var saasSubscriptionLevel = new AzureNative.SaaS.SaasSubscriptionLevel("saasSubscriptionLevel", new()
{
Location = "global",
Name = "MyContosoSubscription",
Properties = new AzureNative.SaaS.Inputs.SaasCreationPropertiesArgs
{
OfferId = "contosoOffer",
PaymentChannelMetadata =
{
{ "AzureSubscriptionId", "155af98a-3205-47e7-883b-a2ab9db9f88d" },
},
PaymentChannelType = AzureNative.SaaS.PaymentChannelType.SubscriptionDelegated,
PublisherId = "microsoft-contoso",
SaasResourceName = "MyContosoSubscription",
SkuId = "free",
TermId = "hjdtn7tfnxcy",
},
ResourceGroupName = "my-saas-rg",
ResourceName = "MyContosoSubscription",
});
});
package main
import (
saas "github.com/pulumi/pulumi-azure-native-sdk/saas/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := saas.NewSaasSubscriptionLevel(ctx, "saasSubscriptionLevel", &saas.SaasSubscriptionLevelArgs{
Location: pulumi.String("global"),
Name: pulumi.String("MyContosoSubscription"),
Properties: &saas.SaasCreationPropertiesArgs{
OfferId: pulumi.String("contosoOffer"),
PaymentChannelMetadata: pulumi.StringMap{
"AzureSubscriptionId": pulumi.String("155af98a-3205-47e7-883b-a2ab9db9f88d"),
},
PaymentChannelType: pulumi.String(saas.PaymentChannelTypeSubscriptionDelegated),
PublisherId: pulumi.String("microsoft-contoso"),
SaasResourceName: pulumi.String("MyContosoSubscription"),
SkuId: pulumi.String("free"),
TermId: pulumi.String("hjdtn7tfnxcy"),
},
ResourceGroupName: pulumi.String("my-saas-rg"),
ResourceName: pulumi.String("MyContosoSubscription"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.saas.SaasSubscriptionLevel;
import com.pulumi.azurenative.saas.SaasSubscriptionLevelArgs;
import com.pulumi.azurenative.saas.inputs.SaasCreationPropertiesArgs;
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) {
var saasSubscriptionLevel = new SaasSubscriptionLevel("saasSubscriptionLevel", SaasSubscriptionLevelArgs.builder()
.location("global")
.name("MyContosoSubscription")
.properties(SaasCreationPropertiesArgs.builder()
.offerId("contosoOffer")
.paymentChannelMetadata(Map.of("AzureSubscriptionId", "155af98a-3205-47e7-883b-a2ab9db9f88d"))
.paymentChannelType("SubscriptionDelegated")
.publisherId("microsoft-contoso")
.saasResourceName("MyContosoSubscription")
.skuId("free")
.termId("hjdtn7tfnxcy")
.build())
.resourceGroupName("my-saas-rg")
.resourceName("MyContosoSubscription")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:saas:SaasSubscriptionLevel MyContosoSubscription /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SaaS/resources/{resourceName}

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, name: Output<String>? = null, properties: Output<SaasCreationPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val location: Output<String>? = null

Resource location. Only value allowed for SaaS is 'global'

Link copied to clipboard
val name: Output<String>? = null

The resource name

Link copied to clipboard

Properties of the SaaS resource that are relevant for creation.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val resourceName: Output<String>? = null

The name of the resource.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

the resource tags.

Functions

Link copied to clipboard
open override fun toJava(): SaasSubscriptionLevelArgs