All Products
Search
Document Center

ENS:CreateEpnInstance

Last Updated:Jun 11, 2026

Memanggil CreateEpnInstance untuk membuat instans Edge-to-Edge Network (EPN).

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

ens:CreateEpnInstance

create

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

EPNInstanceType

string

Yes

Instans komunikasi Edge-to-Edge. Saat ini, hanya EdgeToEdge yang didukung.

EdgeToEdge

EPNInstanceName

string

No

Nama instans Edge-to-Edge Network (EPN).

test EPNInstanceName

InternetChargeType

string

Yes

Metode penagihan jaringan. Nilai valid:

  • BandwidthByDay: bayar berdasarkan bandwidth puncak harian.

  • 95BandwidthByMonth: bayar berdasarkan bandwidth persentil ke-95 bulanan.

  • PayByBandwidth4thMonth: bayar berdasarkan bandwidth puncak keempat bulanan.

  • PayByBandwidth: bayar berdasarkan bandwidth tetap.

Hanya satu metode penagihan yang dapat digunakan. Jika metode penagihan sudah ada, nilai baru tidak valid secara default, dan metode yang sudah ada akan diutamakan.

BandwidthByDay

NetworkingModel

string

Yes

Mode jaringan. Nilai valid:

  • SpeedUp: akselerasi cerdas (jaringan publik).

  • Connection: konektivitas jaringan internal (mode jaringan internal).

  • SpeedUpAndConnection: akselerasi cerdas dan konektivitas jaringan internal (mode jaringan internal).

SpeedUp

InternetMaxBandwidthOut

integer

Yes

Bandwidth publik arah keluar maksimum, dalam Mbit/s. Nilai valid: 1 Mbit/s hingga 100 Mbit/s.

1

Elemen respons

Element

Type

Description

Example

object

EPNInstanceId

string

ID instans Edge-to-Edge Network (EPN).

epn-xxxxx

RequestId

string

ID permintaan.

CEF72CEB-54B6-4AE8-B225-F876FF7BA984

Contoh

Respons sukses

JSONformat

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

Kode kesalahan

HTTP status code

Error code

Error message

Description

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.
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.
400 InvalidPrivateIpAddress.Duplicated Specified private IP address is duplicated.
400 CallInterface Call Interface Happen Error.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.