Mengubah nama dan deskripsi log aliran.
Deskripsi operasi
- ModifyFlowLogAttribute adalah operasi asinkron. Setelah Anda mengirim permintaan, sistem mengembalikan ID permintaan. Namun, log aliran belum diubah karena tugas modifikasi masih berjalan di latar belakang. Anda dapat memanggil 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.
ModifyFlowLogAttribute tidak mendukung modifikasi konkuren pada log aliran yang sama.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ModifyFlowLogAttribute |
update |
*FlowLog.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah log aliran. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah terbaru. |
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 dimulai dengan |
myFlowlog. |
| Description |
string |
No |
Deskripsi baru log aliran. Panjang deskripsi harus 1 hingga 256 karakter dan tidak boleh dimulai dengan |
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 |
Versi IP dari trafik yang ditangkap oleh log aliran. |
IPv4 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
ID permintaan. |
||
| Success |
string |
Apakah operasi berhasil. Nilai valid:
|
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. | Status layanan saat ini tidak mendukung pembuatan instans Log aliran. |
| 400 | InvalidInstanceId | Instance does not exist. | Instans ENI tidak ada. |
| 400 | ProjectOrLogstoreNotExist | The specified project or logstore does not exist. | Proyek atau penyimpanan log yang ditentukan tidak ada. |
| 400 | SourceProjectNotExist | The Source Project or logstore does not exist. | Proyek sumber atau penyimpanan log Simple Log Service yang ditentukan tidak ada. |
| 400 | Unauthorized | This api does not support sub user or role. | Operasi API ini tidak mendukung pengguna RAM atau peran. |
| 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. | Log aliran tidak dapat dihentikan karena berada dalam status yang tidak valid. |
| 400 | InvalidName.Malformed | The specified name is not valid. | |
| 400 | IllegalParam.AggregationInterval | The param of aggregationInterval is illegal. | Parameter interval pengambilan sampel tidak valid. |
| 400 | Forbidden.OperateManagedFlowLog | Authentication is failed for operate managed flowlog. | Otentikasi gagal saat mengoperasikan log aliran terkelola. |
| 400 | UnsupportedFeature.IpVersion | The ipversion type is not supported. | ipVersion yang ditentukan tidak didukung. |
| 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. | Interval pengambilan sampel log aliran lebih besar daripada interval pengambilan sampel NIS Traffic Analyzer. |
| 400 | OperationDenied.NisTrafficAnalyzerNotActive | The specified NIS Traffic Analyzer is not enabled. | NIS Traffic Analyzer yang ditentukan tidak dalam status aktif. |
| 400 | OperationDenied.NisTrafficAnalyzerNotFound | The specified NIS Traffic Analyzer does not exist. | NIS Traffic Analyzer yang ditentukan tidak ada. |
| 400 | OperationFailed.InternalError | The request processing has failed due to some unknown error. | Terjadi error yang tidak diketahui. Coba lagi operasi tersebut. Jika error tetap terjadi, kirimkan tiket. |
| 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. | Tipe pengiriman yang tidak didukung ditentukan saat memodifikasi tujuan pengiriman instans log aliran atau mengaktifkan atau menonaktifkan NIS Traffic Analyzer. |
| 400 | IllegalParam.LogFormat | The specified parameter of LogFormat is invalid. | Parameter LogFormat yang ditentukan tidak valid. |
| 400 | OperationDenied.UnsupportedField | LogFormat contains unsupported fields. | LogFormat mengandung bidang yang tidak didukung. |
| 400 | UnsupportedFeature.LogFormat | The ability to customize subscription fields for flow logs is not yet available, so stay tuned. | Fitur bidang langganan kustom untuk log aliran belum tersedia. |
| 400 | UnsupportedFeature.LogFormatNisTrafficAnalyze | The flow log for which NIS traffic analysis is enabled does not support custom subscription fields. | Log aliran dengan NIS Traffic Analyzer yang diaktifkan tidak mendukung bidang berlangganan kustom. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.