すべてのプロダクト
Search
ドキュメントセンター

Edge Security Acceleration:CreateTransportLayerApplication

最終更新日:Mar 23, 2026

レイヤー 4 加速アプリケーションの作成

今すぐお試しください

この API を OpenAPI Explorer でお試しください。手作業による署名は必要ありません。呼び出しに成功すると、入力したパラメーターに基づき、資格情報が組み込まれた SDK コードが自動的に生成されます。このコードをダウンロードしてローカルで使用できます。

テスト

RAM 認証

この操作の認証情報はありません。問題が発生した場合は、アカウントマネージャーにご連絡ください。

リクエストパラメーター

パラメーター

必須 / 任意

説明

SiteId

integer

必須

サイト ID。サイト ID を取得するには、ListSites 操作を呼び出します。

123456****

RecordName

string

必須

トランスポート層アプリケーションのドメイン名。

aaa.example.com

Rules

array<object>

必須

転送ルール オブジェクトの配列。

object

必須

転送ルール オブジェクト。すべてのパラメーターが必須です(Comment を除く)。

Protocol

string

必須

転送ルールのプロトコル。有効な値:

  • TCP:TCP プロトコル。

  • UDP:UDP プロトコル。

TCP

EdgePort

string

必須

着信トラフィックを受信するエッジ ポート。サポートされる形式:

  • 単一ポート(例:80)。

  • ポート範囲(例:81-85)。これはポート 81、82、83、84、85 を含みます。

  • コンマで区切られたポートとポート範囲の組み合わせ(例:80,81-85,90)。

指定されたエッジ ポートは、同一ルール内または複数のルール間で重複してはなりません。

80

SourceType

string

必須

オリジンの種類。サポートされる値:

  • ip:IP アドレス。

  • domain:ドメイン名。

  • OP:オリジン プール。

  • LB:ロードバランサー。

ip

SourcePort

string

必須

オリジン ポート。サポートされる形式:

  • 単一ポート。単一のオリジン ポートを指定した場合、エッジ ポートに任意の有効な形式を使用できます。

  • ポート範囲。オリジン ポートにポート範囲を指定できるのは、エッジ ポートもポート範囲である場合のみです。オリジン ポート範囲のポート数は、エッジ ポート範囲のポート数と一致している必要があります。たとえば、EdgePort90-93(4 ポート)の場合、SourcePort81-85(5 ポート)に設定することはできません(範囲サイズが一致しないため)。

80

ClientIPPassThroughMode

string

必須

クライアント IP パススルー プロトコル。サポートされる値:

  • off:クライアント IP パススルーを無効化。

  • PPv1:PROXY Protocol v1。TCP 接続のクライアント IP アドレスを保持。

  • PPv2:PROXY Protocol v2。TCP および UDP 接続のクライアント IP アドレスを保持。

  • SPP:Simple Proxy Protocol。UDP 接続のクライアント IP アドレスを保持。

SPP

Source

string

必須

オリジン アドレス。この値は指定された SourceType と一致する必要があります。

1.1.1.1

Comment

string

任意

転送ルールの任意のコメント。

测试

IpAccessRule

string

任意

Web Application Firewall (WAF) で構成された IP アクセス ルールを、このトランスポート層アプリケーションに適用するかどうかを指定します。

  • on:機能を有効化。

  • off:機能を無効化。

列挙値:

  • off :

    off

  • on :

    on

on

Ipv6

string

任意

IPv6 の有効化を指定します。有効な値:onoff

列挙値:

  • off :

    off

  • on :

    on

off

CrossBorderOptimization

string

任意

中国本土からのアクセス向けネットワーク最適化を有効化するかどうかを指定します。この機能はデフォルトで無効です。有効な値:

  • on:最適化を有効化。

  • off:最適化を無効化。

列挙値:

  • off :

    off

  • on :

    on

on

StaticIp

string

任意

レスポンスフィールド

フィールド

説明

object

リクエストに対する応答データ。

RequestId

string

リクエスト ID。

9e5448c7-edaf-49aa-9887-0fcd0832306c

ApplicationId

integer

レイヤー 4 アプリケーション ID。

165503967****

成功レスポンス

JSONJSON

{
  "RequestId": "9e5448c7-edaf-49aa-9887-0fcd0832306c",
  "ApplicationId": 0
}

エラーコード

HTTP ステータスコード

エラーコード

エラーメッセージ

説明

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.

完全なリストについては、「エラーコード」をご参照ください。

変更履歴

完全なリストについては、「変更履歴」をご参照ください。