全部產品
Search
文件中心

ENS:CreateEpnInstance - 建立邊邊網路執行個體

更新時間:Mar 20, 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. 介面調用出錯。

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情