Membuat aplikasi Akselerasi Lapisan 4
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:CreateTransportLayerApplication |
create |
*Site
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
ID situs. Panggil operasi ListSites untuk mendapatkan ID situs. |
123456**** |
| RecordName |
string |
Yes |
Nama domain dari Aplikasi Lapisan Transport. |
aaa.example.com |
| Rules |
array<object> |
Yes |
Array objek Forwarding Rule. |
|
|
object |
Yes |
Objek Forwarding Rule. Semua parameter wajib diisi, kecuali |
||
| Protocol |
string |
Yes |
Protokol untuk Forwarding Rule. Nilai yang valid:
|
TCP |
| EdgePort |
string |
Yes |
Port Edge yang menerima traffic masuk. Format yang didukung:
Port Edge yang ditentukan tidak boleh tumpang tindih baik dalam satu aturan maupun antaraturan. |
80 |
| SourceType |
string |
Yes |
Jenis origin. Nilai yang didukung:
|
ip |
| SourcePort |
string |
Yes |
Port Origin. Format yang didukung:
|
80 |
| ClientIPPassThroughMode |
string |
Yes |
Protokol Passthrough IP Klien. Nilai yang didukung:
|
SPP |
| Source |
string |
Yes |
Alamat origin. Nilainya harus sesuai dengan |
1.1.1.1 |
| Comment |
string |
No |
Komentar opsional untuk Forwarding Rule. |
测试 |
| IpAccessRule |
string |
No |
Menentukan apakah akan menerapkan Aturan Akses IP yang dikonfigurasi di Web Application Firewall (WAF) ke Aplikasi Lapisan Transport ini.
Valid values:
|
on |
| Ipv6 |
string |
No |
Menentukan apakah akan mengaktifkan IPv6. Nilai yang valid: Valid values:
|
off |
| CrossBorderOptimization |
string |
No |
Menentukan apakah akan mengaktifkan optimasi jaringan untuk akses dari Tiongkok daratan. Fitur ini dinonaktifkan secara default. Nilai yang valid:
Valid values:
|
on |
| StaticIp |
string |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data yang dikembalikan untuk permintaan ini. |
||
| RequestId |
string |
ID Permintaan. |
9e5448c7-edaf-49aa-9887-0fcd0832306c |
| ApplicationId |
integer |
ID Aplikasi Lapisan 4. |
165503967**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "9e5448c7-edaf-49aa-9887-0fcd0832306c",
"ApplicationId": 0
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | ApplyVipError | Failed to apply for ip resources, please contact customer service. | |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | |
| 400 | InvalidParameter.RecordData | Invalid record content. Adjust your configurations based on the API documentation. | |
| 400 | InvalidParameter.RecordType | Invalid record type. Adjust your configurations based on the API documentation. | |
| 400 | Instance.NotOnline | Your plan is unavailable due to an overdue payment. Complete the payment first. | |
| 400 | QuotaExceed.RecordCount | The maximum number of records has been reached. Delete some and try again or upgrade your plan. | |
| 400 | Record.Conflict | The specified record content conflicts with existing records. Adjust your configurations based on the related product documentation. | |
| 400 | Site.ServiceBusy | This website is being configured. Try again later. | |
| 400 | TransportLayerRulesExceedLimit | The configured forwarding rules have exceeded the maximum limit. Delete useless forwarding rules and try again. | |
| 400 | TransportLayerApplicationConflict | The Layer -4 accelerated application conflicts with other applications. Check whether the application name and host record conflict with other applications in the site. | |
| 400 | SourceCircleExist | The host record of the resource to be operated on is already the source station of another resource, or the source station of the current resource has been added as a host record. To avoid loopback, modify the host record or source station and retry. | |
| 400 | InvalidParameter.InvalidRecordName | The record name you entered does not meet the specifications. Change the record name according to the product documentation. | |
| 400 | EdgePortsOverlap | There is overlap between multiple edge ports, please check and try again after modification. | |
| 400 | InvalidParameter.ClientIpPassThroughMode | Invalid client IP transfer protocol, please refer to the interface document and pass in valid parameters. | |
| 400 | InvalidParameter.RuleSource | The origin of the forwarding rule does not exist or is invalid. Enter the correct origin and try again. | |
| 400 | InvalidParameter.Port | Invalid edge port or origin port. Enter a valid port as required in the interface document. | |
| 400 | InvalidParameter.Protocol | Invalid port protocol. Enter a valid port protocol as required by the interface documentation. | |
| 400 | InternalError | An internal exception occurred, please try again later. | |
| 400 | IpaResourceUnavailable | The resource is unavailable. | |
| 400 | Record.NoResource | Failed to allocate resources for the record. Please submit a ticket for processing. | |
| 400 | InvalidParameter.PrivateIpAsSourceUnsupported | The provided source is an invalid private IP address. Please verify and resubmit. | |
| 400 | InvalidParameter.SourceIpInBlacklist | The provided source is an invalid private IP address. Please verify and resubmit. | |
| 400 | Site.NotActive | The status of the applied site or site is not activated. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.