Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.getMscSubSubscriptions
Explore with Pulumi AI
This data source provides the Message Center Subscriptions of the current Alibaba Cloud user.
NOTE: Available in v1.135.0+.
Example Usage
Basic Usage
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);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.get_msc_sub_subscriptions()
pulumi.export("mscSubSubscriptionId1", default.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
})
}
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 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());
}
}
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:
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- output
File String - File name where to save data source results (after running
pulumi preview
).
- output
File 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
).
- output
File 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.
Ali Cloud. Outputs. Get Msc Sub Subscriptions Subscription> - Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Subscriptions
[]Get
Msc Sub Subscriptions Subscription - Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- subscriptions
List<Get
Msc Sub Subscriptions Subscription> - output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- subscriptions
Get
Msc Sub Subscriptions Subscription[] - output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- subscriptions
Sequence[Get
Msc Sub Subscriptions Subscription] - output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- subscriptions List<Property Map>
- output
File String
Supporting Types
GetMscSubSubscriptionsSubscription
- Channel string
- The channel the Subscription.
- Contact
Ids List<int> - The ids of subscribed contacts.
- Description string
- 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 string
- The ID of the Subscription.
- Item
Id string - The ID of the Subscription.
- Item
Name string - 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 List<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.
- Contact
Ids []int - The ids of subscribed contacts.
- Description string
- 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 string
- The ID of the Subscription.
- Item
Id string - The ID of the Subscription.
- Item
Name string - 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 []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.
- contact
Ids List<Integer> - The ids of subscribed contacts.
- description String
- The description of the Subscription.
- email
Status 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.
- item
Id String - The ID of the Subscription.
- item
Name String - The name of the Subscription.
- pmsg
Status 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. - sms
Status 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. - tts
Status 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. - webhook
Ids List<Integer> - The ids of subscribed webhooks.
- webhook
Status 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.
- contact
Ids number[] - The ids of subscribed contacts.
- description string
- The description of the Subscription.
- email
Status 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.
- item
Id string - The ID of the Subscription.
- item
Name string - The name of the Subscription.
- pmsg
Status 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. - sms
Status 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. - tts
Status 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. - webhook
Ids number[] - The ids of subscribed webhooks.
- webhook
Status 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.
- contact
Ids List<Number> - The ids of subscribed contacts.
- description String
- The description of the Subscription.
- email
Status 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.
- item
Id String - The ID of the Subscription.
- item
Name String - The name of the Subscription.
- pmsg
Status 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. - sms
Status 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. - tts
Status 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. - webhook
Ids List<Number> - The ids of subscribed webhooks.
- webhook
Status 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.