tencent cloud

APIs

DocumentationAPIsEdge ZoneNetwork APIsCreatePublicNetworkInstance

CreatePublicNetworkInstance

Focus Mode
Font Size
Last updated: 2026-04-27 16:54:55

1. API Description

Domain name for API request: edgezone.intl.tencentcloudapi.com.

The user inputs the availability zone ID, public network instance name, network line, and routing mode to create a public network instance. A user can only create one public network instance in an availability zone.
Public network instances in static routing mode require users to proactively apply for and release public IP addresses.
Public network instances with routing mode set to OSPF, BGP automatically allocate public IP ranges when creating and auto release public IP ranges upon termination.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: CreatePublicNetworkInstance.
Version Yes String Common Params. The value used for this API: 2026-04-01.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
ZoneId Yes String Availability zone ID.
NetworkInstanceName Yes String Public network instance name
Line Yes String Network line
RouteMode Yes String Routing mode
Bandwidth No Integer Public network bandwidth (Mbps)

3. Output Parameters

Parameter Name Type Description
NetworkInstanceId String Public network instance ID
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Creating a public network instance

Input Example

POST / HTTP/1.1
Host: edgezone.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreatePublicNetworkInstance
<Common request parameters>

{
    "ZoneId": "ap-beijing-a",
    "NetworkInstanceName": "test-bgp-instance",
    "Line": "BGP",
    "Bandwidth": 100,
    "RouteMode": "bgp"
}

Output Example

{
    "Response": {
        "RequestId": "test-req-001",
        "NetworkInstanceId": "epn-a1b2c3d4"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation.PublicInstanceDuplicate A public network instance for this AppId already exists in the specified availability zone.
InvalidParameter Parameter error.
InvalidParameter.InvalidQuota BGP/OSPF mode: The quota value is not in valid range.
LimitExceeded.QuotaNotConfigured BGP/OSPF mode: The user has no IPv4 quota configuration in this availability zone.
ResourceInsufficient.NoAvailableCidr BGP/OSPF mode: No idle CIDR block (/26 or /25) is allocatable in the availability zone.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback