1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. getMscSubSubscriptions
Alibaba Cloud v3.49.0 published on Sunday, Feb 4, 2024 by Pulumi

alicloud.getMscSubSubscriptions

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.49.0 published on Sunday, Feb 4, 2024 by Pulumi

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

    NOTE: Available in v1.135.0+.

    Example Usage

    Basic Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.GetMscSubSubscriptions.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["mscSubSubscriptionId1"] = @default.Apply(@default => @default.Apply(getMscSubSubscriptionsResult => getMscSubSubscriptionsResult.Subscriptions[0]?.Id)),
        };
    });
    
    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
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetMscSubSubscriptionsArgs;
    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 default = AlicloudFunctions.getMscSubSubscriptions();
    
            ctx.export("mscSubSubscriptionId1", default_.subscriptions()[0].id());
        }
    }
    
    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);
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:getMscSubSubscriptions
          Arguments: {}
    outputs:
      mscSubSubscriptionId1: ${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)
    }
    public static CompletableFuture<GetMscSubSubscriptionsResult> getMscSubSubscriptions(GetMscSubSubscriptionsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:index/getMscSubSubscriptions:getMscSubSubscriptions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OutputFile string
    File name where to save data source results (after running pulumi preview).
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    outputFile String
    File name where to save data source results (after running pulumi preview).
    outputFile string
    File name where to save data source results (after running pulumi preview).
    output_file str
    File name where to save data source results (after running pulumi preview).
    outputFile String
    File name where to save data source results (after running pulumi preview).

    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 List<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
    id String
    The provider-assigned unique ID for this managed resource.
    subscriptions List<Property Map>
    outputFile String

    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 List<Integer>
    The ids of subscribed contacts.
    description String
    The description of the Subscription.
    emailStatus Integer
    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 Integer
    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 Integer
    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 Integer
    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<Integer>
    The ids of subscribed webhooks.
    webhookStatus Integer
    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.
    channel String
    The channel the Subscription.
    contactIds List<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 List<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.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.49.0 published on Sunday, Feb 4, 2024 by Pulumi