全部产品
Search
文档中心

边缘节点服务ENS:CreateEpnInstance - 新建边边网络实例

更新时间:Aug 27, 2026

调用CreateEpnInstance新建一个边边网络实例。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

ens:CreateEpnInstance

create

*全部资源

*

无 无

请求参数

名称

类型

必填

描述

示例值

EPNInstanceType

string

是

边边通信实例。目前取值仅支持 EdgeToEdge。

EdgeToEdge

EPNInstanceName

string

否

边边网络实例名称。

test EPNInstanceName

InternetChargeType

string

是

网络计费类型。取值:

  • BandwidthByDay:日峰值带宽。

  • 95BandwidthByMonth:月 95 峰值带宽。

  • PayByBandwidth4thMonth:月第四峰值带宽。

  • PayByBandwidth:固定规格带宽。

只能有一种计费方式,如果已存在计费方式,则新值默认无效,以已存在的为准。

BandwidthByDay

NetworkingModel

string

是

组网模式。取值:

  • SpeedUp:智能加速(外网)。

  • Connection:内网联通(内网模式)。

  • SpeedUpAndConnection:智能加速及内网联通(内网模式)。

SpeedUp

InternetMaxBandwidthOut

integer

是

公网出带宽最大值,单位为 Mbit/s。取值范围:1 Mbit/s~100 Mbit/s。

1

返回参数

名称

类型

描述

示例值

object

EPNInstanceId

string

边边网络实例 ID。

epn-xxxxx

RequestId

string

请求 ID。

CEF72CEB-54B6-4AE8-B225-F876FF7BA984

示例

正常返回示例

JSON格式

{
  "EPNInstanceId": "epn-xxxxx",
  "RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}

错误码

HTTP status code

错误码

错误信息

描述

400 StockNotEnough The specified instance type has insufficient resource.
400 UserNotExist The specified user is not authroized to perform this operation.
400 MissingParameter The input parameter that is mandatory for processing this request is not supplied.
400 InstanceIdNotFound The input parameter instancdId that is not found. 指定的实例ID不存在。
400 NoPermission Permission denied.
400 InvalidParameter The input parameter is Invalid.
400 InvalidParameter.%s The specified field %s invalid. Please check it again.
400 InvalidDiskSize.ValueNotSupported The specified disk capacity is invalid. Specify another capacity and try again.
400 InvalidParameter.Bandwidth The specified parameter InternetChargeType is not valid.
400 InvalidParameter.Image The specified image does not support.
400 InvalidParameter.InstanceType The specified parameter InstanceType is not valid.
400 InvalidAccountStatus.NotEnoughBalance Your account does not have enough balance.
400 unsupported_Ipv6Feature This ensregion does not support creating instance of the IPv6 type. Select another type.
400 Forbidden.CreateInstance The user is not in the Goods whitelist of creating instance interface.
400 ENS_OperationUnsupported_KeyPairName The KeyPairNameis not available or image not support ssh key.
400 ENS_DependencyViolation_WindowsInstance The instance creating is window, only user password to login.
400 ENS_PASSWORDORKEYPAIRNAME_MODULE_NOT_CHOOSEN The required module pwd or keyPairName is not inputed
400 InvalidPrivateIpAddress Specified private IP address is not in the CIDR block of virtual switch.
400 InvalidVSwitchId.NotFound Specified virtual switch does not exist. 指定的虚拟交换机 ID 不存在。
400 InvalidPrivateIpAddress.Duplicated Specified private IP address is duplicated.
400 CallInterface Call Interface Happen Error. 接口调用出错。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。