All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::CMS::AlarmContacts

Last Updated:Jun 01, 2023

DATASOURCE::CMS::AlarmContacts is used to query the basic information about alert contacts.

Syntax

{
  "Type": "DATASOURCE::CMS::AlarmContacts",
  "Properties": {
    "AlarmContactName": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

AlarmContactName

String

No

Yes

The name of the alert contact.

None.

Return values

Fn::GetAtt

  • AlarmContactNames: the names of the alert contacts.

  • AlarmContacts: details of the alert contacts.

Property

Type

Description

Constraint

AlarmContactNames

List

The names of the alert contacts.

None.

AlarmContacts

List

Details of the alert contacts.

None.

Lang

String

The language in which the alert information is displayed.

None.

AlarmContactName

String

The name of the alert contact.

None.

ChannelsStateDingWebHook

String

The state of the DingTalk chatbot. In this topic, the DingTalk chatbot is in the normal state.

None.

ChannelsAliIm

String

The TradeManager ID when alert notifications are sent by using TradeManager IDs.

None.

ChannelsMail

String

The email address when alert notifications are sent by using email addresses.

None.

Describe

String

The description.

None.

ChannelsSms

String

The phone number when alert notifications are sent by using phone numbers.

None.

UpdateTime

String

The time when the alert contact was updated.

None.

ContactGroups

List

The alert contact groups.

None.

ChannelsStateMail

String

The state of the email address.

None.

ChannelsStateSms

String

The state of the phone number.

None.

ChannelsStateAliIm

String

The state of the TradeManager ID. In this topic, the TradeManager ID is in the normal state.

None.

ChannelsDingWebHook

String

The state of the DingTalk chatbot.

None.

CreateTime

String

The time when the alert contact was created.

Unit: milliseconds.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AlarmContactName:
    Description: The name of the alert contact.
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      AlarmContactName:
        Ref: AlarmContactName
    Type: DATASOURCE::CMS::AlarmContacts
Outputs:
  AlarmContactNames:
    Description: The list of alarm contact names.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - AlarmContactNames
  AlarmContacts:
    Description: The list of alarm contacts.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - AlarmContacts

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "AlarmContactName": {
      "Type": "String",
      "Description": "The name of the alert contact."
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::CMS::AlarmContacts",
      "Properties": {
        "AlarmContactName": {
          "Ref": "AlarmContactName"
        }
      }
    }
  },
  "Outputs": {
    "AlarmContactNames": {
      "Description": "The list of alarm contact names.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AlarmContactNames"
        ]
      }
    },
    "AlarmContacts": {
      "Description": "The list of alarm contacts.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AlarmContacts"
        ]
      }
    }
  }
}