alicloud.cms.getAlarmContacts
Explore with Pulumi AI
Provides a list of alarm contact owned by an Alibaba Cloud account.
NOTE: Available in v1.99.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
export = async () => {
    const example = await alicloud.cms.getAlarmContacts({
        ids: ["tf-testAccCmsAlarmContact"],
    });
    return {
        "first-contact": _this.contacts,
    };
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cms.get_alarm_contacts(ids=["tf-testAccCmsAlarmContact"])
pulumi.export("first-contact", this["contacts"])
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cms.GetAlarmContacts(ctx, &cms.GetAlarmContactsArgs{
			Ids: []string{
				"tf-testAccCmsAlarmContact",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("first-contact", this.Contacts)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var example = AliCloud.Cms.GetAlarmContacts.Invoke(new()
    {
        Ids = new[]
        {
            "tf-testAccCmsAlarmContact",
        },
    });
    return new Dictionary<string, object?>
    {
        ["first-contact"] = @this.Contacts,
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cms.CmsFunctions;
import com.pulumi.alicloud.cms.inputs.GetAlarmContactsArgs;
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 example = CmsFunctions.getAlarmContacts(GetAlarmContactsArgs.builder()
            .ids("tf-testAccCmsAlarmContact")
            .build());
        ctx.export("first-contact", this_.contacts());
    }
}
variables:
  example:
    fn::invoke:
      Function: alicloud:cms:getAlarmContacts
      Arguments:
        ids:
          - tf-testAccCmsAlarmContact
outputs:
  first-contact: ${this.contacts}
Using getAlarmContacts
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 getAlarmContacts(args: GetAlarmContactsArgs, opts?: InvokeOptions): Promise<GetAlarmContactsResult>
function getAlarmContactsOutput(args: GetAlarmContactsOutputArgs, opts?: InvokeOptions): Output<GetAlarmContactsResult>def get_alarm_contacts(chanel_type: Optional[str] = None,
                       chanel_value: Optional[str] = None,
                       ids: Optional[Sequence[str]] = None,
                       name_regex: Optional[str] = None,
                       output_file: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetAlarmContactsResult
def get_alarm_contacts_output(chanel_type: Optional[pulumi.Input[str]] = None,
                       chanel_value: Optional[pulumi.Input[str]] = None,
                       ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                       name_regex: Optional[pulumi.Input[str]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetAlarmContactsResult]func GetAlarmContacts(ctx *Context, args *GetAlarmContactsArgs, opts ...InvokeOption) (*GetAlarmContactsResult, error)
func GetAlarmContactsOutput(ctx *Context, args *GetAlarmContactsOutputArgs, opts ...InvokeOption) GetAlarmContactsResultOutput> Note: This function is named GetAlarmContacts in the Go SDK.
public static class GetAlarmContacts 
{
    public static Task<GetAlarmContactsResult> InvokeAsync(GetAlarmContactsArgs args, InvokeOptions? opts = null)
    public static Output<GetAlarmContactsResult> Invoke(GetAlarmContactsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAlarmContactsResult> getAlarmContacts(GetAlarmContactsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:cms/getAlarmContacts:getAlarmContacts
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Chanel
Type string - The alarm notification method. Alarm notifications can be sent by using 
EmailorDingWebHook. - Chanel
Value string - The alarm notification target.
 - Ids List<string>
 - A list of alarm contact IDs.
 - Name
Regex string - A regex string to filter results by alarm contact name.
 - Output
File string File name where to save data source results (after running
pulumi preview).NOTE: Specify at least one of the following alarm notification targets: phone number, email address, webhook URL of the DingTalk chatbot, and TradeManager ID.
- Chanel
Type string - The alarm notification method. Alarm notifications can be sent by using 
EmailorDingWebHook. - Chanel
Value string - The alarm notification target.
 - Ids []string
 - A list of alarm contact IDs.
 - Name
Regex string - A regex string to filter results by alarm contact name.
 - Output
File string File name where to save data source results (after running
pulumi preview).NOTE: Specify at least one of the following alarm notification targets: phone number, email address, webhook URL of the DingTalk chatbot, and TradeManager ID.
- chanel
Type String - The alarm notification method. Alarm notifications can be sent by using 
EmailorDingWebHook. - chanel
Value String - The alarm notification target.
 - ids List<String>
 - A list of alarm contact IDs.
 - name
Regex String - A regex string to filter results by alarm contact name.
 - output
File String File name where to save data source results (after running
pulumi preview).NOTE: Specify at least one of the following alarm notification targets: phone number, email address, webhook URL of the DingTalk chatbot, and TradeManager ID.
- chanel
Type string - The alarm notification method. Alarm notifications can be sent by using 
EmailorDingWebHook. - chanel
Value string - The alarm notification target.
 - ids string[]
 - A list of alarm contact IDs.
 - name
Regex string - A regex string to filter results by alarm contact name.
 - output
File string File name where to save data source results (after running
pulumi preview).NOTE: Specify at least one of the following alarm notification targets: phone number, email address, webhook URL of the DingTalk chatbot, and TradeManager ID.
- chanel_
type str - The alarm notification method. Alarm notifications can be sent by using 
EmailorDingWebHook. - chanel_
value str - The alarm notification target.
 - ids Sequence[str]
 - A list of alarm contact IDs.
 - name_
regex str - A regex string to filter results by alarm contact name.
 - output_
file str File name where to save data source results (after running
pulumi preview).NOTE: Specify at least one of the following alarm notification targets: phone number, email address, webhook URL of the DingTalk chatbot, and TradeManager ID.
- chanel
Type String - The alarm notification method. Alarm notifications can be sent by using 
EmailorDingWebHook. - chanel
Value String - The alarm notification target.
 - ids List<String>
 - A list of alarm contact IDs.
 - name
Regex String - A regex string to filter results by alarm contact name.
 - output
File String File name where to save data source results (after running
pulumi preview).NOTE: Specify at least one of the following alarm notification targets: phone number, email address, webhook URL of the DingTalk chatbot, and TradeManager ID.
getAlarmContacts Result
The following output properties are available:
- Contacts
List<Pulumi.
Ali Cloud. Cms. Outputs. Get Alarm Contacts Contact>  - A list of alarm contacts. Each element contains the following attributes:
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids List<string>
 - A list of alarm contact IDs.
 - Names List<string>
 - A list of alarm contact names.
 - Chanel
Type string - Chanel
Value string - Name
Regex string - Output
File string 
- Contacts
[]Get
Alarm Contacts Contact  - A list of alarm contacts. Each element contains the following attributes:
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Ids []string
 - A list of alarm contact IDs.
 - Names []string
 - A list of alarm contact names.
 - Chanel
Type string - Chanel
Value string - Name
Regex string - Output
File string 
- contacts
List<Get
Alarm Contacts Contact>  - A list of alarm contacts. Each element contains the following attributes:
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - A list of alarm contact IDs.
 - names List<String>
 - A list of alarm contact names.
 - chanel
Type String - chanel
Value String - name
Regex String - output
File String 
- contacts
Get
Alarm Contacts Contact[]  - A list of alarm contacts. Each element contains the following attributes:
 - id string
 - The provider-assigned unique ID for this managed resource.
 - ids string[]
 - A list of alarm contact IDs.
 - names string[]
 - A list of alarm contact names.
 - chanel
Type string - chanel
Value string - name
Regex string - output
File string 
- contacts
Sequence[Get
Alarm Contacts Contact]  - A list of alarm contacts. Each element contains the following attributes:
 - id str
 - The provider-assigned unique ID for this managed resource.
 - ids Sequence[str]
 - A list of alarm contact IDs.
 - names Sequence[str]
 - A list of alarm contact names.
 - chanel_
type str - chanel_
value str - name_
regex str - output_
file str 
- contacts List<Property Map>
 - A list of alarm contacts. Each element contains the following attributes:
 - id String
 - The provider-assigned unique ID for this managed resource.
 - ids List<String>
 - A list of alarm contact IDs.
 - names List<String>
 - A list of alarm contact names.
 - chanel
Type String - chanel
Value String - name
Regex String - output
File String 
Supporting Types
GetAlarmContactsContact   
- Alarm
Contact stringName  - The name of the alarm contact.
 - Channels
Aliim string - The TradeManager ID of the alarm contact.
 - Channels
Ding stringWeb Hook  - The webhook URL of the DingTalk chatbot.
 - Channels
Mail string - The email address of the alarm contact.
 - Channels
Sms string - The phone number of the alarm contact.
 - Channels
State stringAliim  - Indicates whether the TradeManager ID is valid.
 - Channels
State stringDing Web Hook  - Indicates whether the DingTalk chatbot is normal.
 - Channels
State stringMail  - The status of the email address.
 - Channels
Status stringSms  - The status of the phone number.
Lang- The language type of the alarm.
 - Contact
Groups List<string> - The alert groups to which the alarm contact is added.
 - Describe string
 - The description of the alarm contact.
 - Id string
 - The ID of the alarm contact.
 - Lang string
 
- Alarm
Contact stringName  - The name of the alarm contact.
 - Channels
Aliim string - The TradeManager ID of the alarm contact.
 - Channels
Ding stringWeb Hook  - The webhook URL of the DingTalk chatbot.
 - Channels
Mail string - The email address of the alarm contact.
 - Channels
Sms string - The phone number of the alarm contact.
 - Channels
State stringAliim  - Indicates whether the TradeManager ID is valid.
 - Channels
State stringDing Web Hook  - Indicates whether the DingTalk chatbot is normal.
 - Channels
State stringMail  - The status of the email address.
 - Channels
Status stringSms  - The status of the phone number.
Lang- The language type of the alarm.
 - Contact
Groups []string - The alert groups to which the alarm contact is added.
 - Describe string
 - The description of the alarm contact.
 - Id string
 - The ID of the alarm contact.
 - Lang string
 
- alarm
Contact StringName  - The name of the alarm contact.
 - channels
Aliim String - The TradeManager ID of the alarm contact.
 - channels
Ding StringWeb Hook  - The webhook URL of the DingTalk chatbot.
 - channels
Mail String - The email address of the alarm contact.
 - channels
Sms String - The phone number of the alarm contact.
 - channels
State StringAliim  - Indicates whether the TradeManager ID is valid.
 - channels
State StringDing Web Hook  - Indicates whether the DingTalk chatbot is normal.
 - channels
State StringMail  - The status of the email address.
 - channels
Status StringSms  - The status of the phone number.
Lang- The language type of the alarm.
 - contact
Groups List<String> - The alert groups to which the alarm contact is added.
 - describe String
 - The description of the alarm contact.
 - id String
 - The ID of the alarm contact.
 - lang String
 
- alarm
Contact stringName  - The name of the alarm contact.
 - channels
Aliim string - The TradeManager ID of the alarm contact.
 - channels
Ding stringWeb Hook  - The webhook URL of the DingTalk chatbot.
 - channels
Mail string - The email address of the alarm contact.
 - channels
Sms string - The phone number of the alarm contact.
 - channels
State stringAliim  - Indicates whether the TradeManager ID is valid.
 - channels
State stringDing Web Hook  - Indicates whether the DingTalk chatbot is normal.
 - channels
State stringMail  - The status of the email address.
 - channels
Status stringSms  - The status of the phone number.
Lang- The language type of the alarm.
 - contact
Groups string[] - The alert groups to which the alarm contact is added.
 - describe string
 - The description of the alarm contact.
 - id string
 - The ID of the alarm contact.
 - lang string
 
- alarm_
contact_ strname  - The name of the alarm contact.
 - channels_
aliim str - The TradeManager ID of the alarm contact.
 - channels_
ding_ strweb_ hook  - The webhook URL of the DingTalk chatbot.
 - channels_
mail str - The email address of the alarm contact.
 - channels_
sms str - The phone number of the alarm contact.
 - channels_
state_ straliim  - Indicates whether the TradeManager ID is valid.
 - channels_
state_ strding_ web_ hook  - Indicates whether the DingTalk chatbot is normal.
 - channels_
state_ strmail  - The status of the email address.
 - channels_
status_ strsms  - The status of the phone number.
Lang- The language type of the alarm.
 - contact_
groups Sequence[str] - The alert groups to which the alarm contact is added.
 - describe str
 - The description of the alarm contact.
 - id str
 - The ID of the alarm contact.
 - lang str
 
- alarm
Contact StringName  - The name of the alarm contact.
 - channels
Aliim String - The TradeManager ID of the alarm contact.
 - channels
Ding StringWeb Hook  - The webhook URL of the DingTalk chatbot.
 - channels
Mail String - The email address of the alarm contact.
 - channels
Sms String - The phone number of the alarm contact.
 - channels
State StringAliim  - Indicates whether the TradeManager ID is valid.
 - channels
State StringDing Web Hook  - Indicates whether the DingTalk chatbot is normal.
 - channels
State StringMail  - The status of the email address.
 - channels
Status StringSms  - The status of the phone number.
Lang- The language type of the alarm.
 - contact
Groups List<String> - The alert groups to which the alarm contact is added.
 - describe String
 - The description of the alarm contact.
 - id String
 - The ID of the alarm contact.
 - lang String
 
Package Details
- Repository
 - Alibaba Cloud pulumi/pulumi-alicloud
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
alicloudTerraform Provider.