Alibaba Cloud

v3.10.0 published on Wednesday, Nov 24, 2021 by Pulumi

getMscSubSubscriptions

This data source provides the Message Center Subscriptions of the current Alibaba Cloud user.

NOTE: Available in v1.135.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = Output.Create(AliCloud.GetMscSubSubscriptions.InvokeAsync());
        this.MscSubSubscriptionId1 = @default.Apply(@default => @default.Subscriptions?[0]?.Id);
    }

    [Output("mscSubSubscriptionId1")]
    public Output<string> MscSubSubscriptionId1 { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := alicloud.GetMscSubSubscriptions(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("mscSubSubscriptionId1", _default.Subscriptions[0].Id)
		return nil
	})
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.get_msc_sub_subscriptions()
pulumi.export("mscSubSubscriptionId1", default.subscriptions[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const default = alicloud.getMscSubSubscriptions({});
export const mscSubSubscriptionId1 = _default.then(_default => _default.subscriptions?[0]?.id);

Using getMscSubSubscriptions

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 getMscSubSubscriptions(args: GetMscSubSubscriptionsArgs, opts?: InvokeOptions): Promise<GetMscSubSubscriptionsResult>
function getMscSubSubscriptionsOutput(args: GetMscSubSubscriptionsOutputArgs, opts?: InvokeOptions): Output<GetMscSubSubscriptionsResult>
def get_msc_sub_subscriptions(output_file: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetMscSubSubscriptionsResult
def get_msc_sub_subscriptions_output(output_file: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetMscSubSubscriptionsResult]
func GetMscSubSubscriptions(ctx *Context, args *GetMscSubSubscriptionsArgs, opts ...InvokeOption) (*GetMscSubSubscriptionsResult, error)
func GetMscSubSubscriptionsOutput(ctx *Context, args *GetMscSubSubscriptionsOutputArgs, opts ...InvokeOption) GetMscSubSubscriptionsResultOutput

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

public static class GetMscSubSubscriptions 
{
    public static Task<GetMscSubSubscriptionsResult> InvokeAsync(GetMscSubSubscriptionsArgs args, InvokeOptions? opts = null)
    public static Output<GetMscSubSubscriptionsResult> Invoke(GetMscSubSubscriptionsInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

OutputFile string
OutputFile string
outputFile string

getMscSubSubscriptions Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Subscriptions List<Pulumi.AliCloud.Outputs.GetMscSubSubscriptionsSubscription>
OutputFile string
Id string
The provider-assigned unique ID for this managed resource.
Subscriptions []GetMscSubSubscriptionsSubscription
OutputFile string
id string
The provider-assigned unique ID for this managed resource.
subscriptions GetMscSubSubscriptionsSubscription[]
outputFile string
id str
The provider-assigned unique ID for this managed resource.
subscriptions Sequence[GetMscSubSubscriptionsSubscription]
output_file str

Supporting Types

GetMscSubSubscriptionsSubscription

Channel string
The channel the Subscription.
ContactIds List<int>
The ids of subscribed contacts.
Description string
The description of the Subscription.
EmailStatus int
The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
Id string
The ID of the Subscription.
ItemId string
The ID of the Subscription.
ItemName string
The name of the Subscription.
PmsgStatus int
The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
SmsStatus int
The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
TtsStatus int
The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
WebhookIds List<int>
The ids of subscribed webhooks.
WebhookStatus int
The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
Channel string
The channel the Subscription.
ContactIds []int
The ids of subscribed contacts.
Description string
The description of the Subscription.
EmailStatus int
The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
Id string
The ID of the Subscription.
ItemId string
The ID of the Subscription.
ItemName string
The name of the Subscription.
PmsgStatus int
The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
SmsStatus int
The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
TtsStatus int
The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
WebhookIds []int
The ids of subscribed webhooks.
WebhookStatus int
The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
channel string
The channel the Subscription.
contactIds number[]
The ids of subscribed contacts.
description string
The description of the Subscription.
emailStatus number
The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
id string
The ID of the Subscription.
itemId string
The ID of the Subscription.
itemName string
The name of the Subscription.
pmsgStatus number
The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
smsStatus number
The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
ttsStatus number
The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
webhookIds number[]
The ids of subscribed webhooks.
webhookStatus number
The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
channel str
The channel the Subscription.
contact_ids Sequence[int]
The ids of subscribed contacts.
description str
The description of the Subscription.
email_status int
The status of email subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
id str
The ID of the Subscription.
item_id str
The ID of the Subscription.
item_name str
The name of the Subscription.
pmsg_status int
The status of pmsg subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
sms_status int
The status of sms subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
tts_status int
The status of tts subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.
webhook_ids Sequence[int]
The ids of subscribed webhooks.
webhook_status int
The status of webhook subscription. Valid values: -1, -2, 0, 1. -1 means required, -2 means banned; 1 means subscribed; 0 means not subscribed.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.