Membuat Log aliran.
Deskripsi operasi
CreateFlowLog adalah operasi asinkron. Setelah Anda memanggil operasi ini, sistem akan mengembalikan ID instans, tetapi Log aliran belum dibuat. Tugas pembuatan masih berjalan di latar belakang. Anda dapat memanggil DescribeFlowLogs untuk mengkueri status pembuatan Log aliran:
Jika Log aliran berada dalam status Activating, Log aliran sedang dibuat.
Jika Log aliran berada dalam status Active, Log aliran telah dibuat dan diaktifkan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:CreateFlowLog |
create |
VSwitch.
*FlowLog.
VPC.
|
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 |
| FlowLogName |
string |
No |
Nama Log aliran. Panjang nama harus 1 hingga 128 karakter dan tidak boleh diawali dengan |
myFlowlog |
| Description |
string |
No |
Deskripsi Log aliran. Panjang deskripsi harus 1 hingga 256 karakter dan tidak boleh diawali dengan |
Ini adalah Flowlog saya |
| ResourceType |
string |
Yes |
Tipe Sumber daya yang trafiknya ingin Anda tangkap. Nilai valid:
|
NetworkInterface |
| ResourceId |
string |
Yes |
ID Sumber daya yang trafiknya ingin Anda tangkap. |
eni-askldfas**** |
| TrafficType |
string |
Yes |
Tipe trafik yang akan dikumpulkan. Nilai valid:
|
All |
| ProjectName |
string |
No |
Nama proyek yang mengelola trafik yang ditangkap.
|
FlowLogProject |
| LogStoreName |
string |
No |
Nama penyimpanan log yang menyimpan trafik yang ditangkap.
|
FlowLogStore |
| AggregationInterval |
integer |
No |
Interval pengambilan sampel Log aliran. Unit: minutes. Nilai valid: 1, 5, dan 10 (default). |
10 |
| TrafficPath |
array |
No |
Jalur trafik yang akan dikumpulkan. Nilai valid:
|
|
|
string |
No |
Jalur trafik yang akan dikumpulkan. Nilai valid:
|
all |
|
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-acfmxazdjdhd**** |
| Tag |
array<object> |
No |
Tag Sumber daya. |
|
|
object |
No |
Tag. |
||
| Key |
string |
No |
Kunci tag Sumber daya. Anda dapat menentukan hingga 20 kunci tag. Jangan tentukan string kosong untuk parameter ini. Panjang kunci tag dapat mencapai 128 karakter dan tidak boleh diawali dengan |
FinanceDept |
| Value |
string |
No |
Nilai tag Sumber daya. Anda dapat menentukan hingga 20 nilai tag. Nilai tag dapat berupa string kosong. Panjang nilai tag dapat mencapai 128 karakter dan tidak boleh diawali dengan |
FinanceJoshua |
| IpVersion |
string |
No |
Versi IP trafik yang ditangkap oleh Log aliran. |
IPv4 |
| LogFormat |
string |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
ID permintaan. |
||
| RequestId |
string |
ID permintaan. |
54B48E3D-DF70-471B-AA93-08E683A1B457 |
| Success |
string |
Apakah panggilan berhasil. Nilai valid:
|
true |
| FlowLogId |
string |
ID Log aliran. |
fl-m5e8vhz2t21sel1nq**** |
| ResourceGroupId |
string |
ID kelompok sumber daya. |
rg-acfmxazdjdhd**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "54B48E3D-DF70-471B-AA93-08E683A1B457",
"Success": "true.",
"FlowLogId": "fl-m5e8vhz2t21sel1nq****",
"ResourceGroupId": "rg-acfmxazdjdhd****"
}
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 | 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. | Anda tidak diotorisasi untuk menggunakan layanan flowLog yang diminta. Pastikan Anda telah berlangganan layanan yang ingin digunakan. |
| 400 | OperationUnsupported.AdvancedFeature | Advanced features of the vpc is unsupported. | Fitur lanjutan tidak didukung. |
| 400 | InvalidInstanceId | vswitch does not exist. | Instans vSwitch 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 SLS atau penyimpanan log tidak ada. |
| 400 | Unauthorized | This api does not support sub user or role. | Operasi API ini tidak mendukung pengguna RAM atau peran. |
| 400 | OperationUnsupported.action | This action is not support. | Operasi ini tidak didukung. |
| 400 | ParameterInvalid | Invalid parameter. | Parameter input tidak valid. |
| 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. | Jumlah maksimum instans log aliran telah tercapai. |
| 400 | InvalidResourceId.NotFound | This resourceId already has flowlog instance existed. | Instans log aliran sudah ada untuk Sumber daya yang ditentukan. |
| 400 | INVALID_PARAMETER | The parameter invalid. | |
| 400 | MissingParameter | Missing mandatory parameter | |
| 400 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | RegionId yang ditentukan tidak ada. Periksa apakah produk ini tersedia di wilayah yang ditentukan. |
| 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. | Parameter interval pengambilan sampel tidak valid. |
| 400 | UnsupportedFeature.UserDefinedTrafficPath | The feature of UserDefinedTrafficPath is not supported. | Fitur trafik trafficPath log aliran kustom tidak didukung untuk pengguna ini. |
| 400 | IllegalParam.TrafficPath | The param of trafficPath is illegal. | Parameter Trafik trafficPath yang ditentukan tidak valid. |
| 400 | DuplicatedParam.TrafficPath | The param of trafficPath is duplicated. | Parameter Trafik trafficPath yang ditentukan berisi nilai duplikat. |
| 400 | IllegalParam.ResourceGroupId | Invalid ResourceGroupld value. | Kelompok sumber daya yang ditentukan tidak valid atau tidak ada. |
| 400 | OperationDenied.OperateShareResource | The operation is not allowed because of OperateShareResource. | Operasi gagal karena melibatkan Resource yang dibagikan. |
| 400 | UnsupportedFeature.IpVersion | The ipversion type is not supported. | Nilai ipVersion yang ditentukan tidak didukung. |
| 400 | UnsupportedFeature.VpcAdvancedFeature | The VPC does not support some advanced features. | VPC tempat vSwitch yang ditentukan berada tidak mendukung fitur lanjutan. Gunakan vSwitch lain dan coba lagi. |
| 400 | OperationFailed.EniTypeNotSupport | Operation failed because the ENI type is not supported. | Tipe ENI sekunder tidak mendukung operasi saat ini. |
| 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.NisTrafficAnalyzerNotFound | The specified NIS Traffic Analyzer does not exist. | NIS Traffic Analyzer yang ditentukan tidak ada. |
| 400 | OperationDenied.NisTrafficAnalyzerNotActive | The specified NIS Traffic Analyzer is not enabled. | NIS Traffic Analyzer yang ditentukan tidak dalam status aktif. |
| 400 | OperationFailed.InternalError | The request processing has failed due to some unknown error. | Terjadi kesalahan yang tidak diketahui. Coba lagi operasi tersebut. Jika kesalahan tetap terjadi, kirimkan tiket. |
| 400 | MissingParam.TrafficAnalyzerIdOrLogProjectOrLogStore | TrafficAnalyzerId and ProjectName and LogStoreName parameters are not passed in. | Baik TrafficAnalyzerId maupun parameter ProjectName dan LogStoreName tidak disediakan. |
| 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. | Instans log aliran yang mengumpulkan Trafik untuk semua skenario sudah dibuat untuk Sumber daya yang ditentukan. Anda tidak dapat membuat instans log aliran lain yang hanya mengumpulkan Trafik untuk beberapa skenario. |
| 400 | UnsupportedFeature.UserDefinedTrafficPathIpv6 | Dual-stack flow log instances do not support custom trafficPath. | Instans log aliran dual-stack tidak mendukung fitur TrafikPath kustom. |
| 400 | IllegalParam.LogFormat | The specified parameter of LogFormat is invalid. | Parameter LogFormat yang ditentukan tidak valid. |
| 400 | OperationDenied.UnsupportedField | LogFormat contains unsupported fields. | LogFormat berisi 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 Port langganan kustom. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.