All Products
Search
Document Center

CloudOps Orchestration Service:Create O&M items through custom EventBridge rules

Last Updated:Aug 25, 2026

Custom EventBridge rules automatically create O&M items based on the events that you subscribe to. Use custom rules when the default rules that Alibaba Cloud provides do not meet your event requirements, or when you need to subscribe to additional event types for compliance and security auditing of your resources. This helps you configure and enable the O&M features that you need in a targeted manner and improves O&M efficiency.

Prerequisites

Region limitations

EventBridge supports the automatic creation of O&M items in the Operation Center only in the following regions.

Region name

Region ID

China (Qingdao)

cn-qingdao

China (Shanghai)

cn-shanghai

China (Beijing)

cn-beijing

China (Zhangjiakou)

cn-zhangjiakou

China (Ulanqab)

cn-wulanchabu

China (Hangzhou)

cn-hangzhou

China (Shenzhen)

cn-shenzhen

China (Hohhot)

cn-huhehaote

China (Heyuan)

cn-heyuan

China (Guangzhou)

cn-guangzhou

China (Chengdu)

cn-chengdu

China (Hong Kong)

cn-hongkong

Japan (Tokyo)

ap-northeast-1

Singapore

ap-southeast-1

Malaysia (Kuala Lumpur)

ap-southeast-3

Indonesia (Jakarta)

ap-southeast-5

US (Silicon Valley)

us-west-1

US (Virginia)

us-east-1

China East 2 Finance

cn-shanghai-finance-1

Thailand (Bangkok)

ap-southeast-7

Procedure

  1. Log on to the EventBridge console.

  2. In the left-side navigation pane, click Event Buses.

  3. In the top navigation bar, select a region.

  4. On the Event Buses page, click the default system event bus.

  5. In the left-side navigation pane, click Event Rules.

  6. On the Event Rules page, click Create Rule.

  7. On the Create Rule page, complete the relevant parameter settings.

  8. On the Configure Basic Info wizard page, enter the Name and Description of the event rule, and then click Next.

  9. On the Configure Event Pattern wizard page, configure the event source type, the event source, and other parameters, and then click Next.

  10. On the Configure Targets wizard page, configure the event target parameters, and then click Create.

    For Service Type, select acs.openapi.oos. The default value of API Version is 2019-06-01. For API Type, select CreateOpsItem to create O&M items. For API Parameters, configure the relevant parameters of the CreateOpsItem API. For Role, select a role that has the OOS OpenAPI permissions. If you do not have such a role, click Authorization to quickly create one.

    Event Target

    After the EventBridge rule is created, you are automatically redirected to the default page, where you can view the EventBridge rule that you created.

Rules

When the rule detects an event, an O&M item is automatically created and appears in Operation Center > O&M Items in the CloudOps Orchestration Service console.

Example: create O&M items through Cloud Config event rules

After you create an event rule for Cloud Config non-compliance events in EventBridge, EventBridge monitors the non-compliance events of Cloud Config. When a non-compliance event occurs, the system automatically calls the OOS API to create an O&M item. The event flow is as follows:

image

Step 1: create a Cloud Config rule

This example uses RDS instances that are deployed across multiple zones to show how to create a rule from a template.

  1. Go to the Cloud Config > Compliance Audit > Rules page and click Create Rule.

  2. Enter multi-zone in the search box, select rds-multi-az-support, and then click Next.

    image

  3. Keep the default values of the basic properties and click Next.

  4. Keep the default values of the effective scope and click Next.

  5. Keep the default values of the remediation settings and click Submit.

  6. View the non-compliant resources in the Cloud Config rule list.

    image

Step 2: create O&M items by creating an EventBridge rule

  1. Go to the EventBridge > Event Buses page and select a region in the top navigation bar.

  2. Click the default system event bus.

  3. In the left-side navigation pane, click Event Rules.

  4. On the Event Rules page, click Create Rule.

  5. On the Create Rule page, complete the relevant parameter settings.

  6. On the Configure Basic Info wizard page, enter the Name and Description of the event rule, and then click Next.

  7. On the Configure Event Pattern wizard page, configure the following parameters, and then click Next.

    Parameter name

    Description

    Example value

    Event Source Type

    Two types are supported: Alibaba Cloud Service Event Sources and Custom Event Sources.

    Alibaba Cloud Service Event Sources

    Event Source

    The event source is the origin of events. It publishes the events that it produces to EventBridge.

    acs.config

    Event Type

    Select the event type that you want to use to filter events.

    config:CloudMonitor:ConfigurationNonCompliantNotification

    This configuration monitors non-compliance events from all rules that are enabled in Cloud Config.

  8. On the Configure Targets wizard page, configure the following event target parameters, and then click Create.

    Parameter name

    Description

    Parameter value

    Service Type

    Select the event target type.

    acs.openapi.oos

    API Version

    Keep the default API version.

    2019-06-01

    API Type

    Select CreateOpsItem to create an O&M item.

    CreateOpsItem

    API Parameters

    Configure the relevant parameters of the CreateOpsItem API.

    For more information, see CreateOpsItem.

    Role

    Configure a role that has the OOS CreateOpsItem OpenAPI permissions. If you do not have such a role, click Authorization to quickly create one.

    None

    The following non-compliance event message is provided as an example to help you configure EventBridge rules.

Expand to view: audit non-compliance event message

{
    "datacontenttype": "application/json;charset=utf-8",
    "aliyunaccountid": "15634*******22",
    "data": {
        "annotation": "{\"configuration\":\"\",\"desiredValue\":\"i-bp*******z0tptjbgu\",\"operator\":\"Contains\",\"property\":\"$.Propertys[*].InstanceId\",\"reason\":\"FeaturePath not exist\"}",
        "accountId": 15634*******22,
        "riskLevel": "Warning",
        "requestId": "f9bce983-1460-4b83-ac81-724b*******3a",
        "dataType": "NonCompliantNotification",
        "eventName": "NonCompliant",
        "evaluationResultIdentifier": {
            "orderingTimestamp": 1726747626751,
            "evaluationResultQualifier": {
                "resourceId": "i-bp*******z0tptjbgu",
                "configRuleName": "ecs-instance-running-process-check",
                "sourceIdentifier": "ecs-instance-running-process-check",
                "configRuleId": "cr-8315e6183e*******b1",
                "configRuleArn": "acs:config::15634*******22:rule/cr-8315e6183*******b1",
                "captureTime": 1726747626751,
                "regionId": "cn-hangzhou",
                "resourceName": "ESS-asg-asg-bp1efisbt64zu16lebhm",
                "resourceArn": "acs:ecs:cn-hangzhou:15634*******22:instance/i-bp*******z0tptjbgu",
                "resourceGroupId": "rg-acfmzmhzoaad5oq",
                "resourceOwnerId": 15634*******22,
                "resourceType": "ACS::ECS::Instance"
            }
        },
        "eventType": "ResourceCompliance",
        "invokingEventMessageType": "ScheduledNotification",
        "notificationCreationTime": 1726749483808,
        "complianceType": "NON_COMPLIANT"
    },
    "subject": "acs:config:cn-hangzhou:15634*******22:instance/i-bp*******z0tptjbgu",
    "aliyunoriginalaccountid": "15634*******22",
    "source": "acs.config",
    "type": "config:CloudMonitor:ConfigurationNonCompliantNotification",
    "aliyunpublishtime": "2024-09-19T12:38:18.889Z",
    "specversion": "1.0",
    "aliyuneventbusname": "default",
    "id": "315C0C75DB4E0B4CBA0DA*******AF6EB802C92E7-CMS",
    "time": "2024-09-19T12:38:04.000Z",
    "aliyunregionid": "cn-hangzhou"
}

API parameter configuration details

The following table describes how to configure the parameters of the CreateOpsItem API.

Field

Type

Description

Example value

RegionId

Partial event

The region in which the O&M item is created.

$.aliyunregionid

Title

Partial event

The title of the O&M item.

$.data.evaluationResultIdentifier.evaluationResultQualifier.configRuleName

Description

Partial event

The description of the O&M item.

$.data.evaluationResultIdentifier.evaluationResultQualifier.configRuleId

Severity

Static field

The severity level. Valid values: Critical, High, Medium, and Low. Specify a value based on your requirements.

Medium

Source

Partial event

The source of the O&M item.

$.source

Category

Static field

The category. Valid values: Availability, Cost, Performance, Recovery, and Security.

Availability

Priority

Static field

The priority. Valid values: 1 to 5. The value 1 indicates the highest priority.

3

DedupString

Partial event

The deduplication string. Non-compliance events of the same resource in the same rule do not create duplicate O&M items.

$.data.evaluationResultIdentifier.evaluationResultQualifier.configRuleName

Resources

template

The list of resource ARNs associated with the O&M item.

For examples, see Resources after this table.

Solutions

template

The list of solutions.

For examples, see Solutions after this table.

Resources

Specify a variable:

{
  "resourceArn":"$.data.evaluationResultIdentifier.evaluationResultQualifier.resourceArn"
}

Specify a template:

["${resourceArn}"]

Solutions

Specify a variable:

{
"document_url": "$.data.evaluationResultIdentifier.evaluationResultQualifier.helpUrls"
}

Specify a template:

[{
    "priority": 1,
    "type": "url",
    "url": "${document_url}",
    "description": "Refer to the document to handle the issue."
}]

Step 3: view the automatically created O&M items

Note

O&M items are automatically created when the EventBridge rule detects a non-compliance event.

  1. Go to the CloudOps Orchestration Service > Operation Center > O&M Items tab to view the O&M items that are automatically created for the non-compliant resources.