检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Implementation Procedure Creating a VPC, Subnet, and Security Group Purchasing an ECS Creating an OBS Bucket Creating a Connection Creating an Event Subscription Sending an OBS Event Viewing Event Messages on the ECS Parent topic: Routing Messages from OBS Application Service to Custom
Event Source: Select OBS Application Service. Bucket: Select the bucket created in Creating an OBS Bucket. Event Type: Select the desired event types. Object Name Prefix: If this parameter is set, an event can be triggered only when the name matches the specified prefix.
Creating a Connection Log in to the EG console. In the navigation pane on the left, choose Network Management > Connections. In the upper right corner, click Create Connection. For more information about connections, see Connections. Type: Select WEBHOOK. Name: Enter a custom name
Purchasing an ECS Log in to the ECS console. In the navigation pane on the left, choose Elastic Cloud Server. In the upper right corner, click Buy ECS. For details, see Buying an ECS. Select the VPC, subnet, and security group created in Creating a VPC, Subnet, and Security Group.
Viewing Event Messages on the ECS Return to the CloudShell terminal console page opened in Purchasing an ECS. Since httpsserver.py has been started, CloudShell will print event information. Figure 1 Event message Parent topic: Implementation Procedure
Creating a VPC, Subnet, and Security Group Log in to the VPC console. In the navigation pane on the left, choose My VPCs. Click Create VPC in the upper right corner. For details, see Creating a VPC and Subnet. In the navigation pane on the left, choose Security Groups. Click Create
Step 3: Generate an OBS Event (Create an OBS Bucket) Log in to the OBS console. Click Create Bucket. Set bucket parameters, as shown in Figure 4. For details about the bucket parameters, see Creating a Bucket. Region: The value must be the same as the region of the EG service.
Check the download URL 400 EGS.00516012 Download OBS file failed. Download OBS file failed. Contact your administrator. 400 EGS.00516013 Upload file to OBS failed. Upload file to OBS failed. Contact your administrator. 400 EGS.00516015 Create OBS bucket failed.
Table 1 EG best practices Practice Description Routing OBS Application Service Messages to DMS for Kafka This chapter describes how to use EventGrid (EG) to route the application service events of Object Storage Service (OBS) to Distributed Message Service (DMS) for Kafka.
Event Target Routing to FunctionGraph Routing to DMS for Kafka Routing to OBS Parent topic: Serverless Event Streams
Table 2 OBS application event source parameters Parameter Description Source Select an event source. Bucket Select an OBS bucket. Event Type Select event types to filter. Object Name Prefix Enter an object name prefix. Object Name Suffix Enter an object name suffix.
Event Subscription Management Event Channel Management Event Management Event Source Management Event Target Catalog Management Event Schema Management Connection Management Service Agency Management Quota Management API Version Management Trigger Management Endpoint Management OBS
OBS Bucket Management Obtain the OBS bucket list. Event Stream Management Create, update, delete, and operate event streams, and query the event stream list and details. Event Example Management Obtain the event example list.
To store operation records for longer than seven days, configure transfer to OBS or Log Tank Service (LTS) so that you can view them in OBS buckets or LTS log groups.
Create an OBS bucket by referring to Creating a Bucket. Ensure that the bucket is in the same region as the Kafka instance and its policy is Public Read or Public Read and Write. Upload the kafka-certs.zip file to the root directory of the bucket.
Example: {"name":"${name}"} My name is test01 NOTE: If the event target is FunctionGraph (function computing), the transformation result is as follows: {"name": "test01"} Example of complex transformation from OBS to EG and then to FunctionGraph: Before Transformation Transform Type
Application Service Object Storage Service (OBS) Intelligent EdgeFabric (IEF) SoftWare Repository for Container (SWR) Distributed Cache Service (DCS) Auto Scaling (AS) Vulnerability Scan Service (VSS) Graph Engine Service (GES) Data Lake Insight (DLI) Cloud Container Instance (CCI
objects Data subject No String Subject specversion No String Specification version id Yes String Id source Yes String Event source time Yes String Time type Yes String Event type ttl Yes String Timeout dataschema No String Data schema The following is an example of the event body (OBS
EG supports the following event sources: Huawei Cloud service: Elastic Cloud Server (ECS), Object Storage Service (OBS), Cloud Container Engine (CCE), and other services Custom Custom applications: connecting to EG via SDKs DMS for RabbitMQ and DMS for RocketMQ Event Targets Event
Tiered pricing: For services such as OBS, pricing is tiered, which means the more you use, the less you pay. The price is calculated based on the amount of resources you use and the pricing basis. The price is accurate to two decimal places.