All Products
Search
Document Center

Virtual Private Cloud:ModifyFlowLogAttribute

Last Updated:Jun 12, 2026

Mengubah nama dan deskripsi Log aliran dengan memanggil operasi ModifyFlowLogAttribute.

Deskripsi operasi

  • ModifyFlowLogAttribute merupakan operasi asinkron. Setelah permintaan dikirim, sistem mengembalikan ID permintaan dan menjalankan Tugas di latar belakang. Log aliran tidak langsung diubah pada saat itu. Anda dapat memanggil operasi DescribeFlowLogs untuk mengkueri status modifikasi Log aliran:
    • Jika Log aliran berada dalam status Modifying, Log aliran sedang dimodifikasi.

    • Jika Log aliran berada dalam status Active atau Inactive, Log aliran telah dimodifikasi.

  • Operasi ModifyFlowLogAttribute tidak mendukung modifikasi konkuren pada atribut Log aliran yang sama.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

vpc:ModifyFlowLogAttribute

update

*FlowLog

acs:vpc:{#regionId}:{#accountId}:flowlog/{#FlowLogId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

RegionId

string

Yes

ID wilayah tempat Log aliran berada.

Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah.

cn-qingdao

FlowLogId

string

Yes

ID Log aliran.

fl-m5e8vhz2t21sel1nq****

FlowLogName

string

No

Nama baru Log aliran.

Panjang nama harus 1 hingga 128 karakter dan tidak boleh diawali dengan http:// atau https://.

myFlowlog

Description

string

No

Deskripsi baru Log aliran.

Panjang deskripsi harus 1 hingga 256 karakter dan tidak boleh diawali dengan http:// atau https://.

This is my Flowlog.

AggregationInterval

integer

No

Interval Pengambilan sampel baru Log aliran. Unit: menit. Nilai valid: 1, 5, dan 10.

1

IpVersion

string

No

Tipe alamat IP trafik yang dikumpulkan oleh Log aliran.

IPv4

Elemen respons

Element

Type

Description

Example

object

ID permintaan.

Success

string

Apakah operasi berhasil. Nilai valid:

  • true: Operasi berhasil.

  • false: Operasi gagal.

true

RequestId

string

ID permintaan.

F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1

Contoh

Respons sukses

JSONformat

{
  "Success": "true",
  "RequestId": "F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 IncorrectBusinessStatus.FlowLog The business status of flowLog is incorrect. The error message returned because you cannot create flow logs in the current business state.
400 InvalidInstanceId Instance does not exist. The error message returned because the specified instance does not exist.
400 ProjectOrLogstoreNotExist The specified project or logstore does not exist. The error message returned because the specified project or Logstore does not exist.
400 SourceProjectNotExist The Source Project or logstore does not exist. The error message returned because the source project or Logstore does not exist.
400 Unauthorized This api does not support sub user or role. The error message returned because you cannot call this operation as a RAM user.
400 InvalidInstanceId.NotFound The specfied instance is not existed.
400 RuleExist The rule has already existed.
400 InvalidHdMonitorStatus Current instance status is not valid for this action.
400 FlowLogNumberOverLimit This user has reached the maximum instance number of flowlog.
400 InvalidTrafficType.NotFound Invalid traffic type.
400 IncorrectStatus.flowlog Invalid flowlog status. The flow log cannot be disabled because it is in an invalid state.
400 InvalidName.Malformed The specified name is not valid.
400 IllegalParam.AggregationInterval The param of aggregationInterval is illegal.
400 Forbidden.OperateManagedFlowLog Authentication is failed for operate managed flowlog. Authentication failed when operating the managed flow log.
400 UnsupportedFeature.IpVersion The ipversion 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. The sampling interval of the FlowLog is greater than the sampling interval of the NIS Traffic Analyzer.
400 OperationDenied.NisTrafficAnalyzerNotActive The specified NIS Traffic Analyzer is not enabled. The specified NIS Traffic Analyzer is not enabled.
400 OperationDenied.NisTrafficAnalyzerNotFound The specified NIS Traffic Analyzer does not exist. The specified NIS Traffic Analyzer does not exist.
400 OperationFailed.InternalError The request processing has failed due to some unknown error. Unknown error. Please retry the operation. The error still exists. Please submit the work order for processing.
400 OperationDenied.InvalidInstanceDeliverScope When modifying the delivery purpose of the FlowLog instance or starting and stopping NIS traffic analysis, you specify the type of delivery that is not allowed. When modifying the delivery purpose of the FlowLog instance or starting and stopping NIS traffic analysis, you specify the type of delivery that is not allowed.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.