Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Cloud Data Center
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Domain Name Service
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
DataArts Studio
Data Warehouse Service
Cloud Search Service
DataArts Lake Formation
DataArts Fabric
Data Ingestion Service
Data Lake Visualization
Data Lake Factory
IoT
IoT Device Access
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Industry Video Management Service
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
Huawei Cloud Astro Canvas
Huawei Cloud Astro Zero
CodeArts Governance
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Business Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance (CCI)
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Meeting
AI
ModelArts
PanguLargeModels
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Cloud Transformation
Cloud Adoption Framework
Well-Architected Framework
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
MacroVerse aPaaS
CloudDevice
KooDrive
Help Center/ FunctionGraph/ User Guide/ Configuring Functions/ Configuring Triggers/ EventGrid Trigger (OBS Application Service)

EventGrid Trigger (OBS Application Service)

Updated on 2025-08-19 GMT+08:00

This section describes how to create an EG trigger (OBS Application Service) on the FunctionGraph console. The EG trigger triggers a function when a file in an OBS bucket is updated.

You can configure OBS Application Service triggers for shared functions in the LA-Sao Paulo1 region.

For details about the EG event source, see Supported Event Sources.

Notes and Constraints

  • EG triggers are available only inLA-Mexico City2 and LA-Santiago. You can check whether the trigger type is supported on the console.
  • Ensure that the created function and the OBS bucket are in the same region.

Prerequisites

  • Function and configuration:
    • You have created a function.
    • You have configured the OBS agency permission for the function. For details about how to create an agency, see Configuring Agency Permissions.
  • OBS bucket:

    You have created an OBS bucket. The following uses the eventbucket bucket as an example. For details, see Creating a Bucket.

Creating an EG Trigger (OBS Application Service)

  1. Log in to the FunctionGraph console. In the navigation pane, choose Functions > Function List.
  2. Click the name of the function to be configured. The function details page is displayed.
  3. Choose Configuration > Triggers and click Create Trigger.
    Figure 1 Creating a trigger
  4. Configure the following parameters.
    Table 1 Parameters for creating an EG trigger (OBS Application Service)

    Parameter

    Description

    Example Value

    Trigger Type

    Mandatory.

    Select OBS Application Service.

    OBS Application Service

    Trigger Name

    Mandatory.

    Name of a trigger. Only letters, digits, underscores (_), and hyphens (-) are allowed. The value cannot start with a digit or hyphen (-). Maximum length: 128 characters.

    eg-obs

    Bucket Name

    Mandatory.

    Select an OBS bucket. If no OBS bucket is available, click Create Bucket.

    eventbucket

    Event Type

    Mandatory.

    Select the required trigger event type. Options:

    • Delete objects without specifying version
    • Delete objects by version

      To select this event type, you must enable versioning. For details, see Deleting Objects from a Bucket with Versioning Enabled.

    • Create or override bucket objects via UI or Put request
    • Merge parts via UI or API request
    • Create or override bucket objects via Copy request
    • Create or override bucket objects via Post request

    Create or override bucket objects via UI or Put request

    Object Name Prefix

    Optional.

    Enter a keyword for limiting notifications to those about objects whose names start with the matching characters. This limit can be used to filter the names of OBS objects.

    -

    Object Name Suffix

    Optional.

    Enter a keyword for limiting notifications to those about objects whose names end with the matching characters. This limit can be used to filter the names of OBS objects.

    -

    Object Name Encoding

    Mandatory.

    Specifies whether to encode the object name. This option is enabled by default.

    Enabled

  5. Click OK.

Configuring an EG Trigger (OBS Application Service) for a Shared Function

You can configure an EG trigger (OBS Application Service) for a shared function in the LA-Sao Paulo1 region. For details about the shared function, see Sharing Functions Based on RAM.

  1. Log in to the FunctionGraph console. In the navigation pane, choose Functions > Function List.
  2. On the Shared tab, click the function name to go to the function details page.
  3. The subsequent steps are the same as those for creating a common function. For details, see 3.

Configuring an EG Event to Trigger the Function

  1. Return to the FunctionGraph console. In the navigation pane, choose Functions > Function List.
  2. Click the function to be configured to go to the function details page.
  3. On the function details page, select a version.
  4. On the Code tab page, click Test. The Configure Test Event dialog box is displayed.
  5. Set the parameters described in Table 2 and click Save.

    Table 2 Test parameters

    Parameter

    Description

    Configure Test Event

    You can choose to create a test event or edit an existing one.

    Use the default option Create new test event.

    Event Templates

    Select Blank Template. For details about the code, see "OBS Application Service" in Supported Event Sources.

    Event Name

    The event name can contain 1 to 25 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), and hyphens (-) are allowed. For example, myobs-123test.

    Event data

    Use the newly created test event.

Helpful Links

Manage function triggers through APIs. For details, see Function Trigger APIs.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback
咨询盘古Doer

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback