赛尔校园公共服务平台 Logo
平台使用
阿里云
百度云
移动云
智算服务
教育生态
登录 →
赛尔校园公共服务平台 Logo
平台使用 阿里云 百度云 移动云 智算服务 教育生态
登录
  1. 首页
  2. 阿里云
  3. 边缘节点服务 ENS
  4. 开发参考
  5. API参考
  6. API目录
  7. 其他
  8. CreateEpnInstance - 新建边边网络实例

CreateEpnInstance - 新建边边网络实例

  • 其他
  • 发布于 2025-04-16
  • 0 次阅读
文档编辑
文档编辑

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

调试

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

调试

授权信息

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

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用前面加 * 表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
ens:CreateEpnInstancecreate
*全部资源
*
    无
无

请求参数

名称类型必填描述示例值
EPNInstanceTypestring是

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

EdgeToEdge
EPNInstanceNamestring否

边边网络实例名称。

test EPNInstanceName
InternetChargeTypestring是

网络计费类型。取值:

  • BandwidthByDay:日峰值带宽。
  • 95BandwidthByMonth:月 95 峰值带宽。
  • PayByBandwidth4thMonth:月第四峰值带宽。
  • PayByBandwidth:固定规格带宽。

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

BandwidthByDay
NetworkingModelstring是

组网模式。取值:

  • SpeedUp:智能加速(外网)。
  • Connection:内网联通(内网模式)。
  • SpeedUpAndConnection:智能加速及内网联通(内网模式)。
SpeedUp
InternetMaxBandwidthOutinteger是

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

1

返回参数

名称类型描述示例值
object
EPNInstanceIdstring

边边网络实例 ID。

epn-xxxxx
RequestIdstring

请求 ID。

CEF72CEB-54B6-4AE8-B225-F876FF7BA984

示例

正常返回示例

JSON格式

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

错误码

HTTP status code错误码错误信息描述
400StockNotEnoughThe specified instance type has insufficient resource.-
400UserNotExistThe specified user is not authroized to perform this operation.-
400MissingParameterThe input parameter that is mandatory for processing this request is not supplied.-
400InstanceIdNotFoundThe input parameter instancdId that is not found.指定的实例ID不存在。
400NoPermissionPermission denied.没有足够的权限,请联系云账号管理员授予您相应权限。
400InvalidParameterThe input parameter is Invalid.-
400StockNotEnoughThe specified configuration is unavailable. Reconfigure and try again.-
400InvalidParameter.%sThe specified field %s invalid. Please check it again.-
400InvalidParameterThe errorMessage is %s. Please check it again.-
400StockNotEnoughThe specified EnsRegionId is unavailable. Reconfigure and try again.-
400StockNotEnoughThe specified InstanceSpec is unavailable. Reconfigure and try again.-
400InvalidDiskSize.ValueNotSupportedThe specified disk capacity is invalid. Specify another capacity and try again.-
400InvalidParameter.BandwidthThe specified parameter InternetChargeType is not valid.-
400StockNotEnoughThe specified node has insufficient resource.-
400InvalidParameter.ImageThe specified image does not support.-
400StockNotEnoughYou have reached the purchase default limit.-
400InvalidParameter.InstanceTypeThe specified parameter InstanceType is not valid.-
400InvalidAccountStatus.NotEnoughBalanceYour account does not have enough balance.-
400unsupported_Ipv6FeatureThis ensregion does not support creating instance of the IPv6 type. Select another type.-
400Forbidden.CreateInstanceThe user is not in the Goods whitelist of creating instance interface.-
400ENS_OperationUnsupported_KeyPairNameThe KeyPairNameis not available or image not support ssh key.-
400ENS_DependencyViolation_WindowsInstanceThe instance creating is window, only user password to login.-
400ENS_PASSWORDORKEYPAIRNAME_MODULE_NOT_CHOOSENThe required module pwd or keyPairName is not inputed-
400MissingParameterThe input parameter %s that is mandatory for processing this request is not supplied.-
400InvalidPrivateIpAddressSpecified private IP address is not in the CIDR block of virtual switch.-
400InvalidVSwitchId.NotFoundSpecified virtual switch does not exist.指定的虚拟交换机 ID 不存在。
400InvalidPrivateIpAddress.DuplicatedSpecified private IP address is duplicated.-
400CallInterfaceCall Interface Happen Error.接口调用出错。

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

变更历史

变更时间变更内容概要操作
2023-12-26OpenAPI 描述信息更新、OpenAPI 错误码发生变更查看变更详情
相关文章

ReleaseInstance - 释放实例 2025-04-16 15:09

释放实例,此接口只支持弹性公网EIP、边缘负载均衡实例ELB、云盘实例释放。建议对实例的释放调用每个产品对应的释放或退订接口。 释放EIP接口:DeleteEip,释放ELB接口:DeleteLoadBalancer,释放云盘实例接口:DeleteD

CreateEnsService - 创建边缘服务 2025-04-16 15:09

调用CreateEnsService创建边缘服务。

CreateEpnInstance - 新建边边网络实例 2025-04-16 15:09

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

DeleteEpnInstance - 删除边边通信实例 2025-04-16 15:09

调用DeleteEpnInstance删除边边通信实例。

DescribeEnsNetDistrict - 查询可创建边缘服务资源地域 2025-04-16 15:09

调用DescribeEnsNetDistrict查询可创建边缘服务资源地域。

DescribeEpnBandWidthData - 查询边边网络带宽用量 2025-04-16 15:09

调用DescribeEpnBandWidthData查询边边网络带宽用量。

目录
Copyright © 2025 your company All Rights Reserved. Powered by 赛尔网络.
京ICP备14022346号-15
gongan beian 京公网安备11010802041014号