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:
- Resource
Group stringName The name of the resource group.
- Location string
Resource location. Only value allowed for SaaS is 'global'
- Name string
The resource name
- Properties
Pulumi.
Azure Native. Saa S. Inputs. Saas Creation Properties Args Properties of the SaaS resource that are relevant for creation.
- Resource
Name string The name of the resource.
- Dictionary<string, string>
the resource tags.
- Resource
Group stringName The name of the resource group.
- Location string
Resource location. Only value allowed for SaaS is 'global'
- Name string
The resource name
- Properties
Saas
Creation Properties Args Properties of the SaaS resource that are relevant for creation.
- Resource
Name string The name of the resource.
- map[string]string
the resource tags.
- resource
Group StringName The name of the resource group.
- location String
Resource location. Only value allowed for SaaS is 'global'
- name String
The resource name
- properties
Saas
Creation Properties Args Properties of the SaaS resource that are relevant for creation.
- resource
Name String The name of the resource.
- Map<String,String>
the resource tags.
- resource
Group stringName The name of the resource group.
- location string
Resource location. Only value allowed for SaaS is 'global'
- name string
The resource name
- properties
Saas
Creation Properties Args Properties of the SaaS resource that are relevant for creation.
- resource
Name string The name of the resource.
- {[key: string]: string}
the resource tags.
- resource_
group_ strname The name of the resource group.
- location str
Resource location. Only value allowed for SaaS is 'global'
- name str
The resource name
- properties
Saas
Creation Properties Args Properties of the SaaS resource that are relevant for creation.
- resource_
name str The name of the resource.
- Mapping[str, str]
the resource tags.
- resource
Group StringName 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.
- resource
Name String The name of the resource.
- Map<String>
the resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the SaasSubscriptionLevel resource produces the following output properties:
Supporting Types
PaymentChannelType
- Subscription
Delegated - SubscriptionDelegated
- Customer
Delegated - CustomerDelegated
- Payment
Channel Type Subscription Delegated - SubscriptionDelegated
- Payment
Channel Type Customer Delegated - CustomerDelegated
- Subscription
Delegated - SubscriptionDelegated
- Customer
Delegated - CustomerDelegated
- Subscription
Delegated - SubscriptionDelegated
- Customer
Delegated - CustomerDelegated
- SUBSCRIPTION_DELEGATED
- SubscriptionDelegated
- CUSTOMER_DELEGATED
- CustomerDelegated
- "Subscription
Delegated" - SubscriptionDelegated
- "Customer
Delegated" - CustomerDelegated
SaasCreationProperties
- Auto
Renew bool Whether the SaaS subscription will auto renew upon term end.
- Offer
Id string The offer id.
- Payment
Channel Dictionary<string, string>Metadata The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.
- Payment
Channel string | Pulumi.Type Azure Native. Saa S. Payment Channel Type The Payment channel for the SaasSubscription.
- Publisher
Id string The publisher id.
- Publisher
Test stringEnvironment The environment in the publisher side for this resource.
- Quantity double
The seat count.
- Saas
Resource stringName The SaaS resource name.
- Saas
Session stringId The saas session id used for dev service migration request.
- Saas
Subscription stringId The saas subscription id used for tenant to subscription level migration request.
- Sku
Id string The plan id.
- Term
Id string The current Term id.
- Auto
Renew bool Whether the SaaS subscription will auto renew upon term end.
- Offer
Id string The offer id.
- Payment
Channel map[string]stringMetadata The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.
- Payment
Channel string | PaymentType Channel Type The Payment channel for the SaasSubscription.
- Publisher
Id string The publisher id.
- Publisher
Test stringEnvironment The environment in the publisher side for this resource.
- Quantity float64
The seat count.
- Saas
Resource stringName The SaaS resource name.
- Saas
Session stringId The saas session id used for dev service migration request.
- Saas
Subscription stringId The saas subscription id used for tenant to subscription level migration request.
- Sku
Id string The plan id.
- Term
Id string The current Term id.
- auto
Renew Boolean Whether the SaaS subscription will auto renew upon term end.
- offer
Id String The offer id.
- payment
Channel Map<String,String>Metadata The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.
- payment
Channel String | PaymentType Channel Type The Payment channel for the SaasSubscription.
- publisher
Id String The publisher id.
- publisher
Test StringEnvironment The environment in the publisher side for this resource.
- quantity Double
The seat count.
- saas
Resource StringName The SaaS resource name.
- saas
Session StringId The saas session id used for dev service migration request.
- saas
Subscription StringId The saas subscription id used for tenant to subscription level migration request.
- sku
Id String The plan id.
- term
Id String The current Term id.
- auto
Renew boolean Whether the SaaS subscription will auto renew upon term end.
- offer
Id string The offer id.
- payment
Channel {[key: string]: string}Metadata The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.
- payment
Channel string | PaymentType Channel Type The Payment channel for the SaasSubscription.
- publisher
Id string The publisher id.
- publisher
Test stringEnvironment The environment in the publisher side for this resource.
- quantity number
The seat count.
- saas
Resource stringName The SaaS resource name.
- saas
Session stringId The saas session id used for dev service migration request.
- saas
Subscription stringId The saas subscription id used for tenant to subscription level migration request.
- sku
Id string The plan id.
- term
Id 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_ Mapping[str, str]metadata The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.
- payment_
channel_ str | Paymenttype Channel Type The Payment channel for the SaasSubscription.
- publisher_
id str The publisher id.
- publisher_
test_ strenvironment The environment in the publisher side for this resource.
- quantity float
The seat count.
- saas_
resource_ strname The SaaS resource name.
- saas_
session_ strid The saas session id used for dev service migration request.
- saas_
subscription_ strid 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.
- auto
Renew Boolean Whether the SaaS subscription will auto renew upon term end.
- offer
Id String The offer id.
- payment
Channel Map<String>Metadata The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.
- payment
Channel String | "SubscriptionType Delegated" | "Customer Delegated" The Payment channel for the SaasSubscription.
- publisher
Id String The publisher id.
- publisher
Test StringEnvironment The environment in the publisher side for this resource.
- quantity Number
The seat count.
- saas
Resource StringName The SaaS resource name.
- saas
Session StringId The saas session id used for dev service migration request.
- saas
Subscription StringId The saas subscription id used for tenant to subscription level migration request.
- sku
Id String The plan id.
- term
Id String The current Term id.
SaasPropertiesResponseTerm
- 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
SaasResourceResponseProperties
- Created string
The created date of this resource.
- Auto
Renew bool Whether the SaaS subscription will auto renew upon term end.
- Is
Free boolTrial Whether the current term is a Free Trial term
- Last
Modified string The last modifier date if this resource.
- Offer
Id string The offer id.
- Payment
Channel Dictionary<string, string>Metadata The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.
- Payment
Channel stringType The Payment channel for the SaasSubscription.
- Publisher
Id string The publisher id.
- Publisher
Test stringEnvironment The environment in the publisher side for this resource.
- Quantity double
The seat count.
- Saas
Resource stringName The SaaS resource name.
- Saas
Session stringId The saas session id used for dev service migration request.
- Saas
Subscription stringId The saas subscription id used for tenant to subscription level migration request.
- Sku
Id string The plan id.
- Status string
The SaaS Subscription Status.
- Term
Pulumi.
Azure Native. Saa S. Inputs. Saas Properties Response Term The current Term object.
- Term
Id string The current Term id.
- Created string
The created date of this resource.
- Auto
Renew bool Whether the SaaS subscription will auto renew upon term end.
- Is
Free boolTrial Whether the current term is a Free Trial term
- Last
Modified string The last modifier date if this resource.
- Offer
Id string The offer id.
- Payment
Channel map[string]stringMetadata The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.
- Payment
Channel stringType The Payment channel for the SaasSubscription.
- Publisher
Id string The publisher id.
- Publisher
Test stringEnvironment The environment in the publisher side for this resource.
- Quantity float64
The seat count.
- Saas
Resource stringName The SaaS resource name.
- Saas
Session stringId The saas session id used for dev service migration request.
- Saas
Subscription stringId The saas subscription id used for tenant to subscription level migration request.
- Sku
Id string The plan id.
- Status string
The SaaS Subscription Status.
- Term
Saas
Properties Response Term The current Term object.
- Term
Id string The current Term id.
- created String
The created date of this resource.
- auto
Renew Boolean Whether the SaaS subscription will auto renew upon term end.
- is
Free BooleanTrial Whether the current term is a Free Trial term
- last
Modified String The last modifier date if this resource.
- offer
Id String The offer id.
- payment
Channel Map<String,String>Metadata The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.
- payment
Channel StringType The Payment channel for the SaasSubscription.
- publisher
Id String The publisher id.
- publisher
Test StringEnvironment The environment in the publisher side for this resource.
- quantity Double
The seat count.
- saas
Resource StringName The SaaS resource name.
- saas
Session StringId The saas session id used for dev service migration request.
- saas
Subscription StringId The saas subscription id used for tenant to subscription level migration request.
- sku
Id String The plan id.
- status String
The SaaS Subscription Status.
- term
Saas
Properties Response Term The current Term object.
- term
Id String The current Term id.
- created string
The created date of this resource.
- auto
Renew boolean Whether the SaaS subscription will auto renew upon term end.
- is
Free booleanTrial Whether the current term is a Free Trial term
- last
Modified string The last modifier date if this resource.
- offer
Id string The offer id.
- payment
Channel {[key: string]: string}Metadata The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.
- payment
Channel stringType The Payment channel for the SaasSubscription.
- publisher
Id string The publisher id.
- publisher
Test stringEnvironment The environment in the publisher side for this resource.
- quantity number
The seat count.
- saas
Resource stringName The SaaS resource name.
- saas
Session stringId The saas session id used for dev service migration request.
- saas
Subscription stringId The saas subscription id used for tenant to subscription level migration request.
- sku
Id string The plan id.
- status string
The SaaS Subscription Status.
- term
Saas
Properties Response Term The current Term object.
- term
Id 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_ booltrial 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_ Mapping[str, str]metadata The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.
- payment_
channel_ strtype The Payment channel for the SaasSubscription.
- publisher_
id str The publisher id.
- publisher_
test_ strenvironment The environment in the publisher side for this resource.
- quantity float
The seat count.
- saas_
resource_ strname The SaaS resource name.
- saas_
session_ strid The saas session id used for dev service migration request.
- saas_
subscription_ strid 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
Saas
Properties Response Term The current Term object.
- term_
id str The current Term id.
- created String
The created date of this resource.
- auto
Renew Boolean Whether the SaaS subscription will auto renew upon term end.
- is
Free BooleanTrial Whether the current term is a Free Trial term
- last
Modified String The last modifier date if this resource.
- offer
Id String The offer id.
- payment
Channel Map<String>Metadata The metadata about the SaaS subscription such as the AzureSubscriptionId and ResourceUri.
- payment
Channel StringType The Payment channel for the SaasSubscription.
- publisher
Id String The publisher id.
- publisher
Test StringEnvironment The environment in the publisher side for this resource.
- quantity Number
The seat count.
- saas
Resource StringName The SaaS resource name.
- saas
Session StringId The saas session id used for dev service migration request.
- saas
Subscription StringId The saas subscription id used for tenant to subscription level migration request.
- sku
Id String The plan id.
- status String
The SaaS Subscription Status.
- term Property Map
The current Term object.
- term
Id 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