tencent cloud

Serverless Cloud Function

Release Notes and Announcements
Release Notes
Announcements
User Guide
Product Introduction
Overview
Related Concepts
How It Works
Strengths
Scenarios
Related Products
Purchase Guide
Billing Overview
Billing Mode
Billable Items and Billing Modes
Function Computing Power Support
Free Tier
SCF Pricing
Billing Example
Payment Overdue
Getting Started
Creating Event Function in Console
User Guide
Quota Management
Managing Functions
Web Function Management
Log Management
Concurrence Management
Trigger Management
Function URL
A Custom Domain Name
Version Management
Alias Management
Permission Management
Running Instance Management
Plugin Management
Managing Monitors and Alarms
Network Configuration
Layer Management
Execution Configuration
Extended Storage Management
DNS Caching Configuration
Resource Managed Mode Management
Near-Offline Resource Hosting Model
Workflow
Triggers
Trigger Overview
Trigger Event Message Structure Summary
API Gateway Trigger
COS Trigger
CLS Trigger
Timer Trigger
CKafka Trigger
Apache Kafka Trigger
MQTT Trigger
Trigger Configuration Description
MPS Trigger
CLB Trigger Description
TencentCloud API Trigger
Development Guide
Basic Concepts
Testing a Function
Environment Variables
Dependency Installation
Using Container Image
Error Types and Retry Policies
Dead Letter Queue
Connecting SCF to Database
Automated Deployment
Cloud Function Status Code
Common Errors and Solutions
Developer Tools
Serverless Web IDE
Calling SDK Across Functions
Third-Party Tools
Code Development
Python
Node.js
Golang
PHP
Java
Custom Runtime
Deploying Image as Function
Web Framework Development
Deploying Framework on Command Line
Quickly Deploying Egg Framework
Quickly Deploying Express Framework
Quickly Deploying Flask Framework
Quickly Deploying Koa Framework
Quickly Deploying Laravel Framework
Quickly Deploying Nest.js Framework
Quickly Deploying Next.js Framework
Quickly Deploying Nuxt.js Framework
Quickly Deploying Django Framework
Use Cases
Overview
Solutions with Tencent Cloud Services
Business Development
TRTC Practices
COS Practices
CKafka Practice
CLS
CLB Practice
MPS
CDN
CDWPG
VOD
SMS
ES
Scheduled Task
Video Processing
Success Stories
Tencent Online Education
Online Video Industry
Tencent Online Education
Best Practice of Tencent IEG Going Global
API Documentation
History
Introduction
API Category
Making API Requests
Other APIs
Namespace APIs
Layer Management APIs
Async Event Management APIs
Trigger APIs
Function APIs
Function and Layer Status Description
Data Types
Error Codes
SDK Documentation
FAQs
General
Web Function
Billing FAQs
Network FAQs
Log FAQs
SCF utility class
Event Handling FAQs
API Gateway Trigger FAQs
Related Agreement
Service Level Agreement
Contact Us
Glossary

Fixed Public Outbound IP

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2024-12-02 20:11:42

Overview

When accessing a database API or third-party service in SCF, you can use the fixed public outbound IP feature of SCF to control and manage the SCF network configuration.
The fixed public outbound IP feature of SCF has the following capabilities:
If fixed public outbound IP is enabled for an SCF function, the function will get a random EIP. The traffic generated by the function accessing the public network will be forwarded based on the EIP.
If both public network access and private network access as well as the fixed public outbound IP are enabled for the function, the traffic generated by accessing the public network will be forwarded based on the EIP, while that generated by accessing the private network will be forwarded based on the VPC.

Limits

An EIP is shared under the same account in the same region.
Under the same account in the same region, functions with fixed public outbound IP enabled share the same EIP.
If you want to change the fixed outbound IP of a function, you need to disable the fixed public outbound IP feature for all functions under the same account in the same region. After you enable this feature again, a new EIP will be generated randomly.
The EIP is shared based on the subnet of the VPC. If a function is configured with a VPC and has fixed public outbound IP enabled, it will get a random EIP. If another function in the same VPC subnet has fixed public outbound IP enabled, it will share the same fixed outbound IP.

Sample

The following example shows the use limits of fixed public outbound IP:
Assume your account has the following objects in a region:
Functions a and b have been created under namespace A.
Functions c and d have been created under namespace B.
EIPs IP-x and IP-y represent two different EIPs.
Their EIP and function binding relationships are as shown below:
Network Configuration
Namespace A
Namespace B
Function a
Function b
Function c
Function d
Only public network access is enabled
No EIP
No EIP
No EIP
No EIP
Only private network access is enabled
No EIP
No EIP
No EIP
No EIP
Public network access and fixed public outbound IP are enabled
EIP IP-x
EIP IP-x
EIP IP-x
EIP IP-x
The same VPC is used for access, and fixed public outbound IP is enabled
EIP IP-y
EIP IP-y
EIP IP-y
EIP IP-y

Directions

Note:
You can have up to 5 fixed pubic outbound IPs in a region.
1. Log in to the SCF console and click Function Service on the left sidebar.
2. Select the function region at the top of the page and click the function name.
3. Enter the Function Configuration tab and click Edit in the top-right corner.
4. Configure the function network as needed as shown below:
Note:
After public network access is enabled for the function, you can enable fixed public outbound IP.
You cannot manually select or edit the randomly generated EIP.


After completing the configuration, click Save.

Ajuda e Suporte

Esta página foi útil?

comentários