Two trigger creation methods are provided for HTTP-triggered functions: default creation and custom creation, which have different billing logic.
Default Creation
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:
Trigger side: Invocation is not billed, and outbound traffic is billed on the function side.
Function side: in addition to standard billable items, the outbound traffic is also billed.
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.
Custom creation
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:
Trigger side: the trigger is billed according to the billing rules of the product itself.
Function side: the function is billed by standard billable items (invocations, resource usage, and outbound traffic), and the response traffic isn't billed on the function side.
Trigger Capability Comparison
|
| | |
Binding to custom domain name | | Management in API Gateway console |
Request method configuration | | |
Release environment configuration | | |
Authentication method configuration | | |
Visibility in API Gateway console | | |
Advanced API Gateway capabilities (such as plugin and dedicated instance) | | |
| Gateway calls are not billed. | It is billed by standard API Gateway billable items. |
| 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. |
| | |
Was this page helpful?