azure-native.saas.SaasSubscriptionLevel

Explore with Pulumi AI

SaaS REST API resource definition. API Version: 2018-03-01-beta.

Example Usage

Create subscription level SaaS resource

using System.Collections.Generic;
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 = "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/go/azure/saas"
	"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("SubscriptionDelegated"),
				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 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(Map.ofEntries(
                Map.entry("offerId", "contosoOffer"),
                Map.entry("paymentChannelMetadata", Map.of("AzureSubscriptionId", "155af98a-3205-47e7-883b-a2ab9db9f88d")),
                Map.entry("paymentChannelType", "SubscriptionDelegated"),
                Map.entry("publisherId", "microsoft-contoso"),
                Map.entry("saasResourceName", "MyContosoSubscription"),
                Map.entry("skuId", "free"),
                Map.entry("termId", "hjdtn7tfnxcy")
            ))
            .resourceGroupName("my-saas-rg")
            .resourceName("MyContosoSubscription")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

saas_subscription_level = azure_native.saas.SaasSubscriptionLevel("saasSubscriptionLevel",
    location="global",
    name="MyContosoSubscription",
    properties=azure_native.saas.SaasCreationPropertiesArgs(
        offer_id="contosoOffer",
        payment_channel_metadata={
            "AzureSubscriptionId": "155af98a-3205-47e7-883b-a2ab9db9f88d",
        },
        payment_channel_type="SubscriptionDelegated",
        publisher_id="microsoft-contoso",
        saas_resource_name="MyContosoSubscription",
        sku_id="free",
        term_id="hjdtn7tfnxcy",
    ),
    resource_group_name="my-saas-rg",
    resource_name_="MyContosoSubscription")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const saasSubscriptionLevel = new azure_native.saas.SaasSubscriptionLevel("saasSubscriptionLevel", {
    location: "global",
    name: "MyContosoSubscription",
    properties: {
        offerId: "contosoOffer",
        paymentChannelMetadata: {
            AzureSubscriptionId: "155af98a-3205-47e7-883b-a2ab9db9f88d",
        },
        paymentChannelType: "SubscriptionDelegated",
        publisherId: "microsoft-contoso",
        saasResourceName: "MyContosoSubscription",
        skuId: "free",
        termId: "hjdtn7tfnxcy",
    },
    resourceGroupName: "my-saas-rg",
    resourceName: "MyContosoSubscription",
});
resources:
  saasSubscriptionLevel:
    type: azure-native:saas:SaasSubscriptionLevel
    properties:
      location: global
      name: MyContosoSubscription
      properties:
        offerId: contosoOffer
        paymentChannelMetadata:
          AzureSubscriptionId: 155af98a-3205-47e7-883b-a2ab9db9f88d
        paymentChannelType: SubscriptionDelegated
        publisherId: microsoft-contoso
        saasResourceName: MyContosoSubscription
        skuId: free
        termId: hjdtn7tfnxcy
      resourceGroupName: my-saas-rg
      resourceName: MyContosoSubscription

Create SaasSubscriptionLevel Resource

new SaasSubscriptionLevel(name: string, args: SaasSubscriptionLevelArgs, opts?: CustomResourceOptions);
@overload
def SaasSubscriptionLevel(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          location: Optional[str] = None,
                          name: Optional[str] = None,
                          properties: Optional[SaasCreationPropertiesArgs] = None,
                          resource_group_name: Optional[str] = None,
                          resource_name_: Optional[str] = None,
                          tags: Optional[Mapping[str, str]] = None)
@overload
def SaasSubscriptionLevel(resource_name: str,
                          args: SaasSubscriptionLevelArgs,
                          opts: Optional[ResourceOptions] = None)
func NewSaasSubscriptionLevel(ctx *Context, name string, args SaasSubscriptionLevelArgs, opts ...ResourceOption) (*SaasSubscriptionLevel, error)
public SaasSubscriptionLevel(string name, SaasSubscriptionLevelArgs args, CustomResourceOptions? opts = null)
public SaasSubscriptionLevel(String name, SaasSubscriptionLevelArgs args)
public SaasSubscriptionLevel(String name, SaasSubscriptionLevelArgs args, CustomResourceOptions options)
type: azure-native:saas:SaasSubscriptionLevel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args SaasSubscriptionLevelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args SaasSubscriptionLevelArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args SaasSubscriptionLevelArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SaasSubscriptionLevelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args SaasSubscriptionLevelArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

SaasSubscriptionLevel Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The SaasSubscriptionLevel resource accepts the following input properties:

ResourceGroupName string

The name of the resource group.

Location string

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

Name string

The resource name

Properties Pulumi.AzureNative.SaaS.Inputs.SaasCreationPropertiesArgs

Properties of the SaaS resource that are relevant for creation.

ResourceName string

The name of the resource.

Tags Dictionary<string, string>

the resource tags.

ResourceGroupName string

The name of the resource group.

Location string

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

Name string

The resource name

Properties SaasCreationPropertiesArgs

Properties of the SaaS resource that are relevant for creation.

ResourceName string

The name of the resource.

Tags map[string]string

the resource tags.

resourceGroupName String

The name of the resource group.

location String

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

name String

The resource name

properties SaasCreationPropertiesArgs

Properties of the SaaS resource that are relevant for creation.

resourceName String

The name of the resource.

tags Map<String,String>

the resource tags.

resourceGroupName string

The name of the resource group.

location string

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

name string

The resource name

properties SaasCreationPropertiesArgs

Properties of the SaaS resource that are relevant for creation.

resourceName string

The name of the resource.

tags {[key: string]: string}

the resource tags.

resource_group_name str

The name of the resource group.

location str

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

name str

The resource name

properties SaasCreationPropertiesArgs

Properties of the SaaS resource that are relevant for creation.

resource_name str

The name of the resource.

tags Mapping[str, str]

the resource tags.

resourceGroupName String

The name of the resource group.

location String

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

name String

The resource name

properties Property Map

Properties of the SaaS resource that are relevant for creation.

resourceName String

The name of the resource.

tags Map<String>

the resource tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the SaasSubscriptionLevel resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Type string

Resource type.

Id string

The provider-assigned unique ID for this managed resource.

Type string

Resource type.

id String

The provider-assigned unique ID for this managed resource.

type String

Resource type.

id string

The provider-assigned unique ID for this managed resource.

type string

Resource type.

id str

The provider-assigned unique ID for this managed resource.

type str

Resource type.

id String

The provider-assigned unique ID for this managed resource.

type String

Resource type.

Supporting Types

PaymentChannelType

SubscriptionDelegated
SubscriptionDelegated
CustomerDelegated
CustomerDelegated
PaymentChannelTypeSubscriptionDelegated
SubscriptionDelegated
PaymentChannelTypeCustomerDelegated
CustomerDelegated
SubscriptionDelegated
SubscriptionDelegated
CustomerDelegated
CustomerDelegated
SubscriptionDelegated
SubscriptionDelegated
CustomerDelegated
CustomerDelegated
SUBSCRIPTION_DELEGATED
SubscriptionDelegated
CUSTOMER_DELEGATED
CustomerDelegated
"SubscriptionDelegated"
SubscriptionDelegated
"CustomerDelegated"
CustomerDelegated

SaasCreationProperties

AutoRenew bool

Whether the SaaS subscription will auto renew upon term end.

OfferId string

The offer id.

PaymentChannelMetadata Dictionary<string, string>

The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.

PaymentChannelType string | Pulumi.AzureNative.SaaS.PaymentChannelType

The Payment channel for the SaasSubscription.

PublisherId string

The publisher id.

PublisherTestEnvironment string

The environment in the publisher side for this resource.

Quantity double

The seat count.

SaasResourceName string

The SaaS resource name.

SaasSessionId string

The saas session id used for dev service migration request.

SaasSubscriptionId string

The saas subscription id used for tenant to subscription level migration request.

SkuId string

The plan id.

TermId string

The current Term id.

AutoRenew bool

Whether the SaaS subscription will auto renew upon term end.

OfferId string

The offer id.

PaymentChannelMetadata map[string]string

The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.

PaymentChannelType string | PaymentChannelType

The Payment channel for the SaasSubscription.

PublisherId string

The publisher id.

PublisherTestEnvironment string

The environment in the publisher side for this resource.

Quantity float64

The seat count.

SaasResourceName string

The SaaS resource name.

SaasSessionId string

The saas session id used for dev service migration request.

SaasSubscriptionId string

The saas subscription id used for tenant to subscription level migration request.

SkuId string

The plan id.

TermId string

The current Term id.

autoRenew Boolean

Whether the SaaS subscription will auto renew upon term end.

offerId String

The offer id.

paymentChannelMetadata Map<String,String>

The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.

paymentChannelType String | PaymentChannelType

The Payment channel for the SaasSubscription.

publisherId String

The publisher id.

publisherTestEnvironment String

The environment in the publisher side for this resource.

quantity Double

The seat count.

saasResourceName String

The SaaS resource name.

saasSessionId String

The saas session id used for dev service migration request.

saasSubscriptionId String

The saas subscription id used for tenant to subscription level migration request.

skuId String

The plan id.

termId String

The current Term id.

autoRenew boolean

Whether the SaaS subscription will auto renew upon term end.

offerId string

The offer id.

paymentChannelMetadata {[key: string]: string}

The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.

paymentChannelType string | PaymentChannelType

The Payment channel for the SaasSubscription.

publisherId string

The publisher id.

publisherTestEnvironment string

The environment in the publisher side for this resource.

quantity number

The seat count.

saasResourceName string

The SaaS resource name.

saasSessionId string

The saas session id used for dev service migration request.

saasSubscriptionId string

The saas subscription id used for tenant to subscription level migration request.

skuId string

The plan id.

termId string

The current Term id.

auto_renew bool

Whether the SaaS subscription will auto renew upon term end.

offer_id str

The offer id.

payment_channel_metadata Mapping[str, str]

The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.

payment_channel_type str | PaymentChannelType

The Payment channel for the SaasSubscription.

publisher_id str

The publisher id.

publisher_test_environment str

The environment in the publisher side for this resource.

quantity float

The seat count.

saas_resource_name str

The SaaS resource name.

saas_session_id str

The saas session id used for dev service migration request.

saas_subscription_id str

The saas subscription id used for tenant to subscription level migration request.

sku_id str

The plan id.

term_id str

The current Term id.

autoRenew Boolean

Whether the SaaS subscription will auto renew upon term end.

offerId String

The offer id.

paymentChannelMetadata Map<String>

The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.

paymentChannelType String | "SubscriptionDelegated" | "CustomerDelegated"

The Payment channel for the SaasSubscription.

publisherId String

The publisher id.

publisherTestEnvironment String

The environment in the publisher side for this resource.

quantity Number

The seat count.

saasResourceName String

The SaaS resource name.

saasSessionId String

The saas session id used for dev service migration request.

saasSubscriptionId String

The saas subscription id used for tenant to subscription level migration request.

skuId String

The plan id.

termId String

The current Term id.

SaasPropertiesResponseTerm

EndDate string

The end date of the current term

StartDate string

The start date of the current term

TermUnit string

The unit indicating Monthly / Yearly

EndDate string

The end date of the current term

StartDate string

The start date of the current term

TermUnit string

The unit indicating Monthly / Yearly

endDate String

The end date of the current term

startDate String

The start date of the current term

termUnit String

The unit indicating Monthly / Yearly

endDate string

The end date of the current term

startDate string

The start date of the current term

termUnit string

The unit indicating Monthly / Yearly

end_date str

The end date of the current term

start_date str

The start date of the current term

term_unit str

The unit indicating Monthly / Yearly

endDate String

The end date of the current term

startDate String

The start date of the current term

termUnit String

The unit indicating Monthly / Yearly

SaasResourceResponseProperties

Created string

The created date of this resource.

AutoRenew bool

Whether the SaaS subscription will auto renew upon term end.

IsFreeTrial bool

Whether the current term is a Free Trial term

LastModified string

The last modifier date if this resource.

OfferId string

The offer id.

PaymentChannelMetadata Dictionary<string, string>

The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.

PaymentChannelType string

The Payment channel for the SaasSubscription.

PublisherId string

The publisher id.

PublisherTestEnvironment string

The environment in the publisher side for this resource.

Quantity double

The seat count.

SaasResourceName string

The SaaS resource name.

SaasSessionId string

The saas session id used for dev service migration request.

SaasSubscriptionId string

The saas subscription id used for tenant to subscription level migration request.

SkuId string

The plan id.

Status string

The SaaS Subscription Status.

Term Pulumi.AzureNative.SaaS.Inputs.SaasPropertiesResponseTerm

The current Term object.

TermId string

The current Term id.

Created string

The created date of this resource.

AutoRenew bool

Whether the SaaS subscription will auto renew upon term end.

IsFreeTrial bool

Whether the current term is a Free Trial term

LastModified string

The last modifier date if this resource.

OfferId string

The offer id.

PaymentChannelMetadata map[string]string

The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.

PaymentChannelType string

The Payment channel for the SaasSubscription.

PublisherId string

The publisher id.

PublisherTestEnvironment string

The environment in the publisher side for this resource.

Quantity float64

The seat count.

SaasResourceName string

The SaaS resource name.

SaasSessionId string

The saas session id used for dev service migration request.

SaasSubscriptionId string

The saas subscription id used for tenant to subscription level migration request.

SkuId string

The plan id.

Status string

The SaaS Subscription Status.

Term SaasPropertiesResponseTerm

The current Term object.

TermId string

The current Term id.

created String

The created date of this resource.

autoRenew Boolean

Whether the SaaS subscription will auto renew upon term end.

isFreeTrial Boolean

Whether the current term is a Free Trial term

lastModified String

The last modifier date if this resource.

offerId String

The offer id.

paymentChannelMetadata Map<String,String>

The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.

paymentChannelType String

The Payment channel for the SaasSubscription.

publisherId String

The publisher id.

publisherTestEnvironment String

The environment in the publisher side for this resource.

quantity Double

The seat count.

saasResourceName String

The SaaS resource name.

saasSessionId String

The saas session id used for dev service migration request.

saasSubscriptionId String

The saas subscription id used for tenant to subscription level migration request.

skuId String

The plan id.

status String

The SaaS Subscription Status.

term SaasPropertiesResponseTerm

The current Term object.

termId String

The current Term id.

created string

The created date of this resource.

autoRenew boolean

Whether the SaaS subscription will auto renew upon term end.

isFreeTrial boolean

Whether the current term is a Free Trial term

lastModified string

The last modifier date if this resource.

offerId string

The offer id.

paymentChannelMetadata {[key: string]: string}

The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.

paymentChannelType string

The Payment channel for the SaasSubscription.

publisherId string

The publisher id.

publisherTestEnvironment string

The environment in the publisher side for this resource.

quantity number

The seat count.

saasResourceName string

The SaaS resource name.

saasSessionId string

The saas session id used for dev service migration request.

saasSubscriptionId string

The saas subscription id used for tenant to subscription level migration request.

skuId string

The plan id.

status string

The SaaS Subscription Status.

term SaasPropertiesResponseTerm

The current Term object.

termId string

The current Term id.

created str

The created date of this resource.

auto_renew bool

Whether the SaaS subscription will auto renew upon term end.

is_free_trial bool

Whether the current term is a Free Trial term

last_modified str

The last modifier date if this resource.

offer_id str

The offer id.

payment_channel_metadata Mapping[str, str]

The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.

payment_channel_type str

The Payment channel for the SaasSubscription.

publisher_id str

The publisher id.

publisher_test_environment str

The environment in the publisher side for this resource.

quantity float

The seat count.

saas_resource_name str

The SaaS resource name.

saas_session_id str

The saas session id used for dev service migration request.

saas_subscription_id str

The saas subscription id used for tenant to subscription level migration request.

sku_id str

The plan id.

status str

The SaaS Subscription Status.

term SaasPropertiesResponseTerm

The current Term object.

term_id str

The current Term id.

created String

The created date of this resource.

autoRenew Boolean

Whether the SaaS subscription will auto renew upon term end.

isFreeTrial Boolean

Whether the current term is a Free Trial term

lastModified String

The last modifier date if this resource.

offerId String

The offer id.

paymentChannelMetadata Map<String>

The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.

paymentChannelType String

The Payment channel for the SaasSubscription.

publisherId String

The publisher id.

publisherTestEnvironment String

The environment in the publisher side for this resource.

quantity Number

The seat count.

saasResourceName String

The SaaS resource name.

saasSessionId String

The saas session id used for dev service migration request.

saasSubscriptionId String

The saas subscription id used for tenant to subscription level migration request.

skuId String

The plan id.

status String

The SaaS Subscription Status.

term Property Map

The current Term object.

termId String

The current Term id.

Import

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

$ pulumi import azure-native:saas:SaasSubscriptionLevel MyContosoSubscription /subscriptions/c825645b-e31b-9cf4-1cee-2aba9e58bc7c/resourceGroups/my-saas-rg/providers/Microsoft.SaaS/resources/MyContosoSubscription 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0