检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Table 2 Event template description Template Name Description API Gateway (APIG) Simulates an APIG event to trigger your function. API Gateway (Dedicated Gateway) Simulates a dedicated APIG event to trigger your function.
The shared gateway is no longer available. Only existing customers who previously used this feature can continue using it. Prerequisites You have created an API group, for example, APIGroup_test. For details, see Creating an API Group.
Table 1 Trigger information Parameter Description Trigger Type Select API Gateway (Dedicated Gateway). API Instance Select an instance. If no instance is available, click Create Instance. API Name Enter an API name, for example, API_apig.
Gateway Response: Select default. Authentication Mode: Select Custom. Custom Authorizer: Select Authorizer_test. Figure 1 Configuring frontend definition Figure 2 Configuring security settings For more parameters, see Creating an API.
If synchronous invocation is used, no responses can be received after 90s due to gateway restrictions. Example The following procedure uses the APIG trigger of a function as an example. Go to the function details page, and choose Configuration > Triggers.
API Gateway FunctionGraph functions are invoked over HTTPS by defining REST APIs with specified backend services. For details, see the APIG User Guide. OBS FunctionGraph functions are created to process OBS bucket events, such as object creation or deletion events.
Select API Gateway (Dedicated). API Gateway (Dedicated) API Instance Mandatory. Select the dedicated gateway you purchased. apig-ds API Name Mandatory. Name of an APIG trigger. The value can contain 3 to 64 characters, including letters, digits, and underscores (_).
This includes but is not limited to virtual networks, the OS of virtual machine hosts and guests, virtual firewalls, API Gateway, advanced security services, all types of cloud services, tenant data, identity accounts, and key management.
" : { "body" : { "app_id" : "3d40caf3ddfc4e83815b54b50f13aad7", "app_name" : "DefaultApp_6439vdv2", "device_id" : "66eb7a0ffa8d9c36870c6892_ttytytytytytyt", "node_id" : "ttytytytytytyt", "gateway_id" : "66eb7a0ffa8d9c36870c6892_ttytytytytytyt", "node_type" : "GATEWAY
Write code, package and upload it to FunctionGraph, and add event sources such as Simple Message Notification (SMN) and API Gateway (APIG) event sources to build applications. Functions are triggered by RESTful API calls or event sources to achieve expected service purposes.
Request information, including the API gateway configuration, request ID, authentication information, and source httpMethod String GET HTTP method queryStringParameters Map See the example.
Table 4 FuncVpc Parameter Type Description domain_id String Domain name ID. namespace String Project ID. vpc_name String VPC name. vpc_id String VPC ID. subnet_name String Subnet name. subnet_id String Subnet ID. cidr String Subnet mask. gateway String Gateway. security_groups Array
Obtain it from Regions and Endpoints. code_url: OBS object link obtained in step 2 apig_id: APIG gateway ID On the Configure Stack page, specify an IAM agency, retain the default values for other parameters, and click Next to confirm the deployment of this stack.
Table 4 FuncVpc Parameter Mandatory Type Description domain_id No String Domain name ID. namespace No String Project ID. vpc_name No String VPC name. vpc_id Yes String VPC ID. subnet_name No String Subnet name. subnet_id Yes String Subnet ID. cidr No String Subnet mask. gateway No
Check the image URL. 504 FSS.0504 Gateway timeout. Gateway timed out. Check the network. Parent topic: Appendix
This step uses an API Gateway (Dedicated) trigger as an example. For more information, see Using an APIG (Dedicated) Trigger. Figure 3 Creating a trigger In this example, Security Authentication is set to None.
Table 5 FuncVpc Parameter Type Description domain_id String Domain name ID. namespace String Project ID. vpc_name String VPC name. vpc_id String VPC ID. subnet_name String Subnet name. subnet_id String Subnet ID. cidr String Subnet mask. gateway String Gateway. security_groups Array
vpc_config["vpc_id"]}' f' --func_vpc.subnet_id={vpc_config["subnet_id"]}' f' --func_vpc.cidr={vpc_config["cidr"]}' f' --func_vpc.subnet_name={vpc_config["subnet_name"]}' f' --func_vpc.gateway={vpc_config["gateway
Subnet ID. cidr String No Subnet mask. gateway String No Gateway.
Table 4 FuncVpc Parameter Mandatory Type Description domain_id No String Domain name ID. namespace No String Project ID. vpc_name No String VPC name. vpc_id Yes String VPC ID. subnet_name No String Subnet name. subnet_id Yes String Subnet ID. cidr No String Subnet mask. gateway No