Membuat log aliran.
Deskripsi operasi
CreateFlowLog adalah operasi asinkron. Setelah Anda memanggil operasi ini, sistem akan mengembalikan ID instans, tetapi log aliran belum dibuat. Node pembuatan masih berjalan di latar belakang. Anda dapat memanggil DescribeFlowLogs untuk mengkueri status pembuatan log aliran:
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. |
myFlowlog. |
| Description |
string |
No |
Deskripsi log aliran. |
This is my Flowlog. |
| 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 |
Jenis 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: menit. Nilai valid: 1, 5, dan 10 (default). |
10 |
| TrafficPath |
array |
No |
Jalur Trafik yang akan ditangkap. Nilai valid: |
|
|
string |
No |
Jalur Trafik yang akan ditangkap. 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. |
FinanceDept. |
| Value |
string |
No |
Nilai tag sumber daya. Anda dapat menentukan hingga 20 nilai tag. Anda dapat menentukan string kosong. |
FinanceJoshua. |
| IpVersion |
string |
No |
Versi IP dari Trafik yang ditangkap oleh log aliran. |
IPv4 |
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 diizinkan menggunakan layanan Log aliran yang diminta. Pastikan Anda telah berlangganan layanan yang ingin digunakan. |
| 400 | OperationUnsupported.AdvancedFeature | Advanced features of the vpc is unsupported. | Fitur lanjutan yang ditentukan tidak didukung. |
| 400 | InvalidInstanceId | vswitch 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 | 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. | ID Sumber daya yang ditentukan tidak ada. |
| 400 | INVALID_PARAMETER | The parameter invalid. | |
| 400 | MissingParameter | Missing mandatory parameter | |
| 400 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | |
| 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 trafficPath log aliran kustom tidak didukung untuk pengguna ini. |
| 400 | IllegalParam.TrafficPath | The param of trafficPath is illegal. | Parameter trafficPath yang ditentukan tidak valid. |
| 400 | DuplicatedParam.TrafficPath | The param of trafficPath is duplicated. | Parameter TrafikPath mengandung 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 operasi melibatkan Sumber daya yang dibagikan. |
| 400 | UnsupportedFeature.IpVersion | The ipversion type is not supported. | ipVersion yang ditentukan tidak didukung. |
| 400 | UnsupportedFeature.VpcAdvancedFeature | The VPC does not support some advanced features. | VPC tidak mendukung beberapa fitur lanjutan. Kirim tiket untuk bantuan. |
| 400 | OperationFailed.EniTypeNotSupport | Operation failed because the ENI type is not supported. | Tipe ENI sekunder tidak mendukung operasi 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 error yang tidak diketahui. Coba lagi operasi tersebut. Jika error tetap terjadi, kirimkan tiket. |
| 400 | MissingParam.TrafficAnalyzerIdOrLogProjectOrLogStore | TrafficAnalyzerId and ProjectName and LogStoreName parameters are not passed in. | Parameter TrafficAnalyzerId atau parameter ProjectName dan LogStoreName tidak ditentukan. |
| 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 ada untuk Sumber daya yang ditentukan. Anda tidak dapat membuat instans Log aliran 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 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.