全部產品
Search
文件中心

Cloud Monitor:ListAlertActions - 查詢警示行動整合

更新時間:Nov 17, 2025

查詢警示行動整合

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

cms:ListAlertActions

list

*AlertAction

acs:cms:{#regionId}:{#accountId}:alertaction/*

請求文法

GET /alertActions HTTP/1.1

請求參數

名稱

類型

必填

描述

樣本值

alertActionIds

array

行動整合唯一標識。

string

行動整合唯一標識。

testId

type

string

行動整合類型。

FC

alertActionName

string

行動整合名稱。

testName

pageNumber

integer

頁面。預設為 1。

1

pageSize

integer

每頁大小。預設 100。

100

返回參數

名稱

類型

描述

樣本值

object

requestId

string

請求 ID。

8FDE2569-626B-5176-9844-28877A*****

total

integer

總條數。

9

pageNumber

integer

頁碼。

1

pageSize

integer

分頁大小。

100

alertActions

array<object>

行動整合配置列表。

array<object>

行動整合配置列表。

fcParam

object

Function Compute參數。

regionId

string

地區 ID。

cn-beijing

service

string

Function Compute的服務名稱。

test

function

string

Function Compute服務的函數名稱。

test

ebParam

object

事件匯流排。

regionId

string

地區 ID。

cn-heyuan

subject

string

主題。

test

ebSource

string

事件提供方。

test

eventBusName

string

事件匯流排名稱。

test

alertActionId

string

行動整合唯一標識。

test

slsParam

object

Log Service參數。

regionId

string

地區 ID。

cn-hangzhou

project

string

Log Service Project 名稱。

test

logstore

string

Log Service Logstore 名稱。

test

fc3Param

object

Function Compute 3.0 參數。

regionId

string

地區 ID。

cn-qingdao

function

string

Function Compute服務的函數名稱。

test

qualifier

string

函數的版本或別名。

test

mnsParam

object

輕量訊息佇列(原 MNS)參數。

mnsType

string

輕量訊息佇列(原 MNS)資源類型。

queue

regionId

string

地區 ID。

cn-hangzhou

name

string

資源名稱。

  • 如果資源類型為 queue,則資源名稱為隊列名稱。

  • 如果資源類型為 topic,則資源名稱為主題名稱。

test

pagerDutyParam

object

pageDuty 參數

key

string

pagerDuty 的整合 key。

fsfer4543t5t65g4t4

url

string

pagerDuty 的整合 webhook。支援 V1 和 V2 版

https://events.pagerduty.com/v2/enqueue

type

string

行動整合類型。

FC

webhookParam

object

webhook 參數

headers

object

要求標頭。

string

要求標頭。

{'X-Total-Count': 0}

method

string

webhook 要求方法。

GET

contentType

string

資料格式,要求方法為 POST 時生效。

JSON

url

string

警示回調的 URL 地址。

http://www.test.com

essParam

object

Auto Scaling參數。

essGroupId

string

Auto Scaling組 id

testId

regionId

string

地區 ID。

cn-beijing

essRuleId

string

Auto Scaling規則 id。

testId

alertActionName

string

行動整合名稱。

testName

樣本

正常返回樣本

JSON格式

{
  "requestId": "8FDE2569-626B-5176-9844-28877A*****",
  "total": 9,
  "pageNumber": 1,
  "pageSize": 100,
  "alertActions": [
    {
      "fcParam": {
        "regionId": "cn-beijing",
        "service": "test",
        "function": "test"
      },
      "ebParam": {
        "regionId": "cn-heyuan",
        "subject": "test",
        "ebSource": "test",
        "eventBusName": "test"
      },
      "alertActionId": "test",
      "slsParam": {
        "regionId": "cn-hangzhou",
        "project": "test",
        "logstore": "test"
      },
      "fc3Param": {
        "regionId": "cn-qingdao",
        "function": "test",
        "qualifier": "test"
      },
      "mnsParam": {
        "mnsType": "queue",
        "regionId": "cn-hangzhou",
        "name": "test"
      },
      "pagerDutyParam": {
        "key": "fsfer4543t5t65g4t4",
        "url": "https://events.pagerduty.com/v2/enqueue"
      },
      "type": "FC",
      "webhookParam": {
        "headers": {
          "key": "{'X-Total-Count': 0}"
        },
        "method": "GET",
        "contentType": "JSON",
        "url": "http://www.test.com"
      },
      "essParam": {
        "essGroupId": "testId",
        "regionId": "cn-beijing",
        "essRuleId": "testId"
      },
      "alertActionName": "testName"
    }
  ]
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情