ListAlertActions

Updated at:

Queries alert action integrations.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cms:ListAlertActions

list

*AlertAction

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

None None

Request syntax

GET /alertActions HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

alertActionIds

array

No

The unique identifiers of the action integrations.

string

No

The unique identifiers of the action integrations.

testId

type

string

No

The type of the action integration.

Valid values:

  • OPEN_API :

    [Deprecated] OpenAPI-type action integrations are no longer supported for creation or modification through public APIs. Use Webhook or other types instead. Passing this value will be rejected by the backend.

FC

alertActionName

string

No

The name of the action integration.

testName

pageNumber

integer

No

The page number. Default value: 1.

1

pageSize

integer

No

The number of entries per page. Default value: 100.

100

Response elements

Element

Type

Description

Example

object

alertActions

array<object>

The list of action integration configurations.

array<object>

The list of action integration configurations.

alertActionId

string

The unique identifiers of the action integrations.

test

alertActionName

string

The name of the action integration.

testName

ebParam

object

The EventBridge parameters.

ebSource

string

The event source.

test

eventBusName

string

The name of the event bus.

test

regionId

string

The region ID.

cn-heyuan

subject

string

The subject.

test

essParam

object

The Auto Scaling parameters.

essGroupId

string

The ID of the Auto Scaling group.

testId

essRuleId

string

The ID of the Auto Scaling rule.

testId

regionId

string

The region ID.

cn-beijing

fc3Param

object

The Function Compute 3.0 parameters.

function

string

The name of the function in Function Compute.

test

qualifier

string

The version or alias of the function.

test

regionId

string

The region ID.

cn-qingdao

fcParam

object

The Function Compute parameters.

function

string

The name of the function in Function Compute.

test

regionId

string

The region ID.

cn-beijing

service

string

The service name of Function Compute.

test

mnsParam

object

The Simple Message Queue (formerly MNS) parameters.

mnsType

string

The resource type of Simple Message Queue (formerly MNS).

queue

name

string

The name of the resource.

  • If the resource type is queue, the resource name is the queue name.

  • If the resource type is topic, the resource name is the topic name.

test

regionId

string

The region ID.

cn-hangzhou

pagerDutyParam

object

The PagerDuty parameters.

key

string

The integration key for PagerDuty.

fsfer4543t5t65g4t4

url

string

The integration webhook for PagerDuty. Both V1 and V2 are supported.

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

slsParam

object

The Simple Log Service parameters.

logstore

string

The name of the Logstore in Simple Log Service.

test

project

string

The name of the project in Simple Log Service.

test

regionId

string

The region ID.

cn-hangzhou

type

string

The type of the action integration.

FC

webhookParam

object

The webhook parameters.

contentType

string

The data format. This parameter takes effect only when the request method is POST.

JSON

headers

object

The request headers.

{"X-Total-Count":"0"}

string

The request headers.

{'X-Total-Count': 0}

method

string

The webhook request method.

GET

url

string

The URL of the alert callback.

http://www.test.com

pageNumber

integer

The page number.

1

pageSize

integer

The number of entries per page.

100

requestId

string

The request ID.

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

total

integer

The total number of entries.

9

Examples

Success response

JSON format

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

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter The parameter is missing or invalid. %s
400 InvalidParameterValue Invalid request: %s
500 InternalUnknownError The request processing has failed due to some unknown error. A service runtime error occurred.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.