GetAlertAction
Retrieves alert action integrations.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:GetAlertAction |
get |
*AlertAction
|
None | None |
Request syntax
GET /alertAction/{alertActionId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| alertActionId |
string |
Yes |
The unique identifier of the alert action integration. |
testId |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
8FDE2569-626B-5176-9844-28877A***** |
| alertActions |
object |
The list of alert action integration configurations. |
|
| alertActionId |
string |
The unique identifier of the alert action integration. |
testId |
| mnsParam |
object |
The Simple Message Queue (formerly MNS) (MSMQ) parameters. |
|
| mnsType |
string |
The Simple Message Queue (formerly MNS) (MSMQ) resource type. |
queue |
| name |
string |
The resource name.
|
test |
| regionId |
string |
The region ID. |
cn-beijing |
| type |
string |
The alert action integration type. |
FC |
| slsParam |
object |
The Simple Log Service parameters. |
|
| logstore |
string |
The name of the Simple Log Service Logstore. |
test |
| project |
string |
The name of the Simple Log Service project. |
test |
| regionId |
string |
The region ID. |
cn-beijing |
| alertActionName |
string |
The name of the alert action integration. |
testName |
| essParam |
object |
The elastic scaling parameters. |
|
| essGroupId |
string |
The ID of the elastic scaling group. |
test |
| essRuleId |
string |
The ID of the elastic scaling rule. |
test |
| regionId |
string |
The region ID. |
cn-hangzhou |
| fcParam |
object |
The Function Compute parameters. |
|
| function |
string |
The name of the function in Function Compute. |
test |
| regionId |
string |
The region ID. |
cn-hangzhou |
| service |
string |
The service name of Function Compute. |
test |
| pagerDutyParam |
object |
The PagerDuty parameters. |
|
| key |
string |
The integration key of PagerDuty. |
EWR4WR4T4GREG4ET453T5Y |
| url |
string |
The integration webhook of PagerDuty. Both V1 and V2 are supported. |
https://events.pagerduty.com/v2/enqueue |
| webhookParam |
object |
The webhook parameters. |
|
| method |
string |
The webhook request method. |
POST |
| url |
string |
The URL of the alert callback. |
http://www.test.com |
| contentType |
string |
The data format. This parameter takes effect only when the request method is POST. |
JSON |
| headers |
object |
The request header information. |
{"X-Total-Count":"0"} |
|
string |
The request header information. |
{'X-Total-Count': 0} |
|
| fc3Param |
object |
The Function Compute 3.0 parameters. |
|
| regionId |
string |
The region ID. |
cn-qingdao |
| function |
string |
The function name. |
test |
| qualifier |
string |
The version or alias of the function. |
test |
| ebParam |
object |
The EventBridge parameters. |
|
| regionId |
string |
The region ID. |
cn-heyuan |
| eventBusName |
string |
The name of the event bus. |
test |
| subject |
string |
The subject. |
test |
| ebSource |
string |
The event source. |
test |
Examples
Success response
JSON format
{
"requestId": "8FDE2569-626B-5176-9844-28877A*****",
"alertActions": {
"alertActionId": "testId",
"mnsParam": {
"mnsType": "queue",
"name": "test",
"regionId": "cn-beijing"
},
"type": "FC",
"slsParam": {
"logstore": "test",
"project": "test",
"regionId": "cn-beijing"
},
"alertActionName": "testName",
"essParam": {
"essGroupId": "test",
"essRuleId": "test",
"regionId": "cn-hangzhou"
},
"fcParam": {
"function": "test",
"regionId": "cn-hangzhou",
"service": "test"
},
"pagerDutyParam": {
"key": "EWR4WR4T4GREG4ET453T5Y",
"url": "https://events.pagerduty.com/v2/enqueue"
},
"webhookParam": {
"method": "POST",
"url": "http://www.test.com",
"contentType": "JSON",
"headers": {
"key": "{'X-Total-Count': 0}"
}
},
"fc3Param": {
"regionId": "cn-qingdao",
"function": "test",
"qualifier": "test"
},
"ebParam": {
"regionId": "cn-heyuan",
"eventBusName": "test",
"subject": "test",
"ebSource": "test"
}
}
}
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. |
| 404 | ResourceNotFound | The specified resource is not found. | The specified resource is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.