Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Configuring the Network

Updated on 2024-11-12 GMT+08:00

Public Access

By default, functions can access services on public networks. If the target public network service requires whitelist verification using a fixed IP address, enable VPC access, configure a public NAT gateway for the VPC, and bind an Elastic IP (EIP) to the gateway. For details, see Configuring a Fixed Public IP Address

Configuring VPC Access

Functions can access resources in a VPC bound to it. If a function needs both VPC and public access, configure a public NAT gateway for the VPC and bind an EIP to the gateway. For details, see Configuring a Fixed Public IP Address.

Added support for enabling IPv6 in the VPC configuration of a function. (available only in CN East2.)

Required Permissions

Configure an agency by referring to Configuring Agency Permissions.

  • Permissions for VPC access: an agency with the VPC Administrator permission or with the least permissions listed in Table 1
    Table 1 Least permissions required

    Permission

    Action

    Deleting a port

    vpc:ports:delete

    Querying a port

    vpc:ports:get

    Creating a port

    vpc:ports:create

    Querying a VPC

    vpc:vpcs:get

    Querying a subnet

    vpc:subnets:get

  • Permissions for private domain name resolution: an agency with the DNS ReadOnlyAccess permission

Procedure

  1. Log in to the FunctionGraph console. In the navigation pane, choose Functions > Function List.
  2. Click the function to be configured to go to the function details page.
  3. Choose Configuration > Network, enable VPC Access, and specify a VPC and subnet.
    Figure 1 Configuring VPC access
    NOTE:
    1. For details on how to create a VPC and a subnet, see Creating a VPC.
    2. Specify an agency with VPC administrator permissions for the function. For details, see Configuring Agency Permissions.
    3. You can bind all functions in a project to up to four different subnets in any VPCs. (Each project has a unique 32-digit project ID, which is allocated when your account is created. The project IDs of your account and IAM user are the same.)
  4. (Optional) Configure the domain name.
    Enter one or more private domain names of the VPC so that the function can use them to access resources in this VPC. See Figure 1.
    NOTE:
    1. For details about how to create a private domain name, see Creating a Private Zone.
    2. Functions can resolve only domain names of the A record set type. For details about how to add a record set, see Record Set Types and Configuration Rules.
  5. (Optional) Configure the VPC CIDR block.
    Figure 2 VPC CIDR block
    NOTE:
    • You can enter the VPC CIDR block used in the code to check whether it conflicts with FunctionGraph's VPC CIDR block.
    • This feature is not available in CN-Hong Kong, AP-Bangkok, AP-Singapore, AP-Jakarta, LA-Mexico City1, LA-Mexico City2, LA-Sao Paulo1, and LA-Santiago.
  6. (Optional) Enable IPv6. Currently, this feature is available only in CN East2.
    1. Create a VPC and ensure that IPv6 is enabled in the default subnet configuration. For details, see Creating a VPC and Subnet.
    2. In the VPC and Subnet areas in step 3, select the created VPC and subnet.
    Figure 3 Enabling IPv6
    NOTE:

    After the IPv6 function is enabled, the system automatically assigns an IPv6 CIDR block to the created subnet. Currently, the IPv6 CIDR block cannot be customized. Once enabled, this function cannot be disabled. For more information, see IPv6 Network.

  7. Click Save.

Configuring a Fixed Public IP Address

If a function needs to access public network resources in a VPC or requires a fixed public IP address, configure a public NAT gateway for the VPC and bind an EIP to the gateway.

Prerequisites

  1. You have created a VPC and a subnet according to Creating a VPC.
  2. You have obtained an EIP according to Assigning an EIP.

Procedure

  1. In the left navigation pane of the management console, choose Network > NAT Gateway to go to the NAT Gateway console. Then click Buy Public NAT Gateway.
  2. On the displayed page, enter gateway information, select a VPC (for example, vpc-01) and subnet, and confirm and submit the settings. For details, see Buying a Public NAT Gateway.
  3. Click the public NAT gateway name. On the details page that is displayed, click Add SNAT Rule, set the rule, and click OK.

Network Restrictions

FunctionGraph provides the following network access capabilities.

Parameter

Description

Public Access

The default public NAT access bandwidth is shared between tenants in testing scenarios that involve a small number of requests. In production scenarios that require high bandwidth, performance, and reliability, enable VPC access for your function, add a public NAT gateway, and bind an EIP with an exclusive bandwidth to it.

VPC Access

If this option is enabled, the default NIC is disabled and the NIC bound to the VPC will be used instead. Whether public access is supported depends on the VPC.

Invocation Only by Specific VPC

If this option is enabled, the function can be invoked only from the specified VPC instead of the public network.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback