UpdateAlertAction

Updated at:

Updates an alert action integration.

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:UpdateAlertAction

update

*AlertAction

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

None None

Request syntax

PATCH /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

body

object

No

The request body.

mnsParam

object

No

The Simple Message Queue (formerly MNS) (MSMQ) parameters.

mnsType

string

No

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

Valid values:

  • queue
  • topic

queue

name

string

No

The resource name.

  • 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.

testName

regionId

string

No

The region ID.

cn-zhangjiakou

type

string

No

The alert action integration type.

Valid values:

  • OPEN_API :

    [Deprecated] Creating or modifying OpenAPI alert action integrations through public APIs is no longer supported. Use Webhook or other types instead. This value is rejected by the backend.

FC

slsParam

object

No

The Simple Log Service parameters.

logstore

string

No

The name of the Simple Log Service Logstore.

testLogstore

project

string

No

The name of the Simple Log Service project.

testProject

regionId

string

No

The region ID.

cn-shanghai

alertActionName

string

No

The name of the alert action integration.

testName

fcParam

object

No

The Function Compute parameters.

function

string

No

The name of the function in Function Compute.

testName

regionId

string

No

The region ID.

cn-beijing

service

string

No

The service name of Function Compute.

testService

pagerDutyParam

object

No

The PagerDuty parameters.

key

string

No

The integration key for PagerDuty.

fwe4rwr543t543t43t43t43

url

string

No

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

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

essParam

object

No

The elastic scaling parameters.

essGroupId

string

No

The ID of the elastic scaling group.

testId

essRuleId

string

No

The ID of the elastic scaling rule.

testId

regionId

string

No

The region ID.

cn-beijing

webhookParam

object

No

The webhook parameters.

method

string

No

The webhook request method.

Valid values:

  • GET
  • POST

POST

url

string

No

The URL of the alert callback.

http://www.test.com

contentType

string

No

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

Valid values:

  • JSON
  • FORM

JSON

headers

object

No

The request headers.

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

string

No

The value of the header.

{'X-Total-Count': 0}

fc3Param

object

No

The Function Compute 3.0 parameters.

regionId

string

No

The region ID.

cn-heyuan

function

string

No

The name of the function in Function Compute.

test

qualifier

string

No

The version or alias of the function.

test

ebParam

object

No

The event bus parameters.

regionId

string

No

The region ID.

cn-heyuan

eventBusName

string

No

The name of the event bus.

test

subject

string

No

The subject.

test

ebSource

string

No

The event source.

test

Response elements

Element

Type

Description

Example

object

requestId

string

The request ID.

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

Examples

Success response

JSON format

{
  "requestId": "8FDE2569-626B-5176-9844-28877A*****"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter %s is missing or invalid. The parameter %s is missing or invalid.
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 %s is not found. The specified resource% s does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.