指定されたサイト配下のレイヤー 4 アプリケーションの転送ルール設定を変更します。
操作説明
ListTransportLayerApplications が空のレイヤー 4 アクセラレーションアプリケーション一覧を返した場合、CreateTransportLayerApplication を使用してレイヤー 4 アクセラレーションアプリケーションを作成し、その後この API を使用してレイヤー 4 アクセラレーションアプリケーションの設定を変更します。
レイヤー 4 アクセラレーションアプリケーションを作成する際、選択するサイトはアクティブ化されたサイトである必要があります。サイトを作成した後、VerifySite API を呼び出して検証します。検証に合格したサイトは自動的にアクティブ化され、レスポンスパラメーター Passed=true で示されます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:UpdateTransportLayerApplication |
update |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| SiteId |
integer |
必須 |
サイト ID。 ListSites 操作を呼び出してサイト ID を取得できます。 |
123456**** |
| ApplicationId |
integer |
必須 |
レイヤー 4 アプリケーション ID。 ListTransportLayerApplications 操作を呼び出してアプリケーション ID を取得できます。 |
165503967**** |
| Rules |
array<object> |
任意 |
転送ルールのリスト。各ルールについて、コメント以外のすべてのパラメーターは必須です。 |
|
|
object |
任意 |
ルールの詳細。各ルールについて、コメント以外のすべてのパラメーターは必須です。 |
||
| Protocol |
string |
任意 |
転送ルールのプロトコル。有効な値:
列挙値:
|
TCP |
| EdgePort |
string |
任意 |
エッジポート。有効な値:
|
80 |
| SourceType |
string |
任意 |
オリジンタイプ。有効な値:
列挙値:
|
ip |
| SourcePort |
string |
任意 |
サーバーポート。有効な値:
|
80 |
| ClientIPPassThroughMode |
string |
任意 |
クライアント IP パススループロトコル。有効な値:
列挙値:
|
SPP |
| Source |
string |
任意 |
オリジンの具体的な値。 |
1.1.1.1 |
| Comment |
string |
任意 |
ルールのコメント。 |
123 |
| IpAccessRule |
string |
任意 |
IP アクセスルールスイッチ。有効にすると、WAF IP アクセスルールがレイヤー 4 アプリケーションに対して効果を持ちます。有効な値:
列挙値:
|
on |
| Ipv6 |
string |
任意 |
IPv6 スイッチ。有効な値:
列挙値:
|
on |
| CrossBorderOptimization |
string |
任意 |
中国本土のネットワークアクセス最適化を有効にするかどうかを指定します。この機能はデフォルトで無効です。有効な値:
列挙値:
|
on |
| StaticIp |
string |
任意 |
静的 IP を有効にするかどうかを指定します。この機能はデフォルトで無効です。有効な値:
|
off |
| KeepAliveProtection |
string |
任意 |
キープアライブ保護を有効にするかどうかを指定します。この機能はデフォルトで無効です。有効な値:
列挙値:
|
off |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
リクエスト成功時の応答。 |
||
| RequestId |
string |
リクエスト ID。 |
9e5448c7-edaf-49aa-9887-0fcd0832306c |
例
成功レスポンス
JSONJSON
{
"RequestId": "9e5448c7-edaf-49aa-9887-0fcd0832306c"
}
エラーコード
|
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 | TransportLayerApplicationNotExist | The layer -4 accelerated application of the current operation does not exist. Modify it and try again. | |
| 400 | TransportLayerRulesExceedLimit | The configured forwarding rules have exceeded the maximum limit. Delete useless forwarding rules and try again. | |
| 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 | IpaNotActive | The ipa application is not active. | |
| 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 | IPA.KeepAliveProtectionConflict | KeepAliveProtection is conflicted with StaticIp and CrossBorderOptimization, can not open at same time. | |
| 400 | IPA.CanNotEnableKeepAliveProtection | The site has one or more TCP/UDP proxied applications with keep-alive-protection enabled. Its acceleration region or plan can't be edited. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。