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

Smart Access Gateway:ModifyFlowLogAttribute

最終更新日:Dec 21, 2025

フローログの設定を変更します。

今すぐお試しください

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

テスト

RAM 認証

下表に、この API を呼び出すために必要な認証情報を示します。認証情報は、RAM (Resource Access Management) ポリシーを使用して定義できます。以下で各列名について説明します。

  • アクション:特定のリソースに対して実行可能な操作。ポリシー構文ではAction要素として指定します。

  • API:アクションを具体的に実行するための API。

  • アクセスレベル:各 API に対して事前定義されているアクセスの種類。有効な値:create、list、get、update、delete。

  • リソースタイプ:アクションが作用するリソースの種類。リソースレベルでの権限をサポートするかどうかを示すことができます。ポリシーの有効性を確保するため、アクションの対象として適切なリソースを指定してください。

    • リソースレベルの権限を持つ API の場合、必要なリソースタイプはアスタリスク (*) でマークされます。ポリシーのResource要素で対応する ARN を指定してください。

    • リソースレベルの権限を持たない API の場合、「すべてのリソース」と表示され、ポリシーのResource要素でアスタリスク (*) でマークされます。

  • 条件キー:サービスによって定義された条件のキー。このキーにより、きめ細やかなアクセス制御が可能になります。この制御は、アクション単体に適用することも、特定のリソースに対するアクションに適用することもできます。Alibaba Cloud は、サービス固有の条件キーに加えて、すべての RAM 統合サービスに適用可能な一連の共通条件キーを提供しています。

  • 依存アクション:ある特定のアクションを実行するために、前提として実行が必要となる他のアクション。依存アクションの権限も RAM ユーザーまたは RAM ロールに付与する必要があります。

アクション

アクセスレベル

リソースタイプ

条件キー

依存アクション

smartag:ModifyFlowLogAttribute

update

*All Resource

*

なし なし

リクエストパラメーター

パラメーター

必須 / 任意

説明

RegionId

string

必須

フローログがデプロイされているリージョンの ID。

cn-shanghai

Description

string

任意

フローログの説明。

流日志实例1

Name

string

任意

フローログの名前。

DDE

ActiveAging

integer

任意

アクティブなネットワーク接続のログデータを収集する間隔。 デフォルト値:300。 単位:秒。

300

InactiveAging

integer

任意

非アクティブなネットワーク接続のログデータを収集する間隔。 デフォルト値:15。 単位:秒。

15

OutputType

string

任意

フローログの保存先。 有効な値:

  • sls:フローログは Log Service に保存されます。

  • netflow:フローログは NetFlow コレクターに保存されます。

  • all:フローログは Log Service と NetFlow コレクターの両方に保存されます。

sls

SlsRegionId

string

任意

Log Service がデプロイされているリージョンの ID。 このパラメーターは、OutputType が sls に設定されている場合に必須です。

cn-shanghai

ProjectName

string

任意

Log Service の Logstore が属するプロジェクト。 このパラメーターは、OutputType が sls に設定されている場合に必須です。

ddrrgt

LogstoreName

string

任意

Log Service の Logstore。 このパラメーターは、OutputType が sls に設定されている場合に必須です。

ssfghgh

NetflowServerIp

string

任意

フローログが保存される NetFlow コレクターの IP アドレス。 このパラメーターは、OutputType が netflow に設定されている場合に必須です。

192.168.0.2

NetflowServerPort

integer

任意

NetFlow コレクターのポート。 デフォルト値:9995。 このパラメーターは、OutputType が netflow に設定されている場合に必須です。

9995

NetflowVersion

string

任意

NetFlow バージョン。 有効な値:V5V9V10。 デフォルト値:V9。 このパラメーターは、OutputType が netflow に設定されている場合に必須です。

V9

FlowLogId

string

必須

フローログの ID。

fl-7a56mar1kfw9vj****

レスポンスフィールド

フィールド

説明

object

RequestId

string

リクエストの ID。

AAC70A63-1A2E-4857-9CA3-5DE5B4041D1E

成功レスポンス

JSONJSON

{
  "RequestId": "AAC70A63-1A2E-4857-9CA3-5DE5B4041D1E"
}

エラーコード

HTTP ステータスコード

エラーコード

エラーメッセージ

説明

400 DependencyViolation.FlowLog This FlowLog instance is bound to an SAG instance.
400 IncorrectStatus.FlowLog The current FlowLog instance status does not support this operation.
400 InvalidFlowLogId.NotFound The specified FlowLogId does not exist.
400 MissingParam.FlowLogId Specify the FlowLogId parameter.
400 OperationFailed.AssociateFlowLog The operation failed. The specified SAG instance has already been associated with another FlowLog instance.
400 OperationUnsupported.AssociateFlowLog You cannot bind the SAG device of the current version or model to a FlowLog instance.
400 QuotaExceeded.Flowlog The maximum number of FlowLog instances is exceeded.
400 IllegalParam.ActiveAging The specified ActiveAging is invalid.
400 IllegalParam.InactiveAging The specified InactiveAging is invalid.
400 IllegalParam.OutputType The specified OutputType is invalid.
400 IllegalParam.NetflowServerIp The specified NetflowServerIp is invalid.
400 IllegalParam.NetflowServerPort The specified NetflowServerPort is invalid.
400 IllegalParam.NetflowVersion The specified NetflowVersion is invalid.
400 MissingParam.NetflowServerIp Specify the NetflowServerIp parameter.
400 MissingParam.NetflowServerPort Specify the NetflowServerPort parameter.
400 MissingParam.NetflowVersion Specify the NetflowVersion parameter.
400 IllegalParam.SlsRegionId The specified SlsRegionId is invalid.
400 MissingParam.SlsRegionId Specify the SlsRegionId parameter.
400 IllegalParam.RegionId The specified RegionId is invalid.
400 IllegalParam.Status The specified Status parameter is invalid.
400 InvalidSmartAGId.NotFound The specified SmartAGId does not exist.
403 FeatureNotSupport The current edition of the smart access gateway does not support this feature.

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

変更履歴

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