フローログを作成します。
操作説明
CreateFlowLog は非同期操作です。この操作を呼び出すと、システムはインスタンス ID を返しますが、フローログはまだ作成されていません。作成ノードはバックグラウンドで実行中です。 DescribeFlowLogs を呼び出して、フローログの作成ステータスをクエリできます:
フローログが Activating 状態の場合、フローログは作成中です。
フローログが Active 状態の場合、フローログは作成され、アクティブ化されています。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
vpc:CreateFlowLog |
create |
VSwitch
*FlowLog
VPC
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
フローログのリージョン ID。 DescribeRegions を呼び出して、最新のリージョンリストをクエリできます。 |
cn-qingdao |
| FlowLogName |
string |
任意 |
フローログの名前。 名前は 1~128 文字で、 |
myFlowlog |
| Description |
string |
任意 |
フローログの説明。 説明は 1~256 文字で、 |
This is my Flowlog. |
| ResourceType |
string |
必須 |
トラフィックをキャプチャするリソースのタイプ。有効な値:
|
NetworkInterface |
| ResourceId |
string |
必須 |
トラフィックをキャプチャするリソースの ID。 |
eni-askldfas**** |
| TrafficType |
string |
必須 |
収集するトラフィックタイプ。有効な値:
|
All |
| ProjectName |
string |
任意 |
キャプチャされたトラフィックを管理するプロジェクトの名前。
|
FlowLogProject |
| LogStoreName |
string |
任意 |
キャプチャされたトラフィックを保存する Logstore の名前。
|
FlowLogStore |
| AggregationInterval |
integer |
任意 |
フローログのサンプリング間隔。単位: 分。有効な値: 1、5、10 (デフォルト)。 |
10 |
| TrafficPath |
array |
任意 |
キャプチャするトラフィックパス。有効な値:
|
|
|
string |
任意 |
キャプチャするトラフィックパス。有効な値:
説明
トラフィックパスの特徴はデフォルトでは有効になっていません。この特徴を使用するには、チケットを送信してください。 . |
all |
|
| ResourceGroupId |
string |
任意 |
リソースグループの ID。 |
rg-acfmxazdjdhd**** |
| Tag |
array<object> |
任意 |
リソースのタグ。 |
|
|
object |
任意 |
タグ。 |
||
| Key |
string |
任意 |
リソースのタグキー。最大 20 個のタグキーを指定できます。タグキーは空の文字列にできません。 タグキーは最大 128 文字で、 |
FinanceDept |
| Value |
string |
任意 |
リソースのタグ値。最大 20 個のタグ値を指定できます。タグ値は空の文字列にできます。 タグ値は最大 128 文字で、 |
FinanceJoshua |
| IpVersion |
string |
任意 |
フローログによってキャプチャされるトラフィックの IP バージョン。 |
IPv4 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
リクエスト ID。 |
||
| RequestId |
string |
リクエスト ID。 |
54B48E3D-DF70-471B-AA93-08E683A1B457 |
| Success |
string |
呼び出しが成功したかどうかを示します。有効な値:
|
true |
| FlowLogId |
string |
フローログ ID。 |
fl-m5e8vhz2t21sel1nq**** |
| ResourceGroupId |
string |
リソースグループの ID。 |
rg-acfmxazdjdhd**** |
例
成功レスポンス
JSONJSON
{
"RequestId": "54B48E3D-DF70-471B-AA93-08E683A1B457",
"Success": "true",
"FlowLogId": "fl-m5e8vhz2t21sel1nq****",
"ResourceGroupId": "rg-acfmxazdjdhd****"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | IncorrectBusinessStatus.FlowLog | The business status of flowLog is incorrect. | |
| 400 | OptInRequired.FlowLog | You are not authorized to use the requested service of flowLog. Ensure that you have subscribed to the service you are trying to use. | |
| 400 | OperationUnsupported.AdvancedFeature | Advanced features of the vpc is unsupported. | |
| 400 | InvalidInstanceId | vswitch does not exist. | |
| 400 | ProjectOrLogstoreNotExist | The specified project or logstore does not exist. | |
| 400 | SourceProjectNotExist | The Source Project or logstore does not exist. | |
| 400 | Unauthorized | This api does not support sub user or role. | |
| 400 | OperationUnsupported.action | This action is not support. | |
| 400 | ParameterInvalid | Invalid parameter. | |
| 400 | RuleExist | The rule has already existed. | |
| 400 | InvalidHdMonitorStatus | Current instance status is not valid for this action. | |
| 400 | QuotaExceeded.FlowlogCount | This user has reached the maximum instance number of flowlog. | |
| 400 | InvalidResourceId.NotFound | This resourceId already has flowlog instance existed. | |
| 400 | INVALID_PARAMETER | The parameter invalid. | |
| 400 | MissingParameter | Missing mandatory parameter | |
| 400 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | |
| 400 | InvalidResourceType.NotFound | Resource type no the same. | |
| 400 | OperationUnsupported.ResourceType | This resource type is not supported. | |
| 400 | IllegalParam.AggregationInterval | The param of aggregationInterval is illegal. | |
| 400 | UnsupportedFeature.UserDefinedTrafficPath | The feature of UserDefinedTrafficPath is not supported. | |
| 400 | IllegalParam.TrafficPath | The param of trafficPath is illegal. | |
| 400 | DuplicatedParam.TrafficPath | The param of trafficPath is duplicated. | |
| 400 | IllegalParam.ResourceGroupId | Invalid ResourceGroupld value. | |
| 400 | OperationDenied.OperateShareResource | The operation is not allowed because of OperateShareResource. | |
| 400 | UnsupportedFeature.IpVersion | The ipversion type is not supported. | |
| 400 | UnsupportedFeature.VpcAdvancedFeature | The VPC does not support some advanced features. | |
| 400 | OperationFailed.EniTypeNotSupport | Operation failed because the ENI type is not supported. | |
| 400 | IllegalParam.IpVersion | The parameter of IpVersion is illegal. | |
| 400 | OperationDenied.NisTrafficAnalyzerAggregationIntervalMismatch | The sampling interval of the FlowLog is greater than the sampling interval of the NIS Traffic Analyzer. | |
| 400 | OperationDenied.NisTrafficAnalyzerNotFound | The specified NIS Traffic Analyzer does not exist. | |
| 400 | OperationDenied.NisTrafficAnalyzerNotActive | The specified NIS Traffic Analyzer is not enabled. | |
| 400 | OperationFailed.InternalError | The request processing has failed due to some unknown error. | |
| 400 | MissingParam.TrafficAnalyzerIdOrLogProjectOrLogStore | TrafficAnalyzerId and ProjectName and LogStoreName parameters are not passed in. | |
| 400 | OperationDenied.AllTrafficPathOfManagedExist | The resource you specified has created a flow log instance that collects the traffic of all scenarios. You cannot create a flow log instance that collects only some scenarios. | |
| 400 | UnsupportedFeature.UserDefinedTrafficPathIpv6 | Dual-stack flow log instances do not support custom trafficPath. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。