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
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 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 |
myFlowlog |
| Description |
string |
No |
Deskripsi baru Log aliran. Panjang deskripsi harus 1 hingga 256 karakter dan tidak boleh diawali 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 |
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 |
| 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.