Two trigger creation methods are provided for HTTP-triggered functions: default creation and custom creation, which have different billing logic.
If you select "default creation", SCF will automatically create a basic API Gateway trigger, which provides only an access URL invisible in the console. In this case, an HTTP-triggered function is billed as follows:
Note:A basic API Gateway instance will be created in default creation mode. You can upgrade it to the standard edition in the SCF console. After upgrade, you can use all gateway capabilities, which will be billed in the standard API Gateway billing method. The upgrade is irreversible.
If you select "custom creation", you need to select a trigger type in the SCF console and bind a created service. In this case, the current billing method applies, where the function and trigger are billed according to their own billing rules respectively. Taking a standard API Gateway trigger as an example, an HTTP-triggered function is billed as follows:
Default Creation (Basic API Gateway) | Custom Creation (Standard API Gateway) | |
---|---|---|
Default domain name | Supported | Supported |
Binding to custom domain name | Manual binding | Management in API Gateway console |
Request method configuration | Supported | Supported |
Release environment configuration | Supported | Supported |
Authentication method configuration | Not supported | Supported |
Visibility in API Gateway console | Invisible | Visible |
Advanced API Gateway capabilities (such as plugin and dedicated instance) | Not supported | Supported |
Billing method | Gateway calls are not billed. | It is billed by standard API Gateway billable items. |
Type conversion | The gateway can be upgraded to a standard API Gateway instance. After upgrade, you can use all gateway capabilities and billed by standard API Gateway billable items. | The gateway edition cannot be changed. A standard API Gateway instance cannot be rolled back to a basic API Gateway instance in default creation. |
Backend timeout period | Fixed at 15s | Configurable |
Was this page helpful?