ListAlertActions
Queries alert action integrations.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:ListAlertActions |
list |
*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:
|
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.
|
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.