docs
api
Cloud Monitor(UMon)
GetAlarmTemplateList

Get Alert Template List - GetAlarmTemplateList

Overview

Get Alert Template List

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetAlarmTemplateList.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project will be used. Sub-accounts must fill in. Please refer to the GetProjectList interface.No
LimitintReturn data length, default is 20No
OffsetintList start position offset, default is 0No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
TotalCountintTotal QuantityYes
DataSetarray[AlarmTemplate]Alarm Template ListYes

Data Model

AlarmTemplate

Field NameTypeDescription InformationRequired
AlarmTemplateIdintAlarm Template IDYes
AlarmTemplateNamestringAlarm Template NameYes
ResourceTypestringResource TypeYes
BoundResourceCountintNumber of Bound ResourcesYes
IsGlobalintIs it a global data center template, 0 is not, 1 isYes
IsDefaultstringIs it the default template?No
RemarkstringNoteNo

Example

Request Example

https://api.surfercloud.com/?Action=GetAlarmTemplateList
&Region=DGdSoave
&ProjectId=EzXfGltN
&Limit=UjSBCcay
&Offset=tMJXiqNF
&ResourceType=YsEmOUYC

Response Example

{
  "Action": "GetAlarmTemplateListResponse",
  "DataSet": [
    {
      "AlarmTemplateId": 1,
      "AlarmTemplateName": "THwnZpbV",
      "BoundResourceCount": 8,
      "IsDefault": "Yes",
      "Remark": "pJavCcAz",
      "ResourceType": "UaCrdVJM"
    },
    {
      "AlarmTemplateId": 9,
      "AlarmTemplateName": "nDCuUndt",
      "BoundResourceCount": 2,
      "IsDefault": "Yes",
      "Remark": "zhMGrkaK",
      "ResourceType": "KPJLDerL"
    },
    {
      "AlarmTemplateId": 4,
      "AlarmTemplateName": "ZRHjuLLX",
      "BoundResourceCount": 4,
      "IsDefault": "Yes",
      "Remark": "wpGNxXwu",
      "ResourceType": "tzJzMuuz"
    },
    {
      "AlarmTemplateId": 4,
      "AlarmTemplateName": "zbiIKPnV",
      "BoundResourceCount": 6,
      "IsDefault": "Yes",
      "Remark": "sIHLdiXA",
      "ResourceType": "kduqaLUb"
    },
    {
      "AlarmTemplateId": 6,
      "AlarmTemplateName": "DBMweHYH",
      "BoundResourceCount": 8,
      "IsDefault": "Yes",
      "Remark": "YJqRXyiC",
      "ResourceType": "zfqEzXCT"
    },
    {
      "AlarmTemplateId": 6,
      "AlarmTemplateName": "zDtcJJXm",
      "BoundResourceCount": 1,
      "IsDefault": "Yes",
      "Remark": "DsZQaLGz",
      "ResourceType": "rKvQzdmV"
    },
    {
      "AlarmTemplateId": 3,
      "AlarmTemplateName": "PHdOzEwQ",
      "BoundResourceCount": 9,
      "IsDefault": "Yes",
      "Remark": "bXJvUkBz",
      "ResourceType": "JXXAlxSz"
    },
    {
      "AlarmTemplateId": 6,
      "AlarmTemplateName": "AnQVcuMA",
      "BoundResourceCount": 9,
      "IsDefault": "Yes",
      "Remark": "oNaALals",
      "ResourceType": "OFddPTcu"
    }
  ],
  "RetCode": 0,
  "TotalCount": 4
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved