AddSourcesToTrafficMirrorSession 操作を呼び出して、トラフィックミラー会話にトラフィックミラーソースを追加します。
操作説明
- AddSourcesToTrafficMirrorSession は非同期操作です。リクエストが送信されると、システムはリクエスト ID を返します。ただし、トラフィックミラーソースはまだ追加されておらず、追加タスクはバックグラウンドで実行中です。 ListTrafficMirrorSessions を呼び出して、トラフィックミラーソースの追加ステータスをクエリできます:
トラフィックミラー会話が Modifying 状態の場合、トラフィックミラーソースは追加中です。
トラフィックミラー会話が Created 状態の場合、トラフィックミラーソースは追加済みです。
AddSourcesToTrafficMirrorSession は、同じトラフィックミラー会話へのトラフィックミラーソースの同時追加リクエストをサポートしていません。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
vpc:AddSourcesToTrafficMirrorSession |
update |
*TrafficMirrorSession
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ClientToken |
string |
任意 |
リクエストのべき等性を確保するために使用されるクライアントトークン。 クライアントを使用してトークンを生成できますが、異なるリクエスト間でトークンが一意であることを確認する必要があります。ClientToken の値には ASCII 文字のみを含めることができます。 説明
このパラメーターを指定しない場合、システムは自動的に RequestId の値を ClientToken の値として使用します。RequestId の値は API 呼び出しごとに異なる場合があります。 |
0c593ea1-3bea-11e9-b96b-88e9fe63**** |
| DryRun |
boolean |
任意 |
ドライランを実行するかどうかを指定します。有効な値:
|
false |
| TrafficMirrorSessionId |
string |
必須 |
トラフィックミラーソースを追加するトラフィックミラー会話のインスタンス ID。 |
tms-j6cla50buc44ap8tu**** |
| TrafficMirrorSourceIds |
array |
必須 |
追加するトラフィックミラーソースのインスタンス ID。現在、トラフィックミラーソースとしてサポートされているのは Elastic Network Interface (ENI) のみです。N のデフォルト値は 1 で、トラフィックミラー会話に追加できるトラフィックミラーソースは 1 つのみです。 |
eni-j6ccmrl8z3xkvxgw**** |
|
string |
任意 |
追加するトラフィックミラーソースのインスタンス ID。現在、トラフィックミラーソースとしてサポートされているのは Elastic Network Interface (ENI) のみです。N のデフォルト値は 1 で、トラフィックミラー会話に追加できるトラフィックミラーソースは 1 つのみです。 |
eni-j6c8znm5l1yt4sox**** |
|
| RegionId |
string |
必須 |
トラフィックミラー会話のリージョン ID。 DescribeRegions 操作を呼び出して、最新のリージョンリストをクエリできます。 トラフィックミラーリングをサポートするリージョンの詳細については、トラフィックミラーリングの概要 を参照してください。 |
cn-hongkong |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
87F70089-5B38-41A8-BAD8-0B55E2F8DC57 |
例
成功レスポンス
JSONJSON
{
"RequestId": "87F70089-5B38-41A8-BAD8-0B55E2F8DC57"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | IncorrectBusinessStatus.TrafficMirror | The business status of traffic mirror is incorrect. | |
| 400 | OptInRequired.TrafficMirror | You need to subscribe to the traffic mirror service first. | |
| 400 | DuplicatedParam.SourceInstanceIds | The parameter of source instance IDs contains duplicate values. | |
| 400 | ResourceNotFound.TrafficMirrorSession | The specified resource of traffic mirror session is not found. | |
| 400 | IncorrectStatus.TrafficMirrorSession | The status of traffic mirror session is incorrect. | |
| 400 | ResourceAlreadyAssociated.TrafficMirrorSource | The specified traffic mirror source and session are already associated. | |
| 400 | ResourceNotFound.NetworkInterface | The specified resource of %s is not found. | |
| 400 | ResourceNotFound.EcsInstance | The specified resource of ECS instance is not found. | |
| 400 | OperationDenied.EcsNotSupportTrafficMirror | The ECS instance does not support traffic mirroring. | |
| 400 | OperationDenied.DuplicateRole | The network interface must not be the source and the target of traffic mirror sessions at the same time. | |
| 400 | QuotaExceeded.NetworkInterfaceRelatedSession | The quota of the number of traffic mirror sessions related to one network interface is exceeded. | |
| 400 | OperationDenied.FreeNetworkInterface | The network interface is not attached to any ECS instance. | |
| 400 | QuotaExceeded.SourceNumPerSession | The quota of the number of traffic mirror sources per session is exceeded. | |
| 400 | QuotaExceeded.SourceNumPerTarget | The maximum number of traffic mirror sources for a target is exceeded. | |
| 400 | OperationUnsupported.BondingNetworkInterface | The specified traffic mirror source is bonding eni without slave. | |
| 400 | OperationDenied.UnsupportedTargetType | Traffic mirror target must be SLB if traffic mirror sources contain nat gateway network interface. | |
| 400 | OperationDenied.InvalidSourceBondEniType | The traffic mirroring source does not support the entered bond ENI type. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。