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.
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) |
| 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. |
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"
}
{
"Response": {
"RequestId": "test-req-001",
"NetworkInstanceId": "epn-a1b2c3d4"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback