检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
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.
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.
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. For details about how to create an APIG trigger, see Using an APIG (Dedicated) Trigger.
Table 2 Event template description Template Name Description API Gateway (Dedicated Gateway) Simulates a dedicated APIG event to trigger your function. Cloud Trace Service (CTS) Simulates a CTS event to trigger your function.
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.
Click Create Trigger and select API Gateway (Dedicated) for Trigger Type. API Instance: Select a gateway. If no gateway is available, click Create API Instance. API Name: Retain the default name. API Group: If no API group is available, click Create API Group to create one.
" : { "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.
Table 3 Function trigger invocation Trigger Invocation Mode API Gateway (Dedicated) Synchronous invocation is used by default. You can change it to asynchronous invocation. For details, see Asynchronous Invocation. API Connect (APIC) Synchronous invocation is used by default.
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
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
The following uses API Gateway (Dedicated) as an example. For details about the parameters, see Using an APIG (Dedicated) Trigger. Figure 2 Creating a trigger In this example, Security Authentication is set to None.
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
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